/* ==========================================================================
   FRYNZYFLIX — ULTRA-REALISTIC LUXURY WHITE DESIGN SYSTEM
   Featuring: 100% Static Luminous Hopping Shimmer (No Physical Movement),
   Encapsulated Metadata Frames, Square Profile Cards & Visual Categories
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-subtle-hover: #e2e8f0;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    --border-focus: #0f172a;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --icon-dark: #0f172a;
    --icon-muted: #64748b;

    --accent-red: #e11d48;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-blue: #2563eb;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.1);
    --shadow-pop: 0 24px 60px rgba(15, 23, 42, 0.16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ─── 100% STATIC LUMINOUS HOPPING SHIMMER ENGINE (ZERO PHYSICAL MOVEMENT) ─── */
/* The cards stay perfectly still. The brilliant light wave dances in the hopping sequence:
   Card 5 (Right) -> Skips to 3 -> Jumps back to 4 -> Skips to 1 -> Jumps back to 2 -> Card 0 */

@keyframes flixPulseAmbient {
    0%, 100% {
        background-color: #f1f5f9;
        border-color: #e2e8f0;
    }
    50% {
        background-color: #e2e8f0;
        border-color: #cbd5e1;
    }
}

@keyframes flixRaySweep {
    0% {
        transform: translateX(-160%) rotate(25deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(260%) rotate(25deg);
        opacity: 0;
    }
}

.shimmer-box {
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
    border: 1px solid var(--border-light);
    animation: flixPulseAmbient 2.4s ease-in-out infinite;
    animation-delay: var(--hop-delay, 0s);
}

.shimmer-box::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.85) 45%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(255, 255, 255, 0.85) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: flixRaySweep 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--hop-delay, 0s);
    pointer-events: none;
    z-index: 2;
}

/* ─── HEADER NAVBAR (WHITE LUXURY) ─── */
.flix-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.flix-header-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* LOGO EMBLEM (NO LONG TEXT) */
.brand-logo-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 4px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}
.brand-logo-btn:hover {
    transform: scale(1.06);
}

.logo-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28);
    position: relative;
    overflow: hidden;
}
.logo-icon-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
}
.logo-icon-svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* VISUAL CATEGORIES BUTTON TRIGGER */
.btn-category-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-medium);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-category-trigger:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.btn-category-trigger:hover i {
    color: #ffffff;
}

/* TOP CENTER SEARCH BAR */
.header-search-wrap {
    position: relative;
    flex: 1;
    max-width: 580px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon-left {
    position: absolute;
    left: 16px;
    color: var(--icon-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 48px;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.search-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}
.search-input::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--icon-muted);
    cursor: pointer;
    font-size: 0.88rem;
    display: none;
}

/* SEARCH SUGGESTIONS DROPDOWN */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    max-height: 480px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.18s ease;
}
.suggestion-item:hover {
    background: var(--bg-subtle);
}

.suggestion-thumb {
    width: 46px;
    height: 62px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}
.suggestion-title {
    font-weight: 800;
    font-size: 0.94rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.suggestion-badge {
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.search-empty-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-muted);
}
.search-empty-state i {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #cbd5e1;
}
.search-empty-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* HEADER USER PROFILE */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-medium);
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-profile:hover {
    background: var(--bg-subtle);
    border-color: var(--border-focus);
}

.profile-avatar-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.88rem;
}
.profile-username {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1100;
    display: none;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.profile-menu-item:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}
.profile-menu-item i {
    width: 18px;
    color: var(--icon-dark);
}
.profile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 0;
}

/* ─── HERO CAROUSEL ─── */
.hero-wrapper {
    max-width: 1600px;
    margin: 24px auto 36px;
    padding: 0 24px;
}

.hero-card {
    position: relative;
    width: 100%;
    min-height: 490px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center top;
    transition: background-image 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.12) 0%,
        rgba(15, 23, 42, 0.68) 55%,
        rgba(15, 23, 42, 0.96) 100%
    );
}

.hero-body {
    position: relative;
    z-index: 10;
    padding: 42px;
    max-width: 820px;
    color: #ffffff;
}

.hero-meta-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-pill-badge {
    background: var(--accent-red);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}
.hero-star-rating i {
    color: var(--accent-gold);
}

