/* Maverick 24/7 CSS Stylesheet */

/* --- Design System & CSS Variables --- */
:root {
    /* Branding Colors */
    --accent-color: #123f73; /* Maverick Deep Blue */
    --accent-hover: #0b2a52;
    --accent-rgb: 18, 63, 115;
    --brand-yellow: #f6c945;
    --brand-navy: #0b2a52;
    --on-accent: #ffffff; /* text/icons that sit on top of the accent color */

    /* Maverick guide (chat agent). These are the pre-bootstrap fallback colors. */
    --guide-launcher-bg: linear-gradient(145deg, #174d83, #0b2a52);
    --guide-launcher-ink: #f6c945;
    --guide-launcher-border: rgba(255, 255, 255, 0.28);
    --guide-mark-bg: linear-gradient(145deg, #174d83, #0b2a52);
    --guide-mark-ink: #f6c945;
    
    /* Backgrounds */
    --bg-base: #050b14;
    --bg-surface: #0a1524;
    --bg-surface-elevated: #11233a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a3afc1;
    --text-muted: #66748a;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(10, 21, 36, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --glass-blur: blur(20px);
    
    /* System Borders and Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Layout Sizes */
    --header-height: 80px;
    --max-width: 1400px;
}

/* --- Theme Override Classes --- */
/*
 * The app JavaScript applies the body theme after its data load. These
 * document-level variables are deliberately duplicated for first paint so a
 * saved or OS-resolved Day/Dark preference is ready before app.js runs.
 * updateThemeBranding() keeps the data attribute in sync.
 */
html[data-maverick-theme="day"] {
    --accent-color: #16161b;
    --accent-hover: #000000;
    --accent-rgb: 22, 22, 27;
    --bg-base: #f4f4f6;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --text-primary: #15151a;
    --text-secondary: #54545f;
    --text-muted: #8a8a95;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-hover: rgba(0, 0, 0, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --on-accent: #ffffff;
    color-scheme: light;
    background-color: var(--bg-base);
}

html[data-maverick-theme="dark"] {
    --accent-color: #f4f4f6;
    --accent-hover: #ffffff;
    --accent-rgb: 244, 244, 246;
    --bg-base: #08080a;
    --bg-surface: #111114;
    --bg-surface-elevated: #1b1b21;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #6b6b76;
    --glass-bg: rgba(17, 17, 20, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --on-accent: #111114;
    color-scheme: dark;
    background-color: var(--bg-base);
}

html[data-maverick-theme="day"] body,
html[data-maverick-theme="dark"] body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

/* Keep the page hidden until the body receives its saved palette. */
html[data-maverick-theme="day"] body:not(.theme-day),
html[data-maverick-theme="dark"] body:not(.theme-dark) {
    visibility: hidden;
}

body.theme-day {
    --bg-base: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #e5e5ea;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-hover: rgba(0, 0, 0, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    --on-accent: #ffffff;
    --guide-launcher-bg: linear-gradient(145deg, #ffffff, #ececf1);
    --guide-launcher-ink: #16161b;
    --guide-launcher-border: rgba(0, 0, 0, 0.1);
    --guide-mark-bg: linear-gradient(145deg, #2b2b33, #111114);
    --guide-mark-ink: #ffffff;
}

/* Night: a neutral charcoal cinema canvas. The navy-tinted surfaces belong to System. */
body.theme-dark {
    --bg-base: #08080a;
    --bg-surface: #111114;
    --bg-surface-elevated: #1b1b21;
    --text-secondary: #a1a1aa;
    --text-muted: #6b6b76;
    --glass-bg: rgba(17, 17, 20, 0.72);
    --on-accent: #111114;
    --guide-launcher-bg: linear-gradient(145deg, #2a2a31, #141418);
    --guide-launcher-ink: #f4f4f6;
    --guide-launcher-border: rgba(255, 255, 255, 0.22);
    --guide-mark-bg: linear-gradient(145deg, #3a3a44, #1b1b21);
    --guide-mark-ink: #f4f4f6;
}

/* --- Base Resets & Layout --- */
* {
    margin: 0;
    padding: 0;
    box-type: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;                 /* Firefox */
    scrollbar-color: rgba(var(--accent-rgb), 0.7) transparent;
}

/* Slim, branded scrollbar (Chromium/WebKit) */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-rgb), 0.82);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 50px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* --- Utilities --- */
.d-none {
    display: none !important;
}

/* Member-only UI stays hidden by default even if a component's display rule
   overrides the HTML `hidden` attribute or loses its utility class. JS enables
   this body gate only after the signed-in Stripe entitlement is verified. */
body:not(.has-paid-personal-access) [data-member-only] {
    display: none !important;
}

.text-accent {
    color: var(--accent-color);
}

.text-uppercase {
    text-transform: uppercase;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

/* --- Vertical Left Sidebar (handbook style) --- */
:root { --sidebar-width: 232px; }

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 16px;
    z-index: 1000;
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    overflow-x: hidden;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.sidebar-brand {
    padding: 6px 8px 14px 8px;
    margin-bottom: 4px;
}

.logo-img {
    display: inline-block;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    background: var(--brand-navy);
    -webkit-mask-image: url("assets/navy blue.png");
    mask-image: url("assets/navy blue.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 50% 53%;
    mask-position: 50% 53%;
    -webkit-mask-size: 138%;
    mask-size: 138%;
    border-radius: 0;
    box-shadow: none;
}

body.theme-dark .logo-img { background: #ffffff; }
body.theme-day .logo-img { background: #111318; }

.accent-text {
    color: var(--brand-yellow);
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 10px 6px 10px;
}

.nav-link {
    background: transparent;
    border: none;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    width: 100%;
    text-align: left;
}

.nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--on-accent);
    background: var(--accent-color);
}
.nav-link.active i { color: var(--on-accent); }

.sidebar-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.nav-pill {
    margin-left: auto;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.nav-pill.live {
    background: var(--brand-yellow);
    color: var(--brand-navy);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.icon-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Mobile top bar + scrim (hidden on desktop) */
.mobile-topbar { display: none; }
.sidebar-scrim { display: none; }

/* --- Main Layout --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 30px 4% 60px 4%;
    max-width: calc(var(--max-width) + var(--sidebar-width));
    min-height: 100vh;
    position: relative;
}


.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Page Headings --- */
.page-heading-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.page-title {
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.genre-select {
    width: 200px;
    cursor: pointer;
}

/* --- Inputs & Buttons --- */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

/* Render native <select> dropdown popups in dark mode (no white overlay) */
select.glass-input {
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

select.glass-input option {
    background: #16161c;
    color: var(--text-primary);
}

.glass-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

select.glass-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #ef4444;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    /* Bleed to the content-area edges (right of the sidebar), not the whole viewport */
    width: auto;
    margin-left: -4%;
    margin-right: -4%;
    height: 64vh;
    min-height: 420px;
    max-height: 580px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-top: -30px;
    margin-bottom: 24px;
    border: none;
    box-shadow: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 2026 cover experience: cinematic framing with direct navigation */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 72% 35%, transparent 0, transparent 28%, rgba(8,8,10,.12) 62%),
                linear-gradient(180deg, rgba(8,8,10,.08), transparent 35%, rgba(8,8,10,.5));
}
.hero-kicker-row { display: flex; align-items: center; gap: 12px; }
.hero-slide-count {
    font: 700 11px/1 'Outfit', sans-serif;
    letter-spacing: .14em;
    color: rgba(255,255,255,.68);
}
.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 48px;
    height: 68px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(8,8,10,.36);
    color: #fff;
    backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: .68;
    transition: opacity .25s ease, background .25s ease, transform .25s ease;
}
.hero-section:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: var(--accent-color); transform: translateY(-50%) scale(1.05); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-slide-changing .hero-content > * { animation: heroContentIn .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes heroContentIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter, single-pass gradients — keeps text readable without the heavy "clouded" look */
    background: linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.35) 50%, rgba(8,8,10,0) 80%),
                linear-gradient(0deg, var(--bg-base) 2%, rgba(8,8,10,0) 55%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4% 50px 4%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(32px, 3.5vw, 42px);
    line-height: 1.05;
    margin: 15px 0 14px 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    max-width: 700px;
}

.hero-tagline {
    animation: fadeInUp 0.5s ease 0.1s both;
}

.hero-title {
    animation: fadeInUp 0.5s ease 0.2s both;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-weight: 700;
}

.hero-year {
    color: var(--text-secondary);
}

.hero-type-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hero-genres-inline {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.hero-description {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.65;
    max-width: 580px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 0.5s ease 0.4s both;
}

.hero-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    animation: fadeInUp 0.5s ease 0.35s both;
}

.hero-genre-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
}

.hero-actions {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.5s ease 0.5s both;
}

.hero-actions .btn {
    padding: 12px 26px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.hero-actions .btn-primary {
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.5);
}

/* --- Content Sections --- */
.content-section {
    margin-bottom: 34px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* --- Card Grid & Movie Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.movie-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 Aspect Ratio */
    background-color: var(--bg-surface-elevated);
    overflow: hidden;
}

.card-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.movie-card:hover .card-poster {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.play-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.movie-card:hover .play-badge-icon {
    transform: scale(1);
}

.card-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.card-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(var(--accent-rgb), 0.9);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    z-index: 3;
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- Continue Watching Progress Card --- */
.continue-card {
    position: relative;
}

.continue-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 4;
}

.continue-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
}

.continue-card:hover .continue-progress-container {
    height: 6px;
}

/* --- Top 10 Horizontal Carousel --- */
.top10-carousel {
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 10px 0;
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
}

.top10-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.top10-wrapper {
    display: flex;
    gap: 18px;
    padding: 6px 0;
}

/* Cineby-style Top 10: clean poster row (no rank numbers) */
.top10-item {
    display: flex;
    align-items: flex-end;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    scroll-snap-align: start;
}

.top10-item:hover {
    transform: translateY(-5px);
}

.top10-card-wrapper {
    width: 190px;
    height: 285px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 2px solid var(--glass-border);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    flex-shrink: 0;
}

.rail-shell { position: relative; isolation: isolate; }
.rail-shell::before, .rail-shell::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 70px;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    transition: opacity .2s ease;
}
.rail-shell::before { left: 0; background: linear-gradient(90deg, var(--bg-base), transparent); }
.rail-shell::after { right: 0; background: linear-gradient(-90deg, var(--bg-base), transparent); }
.rail-shell.at-start::before, .rail-shell.at-end::after { opacity: 0; }
.rail-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 72px;
    transform: translateY(-55%);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(10,10,13,.78);
    color: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    cursor: pointer;
    opacity: .68;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.rail-shell:hover .rail-arrow:not(:disabled), .rail-arrow:focus-visible { opacity: 1; }
.rail-arrow:hover { background: var(--accent-color); transform: translateY(-55%) scale(1.06); }
.rail-arrow:disabled { opacity: 0; pointer-events: none; }
.rail-arrow-prev { left: 8px; }
.rail-arrow-next { right: 8px; }
.rail-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(8,8,10,.82);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font: 900 13px/1 'Outfit', sans-serif;
    backdrop-filter: blur(8px);
}
.rail-play {
    position: absolute;
    z-index: 4;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent-color);
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
    opacity: 0;
    transform: scale(.72);
    transition: .25s ease;
}
.rail-card-info {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 45px 11px 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    background: linear-gradient(transparent, rgba(4,4,6,.96));
    transform: translateY(100%);
    transition: transform .25s ease;
}
.rail-card-info strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card-info span { font-size: 10px; color: rgba(255,255,255,.68); }
.top10-item:hover .rail-play { opacity: 1; transform: scale(1); }
.top10-item:hover .rail-card-info { transform: none; }

.top10-item:hover .top10-card-wrapper {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.top10-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.anime-poster-image {
    background: #101324 url('/assets/anime-card-placeholder.svg') center / cover no-repeat;
}

.top10-item:hover .top10-poster {
    transform: scale(1.05);
}

/* --- Hero Carousel Dots --- */
.hero-dots {
    display: flex;
    gap: 9px;
    margin-top: 22px;
    animation: fadeInUp 0.5s ease 0.35s both;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    transition: var(--transition-smooth);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    width: 26px;
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
}

/* --- Section Heroes (Movies / TV / Anime / 4K) ---
   Same rotating-carousel mechanics as the homepage hero. A single restrained
   navy treatment keeps the cover art cinematic without a warm/red back-glow. */
.section-hero-mount:empty { display: none; }
.section-hero {
    height: 58vh;
    min-height: 380px;
    max-height: 540px;
}
.section-hero .hero-title { font-size: 42px; max-width: 640px; }
.section-hero .hero-description { max-width: 540px; }

.theme-hero-movies .hero-overlay {
    background: radial-gradient(ellipse at 80% 20%, rgba(var(--accent-rgb), 0.16), transparent 55%),
                linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.35) 50%, rgba(8,8,10,0) 80%),
                linear-gradient(0deg, var(--bg-base) 2%, rgba(8,8,10,0) 55%);
}
.theme-hero-movies .hero-tagline { border-color: rgba(var(--accent-rgb), 0.35); color: #80aee5; }
.theme-hero-movies .hero-dot.active { background: var(--accent-color); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.48); }

.theme-hero-tv .hero-overlay {
    background: radial-gradient(ellipse at 80% 20%, rgba(var(--accent-rgb), 0.16), transparent 55%),
                linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.35) 50%, rgba(8,8,10,0) 80%),
                linear-gradient(0deg, var(--bg-base) 2%, rgba(8,8,10,0) 55%);
}
.theme-hero-tv .hero-tagline { border-color: rgba(var(--accent-rgb), 0.35); color: #80aee5; }
.theme-hero-tv .hero-dot.active { background: var(--accent-color); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.48); }
.theme-hero-tv .hero-rating { color: #80aee5; }

.theme-hero-anime {
    position: relative;
}
.theme-hero-anime::before {
    content: none;
}
.theme-hero-anime .hero-overlay {
    background: radial-gradient(ellipse at 80% 15%, rgba(var(--accent-rgb), 0.16), transparent 55%),
                linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.35) 50%, rgba(8,8,10,0) 80%),
                linear-gradient(0deg, var(--bg-base) 2%, rgba(8,8,10,0) 55%);
}
.theme-hero-anime .hero-tagline { border-color: rgba(var(--accent-rgb), 0.35); color: #80aee5; }
.theme-hero-anime .hero-dot.active { background: var(--accent-color); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.48); }

.theme-hero-fourk .hero-overlay {
    background: radial-gradient(ellipse at 80% 20%, rgba(var(--accent-rgb), 0.16), transparent 55%),
                linear-gradient(90deg, rgba(8,8,10,0.85) 0%, rgba(8,8,10,0.4) 50%, rgba(8,8,10,0) 80%),
                linear-gradient(0deg, var(--bg-base) 2%, rgba(8,8,10,0) 55%);
}
.theme-hero-fourk .hero-tagline { border-color: rgba(var(--accent-rgb), 0.35); color: #80aee5; }
.theme-hero-fourk .hero-dot.active { background: var(--accent-color); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.48); }

@media (max-width: 900px) {
    .section-hero { height: 50vh; min-height: 320px; }
    .section-hero .hero-title { font-size: 30px; }}

/* --- "Explore Everything" bubbly overview dashboard ---
   Floating, generously-rounded tiles with a media preview + pill CTA, inspired
   by the soft rounded-card / hover-lift language of modern AI product landing
   pages — reworked into Maverick's own identity rather than a pastel palette. */
.bubbly-overview {
    position: relative;
    isolation: isolate;
}
.bubbly-blob {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}
.bubbly-blob-a {
    width: 340px; height: 340px;
    top: -60px; right: 4%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5), transparent 70%);
}
.bubbly-blob-b {
    width: 260px; height: 260px;
    bottom: -80px; left: 10%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 70%);
}

.bubble-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.bubble-grid::-webkit-scrollbar { display: none; }

.bubble-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    flex: 0 0 clamp(252px, 28vw, 340px);
    scroll-snap-align: start;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}
.bubble-tile-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    font: inherit;
    background: transparent;
    cursor: pointer;
}
.bubble-tile-main:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -3px; border-radius: inherit; }
.bubble-tile:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 16px 32px rgba(0,0,0,0.45);
}

.bubble-tile-media {
    position: relative;
    aspect-ratio: 2 / 1;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-surface-elevated);
    overflow: hidden;
}
.bubble-tile-slide-controls {
    position: absolute;
    z-index: 5;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(5,8,15,.7);
    backdrop-filter: blur(8px);
}
.bubble-tile-slide-control {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: rgba(255,255,255,.12);
    cursor: pointer;
}
.bubble-tile-slide-control:hover,
.bubble-tile-slide-control:focus-visible { color: #08111f; background: #fff; outline: none; }
.bubble-tile-slide-count { min-width: 34px; text-align: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bubble-tile-img {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%) scale(1.025);
    transition: opacity 850ms ease, transform 850ms cubic-bezier(.22,.61,.36,1);
}
.bubble-tile-img.is-active {
    z-index: 2;
    opacity: 1;
    transform: translateX(0) scale(1);
}
.bubble-tile-img.is-exiting {
    z-index: 3;
    opacity: 0;
    transform: translateX(-100%) scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
    .bubble-tile-img,
    .bubble-tile-img.is-active,
    .bubble-tile-img.is-exiting {
        transition: opacity 180ms ease;
        transform: none;
    }
}
.bubble-tile-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8,8,10,0.85) 100%);
}
.bubble-tile-media-empty {
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: rgba(255,255,255,0.18);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
}

.bubble-tile-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: -34px; /* pull the icon badge up onto the media gradient */
    z-index: 2;
}

.bubble-tile-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    font-size: 16px;
}

