/* Enhanced Tokly Design System */
*,
::before,
::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
    height: auto !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
}

.profile-pic,
.avatar-circle,
.avatar-circle img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #FAFAFA;
    border-radius: 0;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: stable;
}

/* ─── MENTION STYLING (Platform-Wide) ─── */
.mention-highlight {
    background: rgba(10, 102, 194, 0.1);
    color: #0A66C2 !important;
    font-weight: inherit;
    border-radius: 2px;
    padding: 0;
    transition: color 0.2s;
}

.mention-link {
    color: #0A66C2 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.mention-link:hover {
    text-decoration: underline !important;
}

a[href^="profile.php?username="]:hover {
    text-decoration: underline !important;
    filter: brightness(1.2);
}

/* ─── MOBILE ONLY (Default) ─── */
.desktop-only,
.desktop-layout,
.desktop-header {
    display: none !important;
}

/* ─── DESKTOP ONLY (min-width: 1024px) ─── */
@media (min-width: 1024px) {

    .desktop-only,
    .desktop-header {
        display: block !important;
    }

    /* .desktop-layout handled below in consolidated grid block */
    .mobile-only {
        display: none !important;
    }

    body.social-desktop {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background-color: #F3F2EF !important;
    }
}

@media (max-width: 1023px) {
    body.index-page.social-feed-active:not(.video-format-active) {
        height: 100%;
        overflow-y: auto;
        /* Balanced scroll for mobile news feed */
    }
}

/* ─── DESKTOP HEADER & LAYOUT (LinkedIn Style) ─── */
.desktop-header {
    width: 100% !important;
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1128px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin: 0 auto;
    gap: 8px;
}

.header-left {
    flex-shrink: 0;
}

.header-logo img {
    height: 34px;
    border-radius: 4px;
}

.logo-box {
    width: 34px;
    height: 34px;
    background: #0A66C2;
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.header-center {
    flex: 1;
    max-width: 280px;
}

.header-search-wrap {
    background: #EDF3F8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 34px;
    position: relative;
}

.header-search-wrap svg {
    width: 16px;
    height: 16px;
    color: #666;
    margin-right: 8px;
}

.header-search-wrap input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #000;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 0;
}

.header-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 100%;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    font-size: 12px;
    position: relative;
    transition: color 0.2s;
}

.header-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

.header-nav-item.active {
    color: #000;
}

.header-nav-item:hover {
    color: #000;
}

.header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #D11124;
    color: #FFFFFF !important;
    font-size: 10px;
    font-weight: 900;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    line-height: 1;
}