.hero-title-text {
    font-family: var(--font-heading);
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-synopsis {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-action-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-watch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.98rem;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}
.btn-hero-watch:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.btn-hero-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-hero-alt:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
}
.hero-nav-arrow:hover {
    background: #ffffff;
    color: #0f172a;
}
.hero-nav-prev { left: 24px; }
.hero-nav-next { right: 24px; }

/* ─── MAIN CONTENT BODY ─── */
.content-body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-wrap {
    margin-bottom: 48px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.48rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--icon-dark);
    font-size: 1.25rem;
}

/* ─── DETACHED MEDIA CARDS ARCHITECTURE ─── */

/* STANDALONE DETACHED MEDIA UNIT — fixed width for horizontal row */
.media-unit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    flex: 0 0 200px;          /* fixed card width, no shrink/grow */
    width: 200px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.media-unit:hover {
    transform: translateY(-5px);
}

/* On smaller screens, slightly narrower cards */
@media (max-width: 768px) {
    .media-unit {
        flex: 0 0 155px;
        width: 155px;
    }
}

/* 1. FLOATING STANDALONE PROFILE FRAME (2:3 PORTRAIT) */
.media-profile-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.media-unit:hover .media-profile-frame {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.2);
}

/* SQUARE PROFILE FRAME (1:1 ASPECT RATIO) */
.media-profile-frame.square {
    aspect-ratio: 1/1 !important;
    border-radius: var(--radius-xl);
}

.media-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.media-unit:hover .media-profile-img {
    transform: scale(1.06);
}

/* FLOATING OVERLAY TAGS ON POSTER */
.media-rating-floating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}
.media-rating-floating i {
    color: var(--accent-gold);
}

.media-quality-floating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 3;
}

.media-hover-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 4;
}
.media-unit:hover .media-hover-glass {
    opacity: 1;
}

.media-play-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.media-unit:hover .media-play-ring {
    transform: scale(1);
}

/* 2. ENCAPSULATED METADATA CARD (FRAME ENCLOSURE BELOW POSTER) */
.media-meta-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}
.media-unit:hover .media-meta-card {
    border-color: var(--border-medium);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.media-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.media-card-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-wrap: wrap;
}
.media-chip-pill {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ─── LIVE SPORTS SECTION (ARENA & MATCHES) ─── */
.sports-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ─── SPORTS FILTER PILLS ─── */
.sports-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.sport-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--border-medium);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sport-filter-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(220, 38, 38, 0.05);
}
.sport-filter-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}
.sport-filter-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    animation: livePulse 1.2s infinite;
}

/* ─── POSTER-CARD STYLE ─── */
.sport-match-unit {
    border-radius: var(--radius-xl);
    min-height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.sport-match-unit:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

/* Poster card with background image */
.sport-match-poster-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border: 1.5px solid rgba(255,255,255,0.08);
}
.sport-match-poster-card.is-live-now {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2), var(--shadow-lg);
}
.sport-match-poster-card.is-finished {
    border-color: rgba(16, 185, 129, 0.3);
}

/* Gradient overlay inside the poster card */
.sport-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.05) 0%,
        rgba(5,15,30,0.55) 40%,
        rgba(5,15,30,0.95) 100%
    );
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 0;
}