.bubble-tile-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.bubble-tile-title { font-weight: 800; font-size: 16px; }
.bubble-tile-sub {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bubble-tile-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    background: rgba(var(--accent-rgb), 0.16);
    color: var(--accent-color);
    transition: var(--transition-fast);
}
.bubble-tile:hover .bubble-tile-cta { background: var(--accent-color); color: #fff; }

/* Homepage cover tiles stay inside the same navy system palette. */
.bubble-discover {
    grid-column: auto;
    border-color: rgba(var(--accent-rgb), .34);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .06);
}
.bubble-discover .bubble-tile-media {
    aspect-ratio: 2 / 1;
    min-height: 0;
    background-color: #071426;
    background-image:
        radial-gradient(circle at 18% 32%, rgba(var(--accent-rgb), .48), transparent 32%),
        linear-gradient(120deg, #0b2a52 0%, #081a31 54%, #050b14 100%);
}
.bubble-discover .bubble-tile-media-empty {
    color: rgba(255,255,255,.58);
    font-size: 42px;
}
.bubble-discover .bubble-tile-icon {
    background: rgba(var(--accent-rgb), .28);
    border-color: rgba(255,255,255,.24);
}
.bubble-discover .bubble-tile-cta { background: var(--accent-color); color: #fff; }

.bubble-discover:hover { border-color: rgba(var(--accent-rgb), .7); }
.bubble-movies .bubble-tile-cta,
.bubble-tv .bubble-tile-cta,
.bubble-anime .bubble-tile-cta,
.bubble-fourk .bubble-tile-cta {
    background: rgba(var(--accent-rgb), 0.18);
    color: #80aee5;
}
.bubble-movies:hover .bubble-tile-cta,
.bubble-tv:hover .bubble-tile-cta,
.bubble-anime:hover .bubble-tile-cta,
.bubble-fourk:hover .bubble-tile-cta {
    background: var(--accent-color);
    color: #fff;
}

.bubble-shop { border-color: rgba(98,176,255,.35); }
.bubble-shop .bubble-tile-icon, .bubble-shop .bubble-tile-cta { color: #62b0ff; }
.bubble-games { border-color: rgba(143,125,255,.35); }
.bubble-games .bubble-tile-icon, .bubble-games .bubble-tile-cta { color: #9d8cff; }
.bubble-shop:hover, .bubble-games:hover { border-color: var(--accent-color); }

@media (max-width: 640px) {
    .bubble-grid { gap: 12px; padding-right: 18px; }
    .bubble-tile { flex-basis: min(82vw, 340px); }
    .bubble-discover .bubble-tile-media { aspect-ratio: 2 / 1; min-height: 0; }
    .bubbly-blob { display: none; }}

/* --- TV Episode Grid (Cineby-style) --- */
.episode-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.episode-grid-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.episode-grid-count {
    font-size: 12px;
    color: var(--text-muted);
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.episode-chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px;
    text-align: left;
}

.episode-chip:hover {
    border-color: rgba(var(--accent-rgb), 0.6);
    background: rgba(var(--accent-rgb), 0.08);
}

.episode-chip.active {
    border-color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.14);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.25);
}

/* Each episode gets its OWN still image (falls back to a generic icon tile) */
.episode-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #111;
}
.episode-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Unaired episodes borrow the show's own artwork. Dimmed and slightly
   desaturated so it never gets mistaken for a real episode still. */
.episode-thumb-generic {
    opacity: 0.42;
    filter: saturate(0.75);
}
.episode-chip:hover .episode-thumb-generic,
.episode-chip.active .episode-thumb-generic {
    opacity: 0.6;
}

.episode-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 20px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(0,0,0,0.3));
}
.episode-num-badge {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.75); color: #fff;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 11px;
    padding: 2px 7px; border-radius: var(--radius-full);
}
.episode-chip.active .episode-num-badge { background: var(--accent-color); color: var(--on-accent); }

.episode-chip-title {
    font-size: 12px; font-weight: 600; line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Small dot marks episodes with saved progress */
.episode-chip.watched .episode-num-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 1.5px solid var(--bg-surface);
}
.episode-chip.active.watched .episode-num-badge::after { background: #fff; }

/* --- Search Modal Layout --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.active {
    display: flex;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.search-modal-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    height: 85vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2001;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0 20px;
    height: 56px;
    width: 100%;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
}

.search-input-icon {
    font-size: 18px;
    color: var(--text-secondary);
    margin-right: 15px;
}

.search-text-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 18px;
    width: 100%;
}

.clear-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    display: none;
}

.search-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    width: 130px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.btn-close-modal:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.search-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    gap: 25px;
    position: relative;
}

.search-results-wrapper {
    flex: 1 1 60%;
    overflow-y: auto;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Inline Expanded Search Preview Card --- */
.search-preview-panel {
    flex: 1 1 40%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    height: 100%;
    animation: slideInLeft 0.3s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.preview-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(8,8,10,0.98) 15%, rgba(8,8,10,0.7) 60%, rgba(8,8,10,0.2) 100%);
    z-index: 2;
}

.preview-details {
    position: relative;
    z-index: 3;
}

.preview-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.small-meta {
    margin-bottom: 12px;
    font-size: 12px;
}

.preview-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* --- Search Result Item --- */
.search-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-item:hover, .search-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.search-item.active {
    border-color: var(--accent-color);
}

.search-item-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface-elevated);
}

.search-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.search-item-title {
    font-size: 15px;
    font-weight: 600;
}

.search-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 50px 0;
}

.prompt-icon {
    font-size: 40px;
}

/* --- Video Player Panel Layout --- */
.player-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.player-panel.active {
    display: block;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.player-title-container {
    display: flex;
    flex-direction: column;
}

.player-title {
    font-size: 26px;
    line-height: 1.2;
}

.player-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.player-caption-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: rgba(255,255,255,.045);
    font-size: 11px;
    font-weight: 700;
}
.player-caption-control > i { color: var(--accent-color); font-size: 15px; }
.player-caption-control select {
    max-width: 150px;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.player-caption-control select option { color: #111; background: #fff; }
body.theme-day .player-caption-control { background: rgba(0,0,0,.035); }

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    background: #000;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

#video-stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #060608;
    color: var(--text-secondary);
    z-index: 2;
}

/* Freeze hidden surfaces while a stream owns the foreground. */
.playback-performance-mode .tab-panel:not(#panel-player) *,
.playback-performance-mode .sidebar-logo-glow,
.playback-performance-mode .ai-fab::before {
    animation-play-state: paused !important;
    transition: none !important;
}

.player-slow-server-btn {
    margin-top: 12px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.08);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* --- Player thumbnail (shown before Play is clicked — nothing streams until then) --- */
.player-thumb {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    background: #000;
}
.player-thumb-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.player-thumb-fade {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 100%);
}
.player-thumb-play-btn {
    position: relative; z-index: 2;
    width: 84px; height: 84px; border-radius: 50%;
    background: rgba(0,0,0,0.5); border: 3px solid rgba(255,255,255,0.85);
    color: #fff; font-size: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
.player-thumb-play-btn:hover { background: var(--accent-color); border-color: var(--accent-color); transform: scale(1.08); }

/* --- Server picker --- */
.player-servers-btn {
    position: absolute; top: 14px; right: 14px; z-index: 4;
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-full);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 16px; cursor: pointer; transition: var(--transition-fast);
}
.player-servers-btn:hover { border-color: var(--accent-color); background: rgba(var(--accent-rgb), 0.25); }
.player-servers-panel {
    position: absolute; top: 58px; right: 14px; z-index: 5;
    width: 240px; max-height: 320px; overflow-y: auto;
    background: rgba(10,10,12,0.97); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.player-server-option {
    width: 100%; display: flex; align-items: center; gap: 10px;
    background: transparent; border: none; border-radius: var(--radius-sm);
    padding: 9px 10px; cursor: pointer; text-align: left; color: var(--text-primary);
    transition: var(--transition-fast);
}
.player-server-option:hover { background: rgba(255,255,255,0.08); }
.player-server-option.active { background: rgba(var(--accent-rgb), 0.18); }
.server-flag { font-size: 16px; flex-shrink: 0; }
.server-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.server-info strong { font-size: 13px; }
.server-info small { color: var(--text-muted); font-size: 11px; }
.player-server-option .fa-check { color: var(--accent-color); font-size: 12px; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- TV HUD Selection Box --- */
.tv-hud-container {
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.hud-selectors {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.selector-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selector-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selector-field select {
    min-width: 160px;
}

/* --- Player Metadata panel --- */
.player-details {
    padding: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.details-top h2 {
    font-size: 26px;
}

.details-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.details-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* --- Settings styling --- */
.settings-container {
    padding: 35px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-group h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    max-width: 800px;
}

.api-key-input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
}

.api-key-input-group input {
    flex-grow: 1;
}

.api-status-msg {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

.api-status-msg.success {
    color: #10b981;
}

.api-status-msg.error {
    color: #ef4444;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.help-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.settings-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    gap: 20px;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label {
    font-weight: 600;
    font-size: 15px;
}

.setting-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.danger-title {
    color: #ef4444;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--accent-color);
}

input:focus + .slider-toggle {
    box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
}

/* --- Empty state --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 25px;
    max-width: 400px;
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3000;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid var(--accent-color);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 22px;
    color: var(--accent-color);
}

.toast-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.toast-btn {
    flex-shrink: 0;
}

.toast-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.toast-close-btn:hover {
    color: var(--text-primary);
}

/* --- Responsive Adaptations --- */
/* --- Appearance Segmented Control (Settings) --- */
.theme-segment {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 2px;
}

.theme-seg-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition-fast);
}

.theme-seg-btn:hover { color: var(--text-primary); }

.theme-seg-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.3);
}

/* --- Browse Panel --- */
.browse-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin: -14px 0 24px 0;
}

.browse-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    gap: 14px;
}

.browse-placeholder .ph-icon {
    font-size: 54px;
    color: var(--accent-color);
}

.browse-placeholder h3 { font-size: 22px; }
.browse-placeholder p { color: var(--text-secondary); max-width: 460px; }

/* Live channel tiles */
.channel-tile {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(20,20,24,0.6));
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
    color: var(--text-primary);
}

.channel-tile:hover { border-color: var(--accent-color); transform: translateY(-4px); }
.channel-tile .ch-logo { font-size: 34px; margin-bottom: 12px; }
.channel-tile .ch-name { font-weight: 700; font-size: 16px; }
.channel-tile .ch-cat { color: var(--text-secondary); font-size: 13px; margin-top: 2px; }
.channel-tile .ch-live {
    position: absolute; top: 14px; right: 14px;
    background: var(--accent-color); color: #fff;
    font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-full);
    display: inline-flex; align-items: center; gap: 5px;
}
.channel-tile .ch-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* --- Login / Sign up Modal --- */

/* Account avatar state in sidebar */
.nav-link.logged-in i { color: var(--accent-color); }

/* ============================================================
   DAY (LIGHT) THEME — activated by body.theme-day
   ============================================================ */
body.theme-day {
    --bg-base: #f4f4f6;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --text-primary: #15151a;
    --text-secondary: #54545f;
    --text-muted: #8a8a95;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-border-hover: rgba(0, 0, 0, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    color-scheme: light;
}

body.theme-day .app-sidebar { background: #ffffff; }
body.theme-day .nav-link:hover { background: rgba(0, 0, 0, 0.05); }
body.theme-day .sidebar-search { background: rgba(0, 0, 0, 0.04); }
body.theme-day .nav-pill { background: rgba(0, 0, 0, 0.08); color: var(--text-secondary); }
body.theme-day .glass-input { background: rgba(0,0,0,0.04); color: var(--text-primary); }
body.theme-day select.glass-input { color-scheme: light; }
body.theme-day select.glass-input option { background: #ffffff; color: var(--text-primary); }
body.theme-day .glass-badge { background: rgba(0,0,0,0.05); color: var(--text-primary); border-color: rgba(0,0,0,0.08); }
body.theme-day .btn-secondary { background: rgba(0,0,0,0.06); color: var(--text-primary); border-color: rgba(0,0,0,0.1); }
body.theme-day .top10-card-wrapper { border-color: rgba(0,0,0,0.08); }

/* --- Watch Party workspace --- */
.watch-party-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    align-items: stretch;
}

.watch-party-hub,
.watch-party-picker-heading {
    grid-column: 1 / -1;
}

.watch-party-hub {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 18px;
    margin-bottom: 8px;
}

.watch-party-room-card,
.watch-party-chat-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent-color) 18%, transparent), transparent 38%),
        var(--glass-bg);
    box-shadow: var(--shadow-card);
    padding: 22px;
}

.watch-party-room-heading,
.watch-party-chat-heading,
.watch-party-picker-heading,
.watch-party-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.watch-party-room-heading h2,
.watch-party-chat-heading h3,
.watch-party-picker-heading h2 {
    margin: 3px 0 0;
}

.watch-party-room-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

.watch-party-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #32d583;
    box-shadow: 0 0 14px rgba(50, 213, 131, .7);
}

.watch-party-room-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 10px;
}

.watch-party-or {
    align-self: center;
    color: var(--text-muted);
    font-size: 12px;
}

.watch-party-code-field {
    display: grid;
    gap: 5px;
    min-width: 150px;
    flex: 1;
}

.watch-party-code-field > span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.watch-party-code-field input {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800;
}

.watch-party-feedback {
    min-height: 20px;
    margin: 8px 0 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.watch-party-selected {
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.035);
}

.watch-party-selected img {
    width: 52px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
}

.watch-party-selected > div {
    min-width: 0;
    display: grid;
    gap: 2px;
    margin-right: auto;
}

.watch-party-selected span,
.watch-party-selected small {
    color: var(--text-muted);
    font-size: 11px;
}

.watch-party-selected strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-party-selected-empty {
    min-height: 76px;
    justify-content: center;
    color: var(--text-muted);
}

.watch-party-selected-empty i {
    color: var(--accent-color);
    font-size: 22px;
}

.watch-party-chat-heading i {
    color: var(--accent-color);
    font-size: 22px;
}

.watch-party-messages {
    height: 176px;
    overflow-y: auto;
    margin: 16px 0 12px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(0,0,0,.16);
}

.watch-party-chat-empty {
    display: grid;
    place-items: center;
    height: 100%;
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.watch-party-message {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 12px;
}

.watch-party-message strong { color: var(--accent-color); }
.watch-party-message small { color: var(--text-muted); }

.watch-party-chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.watch-party-picker-heading {
    margin: 14px 0 0;
}

.watch-party-picker-heading > span {
    color: var(--text-muted);
    font-size: 12px;
}

.watch-party-title-card {
    position: relative;
    min-height: 245px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.watch-party-title-card:hover,
.watch-party-title-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 35px rgba(0,0,0,.42);
}

.watch-party-title-card > img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
}

.watch-party-title-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 3px;
    padding: 54px 12px 12px;
    background: linear-gradient(transparent, rgba(4,4,7,.97));
}

.watch-party-title-overlay strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-party-title-overlay small {
    color: rgba(255,255,255,.68);
}

.watch-party-title-overlay > span {
    margin-top: 5px;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .watch-party-hub { grid-template-columns: 1fr; }}

@media (max-width: 620px) {
    .watch-party-room-card,
    .watch-party-chat-card { padding: 16px; }
    .watch-party-room-heading,
    .watch-party-selected { align-items: flex-start; flex-wrap: wrap; }
    .watch-party-selected .btn { width: 100%; }
    .watch-party-room-actions > .btn,
    .watch-party-room-actions > .glass-btn,
    .watch-party-code-field { width: 100%; }}
body.theme-day .hero-overlay {
    background: linear-gradient(90deg, rgba(244,244,246,0.92) 0%, rgba(244,244,246,0.4) 50%, rgba(244,244,246,0) 80%),
                linear-gradient(0deg, var(--bg-base) 2%, rgba(244,244,246,0) 55%);
}
body.theme-day ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); }
/* In Day mode, hero text sits on a light overlay — force it dark for legibility */
body.theme-day .hero-title,
body.theme-day .hero-description,
body.theme-day .hero-rating,
body.theme-day .hero-year,
body.theme-day .hero-duration { color: var(--text-primary); }
body.theme-day .hero-genre-tag { color: var(--text-secondary); }

/* Text printed on the accent colour, for every theme, is handled in the
   THEME TONES block near the end of this file. */

/* --- Sidebar top row + collapse --- */
.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.collapse-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.collapse-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
body.theme-day .collapse-btn:hover { background: rgba(0,0,0,0.05); }

/* Collapsed state — icon-only rail */
body.sidebar-collapsed { --sidebar-width: 76px; }
body.sidebar-collapsed .app-sidebar { padding: 22px 12px; align-items: stretch; }
body.sidebar-collapsed .brand-name,
body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .nav-group-label,
body.sidebar-collapsed .nav-pill { display: none; }
body.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 6px 0 14px; }
body.sidebar-collapsed .nav-link { justify-content: center; padding: 12px 0; gap: 0; }
body.sidebar-collapsed .nav-link i { width: auto; }
body.sidebar-collapsed .collapse-btn i { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-top { justify-content: center; }
body.sidebar-collapsed .sidebar-top .collapse-btn { position: absolute; top: 18px; right: 14px; }

/* --- Upgraded Settings cards --- */
.settings-card {
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 18px;
    max-width: 820px;
}
.settings-card-title {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-row { display: flex; align-items: center; gap: 16px; }
.account-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
body.theme-dark .account-avatar { color: #111; }
.account-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.account-name { font-weight: 700; font-size: 16px; }
.account-status { color: var(--text-secondary); font-size: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-ghost-danger:hover { background: rgba(239, 68, 68, 0.12); }

.release-about-card {
    overflow: hidden;
    border-color: rgba(var(--accent-rgb), .22);
    background:
        radial-gradient(circle at 92% 0, rgba(var(--accent-rgb), .12), transparent 34%),
        var(--bg-surface);
}
.release-about-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}
.release-about-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    color: #071f3d;
    background: var(--accent-color);
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), .16);
    font-size: 22px;
}
.release-about-kicker {
    color: var(--accent-color);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}