/* Messaging Redesign v7.2 */
.ubadge-blue {
    background: #0A66C2;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─── MODERN TAB SWITCHER (Segmented Control) ─── */
.format-switcher {
    display: inline-flex;
    background: #F3F4F6;
    padding: 3px;
    border-radius: 10px;
    margin: 2px 0;
    gap: 2px;
}

.format-btn {
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none !important;
}

.format-btn.active {
    background: #FFFFFF;
    color: #0A66C2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.format-btn:not(.active):hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.03);
}

/* Desktop Header Adjustments */
@media (min-width: 1024px) {
    .format-switcher {
        background: #F3F2EF;
        padding: 4px;
        border-radius: 8px;
    }

    .format-btn {
        padding: 6px 20px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        border-radius: 6px;
    }

    .format-btn.active {
        background: #FFFFFF;
        color: #0A66C2;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
}

.conv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
    border-left: 4px solid transparent;
}

.conv-item:hover {
    background: #f9fafb;
}

.conv-item.active {
    background: #edf3f8 !important;
    border-left-color: #0A66C2;
}

.cav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── HEADER PROFILE PICTURE FIXES ─── */
/* Force absolute roundness and prevent oval stretching in headers */
.profile-nav img,
.mobile-header img[alt="Profile"] {
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

/* Desktop Header size */
.profile-nav img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
}

/* Mobile Header size */
.mobile-header img[alt="Profile"] {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
}

/* Desktop News Feed Transitions Fix */
@media (min-width: 1024px) {
    .news-card {
        transform: none !important;
        will-change: auto !important;
    }
}

.feed-container {
    flex-grow: 1;
    height: 0;
    min-height: 0;
    width: 100%;
    overflow-y: auto;
    overscroll-behavior-y: auto !important;
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-container::-webkit-scrollbar {
    display: none;
}

/* Fix desktop scroll trapping for Videos tab */
@media (min-width: 1024px) {
    .desktop-center-feed .feed-container.yt-video-grid {
        overflow-y: visible !important;
        height: auto !important;
        overflow-x: visible !important;
    }
}

/* Mobile-only scroll fixes */
@media (max-width: 1023px) {
    .feed-container {
        overflow-y: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        will-change: scroll-position;
        transform: translateZ(0);
    }
}

/* Messaging Sidebar Redesign v7.2 */
.ubadge-blue {
    background: #0A66C2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.conv-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    border-left: 4px solid transparent;
}

.conv-item.active {
    background-color: #edf3f8 !important;
    border-left: 4px solid #0a66c2 !important;
}

.conv-item.unread {
    background-color: #d0e0ed;
}

.conv-item:hover {
    background-color: #f9f9f9;
}

.conv-item.active {
    background: #edf3f8 !important;
    border-left-color: #0A66C2;
}

.cav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    opacity: 1;
    object-fit: cover;
    border: 1px solid #eee;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.feed-container::-webkit-scrollbar {
    display: none;
}

.news-card {
    height: 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    background: #fff;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}

/* Mobile-only card height fix */
@media (max-width: 1023px) {
    .news-card {
        height: 100vh;
        min-height: 100vh;
        flex-shrink: 0;
    }
}

.card-media-wrap {
    width: 100%;
    height: 38%;
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reporter-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: center;
    color: white;
}

.meta-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    text-align: right;
    color: white;
    font-size: 10px;
}

.card-body {
    flex: 1;
    min-height: 0;
    padding: 15px 20px 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-category {
    color: #0A66C2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #000;
    letter-spacing: -0.2px;
}

.card-text {
    flex: 1;
    min-height: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.45;
    margin-bottom: 8px;
    padding-right: 5px;
    overflow-y: auto;
}

.footer-meta {
    padding: 10px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #999;
}

/* Action Bar Overhaul */
.action-meta-row {
    padding: 6px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #fff;
    color: #999;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}



.action-bar-black {
    background: #000;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 50;
    /* Elevated from 20 */
}

.action-bar-black button {
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    z-index: 60;
    /* Force above absolutely everything inside news-card */
}

.action-bar-light {
    background: #fff;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 50;
}

.action-bar-light button {
    color: #000 !important;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    z-index: 60;
}

/* Force all text and spans in action bars to be visible */
.action-bar-light span,
.action-bar-light .like-count,
.action-bar-light .dislike-count,
.action-bar-light .comment-count {
    color: #000 !important;
}

.action-bar-black span,
.action-bar-black .like-count,
.action-bar-black .dislike-count,
.action-bar-black .comment-count {
    color: #fff !important;
}

@media (max-width: 639px) {

    body.index-page.social-feed-active:not(.video-format-active),
    body.index-page.social-feed-active:not(.video-format-active) html {
        height: 100% !important;
        overflow-y: auto !important;
    }

    #news-feed {
        height: calc(100vh - 135px);
        position: relative;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }


    .news-card:not(.news-ad-card) .action-bar-light {
        order: 1;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .news-card:not(.news-ad-card) .action-bar-light::-webkit-scrollbar {
        display: none;
    }

    .news-card:not(.news-ad-card) .action-bar-light>div {
        flex: 0 0 auto;
        min-width: max-content;
    }

    .news-card:not(.news-ad-card) .card-body {
        order: 2;
    }

    .news-card:not(.news-ad-card) .action-meta-row {
        order: 3;
    }
}

@media (max-width: 639px) and (max-height: 760px) {
    .news-card:not(.news-ad-card) .card-media-wrap {
        height: 35%;
    }

    .news-card:not(.news-ad-card) .card-body {
        padding: 13px 16px 4px;
    }

    .news-card:not(.news-ad-card) .card-text {
        margin-bottom: 4px;
    }
}

/* Light theme search results override */
#search-suggestions,
#news-search-suggestions {
    background: #FFFFFF !important;
    border: 1px solid #EBEBEB !important;
    color: #191919 !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

#search-suggestions::-webkit-scrollbar,
#news-search-suggestions::-webkit-scrollbar {
    width: 4px;
}

#search-suggestions::-webkit-scrollbar-thumb,
#news-search-suggestions::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.text-brand-cyan {
    color: #0A66C2 !important;
}

.action-bar-black svg {
    width: 16px;
    height: 16px;
    fill: none !important;
    stroke: #fff !important;
    color: #fff !important;
}

.action-bar-light svg {
    width: 16px;
    height: 16px;
    fill: none !important;
    stroke: #000 !important;
    color: #000 !important;
}

.reporter-badge {
    display: flex;
    align-items: center;
}

.reporter-img {
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    margin-right: 10px;
    border: 1px solid #0A66C2;
}

.reporter-name {
    font-size: 11px;
    font-weight: 700;
}

.reporter-role {
    font-size: 9px;
    color: #666;
}

/* Ad styles moved to assets/css/ads.css - but keeping YT specific overrides here for grid alignment */
.yt-grid-ad-wrapper {
    grid-column: span 1;
    width: 100%;
}

.yt-grid-ad {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #f0f0f0;
}

.yt-grid-ad-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.yt-grid-ad-media img,
.yt-grid-ad-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-grid-ad-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yt-grid-ad-badge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.yt-grid-ad-cta-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0A66C2;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.yt-grid-ad:hover .yt-grid-ad-cta-bar {
    background: #004182;
}

.yt-grid-ad-info {
    padding: 10px 12px;
}


/* Modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 11000;
    display: none;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-overlay::-webkit-scrollbar {
    display: none;
}

.modal-overlay.visible {
    display: flex !important;
}

body.modal-open {
    overflow: hidden !important;
}

/* Recommended News Section */
.recommended-section {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
}

.recommended-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #252525;
    margin-bottom: 8px;
    border-left: 3px solid #0A66C2;
}

.recommended-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    margin-right: 12px;
}

/* Horoscope specialized styles */
.horoscope-card {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.horoscope-wheel {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50% !important;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar for card text */
.card-text::-webkit-scrollbar {
    width: 4px;
}

.card-text::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.card-text::-webkit-scrollbar-thumb {
    background: #000000;
}

/* Animation for active icons */
.active-icon svg {
    filter: drop-shadow(0 0 5px rgba(10, 102, 194, 0.3));
    transform: scale(1.1);
}

/* Comment Modal (Slide-up) */
#comment-modal.visible {
    visibility: visible;
}

#comment-modal.visible #comment-panel {
    transform: translateY(0);
}