.sport-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.sport-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sport-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sport-status-live {
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.sport-status-live .sport-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.9);
    animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.6); }
}
.sport-status-upcoming {
    background: rgba(14, 165, 233, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.sport-status-finished {
    background: rgba(16, 185, 129, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

/* TEAMS ARENA — horizontal layout inside poster card */
.sport-teams-arena {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: auto 0;
    padding: 12px 0;
}

.sport-team-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.sport-team-entry-away {
    flex-direction: column-reverse;
}

.sport-team-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sport-team-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    object-fit: contain;
    padding: 4px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.sport-team-name {
    font-weight: 800;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.92);
    text-align: center;
    line-height: 1.2;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.sport-score-vs-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}
.sport-vs-label {
    font-size: 0.9rem;
    font-weight: 900;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sport-score-badge {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    min-width: 36px;
    text-align: center;
    line-height: 1;
}
.score-live-pulse {
    animation: scorePulse 2s ease-in-out infinite;
}
@keyframes scorePulse {
    0%, 100% { color: #ffffff; }
    50% { color: #fbbf24; text-shadow: 0 0 16px rgba(251,191,36,0.8); }
}

/* Goal ticker & venue */
.sport-goal-ticker {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    padding: 5px 10px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sport-goal-ticker i { color: #fbbf24; flex-shrink: 0; }
.sport-goal-ticker span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sport-venue-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}
.sport-venue-info i { color: rgba(255,255,255,0.4); flex-shrink: 0; }

.sport-actions-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    flex-shrink: 0;
}

.btn-watch-match-hd {
    width: 100%;
    padding: 9px 6px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.78rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.btn-watch-match-hd:hover {
    background: #ffffff;
    transform: translateY(-2px);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-match-stats-hd {
    width: 100%;
    padding: 9px 6px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-weight: 800;
    font-size: 0.78rem;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.btn-match-stats-hd:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    color: #ffffff;
}


/* ─── VISUAL CATEGORIES MODAL (NO PROMPT / NO TEXT INPUT) ─── */
.categories-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.categories-modal-overlay.active {
    display: flex;
}

.categories-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pop);
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.categories-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.categories-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    overflow-y: auto;
    padding-right: 4px;
}

.category-tile {
    background: var(--bg-subtle);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-tile:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}
.category-tile:hover .cat-tile-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.category-tile:hover .cat-tile-count {
    color: #94a3b8;
}

.cat-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0f172a;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}
.cat-tile-name {
    font-weight: 800;
    font-size: 0.95rem;
}
.cat-tile-count {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ─── SIDEBARS & DRAWERS ─── */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid var(--border-light);
    box-shadow: var(--shadow-pop);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
}
.sidebar-drawer.active {
    transform: translateX(0);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sidebar-nav-link:hover, .sidebar-nav-link.active {
    background: var(--bg-subtle);
    color: var(--text-main);
}
.sidebar-nav-link i {
    width: 20px;
    color: var(--icon-dark);
}

/* ─── FLOATING MOBILE BOTTOM DOCK ─── */
.mobile-floating-dock {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    padding: 8px 18px;
    z-index: 1500;
    align-items: center;
    gap: 24px;
}
.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 6px;
    transition: all 0.15s ease;
}
.dock-item i {
    font-size: 1.15rem;
}
.dock-item.active, .dock-item:hover {
    color: var(--text-main);
}

/* ─── SETTINGS MODAL ─── */
.settings-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.settings-modal-overlay.active {
    display: flex;
}

.settings-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pop);
    padding: 28px;
    display: flex;
    flex-direction: column;
    animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.settings-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group {
    margin-bottom: 18px;
}
.settings-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.settings-select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

/* ─── TOAST NOTIFICATION ─── */
.flix-toast-white {
    position: fixed;
    top: 90px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
    z-index: 3000;
    display: none;
    animation: slideDownToast 0.25s ease;
}
@keyframes slideDownToast {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE RULES ─── */
@media (max-width: 992px) {
    .hero-title-text {
        font-size: 2.1rem;
    }
    .media-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .btn-category-trigger span {
        display: none;
    }
    .profile-username {
        display: none;
    }
    .mobile-floating-dock {
        display: flex;
    }
    .content-body {
        padding-bottom: 110px;
    }
    .hero-card {
        min-height: 420px;
    }
    .hero-body {
        padding: 24px;
    }
    .hero-title-text {
        font-size: 1.7rem;
    }
    .sports-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── HORIZONTAL ROW SCROLL — Netflix Style ─── */

/* Section wrapper with overflow hidden to contain the row */
.section-scroll-outer {
    position: relative;
    overflow: hidden;
    margin: 0 -6px;
}

/* The actual scrollable row — NO visible scrollbar */
.media-cards-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 6px 16px;
    /* Hide scrollbar on all browsers */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE / Edge */
}
.media-cards-grid::-webkit-scrollbar {
    display: none;               /* Chrome / Safari */
}

/* Arrow nav buttons — appear on section hover */
.section-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 20;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
}
.section-wrap:hover .section-scroll-btn {
    opacity: 1;
    pointer-events: auto;
}
.section-scroll-btn:hover {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.22);
    transform: translateY(-60%) scale(1.08);
}
.section-scroll-btn.scroll-left  { left: 4px; }
.section-scroll-btn.scroll-right { right: 4px; }

/* INFINITE FEED BOTTOM SENTINEL */
.infinite-feed-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
    gap: 12px;
}

.infinite-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border-medium);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spinInfinite 0.8s linear infinite;
}

@keyframes spinInfinite {
    to { transform: rotate(360deg); }
}

.infinite-loader-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