.release-about-head h3 { margin: 3px 0 4px; font-size: 20px; }
.release-about-head h3 strong { color: var(--accent-color); }
.release-about-head p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.release-health {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255,255,255,.03);
    font-size: 10px;
    font-weight: 700;
}
.release-health i { width: 7px; height: 7px; border-radius: 50%; background: #f0b429; }
.release-health.is-ready { color: #7de5a4; border-color: rgba(83,215,138,.24); }
.release-health.is-ready i { background: #53d78a; box-shadow: 0 0 0 4px rgba(83,215,138,.09); }
.release-health.is-error { color: #ff8d8d; border-color: rgba(255,90,90,.22); }
.release-health.is-error i { background: #ff6262; }
.release-about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}
.release-about-grid > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.release-about-grid small { color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.release-about-grid strong { font-size: 12px; }
.release-capabilities { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.release-capabilities span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(var(--accent-rgb), .065);
    font-size: 10px;
}
.release-capabilities i { color: var(--accent-color); }
@media (max-width: 620px) {
    .release-about-head { grid-template-columns: auto 1fr; }
    .release-health { grid-column: 1 / -1; width: max-content; }
    .release-about-grid { grid-template-columns: 1fr; }}

/* --- Apps / Games grid --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.app-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
.app-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}
.app-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.app-card:hover .app-cover img { transform: scale(1.05); }
.app-cover .app-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,0.7); color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
}
.app-cover .app-plat {
    position: absolute; bottom: 10px; right: 10px;
    display: flex; gap: 6px;
    color: #fff; font-size: 12px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.app-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.app-icon-row { display: flex; align-items: center; gap: 10px; }
.app-logo {
    width: 34px; height: 34px; border-radius: 8px; object-fit: contain;
    background: #fff; padding: 3px; flex-shrink: 0;
}
.app-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.app-genre { color: var(--text-secondary); font-size: 12px; }
.app-desc {
    color: var(--text-muted); font-size: 12px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-actions { margin-top: auto; padding-top: 8px; }
.app-dl-btn {
    width: 100%; justify-content: center;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-color); color: #fff;
    border: none; border-radius: var(--radius-md);
    padding: 9px 12px; font-weight: 600; font-size: 13px; cursor: pointer;
    transition: var(--transition-fast);
}
body.theme-dark .app-dl-btn { color: #111; }
.app-dl-btn:hover { filter: brightness(1.08); }

/* --- Maverick Shop / Amazon editorial picks --- */
.shop-masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.shop-masthead .page-title { margin: 8px 0 6px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.045em; }
.shop-eyebrow { color: var(--accent-color); font: 800 10px/1 'Outfit', sans-serif; letter-spacing: .18em; }
.shop-eyebrow i { margin-right: 6px; }
.shop-masthead-mark {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    padding: 13px 15px; border-radius: 15px; border: 1px solid var(--glass-border);
    color: var(--accent-color); background: rgba(var(--accent-rgb), .06);
    font: 700 10px/1.35 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: .1em;
}
.shop-masthead-mark i { font-size: 24px; }
.shop-masthead-mark span { color: var(--text-secondary); }
.shop-feature {
    position: relative; display: block; overflow: hidden; isolation: isolate;
    min-height: 390px; margin-bottom: 22px; padding: 0; border-radius: 22px;
    background: #071225;
}
.shop-feature-art {
    position: absolute; inset: 0; width: 100%; min-height: 100%;
    background: #071225 url('/assets/shop/maverick-shop-hero.webp') center/cover no-repeat;
}
.shop-feature-art::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(4,10,23,.98) 0%, rgba(4,10,23,.84) 27%, rgba(4,10,23,.28) 58%, rgba(4,10,23,.1) 100%),
        linear-gradient(0deg, rgba(3,8,18,.7), transparent 46%);
}
.shop-feature-image, .shop-feature-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.shop-feature-image { opacity: .98; }
.shop-feature-video { z-index: 0; opacity: 0; transition: opacity .45s ease; }
.shop-feature-video.is-ready { opacity: .98; }
.shop-feature-copy {
    position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    min-height: 390px; max-width: 610px; padding: 42px 46px;
}
.shop-feature-copy .btn { margin-top: 2px; }
.shop-feature-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 22px; color: rgba(255,255,255,.72); font-size: 11px; }
.shop-feature-meta span { display: inline-flex; align-items: center; gap: 6px; }
.shop-feature-meta i { color: var(--accent-color); }
}
.shop-feature-copy { max-width: 570px; padding: 28px 32px; align-self: center; }
.shop-feature-copy h2, .shop-feature-copy p, .shop-feature-copy .shop-feature-meta { color: #f7f9ff; }
.shop-feature-copy .shop-feature-kicker { color: #8fc1ff; }
.shop-feature-kicker { color: var(--accent-color); font: 800 10px/1 'Outfit', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.shop-feature-copy h2 { margin: 10px 0 8px; font: 800 clamp(25px, 3vw, 38px)/1.05 'Outfit', sans-serif; letter-spacing: -.03em; }
.shop-feature-copy p { max-width: 520px; margin: 0 0 18px; color: var(--text-secondary); line-height: 1.55; font-size: 13px; }
body.theme-day .shop-feature-copy h2,
body.theme-day .shop-feature-copy p,
body.theme-day .shop-feature-copy .shop-feature-meta { color: #f7f9ff; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 16px; }
.shop-category-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.shop-category-tabs::-webkit-scrollbar { display: none; }
.shop-category-tab {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px;
    border: 1px solid var(--glass-border); border-radius: 999px; color: var(--text-secondary);
    background: rgba(255,255,255,.035); font: 650 12px/1 'Inter', sans-serif; cursor: pointer; transition: var(--transition-fast);
}
.shop-category-tab:hover, .shop-category-tab.active { color: var(--on-accent); background: var(--accent-color); border-color: var(--accent-color); }
.shop-status { flex: 0 0 auto; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.shop-status i { color: var(--accent-color); margin-right: 5px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.shop-card {
    overflow: hidden; display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--glass-border); border-radius: 18px; background: var(--bg-surface);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.shop-card:hover { transform: translateY(-5px); border-color: var(--shop-accent, var(--accent-color)); box-shadow: 0 18px 38px rgba(0,0,0,.28); }
.shop-card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background-position: center; background-size: cover; }
.shop-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .3s ease, opacity .3s ease; }
.shop-card:hover .shop-card-image { transform: scale(1.06); opacity: .96; }
.shop-card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,10,20,.55), transparent 60%); pointer-events: none; }
.shop-card-label, .shop-card-stamp { position: absolute; z-index: 1; top: 10px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.shop-card-label { left: 10px; color: #fff; background: rgba(0,0,0,.62); backdrop-filter: blur(7px); }
.shop-card-label i { color: var(--shop-accent, var(--accent-color)); margin-right: 3px; }
.shop-card-stamp { right: 10px; color: rgba(255,255,255,.76); background: rgba(0,0,0,.3); }
.shop-card-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 15px 15px 16px; }
.shop-card-body h3 { margin: 0; font: 750 16px/1.2 'Outfit', sans-serif; }
.shop-card-body > p { min-height: 42px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.shop-card-story { margin-top: 2px; padding: 10px 0 3px; border-top: 1px solid var(--glass-border); }
.shop-card-story > span { display: block; margin-bottom: 4px; color: var(--shop-accent, var(--accent-color)); font: 800 9px/1.1 'Inter', sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.shop-card-story p { margin: 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.shop-buy-link {
    position: relative; display: inline-flex; align-items: center; gap: 7px; width: max-content; margin-top: auto; padding: 8px 0 5px;
    color: var(--shop-accent, var(--accent-color)); font: 800 12px/1 'Inter', sans-serif; text-decoration: none;
}
.shop-buy-link::before {
    content: ''; position: absolute; left: -2px; right: 18px; bottom: 0; height: 3px; border-radius: 999px;
    background: linear-gradient(90deg, var(--shop-accent, var(--accent-color)), rgba(255,255,255,.2), var(--shop-accent, var(--accent-color)));
    transform: scaleX(.38); transform-origin: left center; transition: transform .35s ease;
}
.shop-buy-link:hover, .shop-buy-link:focus-visible { color: var(--text-primary); }
.shop-buy-link:hover::before, .shop-buy-link:focus-visible::before { transform: scaleX(1); animation: shopWave 1.25s ease-in-out infinite; }
.shop-buy-link i { font-size: 10px; transition: transform .25s ease; }
.shop-buy-link:hover i, .shop-buy-link:focus-visible i { transform: translate(2px, -1px); }
.shop-read-link {
    display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px;
    color: var(--shop-accent, var(--accent-color)); font: 800 11px/1 'Inter', sans-serif;
}
.shop-read-link i { font-size: 10px; transition: transform .25s ease; }
.shop-card:hover .shop-read-link i, .shop-card:focus-visible .shop-read-link i { transform: translateX(3px); }
@keyframes shopWave {
    0%, 100% { opacity: .55; filter: saturate(.9); }
    50% { opacity: 1; filter: saturate(1.6); }
}
.shop-reader {
    position: fixed; inset: 0; z-index: 4300; display: flex; align-items: center; justify-content: center;
    padding: 24px; opacity: 0; pointer-events: none; transition: opacity .24s ease;
}
.shop-reader.open { opacity: 1; pointer-events: auto; }
.shop-reader-backdrop { position: absolute; inset: 0; background: rgba(2,5,12,.78); backdrop-filter: blur(14px); }
.shop-reader-card {
    position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
    width: min(920px, 100%); max-height: min(700px, calc(100vh - 48px)); overflow: hidden;
    border: 1px solid rgba(138,181,255,.28); border-radius: 24px; background: #091424;
    box-shadow: 0 30px 90px rgba(0,0,0,.56), 0 0 0 1px rgba(255,255,255,.04) inset;
    transform: translateY(10px) scale(.985); transition: transform .28s ease;
}
.shop-reader.open .shop-reader-card { transform: translateY(0) scale(1); }
.shop-reader-art { position: relative; min-height: 430px; background-position: center; background-size: cover; background-color: #101c30; transition: background-image .28s ease; }
.shop-reader-cover-nav {
    position: absolute; z-index: 2; top: 50%; display: grid; place-items: center;
    width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    color: #fff; background: rgba(4,10,20,.62); box-shadow: 0 8px 24px rgba(0,0,0,.24);
    backdrop-filter: blur(10px); cursor: pointer; transform: translateY(-50%);
}
.shop-reader-cover-nav:hover, .shop-reader-cover-nav:focus-visible { color: #071225; background: #f6c945; }
.shop-reader-cover-prev { left: 14px; }
.shop-reader-cover-next { right: 14px; }
.shop-reader-cover-count { position: absolute; z-index: 2; right: 15px; bottom: 15px; padding: 5px 8px; border-radius: 999px; color: #fff; background: rgba(4,10,20,.68); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.shop-reader-cover-dots { position: absolute; z-index: 2; left: 50%; bottom: 17px; display: flex; gap: 6px; transform: translateX(-50%); }
.shop-reader-cover-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.48); cursor: pointer; transition: width .2s ease, background .2s ease; }
.shop-reader-cover-dot.active { width: 22px; background: #f6c945; }
.shop-reader-copy { min-width: 0; overflow-y: auto; padding: 46px 42px 40px; }
.shop-reader-close {
    position: absolute; z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px;
    display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
    color: var(--text-primary); background: rgba(4,10,20,.72); cursor: pointer;
}
.shop-reader-close:hover, .shop-reader-close:focus-visible { color: var(--on-accent); background: var(--accent-color); }
.shop-reader-label { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-color); font: 800 10px/1 'Inter', sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.shop-reader-copy h2 { margin: 12px 0 10px; font: 800 clamp(28px, 4vw, 44px)/1.03 'Outfit', sans-serif; letter-spacing: -.035em; }
.shop-reader-deck { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.shop-reader-rule { width: 76px; height: 3px; margin: 24px 0 22px; border-radius: 999px; background: var(--accent-color); }
.shop-reader-kicker { display: block; margin-bottom: 8px; color: var(--accent-color); font: 800 10px/1.1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.shop-reader-editorial { display: grid; gap: 14px; margin: 0; color: var(--text-primary); font-size: 15px; line-height: 1.75; }
.shop-reader-editorial p { margin: 0; }
.shop-reader-editorial strong { color: var(--accent-color); font-weight: 800; }
.shop-reader-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; color: var(--text-muted); font-size: 11px; }
.shop-reader-meta span { display: inline-flex; align-items: center; gap: 6px; }
.shop-reader-meta i { color: var(--accent-color); }
.shop-reader-copy .shop-buy-link { margin-top: 30px; }
body.shop-reader-open { overflow: hidden; }
.shop-partner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
    margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(101, 185, 255, .28);
    background: linear-gradient(115deg, color-mix(in srgb, var(--bg-surface) 86%, #6bbcff 14%), var(--bg-surface));
}
.shop-partner[hidden] { display: none; }
.shop-partner-mark {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px;
    color: #071322; background: #6bbcff; box-shadow: 0 8px 24px rgba(68, 160, 255, .26);
}
.shop-partner-mark i { font-size: 18px; }
.shop-partner-copy { min-width: 0; }
.shop-partner-kicker { display: block; margin-bottom: 5px; color: #81c7ff; font: 800 10px/1 'Inter', sans-serif; letter-spacing: .12em; }
.shop-partner-copy h2 { margin: 0 0 4px; font: 800 19px/1.15 'Outfit', sans-serif; letter-spacing: -.02em; }
.shop-partner-copy p { margin: 0 0 5px; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.shop-partner-copy small { color: var(--text-muted); font-size: 10px; }
.shop-partner-link {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 14px;
    border-radius: 10px; color: #071322; background: #6bbcff; font-size: 12px; font-weight: 800;
    text-decoration: none; transition: transform .2s ease, filter .2s ease;
}
.shop-partner-link:hover, .shop-partner-link:focus-visible { transform: translateY(-1px); filter: brightness(1.08); }
.shop-disclosure { margin: 18px 2px 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.shop-disclosure i { color: var(--accent-color); margin-right: 5px; }
@media (max-width: 720px) {
    .shop-masthead { align-items: flex-start; }
    .shop-masthead-mark { display: none; }
    .shop-feature { min-height: 440px; }
    .shop-feature-copy { min-height: 440px; padding: 28px 22px; justify-content: flex-end; }
    .shop-toolbar { align-items: flex-start; flex-direction: column; }
    .shop-status { padding-left: 2px; }
    .shop-partner { grid-template-columns: auto minmax(0, 1fr); }
    .shop-partner-link { grid-column: 1 / -1; justify-content: center; }
    .shop-reader { padding: 12px; }
    .shop-reader-card { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
    .shop-reader-art { min-height: 210px; max-height: 34vh; }
    .shop-reader-copy { padding: 28px 24px 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-feature-video { display: none; }
}

/* Section-title pills (NEW / AIRING) sit beside the text */
.section-title .nav-pill { margin-left: 2px; }

/* --- "Only on <Network>" dropdown inside the section title --- */
.network-select {
    display: inline-block;
    margin-left: 6px;
    padding: 6px 34px 6px 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--accent-color);
    cursor: pointer;
    border-radius: var(--radius-md);
    vertical-align: middle;
}

/* --- Details Modal (quick trailer + cast + related titles) --- */
.details-modal {
    position: fixed; inset: 0; z-index: 2800;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.details-modal.active { display: flex; }
.details-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
}
.details-card-shell {
    position: relative; z-index: 2;
    width: 760px; max-width: 94vw;
    max-height: 92vh;
}
.details-card {
    position: relative; z-index: 1;
    width: 100%; max-width: none;
    max-height: 92vh; overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 0;
}
.details-close {
    position: absolute; top: 14px; right: 14px; z-index: 40;
    background: rgba(0,0,0,0.55); border-radius: 50%;
    width: 38px; height: 38px; color: #fff;
    border: none; cursor: pointer;
    display: grid; place-items: center;
    pointer-events: auto; touch-action: manipulation;
}
.details-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}
.dm-backdrop {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
#dm-trailer { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
/* Nothing auto-plays — the trailer only starts once this button is clicked */
.dm-trailer-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(0,0,0,0.55); border: 2px solid rgba(255,255,255,0.7);
    color: #fff; font-size: 24px; cursor: pointer; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
.dm-trailer-play-btn:hover { background: var(--accent-color); border-color: var(--accent-color); transform: translate(-50%, -50%) scale(1.08); }
.dm-media-fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
    background: linear-gradient(0deg, var(--bg-surface) 4%, transparent 100%);
    pointer-events: none;
}
.details-body { padding: 6px 26px 24px; }
.dm-title { font-size: 26px; margin-bottom: 8px; }
.dm-desc {
    color: var(--text-secondary); font-size: 14px; line-height: 1.6;
    margin: 12px 0 16px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dm-discovery-section {
    margin-top: 22px;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
}
.dm-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.dm-section-heading h3 {
    margin: 0;
    font: 750 17px/1.2 'Outfit', sans-serif;
}
.dm-section-heading h3 i { color: var(--accent-color); margin-right: 7px; }
.dm-section-heading span { color: var(--text-muted); font-size: 11px; }
.dm-cast-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(104px, 118px);
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}
.dm-cast-card {
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--glass-border);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
}
.dm-cast-card img,
.dm-cast-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
}
.dm-cast-placeholder { display: grid; place-items: center; color: var(--text-muted); font-size: 24px; }
.dm-cast-card strong,
.dm-cast-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-cast-card strong { margin-top: 7px; font-size: 12px; }
.dm-cast-card span { margin-top: 2px; color: var(--text-muted); font-size: 10px; }
.dm-section-loading,
.dm-section-empty { color: var(--text-muted); font-size: 12px; padding: 12px 2px; }
.dm-section-loading i { color: var(--accent-color); margin-right: 6px; }

/* --- Games cover hero --- */
.game-studio-masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}
.game-studio-masthead .page-title { margin: 8px 0 6px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; }
.game-studio-masthead .browse-subtitle { max-width: 660px; }
.studio-eyebrow { color: var(--text-secondary); font: 800 11px/1 'Outfit', sans-serif; letter-spacing: .18em; }
.studio-eyebrow i { color: #45e58b; font-size: 7px; margin-right: 7px; filter: drop-shadow(0 0 8px #45e58b); }
.studio-status { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.studio-status span { padding: 10px 13px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--glass-border); color: var(--text-secondary); font-size: 12px; }
.studio-status strong, .studio-status i { color: var(--accent-color); }
.play-studio-feature {
    position: relative;
    width: calc(100% + 8vw);
    height: min(76vh, 820px);
    min-height: 560px;
    display: block;
    overflow: hidden;
    margin: 0 0 30px -4vw;
    border-block: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    background: #05060a;
    box-shadow: 0 34px 90px rgba(0,0,0,.38);
}
.play-studio-feature::before { display: none; }
.studio-feature-slide {
    position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: flex-end;
    background: var(--bg-surface);
    opacity: 0; pointer-events: none;
    transform: scale(1.018);
    transition: opacity .65s ease, transform 7s ease;
}
.studio-feature-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; transform: scale(1); }
.studio-feature-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.studio-feature-scrim {
    position: absolute; z-index: 1; inset: 0;
    background:
        linear-gradient(90deg, rgba(4,5,9,.96) 0%, rgba(4,5,9,.82) 27%, rgba(4,5,9,.38) 50%, rgba(4,5,9,.04) 76%),
        linear-gradient(0deg, rgba(4,5,9,.86) 0%, rgba(4,5,9,.08) 48%, rgba(4,5,9,.18) 100%);
}
.studio-feature-content {
    position: relative; z-index: 2;
    width: min(560px, 48%);
    padding: clamp(42px, 6vw, 90px);
    color: #fff;
}
.studio-feature-content h2 { margin: 14px 0 12px; font-size: clamp(44px, 5vw, 72px); line-height: .95; letter-spacing: -.048em; text-wrap: balance; }
.studio-feature-content p {
    max-width: 460px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.studio-feature-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 11px; font-weight: 700; }
.studio-feature-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.studio-feature-meta span { padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); font-size: 11px; }
.studio-play-btn { padding: 13px 20px; }
.studio-feature-controls {
    position: absolute; z-index: 4; right: clamp(20px, 4vw, 58px); bottom: clamp(20px, 4vw, 46px);
    display: flex; align-items: center; gap: 9px;
    padding: 7px 9px; border-radius: 999px;
    background: rgba(4, 7, 12, .58); border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
}
.studio-feature-arrow {
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
    transition: var(--transition-fast);
}
.studio-feature-arrow:hover, .studio-feature-arrow:focus-visible { background: var(--accent-color); border-color: var(--accent-color); color: var(--on-accent); }
.studio-feature-dots { display: flex; align-items: center; gap: 6px; }
.studio-feature-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.38); cursor: pointer; transition: width .25s ease, background .25s ease; }
.studio-feature-dot.is-active { width: 22px; background: #fff; }
.studio-section-title { font-size: 22px; margin: 0; }
.game-card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 10px; margin-top: 10px; }
.game-card-meta span:last-child { text-align: right; }
.game-catalog-tools { display: flex; align-items: center; gap: 10px; }
.game-search-box {
    min-width: min(340px, 38vw);
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,.045);
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.game-search-box:focus-within { border-color: var(--accent-color); background: rgba(255,255,255,.07); }
.game-search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; }
.game-search-box input::placeholder { color: var(--text-muted); }
.game-quick-filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 18px; scrollbar-width: none; }
.game-quick-filters::-webkit-scrollbar { display: none; }
.game-quick-chip {
    flex: 0 0 auto;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 8px 13px;
    background: rgba(255,255,255,.035);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: var(--transition-fast);
}
.game-quick-chip:hover, .game-quick-chip.active { color: #fff; background: var(--accent-color); border-color: var(--accent-color); }
.game-api-card .app-cover { aspect-ratio: 16 / 10; }
.game-api-card .app-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-api-card .app-desc { min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-catalog-loading { grid-column: 1 / -1; min-height: 220px; }
.game-empty { grid-column: 1 / -1; padding: 56px 20px; }
.games-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 300px;
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--glass-border);
}
.games-hero:empty { display: none; }
.gh-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: saturate(1.1);
    transform: scale(1.02);
}
.gh-fade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,8,10,0.88) 0%, rgba(8,8,10,0.35) 55%, rgba(8,8,10,0.05) 100%),
                linear-gradient(0deg, rgba(8,8,10,0.85) 0%, transparent 60%);
}
body.theme-day .gh-fade {
    background: linear-gradient(90deg, rgba(244,244,246,0.9) 0%, rgba(244,244,246,0.4) 55%, rgba(244,244,246,0.05) 100%),
                linear-gradient(0deg, rgba(244,244,246,0.88) 0%, transparent 60%);
}
.gh-content { position: relative; z-index: 2; padding: 30px; max-width: 560px; }
.gh-title { font-size: 34px; margin: 12px 0 6px; }
.gh-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.gh-dots { display: flex; gap: 8px; margin-top: 16px; }
.gh-actions { display: flex; gap: 10px; }

/* --- Discover: news cover hero (shares .gh-* inner styles with the games hero) --- */
.news-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--glass-border);
}
.news-hero:empty { display: none; }