#comment-modal.visible .backdrop-blur-sm {
    opacity: 1;
}

.comment-bubble {
    background: white;
    padding: 12px;
    border: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

.comment-user {
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

/* Action Bar Polish */
.action-bar button {
    transition: all 0.2s ease;
}

.action-bar button:active {
    transform: scale(0.9);
}

.report-btn {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.report-btn:hover {
    opacity: 1;
}

/* Report Modal (Slide-up) */
#report-modal.visible {
    visibility: visible;
}

#report-modal.visible #report-panel {
    transform: translateY(0);
}

#report-modal.visible .backdrop-blur-sm {
    opacity: 1;
}

#report-form label:active {
    background-color: #f9f9f9;
}

#report-form input[type="radio"]:checked+span {
    color: #000;
    font-weight: 700;
}

/* Multi-Media & Social Polish */
.media-preview-scroll::-webkit-scrollbar {
    display: none;
}

.media-preview-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.social-card {
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
    border-top: 1px solid #EBEBEB;
    margin-bottom: 8px;
}

.card-media-wrap video,
.social-card video {
    background: transparent;
}

/* Shorts Nav Highlight */
nav a[href="shorts.php"].active {
    color: #0A66C2;
}

@keyframes floatHeart {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0.8;
    }

    30% {
        transform: translate(-50%, -100%) scale(1.4);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -150%) scale(1.1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -200%) scale(0.6);
        opacity: 0;
    }
}