/* --- Discover: news cards (reuse the top10-item rail styling) --- */
/* News hero: editorial photos are busier than movie key art, so darken harder
   across the WHOLE slide (not just a side gradient) so text always reads clean. */
/* Minimal fade — just enough for the title/button to stay legible, image stays clear */
.news-hero-fade-light {
    background: linear-gradient(90deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.15) 45%, rgba(8,8,10,0) 75%),
                linear-gradient(0deg, rgba(8,8,10,0.6) 0%, rgba(8,8,10,0) 55%);
}
body.theme-day .news-hero-fade-light {
    background: linear-gradient(90deg, rgba(244,244,246,0.6) 0%, rgba(244,244,246,0.15) 45%, rgba(244,244,246,0) 75%),
                linear-gradient(0deg, rgba(244,244,246,0.65) 0%, rgba(244,244,246,0) 55%);
}

/* --- Legal pages (privacy / terms) --- */
.legal-page { max-width: 780px; line-height: 1.7; }
.legal-page h3 {
    font-size: 16px;
    margin: 26px 0 8px;
    color: var(--text-primary);
}
.legal-page h3:first-of-type { margin-top: 8px; }
.legal-page p, .legal-page li { color: var(--text-secondary); font-size: 14px; }
.legal-page p { margin-bottom: 10px; }
.legal-page ul { margin: 0 0 12px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-page a { color: var(--accent-color); text-decoration: underline; }
.legal-updated {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Customer support --- */
.support-page { max-width: 920px; display: grid; gap: 18px; }
.support-hero-card { padding: clamp(22px, 3vw, 34px); }
.support-hero-card h2 { margin: 8px 0 10px; font-size: clamp(26px, 3.2vw, 40px); }
.support-hero-card p { max-width: 700px; }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.support-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.support-detail-grid .settings-card { padding: 20px; }
.support-detail-link { display: block; margin: 7px 0 4px; color: var(--accent-color); font-weight: 700; text-decoration: underline; }
@media (max-width: 700px) { .support-detail-grid { grid-template-columns: 1fr; } }

/* Hostinger Reach signup: keep the list-building surface part of the cinema
   experience without making it feel like an ad or interrupting the content rails. */
.maverick-reach-signup {
    display: block;
    padding: 0;
    border: 1px solid rgba(119, 171, 255, .22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 158, 11, .13), transparent 42%),
        linear-gradient(135deg, rgba(12, 28, 51, .92), rgba(8, 12, 22, .96));
    box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
    overflow: hidden;
}
.maverick-reach-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 2.6vw, 32px);
    padding: 18px clamp(18px, 3vw, 30px);
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.maverick-reach-toggle:hover { background: rgba(119, 171, 255, .08); }
.maverick-reach-toggle:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -3px; }
.maverick-reach-toggle-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}
.maverick-reach-toggle-copy { min-width: 0; display: grid; gap: 4px; }
.maverick-reach-toggle-copy strong { color: #fff; font-size: clamp(16px, 2vw, 21px); line-height: 1.15; }
.maverick-reach-toggle-copy span { color: rgba(217, 226, 241, .68); font-size: 13px; line-height: 1.35; }
.maverick-reach-toggle-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.maverick-reach-toggle-action i { transition: transform .2s ease; }
.maverick-reach-signup.is-expanded .maverick-reach-toggle-action i { transform: rotate(180deg); }
.maverick-reach-signup.is-expanded .maverick-reach-toggle-action { color: #fff; }
.maverick-reach-panel {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr);
    gap: clamp(20px, 4vw, 54px);
    align-items: center;
    padding: 0 clamp(18px, 3vw, 30px) 26px;
    max-height: 760px;
    opacity: 1;
    visibility: visible;
    transition: max-height .35s ease, opacity .25s ease, padding .35s ease, visibility 0s linear;
}
.maverick-reach-panel[aria-hidden="true"] {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height .35s ease, opacity .2s ease, padding .35s ease, visibility 0s linear .35s;
}
.maverick-reach-signup-copy { min-width: 0; }
.maverick-reach-signup-copy .section-title { margin: 8px 0 10px; }
.maverick-reach-signup-copy .setting-desc { max-width: 480px; margin: 0; }
.maverick-reach-form {
    min-height: 220px;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}
.maverick-reach-form iframe { display: block; width: 100%; max-width: 100%; border: 0; }
@media (max-width: 820px) {
    .maverick-reach-toggle { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
    .maverick-reach-toggle-brand span { display: none; }
    .maverick-reach-toggle-copy span { display: none; }
    .maverick-reach-toggle-action { font-size: 0; }
    .maverick-reach-toggle-action i { font-size: 14px; }
    .maverick-reach-panel { grid-template-columns: 1fr; }
    .maverick-reach-form { min-height: 300px; }
}

/* --- Discover hero + rails: same components as Movies/TV/Anime ---
   The hero reuses .section-hero wholesale; only the overlay tint differs, and the
   rail cards go landscape because editorial art is 16:9, not 2:3 poster art. */
.theme-hero-discover .hero-overlay {
    /* Discover artwork stays visible edge-to-edge. Readability comes from a
       shallow lower fade rather than the old dark curtain on the left. */
    background: linear-gradient(0deg, rgba(5,7,12,.72) 0%, rgba(5,7,12,.28) 38%, rgba(5,7,12,0) 72%);
}
.theme-hero-discover::after {
    background: linear-gradient(180deg, rgba(5,7,12,.04), transparent 40%, rgba(5,7,12,.28));
}
.theme-hero-discover .hero-tagline { border-color: rgba(var(--accent-rgb), 0.35); color: #80aee5; }
.theme-hero-discover .hero-title {
    font-size: clamp(26px, 2.9vw, 38px);
    text-transform: none;      /* headlines are sentence case, unlike title cards */
    line-height: 1.12;
    text-shadow: 0 2px 18px rgba(0,0,0,.72);
}
.theme-hero-discover .hero-meta,
.theme-hero-discover .hero-actions,
.theme-hero-discover .hero-dots { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
body.theme-day .theme-hero-discover .hero-overlay {
    background: linear-gradient(0deg, rgba(244,244,246,.78) 0%, rgba(244,244,246,.24) 40%, rgba(244,244,246,0) 74%);
}
body.theme-day .theme-hero-discover::after {
    background: linear-gradient(180deg, rgba(244,244,246,.02), transparent 42%, rgba(244,244,246,.24));
}
body.theme-day .theme-hero-discover .hero-title,
body.theme-day .theme-hero-discover .hero-meta,
body.theme-day .theme-hero-discover .hero-actions,
body.theme-day .theme-hero-discover .hero-dots { text-shadow: 0 2px 14px rgba(255,255,255,.82); }
.theme-hero-discover .hero-dot.active { background: var(--accent-color); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.48); }

.news-rail-card {
    width: 320px;
    height: 180px;             /* 16:9 editorial still */
}
.news-rail-item .rail-card-info { transform: none; background: linear-gradient(transparent, rgba(4,4,6,.94)); }
.news-rail-item .rail-card-info strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-rail-item .rail-play { background: rgba(8,8,10,.72); border: 1px solid rgba(255,255,255,.22); }

@media (max-width: 640px) {
    .news-rail-card { width: 260px; height: 146px; }
}

/* --- Discover: source filter pills (Bing/Google-News style, one feed, filterable) --- */
.news-filter-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 4px 0 22px;
}
.news-filter-pill {
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-size: 13px; font-weight: 600;
    padding: 8px 16px; border-radius: var(--radius-full);
    cursor: pointer; transition: var(--transition-fast);
}
.news-filter-pill:hover { color: var(--text-primary); border-color: rgba(var(--accent-rgb), 0.4); }
.news-filter-pill.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--on-accent); }
.discover-live-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.discover-live-state > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

/* --- Discover: single feed grid (Bing-News style), NOT a horizontal poster rail --- */
.news-feed-grid {
    display: grid;
    /* auto-fit collapses empty tracks so cards stretch to fill the row —
       auto-fill was leaving empty slots ("box pockets") when a row wasn't full */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.news-feed-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(18, 18, 22, 0.65);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.news-feed-card:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-rgb), 0.2);
}
.news-feed-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0d0d11;
    overflow: hidden;
}
.news-feed-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.news-feed-card:hover .news-feed-img {
    transform: scale(1.06);
}
.news-feed-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(8,8,10,0.85) 100%);
    pointer-events: none;
}
.news-feed-brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 2;
}
.news-feed-readtime-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.news-feed-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.news-feed-source-text {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 12px;
}
.news-feed-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-feed-snippet {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-feed-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.news-read-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}
.news-feed-card:hover .news-read-link {
    transform: translateX(4px);
}

/* --- Article Page (full in-app reading view — no modal, no redirect-first) --- */
.article-back-btn { margin-bottom: 18px; }
.article-page {
    max-width: 840px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-surface); border: 1px solid var(--glass-border);
}
.article-cover {
    aspect-ratio: 16 / 8;
    background-size: cover; background-position: center;
    background-color: #111;
}
.article-cover.no-image {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(0,0,0,0.5));
}
.article-cover.no-image::after {
    content: '\f1ea'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 48px; color: rgba(255,255,255,0.5);
}
.article-body { padding: 32px 40px 40px; }
.article-title { font-size: 30px; margin: 14px 0 8px; line-height: 1.25; }
.article-date { color: var(--text-muted); font-size: 13px; }
.article-summary-wrap { border-top: 1px solid var(--glass-border); margin-top: 22px; padding-top: 22px; }
.article-summary {
    color: var(--text-secondary); font-size: 17px; line-height: 1.9;
    margin: 0; transition: opacity 0.25s ease;
    white-space: pre-line;
}
.article-summary-loading { opacity: 0.55; }
.article-source-footer {
    display: flex; align-items: center;
    margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--glass-border);
}
.article-source-footer-label { color: var(--text-muted); font-size: 13px; }

/* --- Games sub-nav: Play Now vs PC Games --- */
.games-subnav {
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 22px;
}
.games-subnav-btn {
    border: none; background: transparent; color: var(--text-secondary);
    padding: 9px 18px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 13px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition-fast);
}
.games-subnav-btn:hover { color: var(--text-primary); }
.games-subnav-btn.active { background: var(--accent-color); color: var(--on-accent); }
.arcade-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; border: none; padding: 0; }

/* --- Arcade Player Modal (instant in-page HTML5 games) --- */
.arcade-modal {
    position: fixed; inset: 0; z-index: 2900;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.arcade-modal.active { display: flex; }
.arcade-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
}
.arcade-card {
    position: relative; z-index: 2;
    width: 960px; max-width: 96vw;
    height: 640px; max-height: 88vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    background: #000;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.arcade-card:fullscreen { width: 100vw; max-width: none; height: 100vh; max-height: none; border-radius: 0; }
.arcade-card.arcade-pseudo-fullscreen { position: fixed; inset: 0; z-index: 3; width: 100vw; max-width: none; height: 100vh; max-height: none; border-radius: 0; }
.arcade-tool-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); }
.arcade-tool-btn:hover { color: #fff; background: var(--accent-color); border-color: var(--accent-color); }
body.arcade-playing { overflow: hidden; }

@media (max-width: 760px) {
    .hero-arrow { opacity: .85; width: 40px; height: 52px; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
    .rail-arrow { opacity: .9; width: 38px; height: 58px; }
    .game-studio-masthead { align-items: flex-start; flex-direction: column; }
    .studio-status { justify-content: flex-start; }
    .play-studio-feature {
        width: calc(100% + 30px);
        height: min(76svh, 650px);
        min-height: 500px;
        margin-left: -15px;
    }
    .studio-feature-cover { object-position: 64% center; }
    .studio-feature-scrim {
        background:
            linear-gradient(0deg, rgba(5,6,10,.98) 0%, rgba(5,6,10,.78) 42%, rgba(5,6,10,.08) 78%),
            linear-gradient(90deg, rgba(5,6,10,.54), transparent 78%);
    }
    .studio-feature-controls { right: 16px; bottom: 16px; }
    .studio-feature-content { width: 100%; max-width: 560px; padding: 28px 24px 82px; }
    .studio-feature-content h2 { font-size: clamp(38px, 12vw, 58px); }
    .studio-feature-content p { max-width: 92%; -webkit-line-clamp: 2; }
    .arcade-input-hints { display: none; }
    .arcade-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .game-catalog-tools { width: 100%; align-items: stretch; flex-direction: column; }
    .game-search-box { min-width: 0; width: 100%; }}

@media (prefers-reduced-motion: reduce) {
    .top10-carousel { scroll-behavior: auto; }
    .hero-slide-changing .hero-content > * { animation: none; }}
.arcade-topbar {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--glass-border);
}
.arcade-game-title { font-weight: 700; font-size: 14px; }
.arcade-input-hints { display: flex; align-items: center; gap: 9px; margin-left: auto; margin-right: 14px; }
.arcade-gamepad-status { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.arcade-gamepad-status i { color: var(--accent-color); }
.arcade-focus-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); color: var(--text-secondary); border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.arcade-focus-btn:hover, .arcade-focus-btn:focus-visible { color: var(--text-primary); border-color: var(--accent-color); }
.arcade-topbar-actions { display: flex; align-items: center; gap: 10px; }
.arcade-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-secondary); font-size: 12px; font-weight: 600;
    padding: 7px 12px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}
.arcade-link:hover { color: var(--text-primary); border-color: var(--accent-color); }
.arcade-frame-wrap { flex: 1; position: relative; background: #000; }
.arcade-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; outline: none; }
.arcade-iframe:focus { box-shadow: inset 0 0 0 2px var(--accent-color); }

/* Instant-download badge + toast */
.app-badge.instant {
    left: auto; right: 10px;
    background: var(--accent-color); color: var(--on-accent);
}
.dl-toast {
    position: fixed; bottom: 26px; left: 50%;
    transform: translate(-50%, 80px);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 12px 22px; border-radius: var(--radius-full);
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px;
    z-index: 4000; opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 34px rgba(0,0,0,0.5);
}
.dl-toast.show { transform: translate(-50%, 0); opacity: 1; }
.dl-toast i { color: var(--accent-color); }

@media (max-width: 1024px) {
    .hero-section {
        height: 480px;
        padding: 40px;
    }
    .hero-title {
        font-size: 40px;
    }}

@media (max-width: 768px) {
    /* Off-canvas sidebar on mobile */
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 40px rgba(0,0,0,0.6);
    }
    body.sidebar-open .app-sidebar { transform: translateX(0); }

    .sidebar-scrim {
        display: block;
        position: fixed; inset: 0; z-index: 999;
        background: rgba(0,0,0,0.6);
        opacity: 0; pointer-events: none;
        transition: opacity 0.28s ease;
    }
    body.sidebar-open .sidebar-scrim { opacity: 1; pointer-events: auto; }

    .mobile-topbar {
        display: flex;
        position: fixed; top: 0; left: 0; right: 0;
        height: 60px; z-index: 998;
        align-items: center; justify-content: space-between;
        padding: 0 14px;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: var(--glass-blur);
    }
    .mobile-topbar .logo-img { height: 30px; }

    .main-wrapper {
        margin-left: 0;
        padding: 80px 15px 80px 15px;
    }

    .hero-section {
        height: 420px;
        padding: 25px;
        margin-top: -60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .section-header-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-modal-container {
        height: 95vh;
    }
    
    .search-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .search-preview-panel {
        display: none !important; /* Hide inline preview on mobile, play directly */
    }
    
    .top10-item {
        flex-shrink: 0;
    }
    
    .top10-card-wrapper {
        width: 150px;
        height: 225px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-meta {
        font-size: 10px;
    }
    
    .details-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .details-top button {
        width: 100%;
    }}

/* Cover heroes stay clean; poster rails keep their explicit paging controls. */
.hero-arrow {
    display: none !important;
}

/* --- Light Mode Legibility Overrides (Discover & Articles) --- */
body.theme-day {
    --text-primary: #0b0b0e;
    --text-secondary: #272730;
    --text-muted: #525260;
}

body.theme-day .page-title,
body.theme-day .browse-subtitle,
body.theme-day .news-feed-title,
body.theme-day .article-title,
body.theme-day .section-title,
body.theme-day .settings-card-title {
    color: #0b0b0e !important;
}

body.theme-day .news-feed-snippet,
body.theme-day .settings-desc,
body.theme-day .setting-desc {
    color: #2c2c36 !important;
}

body.theme-day .news-feed-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}

body.theme-day .news-filter-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.14);
    color: #272730;
}
body.theme-day .news-filter-pill:hover {
    color: #0b0b0e;
    border-color: rgba(var(--accent-rgb), 0.6);
}
body.theme-day .news-filter-pill.active {
    background: var(--accent-color);
    color: #ffffff;
}

body.theme-day .article-page {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
body.theme-day .article-summary,
body.theme-day .article-paragraph {
    color: #1a1a22 !important;
}

/* --- Article Paragraphs & Reference Button --- */
.article-paragraph {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}
.article-paragraph:last-child {
    margin-bottom: 0;
}
.article-section-heading {
    font-size: 20px;
    font-weight: 800;
    margin: 28px 0 12px;
    color: var(--accent-color);
    letter-spacing: -0.3px;
}
body.theme-day .article-section-heading {
    color: var(--text-primary) !important;
}
.article-reference-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

/* --- Floating Circular AI Assistant Bubble & Greeting Tooltip --- */
.ai-bubble-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-greeting-tooltip {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    animation: tooltipFloat 3s infinite ease-in-out;
}
body.theme-day .ai-greeting-tooltip {
    background: #ffffff !important;
    color: #0b0b0e !important;
    border-color: rgba(var(--accent-rgb), 0.3) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.ai-tooltip-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

/* Circular AI Bubble Button */
.ai-bubble-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #123f73 0%, #8b5cf6 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.ai-bubble-btn:hover {
    transform: translateY(-4px) scale(1.08) rotate(5deg);
    box-shadow: 0 14px 35px rgba(var(--accent-rgb), 0.7), 0 0 25px rgba(139, 92, 246, 0.6);
}
.ai-bubble-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-rgb), 0.65);
    animation: aiPulse 2.2s infinite ease-out;
    pointer-events: none;
}
@keyframes aiPulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}
.ai-bubble-icon {
    font-size: 22px;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* AI Concierge Drawer */
.ai-drawer {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 420px;
    max-width: calc(100vw - 32px);
    height: 580px;
    max-height: calc(100vh - 120px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    background: rgba(18, 18, 22, 0.95);
}
body.theme-day .ai-drawer {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}
.ai-drawer.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.ai-drawer-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(139,92,246,0.15) 100%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #123f73, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}
.ai-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}
body.theme-day .ai-title { color: #0b0b0e !important; }
.ai-sub {
    font-size: 11px;
    color: var(--text-muted);
}
.text-success { color: #10b981; }

.ai-chat-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
}
.ai-chat-msg {
    display: flex;
    gap: 10px;
    max-width: 88%;
}
.ai-msg-bot {
    align-self: flex-start;
}
.ai-msg-user {
    align-self: flex-end;
}
.ai-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.msg-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
}
.ai-msg-bot .msg-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}
body.theme-day .ai-msg-bot .msg-bubble {
    background: #f0f0f4 !important;
    color: #1a1a22 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.ai-msg-user .msg-bubble {
    background: var(--accent-color);
    color: #ffffff;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.3);
}