/* ── Desktop Layout (≥ 1024px) ────────────────────────────────────────────── */
@media (min-width: 1024px) {

    /* Hide mobile-only elements */
    .mobile-header {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    #a2hs-banner {
        display: none !important;
    }

    body.social-desktop,
    html.social-desktop {
        overflow: visible !important;
        height: auto !important;
        background: #F3F2EF !important;
    }

    /* 3-column grid wrapper (LinkedIn Standard) */
    .desktop-layout {
        display: grid !important;
        /* Force GRID to stop the flex/grid fight */
        grid-template-columns: 240px 555px 300px;
        /* LinkedIn standard: total 1128px incl. 24px gaps */
        grid-template-areas: "left center right";
        justify-content: center;
        min-height: calc(100vh - 52px);
        max-width: 1128px;
        margin: 52px auto 0 !important;
        /* Fixed space for Header */
        column-gap: 24px;
        padding: 24px 0;
        align-items: start;
        box-sizing: border-box;
    }

    /* Centered Layout Override (for Profile/Page) */
    .desktop-layout.layout-centered {
        display: grid !important;
        grid-template-columns: 225px 1fr !important;
        grid-template-areas: "left center" !important;
        max-width: 1128px !important;
    }

    .desktop-layout.layout-centered .desktop-center-feed {
        width: 100%;
        max-width: 100%;
        flex: 1;
        background: #fff;
        border: 1px solid #EBEBEB;
        border-radius: 8px;
        overflow: hidden;
    }

    /* ── Desktop Header ── */
    .desktop-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 52px;
        background: #FFFFFF;
        border-bottom: 1px solid #EBEBEB;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
        z-index: 5000;
        display: flex;
        justify-content: center;
    }

    .header-container {
        width: 100%;
        max-width: 1128px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        gap: 20px;
    }

    .header-left {
        flex-shrink: 0;
    }

    .header-logo img {
        height: 48px;
        object-fit: contain;
    }

    .header-center {
        flex: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .header-search-wrap {
        position: relative;
        width: 100%;
        background: transparent;
        padding: 0;
    }

    .header-search-wrap svg {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: #666;
    }

    .header-search-wrap input {
        width: 100%;
        padding: 8px 12px 8px 36px;
        background: #EEF3F8;
        border: 1px solid transparent;
        border-radius: 4px;
        font-size: 14px;
        outline: none;
    }

    .header-search-wrap input:focus {
        background: #FFFFFF;
        border-color: #0A66C2;
        box-shadow: 0 0 0 1px #0A66C2;
    }

    #header-search-suggestions {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: #FFF;
        border: 1px solid #EBEBEB;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        display: none;
        z-index: 6000;
        overflow: hidden;
    }

    #header-search-suggestions.show {
        display: block;
    }

    .sugg-header {
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        color: #666;
        padding: 12px 16px 4px;
        background: #F9FAFB;
    }

    .sugg-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.1s;
    }

    .sugg-item:hover {
        background: #F3F2EF;
    }

    .sugg-item img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    .sugg-item div {
        font-size: 13px;
        font-weight: 600;
        color: #000;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 24px;
        margin-left: auto;
    }

    .header-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        transition: color 0.15s;
        min-width: 60px;
    }

    .header-nav-item:hover {
        color: #000;
    }

    .header-nav-item.active {
        color: #000;
    }

    .header-nav-item.active svg {
        color: #000;
    }

    .header-nav-item svg {
        width: 24px;
        height: 24px;
    }

    .header-nav-item span {
        font-size: 11px;
        margin-top: 2px;
    }

    .profile-nav img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* ── Left Sidebar ── */
    .desktop-left-sidebar {
        grid-area: left;
        position: sticky;
        z-index: 2000;
        top: 76px;
        /* Header 52px + Gap 24px */
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        align-self: flex-start;
        will-change: transform;
    }

    .desktop-left-sidebar::-webkit-scrollbar {
        display: none;
    }

    .desktop-left-sidebar::-webkit-scrollbar {
        display: none;
    }

    .desktop-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 12px 24px;
        text-decoration: none;
    }

    .desktop-nav-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 600;
        color: #191919CC;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
        margin-bottom: 2px;
        cursor: pointer;
    }

    .desktop-nav-item:hover {
        background: #F3F2EF;
        color: #000;
    }

    .desktop-nav-item.active {
        color: #0A66C2;
        font-weight: 800;
    }

    .desktop-nav-item.active svg {
        color: #0A66C2;
    }

    .desktop-nav-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .desktop-post-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 16px 12px;
        padding: 13px 24px;
        background: #0A66C2;
        color: #FFFFFF;
        font-weight: 800;
        font-size: 14px;
        border-radius: 999px;
        text-decoration: none;
        letter-spacing: 0.02em;
        transition: background 0.15s, transform 0.1s;
    }

    .desktop-post-btn:hover {
        background: #004182;
        transform: scale(1.02);
    }

    .desktop-user-footer {
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 999px;
        cursor: pointer;
        transition: background 0.15s;
        color: #191919CC;
        text-decoration: none;
    }

    .desktop-user-footer:hover {
        background: #F3F2EF;
        color: #000;
    }

    .desktop-user-footer img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .desktop-switch-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #F3F2EF;
        color: #0A66C2;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .desktop-switch-btn:hover {
        background: #0A66C2;
        color: #fff;
        transform: scale(1.1);
    }

    .desktop-switch-btn:active {
        transform: scale(0.95);
    }

    @keyframes rotate-360 {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .rotate-animation svg {
        animation: rotate-360 0.5s ease-in-out;
    }

    .desktop-search-wrap {
        padding: 8px 12px 12px;
        position: relative;
    }

    .desktop-search-wrap input {
        width: 100%;
        padding: 10px 16px 10px 38px;
        background: #EEF3F8;
        border: 1px solid transparent;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 500;
        outline: none;
        color: #000;
        transition: border-color 0.2s, background 0.15s;
        box-sizing: border-box;
    }

    .desktop-search-wrap input::placeholder {
        color: #19191999;
    }

    .desktop-search-wrap input:focus {
        border-color: #0A66C2;
        background: #FFFFFF;
        border: 1px solid #0A66C2;
    }

    .desktop-search-wrap svg {
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        color: #19191999;
        pointer-events: none;
    }

    /* ── Center Feed ── */
    .desktop-center-feed {
        grid-area: center;
        min-width: 0;
        min-height: 100vh;
        background: transparent;
        border: none;
    }

    .desktop-center-feed #social-feed,
    .desktop-center-feed #news-feed {
        max-width: 100% !important;
        width: 100%;
    }

    .desktop-center-feed .feed-container {
        height: auto !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        scroll-snap-type: none !important;
        perspective: none !important;
    }

    .desktop-center-feed .social-card {
        border-radius: 8px;
        border: 1px solid #EBEBEB;
        max-width: 100%;
        margin-bottom: 12px;
        border-top: 1px solid #EBEBEB;
        border-bottom: 1px solid #EBEBEB;
    }

    /* Prevent any child from escaping the column */
    .desktop-center-feed * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* But allow images/video to stretch fully */
    .desktop-center-feed img,
    .desktop-center-feed video {
        max-width: 100%;
    }

    .desktop-center-feed .news-card {
        height: auto !important;
        min-height: 500px !important;
        width: 100% !important;
        max-width: 555px !important;
        border-radius: 8px;
        border: 1px solid #EBEBEB;
        margin-bottom: 24px;
        padding-bottom: 0 !important;
        scroll-snap-align: none !important;
        overflow: visible !important;
        background: #fff;
        display: block !important;
    }

    .desktop-center-feed .news-card:not(.news-ad-card) .card-media-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .desktop-center-feed .news-card .card-body {
        padding: 16px 20px;
    }

    .desktop-center-feed .news-card:not(.news-ad-card) .card-body {
        flex: 0 0 auto;
        overflow: visible;
        padding-bottom: 10px;
    }

    .desktop-center-feed .news-card:not(.news-ad-card) .card-text {
        overflow: visible;
        max-height: none;
    }

    .desktop-center-feed .news-card.news-ad-card {
        padding: 0 !important;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        border: 1px solid #EBEBEB;
    }

    .desktop-center-feed .news-card.news-ad-card .news-ad-shell {
        width: 100%;
        min-height: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .desktop-center-feed .news-card.news-ad-card .news-ad-shell--hero {
        min-height: 420px;
    }

    .desktop-center-feed .news-card.news-ad-card .news-ad-feature {
        min-height: 100%;
    }

    .desktop-center-feed .news-card.news-ad-card .news-ad-content,
    .desktop-center-feed .news-card.news-ad-card .news-ad-recommendations {
        padding: 24px;
    }

    .desktop-center-feed .news-card.news-ad-card.news-ad-card--composite .news-ad-shell--composite {
        grid-template-columns: 1fr;
    }

    .desktop-center-feed .news-card.news-ad-card.news-ad-card--composite .news-ad-feature {
        grid-template-rows: minmax(260px, auto) auto;
    }

    .desktop-center-feed .news-card.news-ad-card.news-ad-card--composite .news-ad-recommendations {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    /* Compose bar at top of center feed */
    .desktop-compose-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border: 1px solid #ebebeb;
        border-radius: 8px;
        background: #fff;
        margin-bottom: 12px;
        position: relative;
        z-index: 30;
    }

    .desktop-compose-bar img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    .desktop-compose-bar a {
        flex: 1;
        padding: 10px 16px;
        background: #f0f2f5;
        border-radius: 999px;
        font-size: 14px;
        color: #666;
        text-decoration: none;
        display: block;
        transition: background 0.15s;
        font-weight: 500;
    }

    .desktop-compose-bar a:hover {
        background: #e5e7ec;
    }

    /* ── Right Sidebar ── */
    .desktop-right-sidebar {
        grid-area: right;
        min-width: 0;
        max-width: 300px;
        position: sticky;
        top: 76px;
        /* Header 52px + Gap 24px */
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
        background: transparent;
        border: none;
        align-self: flex-start;
        will-change: transform;
    }

    .desktop-right-sidebar::-webkit-scrollbar {
        display: none;
    }

    .desktop-widget {
        background: #FFFFFF;
        border: 1px solid #EBEBEB;
        border-radius: 8px;
        overflow: visible;
        /* Ensure Show more Link is not clipped */
        margin-bottom: 0;
    }

    .desktop-widget-title {
        font-size: 15px;
        font-weight: 800;
        color: #000;
        padding: 14px 16px 10px;
        border-bottom: 1px solid #EBEBEB;
    }

    .desktop-sponsored-widget {
        overflow: hidden;
        border-radius: 16px;
        border-color: #D7E2F2;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
        height: 300px;
        min-height: 300px;
        display: block;
        background: #FFFFFF;
    }

    .desktop-sponsored-widget-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .desktop-sponsored-widget-note {
        color: #8393AD;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .desktop-sponsored-slot {
        height: 100%;
        padding: 0;
    }

    .desktop-sponsored-placeholder {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
    }

    .desktop-sponsored-placeholder-badge {
        position: absolute;
        top: 26px;
        left: 26px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #0F172A;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .desktop-sponsored-placeholder-media {
        flex: 1;
        border-radius: 0;
        background: linear-gradient(135deg, #E8F0FF 0%, #F8FAFC 55%, #E2E8F0 100%);
    }

    .desktop-sponsored-placeholder-line {
        height: 12px;
        border-radius: 999px;
        background: #EEF2F7;
    }

    .desktop-sponsored-placeholder-line--lg {
        width: 74%;
    }

    .desktop-sponsored-placeholder-line:not(.desktop-sponsored-placeholder-line--lg) {
        width: 48%;
    }

    .desktop-sponsored-card {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .desktop-sponsored-media {
        position: relative;
        display: block;
        height: 100%;
        min-height: 300px;
        border-radius: 0;
        overflow: hidden;
        background: #0F172A;
        color: #FFFFFF;
        text-decoration: none;
        box-shadow: none;
    }

    .desktop-sponsored-asset {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .desktop-sponsored-asset--fallback {
        background: linear-gradient(135deg, #0A66C2 0%, #0F172A 100%);
    }

    .desktop-sponsored-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 16px;
        padding: 16px;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.14) 0%, rgba(15, 23, 42, 0.34) 38%, rgba(15, 23, 42, 0.92) 100%);
    }

    .desktop-sponsored-badges {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .desktop-sponsored-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        color: #0F172A;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .desktop-sponsored-copy-wrap {
        max-width: 100%;
    }

    .desktop-sponsored-kicker {
        display: block;
        margin-bottom: 8px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .desktop-sponsored-heading {
        margin: 0 0 8px;
        color: #FFFFFF;
        font-size: 30px;
        font-weight: 900;
        line-height: 0.96;
        letter-spacing: -0.05em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .desktop-sponsored-copy {
        margin: 0 0 14px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 13px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .desktop-sponsored-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .desktop-sponsored-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: max-content;
        padding: 11px 16px;
        border-radius: 999px;
        background: #FFFFFF;
        color: #0F172A;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .desktop-sponsored-media:hover .desktop-sponsored-cta {
        transform: translateY(-1px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
    }

    .desktop-sponsored-legal {
        color: rgba(255, 255, 255, 0.75);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .desktop-sponsored-empty {
        height: 100%;
        border-radius: 0;
        border: none;
        padding: 22px;
        background: linear-gradient(145deg, #F8FBFF 0%, #EEF4FF 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 10px;
    }

    .desktop-sponsored-empty-kicker {
        color: #0A66C2;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .desktop-sponsored-empty-title {
        margin: 0;
        color: #0F172A;
        font-size: 22px;
        font-weight: 900;
        line-height: 1.02;
        letter-spacing: -0.04em;
    }

    .desktop-sponsored-empty-copy {
        margin: 0;
        color: #475569;
        font-size: 13px;
        line-height: 1.5;
    }

    .desktop-sponsored-empty-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        max-width: max-content;
        padding: 11px 16px;
        border-radius: 999px;
        background: #0A66C2;
        color: #FFFFFF;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        text-decoration: none;
    }


    .desktop-create-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        margin: 14px 16px;
        background: #F3F2EF;
        color: #000;
        font-weight: 800;
        font-size: 13px;
        border-radius: 999px;
        text-decoration: none;
        letter-spacing: 0.02em;
        transition: background 0.15s;
    }

    .desktop-create-btn:hover {
        background: #EBEBEB;
    }

    /* ── Desktop Sidebar Modals ── */
    #category-panel,
    #likes-panel,
    #comment-panel,
    #bookmarks-panel,
    #report-panel,
    #settings-panel,
    #edit-profile-panel,
    #report-content-panel {
        bottom: 0 !important;
        top: 0 !important;
        left: auto !important;
        right: 0 !important;
        width: 420px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-out !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15) !important;
    }

    /* Active State based on Backdrop visibility toggle in Tailwind */
    .fixed.inset-0:not(.invisible) #category-panel,
    .fixed.inset-0:not(.invisible) #likes-panel,
    .fixed.inset-0:not(.invisible) #comment-panel,
    .fixed.inset-0:not(.invisible) #bookmarks-panel,
    .fixed.inset-0:not(.invisible) #report-panel,
    .fixed.inset-0:not(.invisible) #settings-panel,
    .fixed.inset-0:not(.invisible) #edit-profile-panel,
    .fixed.inset-0:not(.invisible) #report-content-panel {
        transform: translateX(0) !important;
    }

    /* Custom classes targeting full-overlay overlays (#location-modal & #language-modal) */
    #location-modal,
    #language-modal {
        background: rgba(0, 0, 0, 0.4) !important;
        /* Dimmable backdrop framing */
        z-index: 12000 !important;
    }

    #location-modal:not(.visible),
    #language-modal:not(.visible) {
        background: transparent !important;
    }

    #location-modal>div:not(.absolute),
    #language-modal>div:not(.absolute) {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 420px !important;
        background: #fff !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-out !important;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15) !important;
        display: flex;
        flex-direction: column;
        padding: 24px !important;
        overflow-y: auto;
        z-index: 12001 !important;
    }

    #location-modal.visible>div,
    #language-modal.visible>div {
        transform: translateX(0) !important;
    }

    /* Thin Scrollbars for drawer content or overflow-y areas on desktop */
    .overflow-y-auto::-webkit-scrollbar {
        width: 4px;
        background: transparent;
    }

    .overflow-y-auto::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

    #comments-list::-webkit-scrollbar {
        width: 4px;
    }

    #comments-list::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

    /* Hide desktop elements on mobile (just in case) */
    .desktop-left-sidebar,
    .desktop-right-sidebar,
    .desktop-compose-bar {
        display: flex;
    }
}