.ai-quick-chips {
    padding: 8px 16px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--glass-border);
}
.ai-chip {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
}
body.theme-day .ai-chip {
    background: rgba(0, 0, 0, 0.05);
    color: #272730;
    border-color: rgba(0, 0, 0, 0.12);
}
.ai-chip:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.ai-chat-input-bar {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}
body.theme-day .ai-chat-input-bar {
    background: #f9f9fc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
.ai-chat-input-bar input {
    flex-grow: 1;
    font-size: 13px;
}
.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* --- Maverick chat: compact red draggable launcher + page-aware guide --- */
.guide-launcher-wrap {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 9999;
}
/* The guide belongs to the app, not to the sign-in screen. While the gate is up
   the launcher (and an already-open guide panel) are withdrawn entirely. */
body.auth-gate-locked .guide-launcher-wrap,
body.auth-gate-locked .maverick-guide {
    display: none !important;
}
.guide-launcher {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid var(--guide-launcher-border);
    border-radius: 50%;
    color: var(--guide-launcher-ink);
    background: var(--guide-launcher-bg);
    box-shadow: 0 14px 38px rgba(0,0,0,.42), 0 7px 22px rgba(var(--accent-rgb), .34);
    backdrop-filter: blur(18px);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.guide-launcher.is-dragging {
    cursor: grabbing;
    transform: scale(1.02);
}
.guide-launcher:hover,
.guide-launcher[aria-expanded="true"] {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), .45);
    box-shadow: 0 16px 44px rgba(0,0,0,.5), 0 0 0 5px rgba(var(--accent-rgb), .14);
}
.guide-launcher-mark,
.guide-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--guide-mark-ink);
    background: var(--guide-mark-bg);
    box-shadow: 0 5px 14px rgba(var(--accent-rgb), .3);
}
.guide-launcher-mark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    font-size: 21px;
}
body.theme-day .guide-launcher {
    box-shadow: 0 12px 30px rgba(29,29,36,.16), 0 2px 8px rgba(29,29,36,.08);
}

.maverick-guide {
    position: fixed;
    right: 24px;
    bottom: 86px;
    z-index: 9998;
    width: min(440px, calc(100vw - 32px));
    height: min(650px, calc(100vh - 116px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(14,14,18,.97);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 28px 80px rgba(0,0,0,.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.maverick-guide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
body.theme-day .maverick-guide {
    color: #17171d;
    background: rgba(255,255,255,.98);
    border-color: rgba(0,0,0,.12);
    box-shadow: 0 28px 70px rgba(29,29,36,.2);
}
.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(120deg, rgba(var(--accent-rgb), .14), transparent 58%);
}
.guide-header-brand { display: flex; align-items: center; gap: 11px; }
.guide-header-actions { display: flex; align-items: center; gap: 4px; }
.guide-refresh-btn.is-loading i { animation: spin .8s linear infinite; }
.guide-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font: 850 17px/1 'Outfit', sans-serif;
}
.guide-title {
    margin: 0;
    font: 800 15px/1.2 'Outfit', sans-serif;
}
.guide-sub { color: var(--text-muted); font-size: 11px; }
.guide-sub .fa-circle { margin-right: 4px; font-size: 7px; }
.guide-context-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 18px;
    color: var(--text-muted);
    background: rgba(255,255,255,.025);
    border-bottom: 1px solid var(--glass-border);
    font-size: 10px;
    font-weight: 650;
}
body.theme-day .guide-context-bar { background: rgba(0,0,0,.025); }
.guide-context-bar i { margin-right: 4px; color: var(--accent-color); }

.guide-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.guide-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: 92%;
}
.guide-msg-bot { align-self: flex-start; }
.guide-msg-user { align-self: flex-end; }
.guide-msg-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    color: #fff;
    background: var(--accent-color);
    font: 800 11px/1 'Outfit', sans-serif;
}
.guide-msg-bot .msg-bubble {
    width: 100%;
    color: var(--text-primary);
    background: rgba(255,255,255,.065);
    border: 1px solid var(--glass-border);
    border-top-left-radius: 5px;
}
.guide-msg-user .msg-bubble {
    color: #fff;
    background: var(--accent-color);
    border-top-right-radius: 5px;
}
body.theme-day .guide-msg-bot .msg-bubble {
    color: #1b1b21;
    background: #f3f3f6;
    border-color: rgba(0,0,0,.08);
}
.guide-loading { color: var(--text-muted) !important; }
.guide-thinking {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-width: 270px;
}
.guide-thinking-orb {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: var(--guide-mark-ink);
    background: var(--guide-mark-bg);
    animation: guideThinkPulse 1.4s ease-in-out infinite;
}
.guide-thinking-orb i { font-size: 10px; }
.guide-thinking-copy { display: flex; flex-direction: column; min-width: 0; }
.guide-thinking-copy strong { color: var(--text-primary); font-size: 11px; }
.guide-thinking-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.guide-thinking-dots { display: flex; align-items: center; gap: 3px; }
.guide-thinking-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: guideThinkDot .9s ease-in-out infinite;
}
.guide-thinking-dots i:nth-child(2) { animation-delay: .14s; }
.guide-thinking-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes guideThinkPulse {
    0%, 100% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .24); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0); }
}
@keyframes guideThinkDot {
    0%, 100% { transform: translateY(1px); opacity: .3; }
    50% { transform: translateY(-3px); opacity: 1; }
}
.guide-system-note {
    align-self: center;
    padding: 6px 10px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    background: rgba(255,255,255,.035);
    font-size: 9px;
    font-weight: 650;
}
.guide-system-note i { margin-right: 4px; color: #10b981; }
.guide-response-mode {
    display: block;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .01em;
}
.guide-response-mode i { margin-right: 4px; color: var(--accent-color); }

.guide-recommendations {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.guide-rec-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(0,0,0,.16);
}
body.theme-day .guide-rec-card { background: rgba(255,255,255,.72); }
.guide-rec-poster {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-surface);
}
.guide-rec-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.guide-rec-content > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.guide-rec-content > span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
}
.guide-rec-content .fa-star { color: #f59e0b; }
.guide-rec-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.guide-rec-action,
.guide-response-action {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    background: rgba(255,255,255,.05);
    cursor: pointer;
    font-size: 9px;
    font-weight: 750;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.guide-rec-action { padding: 5px 7px; }
.guide-rec-action:hover,
.guide-response-action:hover {
    color: #fff;
    border-color: var(--accent-color);
    background: var(--accent-color);
}
.guide-response-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.guide-response-action { padding: 7px 10px; }

.guide-quick-chips {
    display: flex;
    gap: 7px;
    padding: 10px 16px;
    overflow-x: auto;
    border-top: 1px solid var(--glass-border);
    scrollbar-width: none;
}
.guide-quick-chips::-webkit-scrollbar { display: none; }
.guide-chip {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255,255,255,.045);
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}
.guide-chip:hover { color: var(--accent-color); border-color: rgba(var(--accent-rgb), .55); }
body.theme-day .guide-chip { background: rgba(0,0,0,.035); }
.guide-input-bar {
    display: flex;
    gap: 8px;
    padding: 11px 14px 14px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,.14);
}
body.theme-day .guide-input-bar { background: #fafafd; }
.guide-input-bar input { min-width: 0; flex: 1; font-size: 12px; }
.guide-input-bar .btn { flex: 0 0 42px; padding: 0; }

/* Article reader rhythm and loading state */
.article-reading-status {
    min-height: 18px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 11px;
}
.article-reading-status:empty { display: none; }
.article-passage-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
}
.article-summary { white-space: normal; }
.article-paragraph { max-width: 72ch; }

/* Secondary section covers should support, not overpower, their content rails. */
.section-hero .hero-title { font-size: clamp(28px, 3vw, 36px); }

@media (max-width: 640px) {
    .hero-section {
        height: 58vh;
        min-height: 400px;
        max-height: 520px;
    }
    .hero-title { font-size: clamp(27px, 9vw, 34px); }
    .hero-description { font-size: 13px; -webkit-line-clamp: 2; }
    .guide-launcher-wrap { right: 14px; bottom: 14px; }
    .guide-launcher { width: 54px; height: 54px; }
    .maverick-guide {
        right: 8px;
        bottom: 72px;
        width: calc(100vw - 16px);
        height: min(660px, calc(100vh - 84px));
        border-radius: 20px;
    }
    .article-body { padding: 24px 20px 28px; }
    .article-title { font-size: 25px; }
    .player-header { align-items: flex-start; flex-wrap: wrap; }
    .player-caption-control { width: 100%; margin-left: 0; justify-content: space-between; }
    .guide-thinking { min-width: 0; }}



@keyframes sc-soft-pulse {
    50% { transform: scale(0.92); opacity: 0.55; }
}


@keyframes sc-orbit-breathe {
    50% { transform: rotate(9deg) scale(1.08); opacity: .35; }
}
@keyframes sc-stage-pulse { 50% { opacity: .5; } }


@keyframes sc2-brief-in {
    from { opacity: 0; transform: translateY(-5px); }
}
@keyframes sc2-workspace-in {
    from { opacity: 0; transform: translateY(12px); }
}
@keyframes sc2-pulse { 50% { opacity: .45; transform: scale(.8); } }
@keyframes sc2-cursor-blink { 50% { opacity: 0; } }

/* August 2026: Manus-style agent computer and faster Discover newsroom */
.discover-edition-bar {
    display: grid;
    grid-template-columns: minmax(220px,.72fr) minmax(300px,1.28fr);
    gap: 18px;
    align-items: center;
    margin: 18px 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(var(--accent-rgb),.16);
    border-radius: 16px;
    background: linear-gradient(115deg,rgba(var(--accent-rgb),.10),rgba(255,255,255,.025));
}
.discover-edition-copy { display: grid; gap: 3px; }
.discover-edition-kicker { color: var(--accent-color); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.discover-edition-copy strong { font-size: 16px; }
.discover-edition-copy small { color: var(--text-muted); font-size: 10px; }
.discover-search-box {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(2,9,18,.48);
}
.discover-search-box i { color: var(--text-muted); }
.discover-search-box input { width: 100%; color: var(--text-primary); border: 0; outline: 0; background: transparent; font: inherit; }
.discover-search-box kbd { padding: 3px 6px; color: var(--text-muted); border: 1px solid var(--glass-border); border-radius: 5px; background: rgba(255,255,255,.04); font: 700 9px/1 inherit; }
.discover-empty-state { grid-column: 1/-1; display: grid; place-items: center; gap: 7px; min-height: 260px; color: var(--text-muted); text-align: center; }
.discover-empty-state i { color: var(--accent-color); font-size: 25px; }
.discover-empty-state strong { color: var(--text-primary); }
.discover-empty-state p { margin: 0; font-size: 12px; }
@media (max-width: 760px) {
    .discover-edition-bar { grid-template-columns: 1fr; }}

.nav-pill.live {
    color: var(--brand-navy) !important;
    background: var(--brand-yellow);
}

.btn-primary,
.nav-link.active,
.filter-tab.active,
.theme-seg-btn.active,
.login-tab.active,
.app-dl-btn {
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), .25);
}

.player-servers-btn:hover,
.ai-msg-avatar,
.guide-header,
.guide-thinking-orb,
.guide-chip:hover{
    border-color: rgba(var(--accent-rgb), .35);
}

.player-servers-btn:hover { background: rgba(var(--accent-rgb), .22); }
.guide-header { background: linear-gradient(120deg, rgba(var(--accent-rgb), .22), transparent 58%); }
.guide-thinking-orb { background: var(--guide-mark-bg); }
.guide-chip:hover { color: var(--accent-color); }

.ai-bubble-btn,
.ai-avatar,
.guide-avatar {
    color: var(--guide-mark-ink);
    background: var(--guide-mark-bg);
    box-shadow: 0 14px 38px rgba(0,0,0,.42), 0 7px 22px rgba(var(--accent-rgb), .34);
}
.guide-launcher {
    color: var(--guide-launcher-ink);
    background: var(--guide-launcher-bg);
    box-shadow: 0 14px 38px rgba(0,0,0,.42), 0 7px 22px rgba(var(--accent-rgb), .34);
}
.ai-bubble-btn:hover,
.guide-launcher:hover,
.guide-launcher[aria-expanded="true"] {
    box-shadow: 0 16px 44px rgba(0,0,0,.5), 0 0 0 5px rgba(var(--accent-rgb), .16);
}
.ai-bubble-pulse { border-color: rgba(var(--accent-rgb), .68); }
.guide-launcher-mark { color: var(--guide-launcher-ink); }

/* ============================================================
   THEME TONES
   Day and Night use neutral accents (THEME_PALETTE in app.js), so content
   printed on the accent uses --on-accent for readable contrast.
   ============================================================ */
body[class] .icon-btn:hover,
body[class] .btn-primary,
body[class] .btn-primary i,
body[class] .hero-arrow:hover,
body[class] .rail-arrow:hover,
body[class] .play-badge-icon,
body[class] .card-type-badge,
body[class] .rail-play,
body[class] .bubble-tile:hover .bubble-tile-cta,
body[class] .bubble-discover .bubble-tile-cta,
body[class] .player-thumb-play-btn:hover,
body[class] .dm-trailer-play-btn:hover,
body[class] .theme-seg-btn.active,
body[class] .theme-seg-btn.active i,
body[class] .channel-tile .ch-live,
body[class] .account-avatar,
body[class] .release-about-mark,
body[class] .app-dl-btn,
body[class] .game-quick-chip:hover,
body[class] .game-quick-chip.active,
body[class] .news-filter-pill.active,
body[class] .arcade-tool-btn:hover,
body[class] .guide-msg-avatar,
body[class] .guide-msg-user .msg-bubble,
body[class] .guide-rec-action:hover,
body[class] .guide-response-action:hover {
    color: var(--on-accent);
}
/* A switch knob must contrast with the track, which is the accent when on. */
body[class] input:checked + .slider-toggle:before { background-color: var(--on-accent); }

/* Keep home and browse accents neutral in Day and Dark. */
.theme-hero-movies .hero-tagline,
.theme-hero-tv .hero-tagline,
.theme-hero-anime .hero-tagline,
.theme-hero-fourk .hero-tagline,
.theme-hero-discover .hero-tagline {
    color: var(--text-primary);
    border-color: var(--glass-border-hover);
}
.theme-hero-tv .hero-rating { color: #f59e0b; }
.bubble-movies .bubble-tile-cta,
.bubble-tv .bubble-tile-cta,
.bubble-anime .bubble-tile-cta,
.bubble-fourk .bubble-tile-cta {
    color: var(--text-primary);
    background: rgba(var(--accent-rgb), 0.12);
}
.bubble-movies:hover .bubble-tile-cta,
.bubble-tv:hover .bubble-tile-cta,
.bubble-anime:hover .bubble-tile-cta,
.bubble-fourk:hover .bubble-tile-cta {
    color: var(--on-accent);
    background: var(--accent-color);
}
.bubble-discover .bubble-tile-media {
    background-color: var(--bg-surface-elevated);
    background-image: radial-gradient(circle at 18% 32%, rgba(var(--accent-rgb), .16), transparent 34%);
}
.bubble-discover .bubble-tile-media-empty { color: var(--text-muted); }
.nav-pill.live {
    color: var(--on-accent) !important;
    background: var(--accent-color);
}
.brand-logo .accent-text { color: var(--text-secondary); }

/* --- Email sign-in, inside the gate --- */
.auth-email-form {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    flex-wrap: wrap;
}
.auth-email-form input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}
.auth-email-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.auth-email-form .btn { flex-shrink: 0; }
.auth-marketing-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}
.auth-marketing-consent input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent-color); }
.auth-marketing-consent em { color: rgba(255, 255, 255, 0.48); font-style: normal; }
.auth-email-status:empty { display: none; }
.auth-email-status {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

/* --- Stall recovery bar ---
   Sits over the player, above the controls, and never covers the picture centre.
   It only appears when the reported position has stopped advancing. */
.player-stall-hint {
    position: absolute;
    left: 50%;
    bottom: 74px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 10px 12px;
    border-radius: var(--radius-full);
    background: rgba(8, 8, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
    animation: fadeInUp .25s ease both;
}
.player-stall-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.player-stall-copy i { color: var(--brand-yellow); }
.player-stall-hint .btn { padding: 7px 13px; font-size: 12px; }
.player-stall-dismiss {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .6);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
}
.player-stall-dismiss:hover { color: #fff; }

@media (max-width: 640px) {
    .player-stall-hint { bottom: 60px; gap: 8px; padding: 9px 10px; }
    .player-stall-copy { width: 100%; justify-content: center; }
}

/* =====================================================================
   AUTH — full-page sign-in gate
   Browsing is never gated; the gate appears only when an execute/AI
   action is attempted, so the app stays explorable.
   ===================================================================== */

/* --- Full-page gate --- */
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 4100;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--bg-base);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.auth-gate.open { opacity: 1; pointer-events: auto; }
body.auth-gate-locked { overflow: hidden; }

.auth-gate-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}
.auth-gate-back {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.auth-gate-back:hover {
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    background: var(--bg-surface);
}

.auth-gate-inner { width: 100%; max-width: 380px; }
.auth-gate-logo {
    display: block;
    /* .logo-img is a CSS mask sized 138% of its own WIDTH on a square box.
       Keeping it square is what stops the mark being stretched and cropped. */
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
}
/* The gate is always dark, so the mark is tinted light regardless of theme. */
.auth-gate .auth-gate-logo.logo-img { background: #ffffff; }
.auth-gate-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.auth-gate-sub {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.auth-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
.auth-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}
.auth-provider:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--brand-yellow);
    transform: translateY(-1px);
}
.auth-provider i { font-size: 17px; }

.auth-gate-legal {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}
.auth-gate-legal a { color: var(--text-secondary); text-decoration: underline; }
.auth-gate-legal a:hover { color: var(--text-primary); }
.auth-gate-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--brand-yellow);
}
.auth-gate-note:empty { display: none; }

/* Right-hand art panel borrows a real backdrop from the catalogue */
.auth-gate-art {
    position: relative;
    overflow: hidden;            /* the oversized trailer must never spill left */
    background-color: var(--bg-surface);
    background-size: cover;
    background-position: center;
}
.auth-gate-art-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-base) 0%, rgba(5, 11, 20, 0.45) 35%, rgba(5, 11, 20, 0.15) 100%);
}

@media (max-width: 900px) {
    .auth-gate { grid-template-columns: 1fr; }
    .auth-gate-art { display: none; }
    .auth-gate-title { font-size: 25px; }}
@media (max-width: 460px) {
    .one-tap { top: 10px; right: 10px; left: 10px; width: auto; }}

/* --- Gate art: rotating latest releases with hover-to-preview trailers --- */
.auth-gate-slides { position: absolute; inset: 0; }

.auth-gate-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s ease, transform 7s linear;
}
.auth-gate-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Trailer sits above the stills. Oversized and centred so YouTube's own
   letterboxing is cropped out and the video fills the panel edge to edge. */
.auth-gate-trailer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* The panel is half the viewport wide and full height. Scale the 16:9 frame
       up until it covers that box on both axes, and let the parent's
       overflow:hidden crop the excess — the video fills the panel with no
       letterboxing and no bleed onto the sign-in column. */
    width: max(50vw, 177.78vh);
    height: max(100vh, 28.13vw);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.auth-gate-trailer.playing { opacity: 1; }