/* ══ Suggested User Items (Global) ══ */
.desktop-follow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: background 0.15s;
    border-bottom: 1px solid #f8fafc;
}

.desktop-follow-item:last-child {
    border-bottom: none;
}

.desktop-follow-item:hover {
    background: #F3F2EF;
}

.desktop-follow-item img {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid #f1f5f9;
}

.desktop-follow-item .info {
    flex: 1;
    min-width: 0;
}

.desktop-follow-item .info .name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.desktop-follow-item .info .sub {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.desktop-follow-btn {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid #0A66C2;
    background: transparent;
    color: #0A66C2;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.desktop-follow-btn:hover {
    background: #0A66C2;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.2);
}

.desktop-follow-btn:active {
    transform: scale(0.96);
}

.desktop-follow-btn.following {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

/* Mobile: hide desktop-only elements */
@media (max-width: 1023px) {
    .desktop-layout {
        display: contents !important;
    }

    .desktop-left-sidebar,
    .desktop-right-sidebar,
    .desktop-compose-bar {
        display: none !important;
    }

    .desktop-center-feed {
        display: block !important;
        background: #fff !important;
        min-height: 100vh;
    }

    body.social-desktop {
        overflow-y: auto !important;
        height: auto !important;
    }
}


/* Desktop News Card Footer Sticky */
@media (min-width: 1024px) {
    .news-card {
        padding-bottom: 20px !important;
    }
}

.sidebar-page-item:hover {
    background: #F3F2EF !important;
}

.sidebar-page-item.active {
    background: #EBEBEB !important;
}


.yt-video-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.yt-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.yt-subscribe-btn {
    margin-left: auto !important;
    background: #cc0000 !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    height: fit-content !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s !important;
}

.yt-subscribe-btn.is-subscribed {
    background: #f2f2f2 !important;
    color: #606060 !important;
}


.yt-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s;
}

.yt-play-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.yt-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}


/* ── Skippable Ads & YouTube Sections (v8.5) ── */
.yt-section-header {
    grid-column: 1 / -1;
    padding: 24px 16px 8px;
    font-size: 20px;
    font-weight: 900;
    color: #0f0f0f;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-section-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #cc0000;
    border-radius: 2px;
}

.ad-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 20;
    display: none;
    flex-direction: column;
}

.ad-overlay.active {
    display: flex;
}

.ad-video-container {
    flex: 1;
    position: relative;
}

.ad-controls {
    position: absolute;
    bottom: 20px;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ad-skip-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    display: none;
}

.ad-skip-btn.show {
    display: block;
}

.ad-countdown {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.yt-video-card .yt-thumbnail-wrapper:hover .yt-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.yt-video-card .yt-thumbnail-wrapper:hover .yt-play-btn {
    transform: scale(1.1);
    background: #fff;
}

.yt-play-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure video fills container in YouTube cards */
.yt-video-card video {
    background: #000;
    border-radius: inherit;
}

/* ── YOUTUBE FEED FINAL ENFORCEMENT ── */

/* Single column, centered, full-width feed */
#news-feed.yt-video-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Card wrapper — centered, max 640px, full bleed on mobile */
.yt-card-wrapper {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
}

/* Section headers — aligned with cards */
.yt-section-header {
    max-width: 640px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Clean card layout — no shadowed borders */
.yt-video-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Thumbnail — no border radius, sharp and full-bleed */
.yt-thumbnail-wrapper,
.yt-video-card video,
.yt-video-card img.yt-thumb {
    border-radius: 0 !important;
}

/* Info row — proper left/right 16px breathing room */
.yt-info-row {
    padding: 12px 16px !important;
    background: transparent !important;
}

/* Avatar — always 36px circle */
.yt-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Subscribe button — pill shape, black */
.yt-subscribe-btn {
    background: #0f0f0f !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    margin-left: auto !important;
    width: auto !important;
    height: fit-content !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

.news-meta-subscribe.yt-subscribe-btn {
    margin-left: auto !important;
    background: #cc0000 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: none !important;
}

.news-meta-subscribe.yt-subscribe-btn.is-subscribed {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Hide non-YouTube content in Videos tab */
#news-feed.yt-video-grid>*:not(.yt-card-wrapper):not(.yt-section-header) {
    display: none !important;
}

/* --- iOS PWA Auto-Zoom Fix --- */
/* Apple zooms in on inputs with font-size less than 16px */

@media screen and (max-width: 1023px) {

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        font-size: 16px !important;
        /* Prevents auto-zoom on focus in iOS */
    }
}

/* Mini Player Styles - FINAL VERSION */
.mini-player {
    position: fixed !important;
    bottom: 70px !important;
    right: 8px !important;
    width: 120px !important;
    height: 120px !important;
    z-index: 1000 !important;
    background: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    display: none !important;
    animation: slideInMini 0.3s ease-out !important;
    cursor: move !important;
    touch-action: none !important;
}

.mini-player.active {
    display: block !important;
}

.mini-player-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

.mini-player-video {
    width: 120px !important;
    height: 120px !important;
    background: none !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

.mini-player-video video {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    height: 120px !important;
    width: 120px !important;
    object-fit: cover !important;
    object-position: 100% center !important;
    border-radius: 12px !important;
    background: #000 !important;
}

.mini-player-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 15 !important;
    border: none !important;
}

.mini-player-play-btn svg {
    width: 18px !important;
    height: 18px !important;
    color: #000 !important;
    margin-left: 2px !important;
}

.mini-player-info {
    display: none !important;
}

.mini-player-close {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 0, 0, 0.9) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    z-index: 50 !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.mini-player-close:hover {
    background: rgba(255, 0, 0, 1) !important;
    transform: scale(1.1) !important;
}

.mini-player-close svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 3 !important;
}

@keyframes slideInMini {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- YouTube-style Video Cards --- */
.yt-mobile-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.yt-thumb-container {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background: #000 !important;
    isolation: isolate !important;
    cursor: pointer;
}

.yt-card-info {
    display: flex !important;
    padding: 12px 14px !important;
    gap: 12px !important;
    align-items: flex-start !important;
    background: transparent !important;
    cursor: pointer;
}

.yt-card-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: none !important;
    flex-shrink: 0 !important;
}

.yt-card-text {
    flex: 1 !important;
    min-width: 0 !important;
}

.yt-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f0f0f !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    letter-spacing: -0.01em;
}