.auth-gate-art .auth-gate-art-veil { transition: opacity 0.6s ease; }
.auth-gate-art.trailer-on .auth-gate-art-veil { opacity: 0.55; }

.auth-gate-caption {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}
.auth-gate-caption-kicker {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-yellow);
}
.auth-gate-caption-title {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.auth-gate-caption-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.auth-gate-caption-hint {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    transition: opacity 0.3s ease;
}
.auth-gate-art.trailer-on .auth-gate-caption-hint { opacity: 0; }

.auth-gate-dots {
    position: absolute;
    left: 32px;
    bottom: 28px;
    display: flex;
    gap: 7px;
}
.auth-gate-dot {
    width: 22px;
    height: 3px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: var(--transition-fast);
}
.auth-gate-dot:hover { background: rgba(255, 255, 255, 0.55); }
.auth-gate-dot.active { background: var(--brand-yellow); width: 30px; }

/* =====================================================================
   AMPLIFIED 3 — membership gate
   ===================================================================== */
.membership-gate {
    position: fixed; inset: 0; z-index: 4200; display: grid; place-items: center;
    padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s ease;
    background: rgba(3, 8, 18, .78); backdrop-filter: blur(18px);
}
.membership-gate.open { opacity: 1; pointer-events: auto; }
body.membership-gate-locked { overflow: hidden; }
.membership-gate-backdrop { position: absolute; inset: 0; }
.membership-shell {
    position: relative; z-index: 1; display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.45fr);
    width: min(1100px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: hidden;
    border: 1px solid rgba(132, 183, 255, .22); border-radius: 28px;
    background: linear-gradient(135deg, rgba(10, 27, 52, .98), rgba(8, 13, 25, .98));
    box-shadow: 0 34px 100px rgba(0, 0, 0, .55);
}
.membership-hero { position: relative; min-height: 600px; padding: 42px 30px; overflow: hidden; background:
    radial-gradient(circle at 48% 8%, rgba(55, 126, 211, .36), transparent 35%),
    linear-gradient(165deg, #102c50 0%, #071323 65%); }
.membership-hero::after { content: ''; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.membership-kicker { position: relative; z-index: 2; color: #9bcaff; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.membership-hero h1 { position: relative; z-index: 2; max-width: 280px; margin: 18px 0 12px; color: #fff; font-size: clamp(28px, 3vw, 43px); line-height: 1.03; }
.membership-hero > p { position: relative; z-index: 2; max-width: 280px; margin: 0; color: rgba(235, 244, 255, .72); font-size: 13px; line-height: 1.65; }
.membership-theatre-art { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 28px; height: 245px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); background: radial-gradient(circle at 20% 22%, rgba(247, 196, 72, .56), transparent 15%), radial-gradient(circle at 85% 15%, rgba(83, 156, 255, .45), transparent 17%), linear-gradient(180deg, #163b64, #071323 67%); box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.membership-theatre-lights { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 27%, rgba(255,210,91,.14) 28%, transparent 37%), linear-gradient(240deg, transparent 46%, rgba(84,160,255,.12) 47%, transparent 59%); }
.membership-theatre-screen { position: absolute; left: 13%; right: 13%; top: 30px; height: 105px; display: grid; place-content: center; text-align: center; border-radius: 5px; border: 5px solid rgba(207, 169, 86, .55); background: linear-gradient(150deg, #0c2749, #27679b 55%, #12213f); box-shadow: 0 12px 40px rgba(0,0,0,.55); color: #d4ebff; }
.membership-theatre-screen span { font-size: 8px; letter-spacing: .25em; opacity: .72; }
.membership-theatre-screen strong { margin-top: 8px; font-size: 20px; letter-spacing: .18em; }
.membership-reception { position: absolute; right: 18px; bottom: 17px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(4,10,21,.72); color: #f5c84b; font-size: 11px; }
.membership-reception span { color: #e7eff9; line-height: 1.25; } .membership-reception small { color: #91a4bd; }
.membership-flow { overflow-y: auto; padding: 36px 38px 30px; background: rgba(9, 16, 28, .94); }
.membership-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; color: #7187a7; font-size: 11px; font-weight: 800; }
.membership-progress > span:not(.membership-step-dot) { flex: 0 1 70px; height: 1px; background: rgba(154, 188, 226, .22); }
.membership-step-dot { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(154,188,226,.28); border-radius: 50%; }
.membership-step-dot.active { color: #071323; border-color: #9bcaff; background: #9bcaff; }
.membership-step-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.membership-step-heading > span { color: #84bfff; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.membership-step-heading h2 { margin: 0 0 6px; color: #f5f9ff; font-size: 23px; }
.membership-step-heading p { margin: 0; color: #8d9fb7; font-size: 12px; line-height: 1.5; }
.membership-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.membership-plan { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 172px; padding: 17px; text-align: left; border: 1px solid rgba(151, 187, 228, .18); border-radius: 17px; background: linear-gradient(150deg, rgba(28, 43, 66, .82), rgba(11, 20, 34, .82)); color: #eaf3ff; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.membership-plan:hover, .membership-plan.selected { transform: translateY(-2px); border-color: var(--plan-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--plan-accent) 45%, transparent), 0 14px 30px rgba(0,0,0,.2); }
.membership-plan-top { display: flex; justify-content: space-between; align-items: center; color: var(--plan-accent); font-size: 18px; }
.membership-plan-top i { font-size: 16px; opacity: .85; }
.membership-plan-tagline { min-height: 34px; color: #a1b1c7; font-size: 11px; line-height: 1.45; }
.membership-plan-ads { color: var(--plan-accent); font-size: 11px; font-weight: 750; }
.membership-plan-features { display: grid; gap: 4px; color: #d4dfec; font-size: 10.5px; }
.membership-plan-features i { width: 15px; color: var(--plan-accent); }
.membership-plan-popular { position: absolute; top: -9px; right: 12px; padding: 4px 8px; border-radius: 999px; background: #55b7ff; color: #061528; font-size: 9px; font-weight: 800; }
.membership-next { width: 100%; justify-content: center; margin-top: 20px; }
.membership-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.membership-question-grid label { display: grid; gap: 7px; color: #b5c4d7; font-size: 11px; font-weight: 700; }
.membership-question-grid select { width: 100%; color: #e9f2ff; background: rgba(13, 25, 43, .95); border-color: rgba(151,187,228,.22); }
.membership-step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.membership-confirm { min-height: 280px; display: grid; align-content: center; justify-items: start; padding: 28px; border: 1px solid rgba(151, 187, 228, .18); border-radius: 20px; background: radial-gradient(circle at 80% 10%, rgba(69,140,234,.24), transparent 40%), rgba(18, 33, 54, .78); }
.membership-confirm-icon { display: grid; width: 50px; height: 50px; place-items: center; margin-bottom: 14px; border-radius: 15px; color: #081629; background: var(--plan-accent); font-size: 22px; }
.membership-confirm h2 { margin: 9px 0; color: #fff; font-size: 30px; }
.membership-confirm p { max-width: 470px; margin: 0; color: #aebdd0; line-height: 1.65; font-size: 13px; }
.membership-confirm p strong { color: #e7f1ff; }
.membership-confirm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.membership-confirm-pills span { padding: 8px 10px; border-radius: 999px; background: rgba(142, 190, 247, .12); color: #b8d7ff; font-size: 11px; }
.membership-footnote { margin: 16px 0 0; color: #7890ab; font-size: 10px; }
.membership-footnote i { margin-right: 5px; color: #77b6ff; }
.membership-settings-card { display: flex; align-items: center; gap: 13px; margin-top: 13px; }
.membership-settings-mark { display: grid; width: 39px; height: 39px; flex: none; place-items: center; border-radius: 12px; color: #061326; background: #9bcaff; }
.membership-settings-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.membership-settings-copy strong { font-size: 14px; }
.membership-reward-line { color: #79b7ff; font-size: 10px; }

@media (max-width: 760px) {
    .membership-shell { display: block; max-height: calc(100vh - 20px); border-radius: 21px; }
    .membership-hero { min-height: 180px; padding: 24px; }
    .membership-hero h1 { max-width: 240px; margin: 10px 0 5px; font-size: 27px; }
    .membership-hero > p { max-width: 360px; font-size: 11px; }
    .membership-theatre-art { right: -30px; bottom: -100px; left: 48%; opacity: .65; transform: scale(.8); transform-origin: bottom right; }
    .membership-flow { padding: 25px 20px; }
}
@media (max-width: 480px) {
    .membership-gate { padding: 10px; }
    .membership-plan-grid, .membership-question-grid { grid-template-columns: 1fr; }
    .membership-plan { min-height: 0; }
    .membership-settings-card { align-items: flex-start; flex-wrap: wrap; }
    .membership-settings-card .btn { margin-left: 52px; }
}

/* Refined onboarding composition: offers and the welcome-desk questionnaire
   are two deliberate scenes, rather than competing for one panel. */
.membership-shell { display: block; width: min(1180px, 100%); max-height: min(780px, calc(100vh - 48px)); }
.membership-stage { min-height: 600px; }
.membership-stage[hidden] { display: none !important; }
.membership-stage-plans { padding: 48px 54px 36px; background: linear-gradient(150deg, rgba(10, 26, 49, .99), rgba(7, 13, 25, .99)); }
.membership-stage-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.membership-stage-header h1 { max-width: 590px; margin: 14px 0 10px; color: #fff; font-size: clamp(31px, 4vw, 52px); line-height: .98; letter-spacing: -.035em; }
.membership-stage-header p { max-width: 610px; margin: 0; color: #9eafc5; font-size: 13px; line-height: 1.6; }
.membership-stage-count { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; color: #7fa5cf; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.membership-stage-count i { font-size: 8px; opacity: .65; }
.membership-stage-plans .membership-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.membership-stage-plans .membership-plan { min-height: 314px; justify-content: flex-end; overflow: hidden; padding: 19px; border-radius: 19px; border-color: rgba(188, 215, 245, .2); background-color: #14253e; background-image: linear-gradient(180deg, rgba(7, 17, 33, .08) 10%, rgba(5, 11, 20, .93) 78%), var(--plan-art, linear-gradient(150deg, rgba(24,46,76,.95), rgba(8,14,26,.98))); background-size: cover; background-position: center; }
.membership-stage-plans .membership-plan::before { content: ''; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--plan-accent) 48%, transparent); border-radius: inherit; opacity: .6; pointer-events: none; }
.membership-stage-plans .membership-plan:hover, .membership-stage-plans .membership-plan.selected { transform: translateY(-6px); border-color: var(--plan-accent); box-shadow: 0 18px 38px rgba(0,0,0,.34), 0 0 0 1px color-mix(in srgb, var(--plan-accent) 55%, transparent); }
.membership-stage-plans .membership-plan-top { font-size: 22px; }
.membership-stage-plans .membership-plan-tagline { min-height: 42px; color: #d3dfef; font-size: 11.5px; text-shadow: 0 1px 8px #020712; }
.membership-stage-plans .membership-plan-ads { margin-top: 2px; font-size: 12px; text-shadow: 0 1px 8px #020712; }
.membership-stage-plans .membership-plan-features { gap: 7px; color: #edf5ff; font-size: 11px; text-shadow: 0 1px 8px #020712; }
.membership-stage-plans .membership-plan-features i { color: var(--plan-accent); }
.membership-plan-selection { min-height: 39px; display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #87a7ca; font-size: 11px; }
.membership-plan-selection.is-ready { color: #d8eaff; }
.membership-plan-selection.is-ready i { color: #8ec5ff; }
.membership-stage-plans .membership-next { width: auto; min-width: 265px; margin-top: 7px; }
.membership-stage-plans .membership-footnote { margin-top: 18px; }
.membership-stage-theatre { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: #0b0c11; }
.membership-theatre-scene { position: relative; min-height: 600px; overflow: hidden; background-image: linear-gradient(90deg, rgba(4, 10, 18, .04) 0%, rgba(4, 10, 18, .16) 62%, rgba(4, 10, 18, .72) 100%), linear-gradient(0deg, rgba(3, 8, 16, .65), transparent 48%), url('/assets/membership-theatre-bg.png'); background-color: #081221; background-size: cover; background-position: left center; }
.membership-theatre-scene::before { content: ''; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(120deg, transparent 30%, rgba(255, 220, 124, .24) 31%, transparent 46%), linear-gradient(240deg, transparent 35%, rgba(110, 181, 255, .16) 36%, transparent 53%); }
.membership-theatre-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(4, 9, 17, .78) 100%), linear-gradient(0deg, rgba(3,8,16,.96), transparent 55%); }
.membership-theatre-rays { position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(115deg, transparent 0 55px, rgba(255,255,255,.08) 56px 58px, transparent 59px 105px); transform: skewX(-11deg) scale(1.25); }
.membership-stage-theatre .membership-theatre-screen { z-index: 2; left: 10%; right: 14%; top: 16%; height: 230px; border-width: 8px; border-color: rgba(226, 190, 101, .62); background: linear-gradient(150deg, #123e6a, #287bad 56%, #112443); box-shadow: 0 20px 75px rgba(0,0,0,.55); }
.membership-stage-theatre .membership-theatre-screen { left: auto; right: 6%; width: 45%; height: 148px; border-width: 5px; background: rgba(18, 62, 106, .72); backdrop-filter: blur(2px); }
.membership-stage-theatre .membership-theatre-screen span { font-size: 10px; }
.membership-stage-theatre .membership-theatre-screen strong { font-size: clamp(24px, 4vw, 48px); letter-spacing: .16em; }
.membership-stage-theatre .membership-theatre-screen small { margin-top: 9px; color: rgba(234,245,255,.68); font-size: 11px; }
.membership-reception-desk { position: absolute; z-index: 3; left: 4%; right: 8%; bottom: 0; height: 31%; border-top: 2px solid rgba(220, 177, 82, .52); background: linear-gradient(180deg, rgba(120, 76, 32, .76), rgba(29, 18, 17, .98)); box-shadow: 0 -16px 34px rgba(0,0,0,.3); transform: perspective(400px) rotateX(9deg); transform-origin: bottom; }
.membership-reception-desk { left: 20%; right: 3%; height: 24%; background: linear-gradient(180deg, rgba(120, 76, 32, .34), rgba(29, 18, 17, .52)); }
.membership-receptionist { position: absolute; z-index: 4; left: 11%; bottom: 18%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.19); border-radius: 15px; background: rgba(5, 12, 22, .75); color: #f5c84b; backdrop-filter: blur(12px); }
.membership-receptionist-avatar { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: #e4b957; color: #0b1e35; }
.membership-receptionist strong, .membership-receptionist small { display: block; line-height: 1.35; }
.membership-receptionist strong { color: #fff; font-size: 11px; } .membership-receptionist small { color: #a9bad0; font-size: 10px; }
.membership-question-panel { display: flex; flex-direction: column; justify-content: center; padding: 42px 42px 34px; background: linear-gradient(160deg, rgba(18, 19, 24, .97), rgba(5, 7, 12, .99)); }
.membership-survey-panel { position: relative; isolation: isolate; overflow: hidden; }
.membership-survey-panel::before { content: ''; position: absolute; z-index: -1; inset: 8% -22% 42% 26%; background: radial-gradient(circle, rgba(130, 140, 163, .13), transparent 64%); filter: blur(24px); pointer-events: none; }
.membership-survey-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.membership-stage-theatre .membership-kicker { color: #c7ccd5; }
.membership-question-panel h2 { max-width: 440px; margin: 17px 0 8px; color: #f7fbff; font-size: clamp(27px, 3vw, 38px); line-height: 1.03; letter-spacing: -.025em; }
.membership-question-intro { max-width: 470px; margin: 0 0 22px; color: #96a8bf; font-size: 12px; line-height: 1.6; }
.membership-stage-theatre .membership-question-intro { color: #a6a8b0; }
.membership-survey-step { flex: none; padding: 8px 10px; border: 1px solid rgba(139, 190, 255, .22); border-radius: 999px; color: #a9cfff; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.membership-stage-theatre .membership-survey-step { border-color: rgba(220, 224, 235, .22); color: #d6dbe4; }
.membership-survey-progress { height: 3px; margin: 2px 0 26px; overflow: hidden; border-radius: 99px; background: rgba(142, 190, 247, .12); }
.membership-stage-theatre .membership-survey-progress { background: rgba(220, 224, 235, .12); }
.membership-survey-progress span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d8dce5, #8d96a8); transition: width .35s ease; }
.membership-question-viewport { overflow: hidden; margin: 0 -4px; }
.membership-question-track { display: flex; width: 500%; transition: transform .42s cubic-bezier(.22, .8, .22, 1); }
.membership-question-slide { flex: 0 0 20%; min-width: 0; padding: 4px 4px 8px; }
.membership-question-number { display: block; margin-bottom: 18px; color: #7ca8d8; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.membership-stage-theatre .membership-question-number { color: #b5bbc5; }
.membership-question-slide label { display: block; color: #f5f9ff; font-size: 19px; font-weight: 750; line-height: 1.25; }
.membership-question-slide p { max-width: 420px; min-height: 39px; margin: 9px 0 22px; color: #8fa4be; font-size: 12px; line-height: 1.55; }
.membership-question-slide .glass-input { width: 100%; min-height: 48px; color: #f1f2f5; background: rgba(20, 21, 27, .92); border-color: rgba(190, 196, 210, .24); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.membership-question-slide input.glass-input { padding: 0 14px; }
.membership-survey-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.membership-survey-actions .btn-primary { min-width: 142px; justify-content: center; }
.membership-survey-panel .membership-footnote { margin-top: 18px; }
.membership-theatre-pass { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--plan-accent, #8ec5ff) 42%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--plan-accent, #8ec5ff) 11%, transparent); color: #a9cfff; font-size: 11px; }
.membership-theatre-pass i { color: var(--plan-accent, #8ec5ff); }
.membership-theatre-pass span { color: #839ab6; } .membership-theatre-pass strong { margin-left: auto; color: #fff; font-size: 14px; }
.membership-question-panel .membership-question-grid { grid-template-columns: 1fr; gap: 13px; }
.membership-question-panel .membership-step-actions { margin-top: 24px; }
body.membership-gate-locked .sponsor-nudge,
body.membership-gate-locked .install-nudge,
body.membership-gate-locked .ad-consent { display: none !important; }

@media (max-width: 900px) {
    .membership-stage-plans { padding: 34px 26px 28px; }
    .membership-stage-plans .membership-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .membership-stage-theatre { grid-template-columns: 1fr; }
    .membership-theatre-scene { min-height: 280px; }
    .membership-question-panel { padding: 28px 26px; }
}
@media (max-width: 520px) {
    .membership-shell { max-height: calc(100vh - 18px); }
    .membership-stage-header { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
    .membership-stage-header h1 { font-size: 33px; }
    .membership-stage-plans .membership-plan-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .membership-stage-plans .membership-plan { min-height: 238px; padding: 13px; }
    .membership-stage-plans .membership-plan-top { font-size: 17px; }
    .membership-stage-plans .membership-plan-features { gap: 4px; font-size: 9.5px; }
    .membership-stage-plans .membership-next { width: 100%; }
    .membership-stage-theatre .membership-theatre-screen { top: 14%; height: 125px; }
    .membership-stage-theatre .membership-theatre-screen strong { font-size: 26px; }
}

/* Keep the two onboarding actions reachable on compact laptop windows. The
   shell can scroll as one composed scene, while the spacious desktop layout
   remains unchanged. */
@media (max-height: 720px) and (min-width: 521px) {
    /* Compact laptop windows should show the complete pass chooser instead of
       clipping the CTA behind a tall inner scrollbar. */
    .membership-shell { height: calc(100vh - 24px); max-height: calc(100vh - 24px); overflow-y: auto; }
    .membership-stage { min-height: 0; }
    .membership-stage-plans { padding: 16px 42px 12px; }
    .membership-stage-header { margin-bottom: 10px; }
    .membership-stage-header h1 { margin-top: 7px; margin-bottom: 7px; font-size: clamp(32px, 3.8vw, 46px); }
    .membership-billing-row { margin-top: 2px; margin-bottom: 10px; padding-top: 9px; padding-bottom: 9px; }
    .membership-coupon-row { margin-top: 8px; margin-bottom: 8px; padding-top: 8px; padding-bottom: 8px; }
    .membership-stage-plans .membership-plan { min-height: 198px; padding: 13px; }
    .membership-stage-plans .membership-plan-tagline { min-height: 32px; font-size: 11px; }
    .membership-stage-plans .membership-plan-features { gap: 3px; font-size: 10px; }
    .membership-plan-selection { min-height: 26px; margin-top: 7px; }
    .membership-stage-plans .membership-next { min-height: 42px; margin-top: 3px; padding-top: 10px; padding-bottom: 10px; }
    .membership-stage-plans .membership-footnote { margin-top: 10px; }
    .membership-stage-theatre .membership-theatre-scene { min-height: 480px; }
}

/* Motion-sensitive users get the stills without the slow Ken Burns drift */
@media (prefers-reduced-motion: reduce) {
    .auth-gate-slide { transition: opacity 0.3s ease; transform: none; }
    .auth-gate-slide.active { transform: none; }
}
/* --- Subtitle quick-toggle (sits beside the server picker over the video) --- */
.player-subs-btn {
    position: absolute; top: 14px; right: 150px; z-index: 4;
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-full);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 8px 16px; cursor: pointer; transition: var(--transition-fast);
}
.player-subs-btn:hover { border-color: var(--accent-color); background: rgba(var(--accent-rgb), 0.25); }
.player-subs-btn.is-on { border-color: var(--brand-yellow); color: var(--brand-yellow); }

@media (max-width: 640px) {
    .player-subs-btn { right: 14px; top: 58px; }
}

/* Signed-in account card: the provider's profile picture fills the avatar circle. */
.account-avatar { overflow: hidden; }
.account-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Google's official button, drawn by its script, centred in the gate's stack. */
.auth-google-button {
    display: flex;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Install nudge. Bottom-left, so it never meets the guide launcher (bottom-right)
   or Google's One Tap (top-right). */
.install-nudge {
    position: fixed;
    left: 24px;
    bottom: 22px;
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: min(380px, calc(100vw - 32px));
    padding: 16px 44px 16px 16px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.install-nudge.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
body.auth-gate-locked .install-nudge { display: none; }
.install-nudge-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.install-nudge-body { min-width: 0; }
.install-nudge-body strong { display: block; font-size: 15px; margin-bottom: 4px; }
.install-nudge-body p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.install-nudge-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.install-nudge-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.install-nudge-close:hover { background: var(--glass-border); color: var(--text-primary); }
@media (max-width: 640px) {
    .install-nudge { left: 16px; right: 16px; bottom: 88px; width: auto; }
}

/* --- Help & FAQ --- */
.faq-page { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); }
.faq-search i { color: var(--text-muted); }
.faq-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text-primary); font-size: 15px; }
.faq-topic h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 8px 0 10px; }
.faq-item { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); margin-bottom: 8px; }
.faq-item[open] { border-color: var(--glass-border-hover); }
.faq-item summary { position: relative; cursor: pointer; list-style: none; padding: 14px 46px 14px 16px; font-weight: 600; color: var(--text-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 16px 14px; color: var(--text-secondary); font-size: 14px; line-height: 1.65; }
.faq-item .faq-link { margin: 0 16px 14px; }
.faq-empty { color: var(--text-muted); }
.faq-contact { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.faq-contact a { color: var(--text-primary); text-decoration: underline; }

/* --- Sidebar account button: photo + name once signed in --- */
.account-nav { position: relative; }
.account-nav .account-nav-avatar {
    width: 26px; height: 26px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%; overflow: hidden;
    font-size: 12px; font-weight: 700;
}
.account-nav .account-nav-avatar i { width: auto; font-size: 17px; }
.account-nav.logged-in .account-nav-avatar { background: var(--accent-color); color: var(--on-accent); box-shadow: 0 0 0 2px var(--glass-border-hover); }
.account-nav .account-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav .account-nav-more { display: none; margin-left: auto; font-size: 13px; opacity: 0.7; }
.account-nav.logged-in .account-nav-more { display: inline-block; }
.account-nav.logged-in { color: var(--text-primary); }
body.sidebar-collapsed .nav-link span.account-nav-avatar { display: grid; }
body.sidebar-collapsed .account-nav .account-nav-more { display: none; }
body.sidebar-collapsed .account-nav .account-nav-avatar { width: 30px; height: 30px; }

/* --- Account menu --- */
.account-menu {
    position: fixed; z-index: 10050;
    width: 280px; padding: 8px;
    background: var(--bg-surface); color: var(--text-primary);
    border: 1px solid var(--glass-border-hover); border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.account-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.account-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--glass-border); margin-bottom: 6px; }
.account-menu-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-color); color: var(--on-accent); font-weight: 700; }
.account-menu-who { min-width: 0; display: flex; flex-direction: column; }
.account-menu-who strong, .account-menu-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-who small { color: var(--text-muted); font-size: 12px; }
.account-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: var(--radius-md);
    background: transparent; color: var(--text-secondary); font-size: 14px; text-align: left; cursor: pointer;
}
.account-menu button i { width: 18px; text-align: center; }
.account-menu button:hover { background: var(--glass-border); color: var(--text-primary); }
.account-menu-sep { height: 1px; background: var(--glass-border); margin: 6px 4px; }
.account-menu .account-menu-signout:hover { color: #f87171; }

/* --- My account page --- */
.account-page { display: flex; flex-direction: column; gap: 18px; max-width: 1000px; }
.account-hero-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.account-hero-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-color); color: var(--on-accent); font-size: 28px; font-weight: 700; flex-shrink: 0; }
.account-hero-info { flex: 1; min-width: 200px; }
.account-hero-info h2 { font-size: 22px; margin: 0 0 4px; }
.account-hero-info p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.account-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.account-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius-md); }
.account-kpi i { color: var(--text-muted); font-size: 14px; }
.account-kpi strong { font-size: 24px; line-height: 1.2; }
.account-kpi span { color: var(--text-secondary); font-size: 12px; }
.account-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.account-chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.account-chart-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.account-chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--accent-color); min-height: 0; }
.account-chart-col span { font-size: 11px; color: var(--text-muted); }
.account-chart-note, .account-empty, .account-footnote { color: var(--text-muted); font-size: 13px; margin: 10px 0 0; }
.account-footnote { margin: 0; line-height: 1.5; }
.account-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.account-activity-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--glass-border); }
.account-activity-row:first-child { border-top: 0; }
.account-activity-poster { width: 46px; height: 69px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--bg-surface-elevated); }
.account-activity-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-activity-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-activity-info span { color: var(--text-secondary); font-size: 12.5px; }
.account-activity-info em { font-style: normal; color: var(--text-primary); }
.account-activity-bar { height: 4px; border-radius: 4px; background: var(--glass-border); overflow: hidden; max-width: 260px; }
.account-activity-bar i { display: block; height: 100%; background: var(--accent-color); }
.account-activity-actions { display: flex; gap: 6px; flex-shrink: 0; }
.account-activity-remove { padding-left: 10px; padding-right: 10px; }
@media (max-width: 560px) {
    .account-activity-actions .btn-primary { display: none; }
}

/* --- Toast notices --- */
.app-toasts {
    position: fixed; left: 50%; bottom: 28px; z-index: 10060;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: min(460px, calc(100vw - 32px));
    pointer-events: none;
}
.app-toast {
    max-width: 100%; padding: 12px 18px;
    background: var(--bg-surface-elevated); color: var(--text-primary);
    border: 1px solid var(--glass-border-hover); border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    font-size: 14px; line-height: 1.45; text-align: center;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-toast.show { opacity: 1; transform: none; }
.app-toast-error { border-color: rgba(248, 113, 113, 0.55); }

.account-page .settings-card { max-width: none; width: 100%; box-sizing: border-box; }

.account-sync { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.account-sync .account-footnote { flex: 1; min-width: 220px; }

/* Account menu: signed-in and signed-out items; the menu opens for everyone. */
.account-menu [hidden] { display: none !important; }
.account-menu .account-menu-signin { color: var(--text-primary); font-weight: 600; }
.account-nav .account-nav-more { display: inline-block; }
body.sidebar-collapsed .account-nav .account-nav-more { display: none; }

/* --- Settings: side menu of sections --- */
.settings-page-heading { gap: 16px; }
.settings-back-btn { flex-shrink: 0; white-space: nowrap; }
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1100px; }
.settings-nav {
    position: sticky; top: 24px;
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px; border-radius: var(--radius-lg);
    background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.settings-nav-group { padding: 12px 12px 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.settings-nav-group:first-child { padding-top: 4px; }
.settings-nav button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 9px 12px; border: 0; border-radius: var(--radius-md);
    background: transparent; color: var(--text-secondary);
    font-size: 14px; text-align: left; cursor: pointer;
}
.settings-nav button i { width: 18px; text-align: center; }
.settings-nav button:hover { background: var(--glass-border); color: var(--text-primary); }
.settings-nav button.active { background: var(--glass-border-hover); color: var(--text-primary); font-weight: 600; }
.settings-content, .settings-section { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.settings-section[hidden] { display: none !important; }
.settings-section .settings-card { margin: 0; max-width: none; }
.settings-section-title { font-size: 22px; margin: 0; }
.settings-select { min-width: 220px; max-width: 100%; }
.settings-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.settings-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; font-size: 13px; }
.settings-links a, .settings-section .setting-desc a { color: var(--text-primary); text-decoration: underline; }
.marketing-preference-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}
.marketing-preference-row .setting-info { min-width: 0; }
.marketing-preference-status {
    grid-column: 1 / -1;
    min-height: 16px;
    color: var(--text-muted);
    font-size: 12px;
}
@media (max-width: 860px) {
    .settings-layout { grid-template-columns: 1fr; gap: 16px; }
    .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding: 6px; }
    .settings-nav-group { display: none; }
    .settings-nav button { width: auto; white-space: nowrap; }
    .settings-select { min-width: 0; width: 100%; }
}

/* --- History list --- */
#browse-grid.history-list { display: block; }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-secondary); font-size: 14px; }
.history-day { margin: 22px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.history-row {
    display: flex; align-items: center; gap: 16px;
    padding: 12px; margin-bottom: 10px;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
}
#account-activity .history-row { background: transparent; border-width: 0 0 1px; border-radius: 0; margin: 0; padding: 12px 0; }
#account-activity .history-row:last-child { border-bottom: 0; }
.history-poster { flex-shrink: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.history-poster img { display: block; width: 64px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--bg-surface-elevated); }
.history-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.history-info strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-info span { font-size: 13px; color: var(--text-secondary); }
.history-info .history-where { color: var(--text-primary); }
.history-bar { max-width: 320px; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--glass-border); overflow: hidden; }
.history-bar i { display: block; height: 100%; background: var(--accent-color); }
.history-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.history-remove { padding-left: 11px; padding-right: 11px; }
@media (max-width: 640px) {
    .history-row { flex-wrap: wrap; }
    .history-actions { width: 100%; justify-content: flex-start; }
}

/* Settings on one page: sections stack with room to breathe; the menu tracks them. */
.settings-content { gap: 36px; }
.settings-section { scroll-margin-top: 24px; gap: 14px; }
.settings-section-title { font-size: 20px; }
.account-row { flex-wrap: wrap; }
.account-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.settings-section .setting-row { gap: 20px; }
.settings-section .setting-info { min-width: 0; }
@media (max-width: 560px) {
    .settings-page-heading { align-items: flex-start; flex-direction: column; }
    .settings-back-btn { width: 100%; }
    .account-actions { width: 100%; margin-left: 0; }
    .account-actions .btn { flex: 1; }
    .settings-section .setting-row { flex-wrap: wrap; }
    .settings-section .setting-control { width: 100%; }
}


/* --- Advertising: a labelled slot on Discover, and the consent notice --- */
.ad-slot {
    position: relative;
    overflow: hidden;
    margin: 22px 0;
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, color-mix(in srgb, var(--glass-bg) 88%, #f4c95d 12%), var(--glass-bg));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}
.ad-slot[hidden] { display: none; }
.ad-slot-chrome {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    margin-bottom: 7px;
}
.ad-slot-occasion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.ad-slot-occasion i { color: #e6b94f; }
.ad-slot-prompt {
    color: var(--text-muted);
    font-size: 11px;
}
.ad-slot-dismiss {
    width: 25px;
    height: 25px;
    margin-left: auto;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ad-slot-dismiss:hover,
.ad-slot-dismiss:focus-visible {
    border-color: var(--glass-border-hover);
    background: var(--glass-border);
    color: var(--text-primary);
}
.ad-slot-label {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.ad-slot-frame { min-height: 0; }
.ad-slot-adsterra {
    max-width: 760px;
    margin: 24px auto;
    text-align: center;
}
.ad-slot-monetag-guest {
    max-width: 760px;
    margin: 20px auto;
}
.ad-slot-adsterra .ad-slot-frame {
    display: flex;
    justify-content: center;
    min-height: 0;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--glass-border) 72%, #e6b94f 28%);
    border-radius: calc(var(--radius-md) - 2px);
    background: color-mix(in srgb, var(--glass-bg) 90%, #e6b94f 10%);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ad-slot-adsterra:not([hidden]):hover .ad-slot-frame {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--glass-border-hover) 72%, #e6b94f 28%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}
.ad-slot-adsterra .adsterra-frame {
    width: min(100%, 728px);
    height: 132px;
    border: 0;
    background: transparent;
}

/* Monetag direct-link offer: a small, optional guest-Home card. The destination
   is activated only by the visitor's anchor click; no ad script or redirect. */
.monetag-guest-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 900px;
    margin: 18px auto 24px;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb, var(--glass-border-hover) 58%, #e6b94f 42%);
    border-radius: var(--radius-md);
    background: linear-gradient(115deg, color-mix(in srgb, var(--glass-bg) 92%, #e6b94f 8%), var(--glass-bg));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}
.monetag-guest-offer[hidden] { display: none; }
.monetag-guest-offer-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.monetag-guest-offer h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 750;
}
.monetag-guest-offer p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}
.monetag-guest-offer-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--glass-border-hover) 55%, #e6b94f 45%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--glass-bg) 78%, #e6b94f 22%);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.monetag-guest-offer-link:hover,
.monetag-guest-offer-link:focus-visible {
    transform: translateY(-1px);
    border-color: #e6b94f;
    box-shadow: 0 8px 20px rgba(230, 185, 79, 0.16);
}
@media (max-width: 640px) {
    .monetag-guest-offer { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px; }
}

/* First-party helper toast that points to a filled partner placement. It is
   clearly labelled, dismissible, and never performs an automatic redirect. */
.sponsor-nudge {
    position: fixed;
    right: 24px;
    bottom: 86px;
    z-index: 9997;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    padding: 14px 42px 14px 14px;
    --gift-accent: color-mix(in srgb, var(--accent-color) 68%, var(--brand-yellow) 32%);
    --gift-glow: color-mix(in srgb, var(--accent-color) 42%, transparent);
    background: radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--gift-accent) 24%, transparent), transparent 48%), linear-gradient(135deg, color-mix(in srgb, var(--bg-surface) 88%, var(--gift-accent) 12%), var(--bg-surface));
    color: var(--text-primary);
    border: 1px solid color-mix(in srgb, var(--glass-border-hover) 58%, var(--gift-accent) 42%);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 0 34px var(--gift-glow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.sponsor-nudge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(112deg, transparent 18%, color-mix(in srgb, var(--gift-accent) 65%, white 35%) 47%, transparent 64%);
    background-size: 220% 100%;
    mix-blend-mode: screen;
}
.sponsor-nudge.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    animation: giftWaterBloom 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.sponsor-nudge.open::before { opacity: .42; animation: giftWaterSheen 1.35s ease-out both; }
body.auth-gate-locked .sponsor-nudge,
body.desktop-app .sponsor-nudge { display: none; }
.sponsor-nudge-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gift-accent) 72%, #fff 28%), color-mix(in srgb, var(--gift-accent) 76%, #7b5417 24%));
    color: #1b2231;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.sponsor-nudge.open .sponsor-nudge-icon { animation: giftIconWave 1.25s cubic-bezier(.2,.8,.2,1) both; }
.sponsor-nudge-body { min-width: 0; }
.sponsor-nudge-body strong { display: block; margin-bottom: 4px; font-size: 14px; }
.sponsor-nudge-body p { margin: 0 0 10px; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.sponsor-nudge-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.sponsor-nudge-close:hover,
.sponsor-nudge-close:focus-visible { background: var(--glass-border); color: var(--text-primary); }
@media (max-width: 640px) {
    .sponsor-nudge { right: 16px; bottom: 88px; width: auto; }
    .ad-slot-chrome { align-items: flex-start; flex-wrap: wrap; }
    .ad-slot-prompt { flex-basis: 100%; }
}

/* Short, infrequent liquid highlights: a cinematic cue rather than a noisy
   loop. The system respects reduced-motion preferences below. */
@keyframes giftWaterBloom {
    0% { opacity: 0; transform: translateY(14px) scale(.97); filter: saturate(.8); }
    55% { opacity: 1; transform: translateY(-2px) scale(1.012); filter: saturate(1.12); }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes giftWaterSheen {
    0% { background-position: 120% 0; }
    100% { background-position: -35% 0; }
}
@keyframes giftIconWave {
    0% { transform: translateY(8px) rotate(-4deg) scale(.92); }
    45% { transform: translateY(-2px) rotate(2deg) scale(1.06); }
    72% { transform: translateY(1px) rotate(-1deg) scale(1); }
    100% { transform: none; }
}
@keyframes cinematicWaterSheen {
    0% { text-shadow: 0 0 0 transparent; }
    34% { text-shadow: 0 0 8px color-mix(in srgb, var(--accent-color) 70%, white 30%), 0 0 18px color-mix(in srgb, var(--accent-color) 38%, transparent); }
    100% { text-shadow: 0 0 0 transparent; }
}
.section-title.cinematic-shimmer {
    color: var(--text-primary);
    animation: cinematicWaterSheen 1.25s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
    .sponsor-nudge.open, .sponsor-nudge.open::before, .sponsor-nudge.open .sponsor-nudge-icon,
    .section-title.cinematic-shimmer { animation: none !important; }
}
.ad-consent {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 10055;
    transform: translate(-50%, 14px);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    width: min(680px, calc(100vw - 32px));
    padding: 16px 20px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--glass-border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.ad-consent.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
body.auth-gate-locked .ad-consent { display: none; }
.ad-consent-body { flex: 1; min-width: 240px; }
.ad-consent-body strong { display: block; margin-bottom: 4px; font-size: 15px; }
.ad-consent-body p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.ad-consent-body a { color: var(--text-primary); text-decoration: underline; }
.ad-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
    .ad-consent { bottom: 88px; }
    .ad-consent-actions { width: 100%; }
    .ad-consent-actions .btn { flex: 1; }
}

/* Ad code runs inside this frame and cannot paint outside it. */
.ad-frame { display: block; width: 100%; height: 132px; border: 0; background: transparent; }
/* Maverick 4.0 rewards, update center and billing rhythm */
.rewards-card, .updates-card { display: grid; gap: 18px; }
.rewards-card-head, .updates-head { display: flex; align-items: center; gap: 13px; }
.rewards-mark { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 13px; color: #09111f; background: linear-gradient(135deg, #f5c84b, #ff9e63); }
.rewards-card-head strong, .updates-head strong { display: block; margin: 3px 0; font-size: 17px; }
.rewards-referral-row, .rewards-coupon-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--glass-border); }
.rewards-referral-row code, .account-rewards-grid code { display: block; max-width: 360px; margin-top: 5px; overflow: hidden; color: var(--text-primary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rewards-coupon-row label { display: grid; gap: 3px; min-width: 0; }
.rewards-coupon-input { width: 190px; min-height: 36px; }
.rewards-developer-note { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(245, 200, 75, .24); border-radius: 12px; background: rgba(245, 200, 75, .06); color: #f5c84b; }
.rewards-developer-note span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rewards-developer-note small { color: var(--text-muted); font-size: 10px; line-height: 1.35; }
.rewards-developer-note code { color: var(--text-primary); font-size: 11px; white-space: nowrap; }
.updates-list { display: grid; gap: 10px; }
.update-item { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid var(--glass-border); }
.update-item i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent-color); }
.update-item strong { display: block; font-size: 13px; }
.update-item p { margin: 3px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.update-item time { color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.account-rewards-card { display: grid; gap: 13px; }
.account-rewards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-rewards-grid > div { display: grid; gap: 4px; min-width: 0; }
.account-rewards-grid strong { font-size: 20px; }
.account-rewards-grid span:last-child { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.membership-billing-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 5px 0 18px; padding: 12px 14px; border: 1px solid rgba(151, 187, 228, .2); border-radius: 14px; background: rgba(8, 17, 31, .56); }
.membership-billing-kicker { display: block; color: #88a7cc; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.membership-billing-row strong { display: block; margin-top: 3px; color: #eaf3ff; font-size: 13px; }
.membership-billing-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); }
.membership-billing-toggle button { border: 0; border-radius: 999px; padding: 8px 12px; color: #8191a7; background: transparent; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.membership-billing-toggle button.active { color: #061326; background: #f5c84b; box-shadow: 0 2px 14px rgba(245,200,75,.25); }
.membership-billing-toggle button[data-billing-cycle="monthly"].active { color: #e7ecf3; background: #4b5768; box-shadow: none; }
.membership-billing-toggle button span { margin-left: 3px; font-size: 9px; }
.membership-checkout { width: 100%; justify-content: center; margin-top: 8px; }
.membership-coupon-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(151,187,228,.18); border-radius: 14px; background: rgba(8,17,31,.42); color: #9eacc0; font-size: 11px; }
.membership-coupon-row label { display: grid; gap: 3px; }
.membership-coupon-row input { width: min(240px, 44%); min-height: 36px; }
.billing-account-card { display: grid; gap: 12px; }
.billing-status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #9eacc0; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.billing-status-pill.is-active { background: rgba(91,205,145,.15); color: #77e0a6; }
.billing-status-pill.is-warning { background: rgba(245,200,75,.15); color: #f5c84b; }
.billing-status-pill.is-expired { background: rgba(255,105,105,.14); color: #ff9191; }
.billing-period-note { display: block; margin-top: .28rem; color: var(--text-muted, #8d99af); font-size: .76rem; line-height: 1.35; }
.billing-account-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.billing-account-summary > div { display: grid; gap: 4px; min-width: 0; }
.billing-account-summary strong { color: var(--text-primary, #eef4ff); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billing-invoice-list { display: grid; gap: 8px; border-top: 1px solid var(--glass-border); padding-top: 10px; }
.billing-invoice-head,
.billing-invoice-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .55fr; align-items: center; gap: 12px; font-size: 12px; }
.billing-invoice-head { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.billing-invoice-row strong { color: var(--text-primary, #eef4ff); }
.billing-invoice-status { text-transform: capitalize; }
.billing-invoice-muted { color: var(--text-muted); }
.billing-invoice-row a { color: var(--accent, #f5c84b); }
.billing-page-heading { align-items: flex-end; }
#panel-billing { min-height: calc(100vh - 24px); margin: -8px; padding: 28px; border-radius: 22px; background: radial-gradient(circle at 88% 0%, rgba(76, 28, 96, .22), transparent 36%), #05080f; color: #edf4ff; }
#panel-billing .page-title { color: #f4f7ff; }
#panel-billing .page-subtitle { color: #9aadc5; }
.billing-brand-kicker { display: block; margin-bottom: 7px; color: #8dbcf2; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.billing-page-shell {
    max-width: 1080px;
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(147, 184, 232, .22);
    border-radius: 24px;
    background: radial-gradient(circle at 12% 0%, rgba(47, 104, 175, .24), transparent 38%), linear-gradient(145deg, #081221, #05080f 68%);
    color: #edf4ff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}
.billing-brand-cover { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 4px 16px; border-bottom: 1px solid rgba(147, 184, 232, .18); }
.billing-cover-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #061326; background: #f6c945; box-shadow: 0 7px 24px rgba(246, 201, 69, .2); }
.billing-brand-cover div { display: grid; gap: 3px; }
.billing-brand-cover strong { font-size: 14px; letter-spacing: .04em; }
.billing-brand-cover span:not(.billing-cover-mark):not(.billing-cover-lock) { color: #92a9c5; font-size: 12px; }
.billing-cover-lock { margin-left: auto; color: #92a9c5; font-size: 11px; white-space: nowrap; }
.billing-page-card { padding: 20px; border-color: rgba(147, 184, 232, .2); background: rgba(10, 18, 32, .74); }
.billing-page-card .settings-card-title, .billing-page-card .billing-account-summary strong { color: #edf4ff; }
.billing-page-card .setting-label { color: #8fa9c7; }
.billing-page-card .setting-desc, .billing-page-card .billing-invoice-head, .billing-page-card .billing-invoice-muted { color: #94a9c2; }
.billing-page-summary { padding: 14px 0; border-top: 1px solid rgba(147, 184, 232, .12); border-bottom: 1px solid rgba(147, 184, 232, .12); }
.billing-page-actions { justify-content: flex-start; }
.billing-page-actions .btn-secondary { color: #dce9fb; background: rgba(255,255,255,.06); border-color: rgba(147, 184, 232, .25); }
.billing-page-actions .btn-secondary:hover { background: rgba(147, 184, 232, .14); }
.billing-page-card .billing-invoice-list { border-top-color: rgba(147, 184, 232, .16); }
.billing-page-card .billing-invoice-row { color: #d8e5f6; }
/* Night mode keeps Billing on the same neutral charcoal canvas as Settings.
   The deep-navy treatment remains available for System mode, but should not
   flash or linger when a user explicitly chose Night. */
body.theme-dark #panel-billing {
    background: radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .045), transparent 36%), #08080a;
}
body.theme-dark .billing-page-shell {
    background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .035), transparent 38%), linear-gradient(145deg, #141418, #0c0c10 68%);
    border-color: rgba(255, 255, 255, .12);
}
body.theme-dark .billing-page-card { background: rgba(17, 17, 20, .9); border-color: rgba(255, 255, 255, .12); }
.membership-plan-price { display: block; color: #f4f8ff; font-size: 18px; font-weight: 800; }
.membership-plan-price small { color: var(--plan-accent); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.membership-plan-billed { display: block; margin-top: -3px; color: #b3c3d8; font-size: 9px; font-weight: 750; letter-spacing: .02em; }
@media (max-width: 720px) {
  .rewards-referral-row, .rewards-coupon-row, .membership-billing-row, .membership-coupon-row { align-items: flex-start; flex-direction: column; }
  .rewards-coupon-input { width: min(100%, 260px); }
  .membership-coupon-row input { width: 100%; }
  .account-rewards-grid { grid-template-columns: 1fr; }
  .billing-account-summary { grid-template-columns: 1fr; }
  .billing-invoice-head { display: none; }
  .billing-invoice-row { grid-template-columns: 1fr auto; }
  .billing-invoice-row > :nth-child(3) { color: var(--text-muted); }
  .billing-page-shell { padding: 16px; border-radius: 18px; }
  .billing-page-heading { align-items: flex-start; }
  .billing-brand-cover { align-items: flex-start; flex-wrap: wrap; }
  .billing-cover-lock { width: 100%; margin-left: 50px; }
}
@media (max-width: 560px) {
    .marketing-preference-row { grid-template-columns: 1fr auto; }
}

/* Membership chooser polish: give the plans the same deliberate hierarchy as
   a premium creative product. Two roomy rows make the offers scannable instead
   of squeezing four cards into one narrow strip. */
.membership-stage-plans {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4.5vw, 58px) 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(61, 125, 211, .16), transparent 28%),
    linear-gradient(150deg, #0b2342 0%, #07111f 55%, #060b14 100%);
}
.membership-stage-header { margin-bottom: 20px; }
.membership-stage-header h1 { max-width: 700px; margin-top: 10px; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.045em; }
.membership-stage-header p { max-width: 660px; color: #a8b8cc; }
.membership-stage-count {
  padding: 8px 11px;
  border: 1px solid rgba(151, 193, 241, .19);
  border-radius: 999px;
  background: rgba(6, 15, 28, .48);
  color: #93b5dc;
  white-space: nowrap;
}
.membership-billing-row {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-color: rgba(151, 187, 228, .22);
  background: rgba(5, 14, 27, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.membership-billing-row > div:first-child { display: grid; gap: 2px; }
.membership-billing-row strong { font-size: 12px; }
.membership-billing-toggle { background: rgba(255,255,255,.06); }
.membership-billing-toggle button { min-width: 82px; padding: 8px 11px; }
.membership-billing-toggle button.active { background: #f5c84b; color: #091426; box-shadow: 0 4px 16px rgba(245, 200, 75, .24); }
.membership-billing-toggle button[data-billing-cycle="monthly"].active { color: #fff; background: #53647a; box-shadow: 0 4px 16px rgba(83, 100, 122, .25); }
.membership-coupon-row {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-color: rgba(151,187,228,.15);
  background: rgba(5, 14, 27, .34);
}
.membership-coupon-row label { gap: 2px; }
.membership-coupon-row label > span:last-child { color: #8294aa; font-size: 10px; }
.membership-coupon-row input { width: min(260px, 42%); background: rgba(13, 25, 43, .82); }
.membership-stage-plans .membership-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.membership-stage-plans .membership-plan {
  min-height: 228px;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 19px 16px;
  border-radius: 18px;
  border-color: rgba(192, 219, 249, .2);
  background-image:
    linear-gradient(180deg, rgba(7, 17, 33, .10) 5%, rgba(5, 11, 20, .94) 92%),
    var(--plan-art, linear-gradient(150deg, #1b3a60, #091321));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.16);
}
.membership-stage-plans .membership-plan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--plan-accent) 22%, transparent), transparent 38%);
  pointer-events: none;
}
.membership-stage-plans .membership-plan > * { position: relative; z-index: 1; }
.membership-stage-plans .membership-plan:hover,
.membership-stage-plans .membership-plan.selected {
  transform: translateY(-4px);
  border-color: var(--plan-accent);
  box-shadow: 0 18px 38px rgba(0,0,0,.34), 0 0 0 1px color-mix(in srgb, var(--plan-accent) 54%, transparent);
}
.membership-stage-plans .membership-plan.selected { background-image: linear-gradient(180deg, color-mix(in srgb, var(--plan-accent) 14%, transparent) 0%, rgba(5,11,20,.95) 92%), var(--plan-art, linear-gradient(150deg, #1b3a60, #091321)); }
.membership-plan-top { align-items: flex-start; }
.membership-plan-top > span { display: grid; gap: 3px; }
.membership-plan-eyebrow { color: rgba(218, 233, 249, .62); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.membership-stage-plans .membership-plan-top strong { color: var(--plan-accent); font-size: 22px; letter-spacing: -.02em; }
.membership-stage-plans .membership-plan-top > i { margin-top: 2px; color: var(--plan-accent); font-size: 15px; opacity: .88; }
.membership-plan-price-block { display: grid; gap: 3px; min-height: 45px; }
.membership-stage-plans .membership-plan-price { font-size: 28px; line-height: .95; letter-spacing: -.04em; }
.membership-stage-plans .membership-plan-price small { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: color-mix(in srgb, var(--plan-accent) 18%, transparent); font-size: 8px; vertical-align: middle; }
.membership-stage-plans .membership-plan-billed { margin-top: 0; color: #a9bbcf; font-size: 9px; }
.membership-stage-plans .membership-plan-tagline { min-height: 0; color: #d0dceb; font-size: 11px; line-height: 1.35; text-shadow: 0 1px 8px #020712; }
.membership-stage-plans .membership-plan-ads { margin-top: 1px; color: var(--plan-accent); font-size: 11px; text-shadow: 0 1px 8px #020712; }
.membership-stage-plans .membership-plan-features { gap: 4px; color: #edf5ff; font-size: 10.5px; line-height: 1.3; text-shadow: 0 1px 8px #020712; }
.membership-stage-plans .membership-plan-features i { color: var(--plan-accent); }
.membership-plan-action {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #e9f3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.membership-plan-action i { color: var(--plan-accent); font-size: 9px; transition: transform .18s ease; }
.membership-plan:hover .membership-plan-action i,
.membership-plan.selected .membership-plan-action i { transform: translateX(3px); }
.membership-plan-popular { top: 10px; right: 12px; padding: 5px 8px; background: #55b7ff; box-shadow: 0 4px 12px rgba(85,183,255,.22); }
.membership-plan-selection { min-height: 30px; margin-top: 13px; }
.membership-stage-plans .membership-next { min-width: 280px; margin-top: 4px; }
.membership-stage-plans .membership-footnote { margin-top: 12px; }

@media (max-width: 640px) {
  .membership-stage-plans .membership-plan-grid { grid-template-columns: 1fr; }
  .membership-stage-plans .membership-plan { min-height: 214px; }
  .membership-coupon-row input { width: 100%; }
}
@media (max-height: 720px) and (min-width: 641px) {
  .membership-stage-plans { padding-top: 20px; padding-bottom: 18px; }
  .membership-stage-header { margin-bottom: 12px; }
  .membership-stage-plans .membership-plan { min-height: 206px; padding: 15px 16px 13px; }
  .membership-stage-plans .membership-plan-features { gap: 3px; font-size: 10px; }
  .membership-stage-plans .membership-plan-price { font-size: 25px; }
}

/* Final pass-flow details: keep the gate in Maverick's neutral cinema
   atmosphere, keep the close affordance visible, and prevent the guide bubble
   from competing with the membership decision. */
.membership-gate { background: rgba(4, 5, 8, .72); backdrop-filter: blur(16px) saturate(.78); }
.membership-gate-backdrop { background: transparent; }
.membership-shell { border-color: rgba(255,255,255,.16); background: linear-gradient(145deg, rgba(18,19,24,.985), rgba(7,8,12,.99)); }
.membership-stage-plans { background: linear-gradient(180deg, rgba(17,18,23,.985), rgba(7,8,12,.99)); }
.membership-stage-tools { display: flex; align-items: center; gap: 10px; }
.membership-close { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #dfe5ef; background: rgba(255,255,255,.06); cursor: pointer; transition: .18s ease; }
.membership-close:hover { color: #fff; border-color: rgba(245,200,75,.66); background: rgba(245,200,75,.14); transform: translateY(-1px); }
.membership-close-theatre { position: absolute; z-index: 8; top: 22px; right: 24px; }
.membership-billing-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  min-height: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.membership-billing-row > .membership-billing-toggle { display: inline-flex; align-items: center; gap: 0; }
.membership-billing-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.membership-coupon-row {
  display: flex;
  width: max-content;
  max-width: 100%;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 14px;
  padding: 9px 12px;
}
.membership-coupon-row label { min-width: 175px; }
.membership-coupon-row input { flex: 0 0 240px; font-family: inherit; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.membership-stage-plans .membership-plan > .membership-plan-popular { position: absolute; z-index: 3; top: 10px; right: 12px; left: auto; display: inline-flex; width: max-content; max-width: calc(100% - 24px); white-space: nowrap; padding: 4px 8px; font-size: 8px; }
.membership-stage-plans .membership-plan { animation: membershipCardDrift 16s ease-in-out infinite alternate; }
.membership-stage-plans .membership-plan:nth-child(2) { animation-delay: -4s; }
.membership-stage-plans .membership-plan:nth-child(3) { animation-delay: -8s; }
.membership-stage-plans .membership-plan:nth-child(4) { animation-delay: -12s; }
@keyframes membershipCardDrift {
  from { background-position: 44% 50%; }
  to { background-position: 56% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .membership-stage-plans .membership-plan { animation: none; }
}
body.membership-gate-locked .guide-launcher-wrap,
body.membership-gate-locked .maverick-guide { display: none !important; }

/* Shop and Games use the same cover-first rhythm as Home. Their feature
   panels already contain the headline, description and primary action, so the
   duplicate mastheads above them only create dead space and break the cinema
   landing-page composition. */
#panel-shop .shop-masthead,
#panel-games .game-studio-masthead { display: none; }
#panel-shop .shop-feature,
#panel-games .play-studio-feature { margin-top: 0; }

@media (max-width: 520px) {
  .membership-billing-row { justify-content: flex-start; }
  .membership-coupon-row { width: 100%; align-items: stretch; flex-direction: column; gap: 7px; }
  .membership-coupon-row label { min-width: 0; }
  .membership-coupon-row input { flex-basis: auto; width: 100%; }
}

/* Keep the Home scene chooser compact. Flexbox was stretching every tile to
   the tallest item, leaving an empty lower half; the wider 28vw cards also
   made the row feel like a sparse gallery instead of a quick scene picker. */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  overflow: visible;
  padding: 3px 3px 12px;
}
.bubble-tile {
  align-self: start;
  width: 100%;
  min-width: 0;
  height: 188px;
  min-height: 188px;
  max-height: 188px;
}
.bubble-tile-media {
  height: 140px;
  min-height: 140px;
  flex: 0 0 140px;
  aspect-ratio: auto;
}
.bubble-tile-body { padding: 11px 12px 12px; gap: 9px; }
.bubble-tile-body {
  min-height: 66px;
  max-height: 66px;
  box-sizing: border-box;
  overflow: hidden;
}
.bubble-tile-icon { width: 36px; height: 36px; font-size: 14px; }
.bubble-tile-title { font-size: 15px; }
.bubble-tile-sub { font-size: 11px; }
.bubble-tile-cta { padding: 6px 11px; font-size: 11px; }

.bubble-games { border-color: rgba(143,125,255,.48); background: linear-gradient(145deg, rgba(25,20,54,.9), var(--bg-surface)); }
.bubble-games .bubble-tile-media::after { background: linear-gradient(180deg, transparent 32%, rgba(14,10,35,.9) 100%); }
.bubble-games .bubble-tile-cta { background: rgba(143,125,255,.2); color: #b9adff; }
.bubble-games:hover .bubble-tile-cta { background: #8f7dff; color: #fff; }

@media (max-width: 1000px) {
  .bubble-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bubble-grid { grid-template-columns: 1fr; gap: 12px; }
  .bubble-tile {
    height: 176px;
    min-height: 176px;
    max-height: 176px;
  }
  .bubble-tile-media {
    height: 128px;
    min-height: 128px;
    flex-basis: 128px;
  }
  .bubble-tile-body {
    min-height: 62px;
    max-height: 62px;
  }
}