.yt-card-meta {
    font-size: 12px !important;
    color: #606060 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 2px !important;
    font-weight: 500 !important;
}

.yt-channel-name {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.yt-verified-icon {
    width: 12px;
    height: 12px;
    color: #606060;
}

.yt-meta-divider {
    margin: 0 2px;
}

.yt-card-subscribe-btn {
    background: #0f0f0f !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    margin-left: 8px !important;
    height: fit-content !important;
    white-space: nowrap !important;
}

.yt-card-subscribe-btn.is-subscribed {
    background: #f2f2f2 !important;
    color: #0f0f0f !important;
}

.yt-duration-badge {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    z-index: 5 !important;
}

/* Ad Pre-roll classes */
.yt-ad-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 30 !important;
    background: #000 !important;
}

.yt-ad-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.yt-ad-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-ad-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
    z-index: 31;
}

.yt-ad-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 32;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.yt-ad-content {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 56px;
    z-index: 32;
}

.yt-ad-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 6px;
}

.yt-ad-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.45;
}

.yt-ad-cta {
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
}

.yt-ad-footer {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 12px;
    z-index: 33;
}

.yt-ad-countdown {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.yt-ad-skip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    cursor: pointer;
}

/* Control rail classes */
.yt-card-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 20 !important;
    padding: 4px 8px 6px !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
    pointer-events: auto !important;
}

.yt-progress-range {
    width: 100%;
    height: 3px;
    accent-color: #ff0000;
    cursor: pointer;
    margin-bottom: 4px;
    display: block;
}

.yt-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.yt-time-display {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
}

.yt-mute-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.yt-icon-sm {
    width: 16px;
    height: 16px;
}

/* --- Refined Mini Player (Full Visibility, No Cropping) --- */
.mini-player {
    position: fixed;
    bottom: 72px;
    right: 12px;
    width: 160px;
    /* 16:9 ratio width */
    z-index: 9999;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    animation: ytMiniFadeIn 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: move;
    touch-action: none;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-player.active {
    display: block;
}

.mini-player-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
}

.mini-player-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* NO CROPPING */
}

.mini-player-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    z-index: 2;
}

.mini-player-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Disable sticky headers on index page for mobile/tablet as per user request */
@media (max-width: 1023px) {

    .index-page .mobile-header,
    .index-page .sticky,
    .index-page [style*="position: sticky"],
    .index-page [style*="position:sticky"] {
        position: static !important;
        top: auto !important;
    }
}

.desktop-header .nav-link {
    padding: 8px 10px;
    background: #0f0f0f;
    cursor: pointer;
}

.mini-player-info {
    padding: 8px 10px;
    background: #0f0f0f;
    cursor: pointer;
}

.mini-player-title {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-player-channel {
    color: #aaaaaa;
    font-size: 10px;
    margin-top: 1px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes ytMiniFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mini-player.dragging {
    opacity: 0.85;
    z-index: 10000;
    transition: none !important;
}

/* ─── MOBILE AD BUTTON ADJUSTMENTS ─── */
@media (max-width: 1023px) {
    .ad-cta-button {
        transform: translateY(-20px) !important;
        margin-bottom: 10px !important;
    }
}

/* ─── YOUTUBE STYLE VIDEO FEED ─── */
.yt-video-grid {
    scroll-snap-type: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Override feed-container when in video mode */
.feed-container.yt-video-grid {
    scroll-snap-type: none !important;
    height: auto !important;
    min-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.yt-video-grid .yt-card-wrapper,
.yt-video-grid .news-card,
.yt-video-grid .news-ad-card,
.yt-video-grid .news-ad-instagram-card {
    height: auto !important;
    min-height: auto !important;
    scroll-snap-align: none !important;
    margin-bottom: 24px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.yt-video-grid .yt-thumbnail-wrapper {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.yt-video-grid .yt-info-row {
    padding: 12px 16px !important;
}

.yt-video-grid .yt-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.yt-video-grid .yt-channel-info {
    font-size: 13px !important;
}

/* Standard Section Header for Video Grid */
.yt-section-header {
    padding: 16px 16px 8px;
    font-size: 18px;
    font-weight: 900;
    color: #0f0f0f;
    text-transform: none;
    letter-spacing: -0.02em;
}

.yt-video-grid .yt-duration {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    color: #fff !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    z-index: 5 !important;
}

.yt-video-grid .yt-info-row {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

.yt-video-grid .yt-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.yt-video-grid .yt-channel-name {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 600 !important;
    color: #606060 !important;
}

.yt-video-grid .yt-stats-row {
    display: flex !important;
    align-items: center !important;
    color: #606060 !important;
    gap: 4px !important;
    font-weight: 400 !important;
}

.yt-video-grid .yt-open-link {
    margin-left: auto;
    color: #0A66C2;
    font-weight: 700;
    text-decoration: none;
}

.yt-video-grid .yt-subscribe-btn {
    background: #0f0f0f !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 24px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    margin-left: auto !important;
    height: fit-content !important;
    transition: all 0.2s ease;
}

.yt-video-grid .yt-subscribe-btn:active {
    scale: 0.95;
}

.yt-video-grid .yt-subscribe-btn.is-subscribed {
    background: #f1f1f1 !important;
    color: #0f0f0f !important;
    font-weight: 500 !important;
}

/* High-level overrides for Video Format to ensure 100% width on all containers */
body.video-format-active .desktop-center-feed,
body.video-format-active .feed-container,
body.video-format-active #news-feed {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff !important;
}

/* Ensure cards and wrappers inside the video grid never exceed 100% width */
body.video-format-active .yt-video-grid .news-card,
body.video-format-active .yt-video-grid .yt-card-wrapper,
body.video-format-active .yt-video-grid .news-ad-card,
body.video-format-active .yt-video-grid .news-ad-instagram-card {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}




/* Force object-contain for carousel video ads */
.object-contain-important {
    object-fit: contain !important;
    background-color: #000 !important;
}

/* 
   STRICT AD ISOLATION: 
   Hide Reporter/Meta Overlays ONLY for ad slides INSIDE news carousels.
   Does NOT affect regular carousel images or standard feed cards.
*/
.news-card:not(.news-ad-card) .card-media-wrap.ad-slide-active .reporter-overlay,
.news-card:not(.news-ad-card) .card-media-wrap.ad-slide-active .meta-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Restore overlays for regular media slides (managed by removal of .ad-slide-active class) */
.news-card:not(.news-ad-card) .card-media-wrap .reporter-overlay,
.news-card:not(.news-ad-card) .card-media-wrap .meta-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Global layering fixes for carousel slides */
.carousel-slide-wrapper {
    z-index: 10;
    position: relative;
    overflow: hidden;
}

/* Ensure Ad CTA button is clickable and above any potential transparent layers */
.carousel-slide-wrapper a {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Heart Flow Animation System */
@keyframes float-heart {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5) rotate(calc(var(--drift) * 1deg));
        opacity: 0;
    }
}

.floating-heart {
    position: fixed !important;
    pointer-events: none !important;
    color: #ec4899 !important;
    z-index: 99999 !important;
    display: block !important;
    visibility: visible !important;
    animation: float-heart 1s ease-out forwards;
}