/* ==========================================================================
   FILMATIC IVE REDESIGN v4.0
   Ive + Rams philosophy applied to full quiz experience.
   Section 13: quiz cards, options, progress, loading — "less, but better."
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES — Override accent colors, backgrounds, fonts
   The theme has TWO :root blocks. We override both with !important.
   ========================================================================== */

:root {
    /* Backgrounds — warm near-black, not flat/pure */
    --bg-primary: #0c0c0e !important;
    --bg-secondary: #141418 !important;
    --bg-tertiary: #1c1c22 !important;
    --bg-quaternary: #252530 !important;
    --bg-grouped: #141418 !important;

    /* Text */
    --text-primary: #e5e5e7 !important;
    --text-secondary: #86868b !important;
    --text-tertiary: #58585e !important;

    /* Accent — Cinema gold, not Netflix red */
    --accent: #c9a96e !important;
    --accent-hover: #d4b87a !important;
    --accent-muted: rgba(201,169,110,0.12) !important;
    --accent-subtle: rgba(201,169,110,0.06) !important;
    --accent-secondary: #c9a96e !important;
    --accent-secondary-hover: #d4b87a !important;
    --accent-rgb: 201,169,110 !important;

    /* Borders */
    --border: rgba(255,255,255,0.06) !important;
    --border-strong: rgba(255,255,255,0.12) !important;
    --border-subtle: rgba(255,255,255,0.04) !important;
}

/* ==========================================================================
   2. SELECTION
   ========================================================================== */

::selection {
    background: rgba(201,169,110,0.3) !important;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   3. HARDCODED RED → GOLD
   These selectors use literal #E50914 or rgba(229,9,20), not var(--accent).
   Without these overrides, they stay red regardless of variable changes.
   ========================================================================== */

/* --- 3A. color: #E50914 → gold --- */
.qsc-label, .qsc-num,
.stat-number, .offer-icon,
.gender-label-male, .case-study-type,
.tsc-personality-label, .tsc-num,
.watchlist-star.filled,
.df-save-btn.watchlist-btn-inline.saved,
.generic-page-content a,
.wl-modal-remove-btn:hover {
    color: var(--accent) !important;
}

/* --- 3B. background: #E50914 → gold --- */
.contact-form .btn-primary,
.audience-bar-fill,
.gender-bar-male {
    background: var(--accent) !important;
    color: #0c0c0e !important;
}

/* --- 3C. Red gradient backgrounds → gold gradients --- */
.qsc-poster-placeholder,
.tsc-poster-placeholder,
.df-film-poster-placeholder {
    background: linear-gradient(135deg, rgba(201,169,110,0.4) 0%, rgba(201,169,110,0.1) 100%) !important;
}

/* --- 3D. border-color / outline with hardcoded red --- */
.contact-form-field input:focus,
.contact-form-field textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.1) !important;
}
.watchlist-card-clickable:focus-visible {
    outline-color: var(--accent) !important;
}

/* --- 3E. rgba(229,9,20) background overrides --- */
.quiz-option:hover,
.quiz-option.selected,
.quiz-match-tag,
.quiz-watchlist-btn:hover,
.quiz-watchlist-btn.saved,
.df-category-btn.active,
.df-save-btn.watchlist-btn-inline:hover,
.df-save-btn.watchlist-btn-inline.saved,
.vs-autocomplete-item:hover,
.vs-row-highlight,
.comment-featured,
.watchlist-remove:hover,
.wl-modal-remove-btn:hover,
.wl-quick-pick-result,
.f100-more-info-btn:hover,
.taste-share-btn-primary:hover,
.category-tag:hover,
.ac-see-all:hover,
.search-filmmaker-card:hover,
.btn-ghost:hover,
.mood-pill:hover,
.case-study-type {
    background: rgba(201,169,110,0.1) !important;
}

/* Stronger tint for selected/active states */
.quiz-option.selected,
.df-category-btn.active,
.quiz-watchlist-btn.saved,
.df-save-btn.watchlist-btn-inline.saved {
    background: rgba(201,169,110,0.15) !important;
}

.quiz-loading-orb {
    background: var(--accent) !important;
}

/* --- 3F. rgba(229,9,20) border-color overrides --- */
.quiz-option.selected,
.quiz-option:hover,
.quiz-result-card:hover,
.quiz-match-tag,
.df-save-btn.watchlist-btn-inline:hover,
.df-save-btn.watchlist-btn-inline.saved,
.f100-more-info-btn:hover,
.comment-featured,
.wl-quick-pick-result,
.taste-tag-accent,
.ctx-quiz-inner:hover,
.rec-card:hover {
    border-color: rgba(201,169,110,0.3) !important;
}

/* --- 3G. rgba(229,9,20) box-shadow (glow) overrides --- */
.quiz-option:hover,
.quiz-start-btn:hover,
.quiz-loading-orb,
.surprise-me-fab,
.surprise-me-fab:hover,
.btn.btn-lg:hover,
.tonight-cta-btn:hover,
.wl-pick-btn:hover,
.rec-card:hover {
    box-shadow: 0 0 20px rgba(201,169,110,0.15) !important;
}
.progress-dot.active,
.progress-dot.filled {
    box-shadow: 0 0 6px rgba(201,169,110,0.4) !important;
}

/* Hero CTA: gold glow, not red (default + hover) */
.hero-actions .btn-primary,
.hero-actions .btn-primary.btn-lg {
    box-shadow: 0 4px 20px rgba(201,169,110,0.2) !important;
}
.hero-actions .btn-primary:hover,
.hero-actions .btn-primary.btn-lg:hover {
    box-shadow: 0 6px 32px rgba(201,169,110,0.35) !important;
}

/* --- 3H. Hero/page gradient overrides --- */
.vs-hero,
.collections-hero {
    background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, var(--bg-primary) 60%) !important;
}

/* --- 3I. Pseudo-element glow overrides --- */
.quiz-option.selected::after {
    background: radial-gradient(circle at center, rgba(201,169,110,0.12) 0%, transparent 70%) !important;
}

/* Quiz atmospheric glow — was red, now gold */
.quiz-question .quiz-screen-inner::before {
    background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 65%) !important;
}
.quiz-intro .quiz-screen-inner::before {
    background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 60%) !important;
}

/* --- 3J. Keyframe overrides --- */
@keyframes quizOrbPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(201,169,110,0.3), 0 0 60px rgba(201,169,110,0.1); }
    50% { box-shadow: 0 0 50px rgba(201,169,110,0.5), 0 0 100px rgba(201,169,110,0.2); }
}
@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(201,169,110,0.3); }
    50% { box-shadow: 0 0 8px rgba(201,169,110,0.5); }
}

/* --- 3K. Quiz result rank badge --- */
.quiz-result-rank {
    background: rgba(201,169,110,0.9) !important;
    color: #0c0c0e !important;
}

/* --- 3L. Inline style catch-all --- */
*[style*="E50914"], *[style*="e50914"],
*[style*="229, 9, 20"], *[style*="229,9,20"] {
    color: var(--accent) !important;
    border-color: rgba(201,169,110,0.3) !important;
}

/* ==========================================================================
   4. FONT — Fix remaining hardcoded Bebas Neue instances
   The theme's second :root already sets --font-heading to Inter,
   so only hardcoded font-family declarations need fixing.
   ========================================================================== */

.comments-title,
.collection-season-badge,
.collection-featured-content h3,
.collection-card-tag,
.collection-card-content h3,
.vs-badge,
.vs-film-title,
.mediakit-hero h1,
.stat-number,
.case-study-partner,
.case-study-stat-num,
[style*="Bebas"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ==========================================================================
   5. HERO — Simplify per Ive philosophy
   ========================================================================== */

.hero-stats { display: none !important; }
.hero-social-proof { display: none !important; }

/* ==========================================================================
   6. SECTION ICONS — Remove decorative emojis
   ========================================================================== */

.section-icon { display: none !important; }
.discover-card-icon { display: none !important; }

/* ==========================================================================
   7. HEADER CTA — Ghost button (deference, not commerce-first)
   ========================================================================== */

.site-header .header-cta,
a.header-cta {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: var(--text-secondary) !important;
}
.site-header .header-cta:hover,
a.header-cta:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.25) !important;
    color: var(--text-primary) !important;
    transform: none !important;
}

/* Mobile nav subscribe button */
.mobile-nav-cta .btn,
.mobile-nav-cta .btn-primary {
    background: var(--accent) !important;
    color: #0c0c0e !important;
}

/* ==========================================================================
   8. HIDDEN SECTIONS — Trending + Partners
   Trending: only 3 posts, 0 engagement, misleading title.
   Partners: self-serving social proof. Violates Ive's deference principle.
   ========================================================================== */

.home-trending {
    display: none !important;
}

.partners-section {
    display: none !important;
}

/* ==========================================================================
   9. SCROLLBAR — Subtle
   ========================================================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ==========================================================================
   10. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   11. HOMEPAGE REHAUL — Continuous flow, spatial rhythm
   The page should feel like one cinematic experience, not stacked blocks.
   Remove borders. Vary spacing. Smooth the hero-to-content transition.
   ========================================================================== */

/* --- Remove hard dividers between all homepage sections --- */
.home-potw,
.home-latest,
.home-discover,
.home-lists,
.home-contextual {
    border-bottom: none !important;
    border-top: none !important;
}

/* --- Hero: smoother exit into content --- */

/* Longer bottom gradient for a gentler fade */
.hero-gradient::after {
    height: 280px !important;
}

/* Eyebrow: quiet, minimal — not boastful */
.hero-eyebrow {
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.25) !important;
    margin-bottom: 20px !important;
}

/* Title: tighter, more intentional */
.hero-title {
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
}

/* Description: softer, recedes behind the title */
.hero-description {
    color: rgba(255,255,255,0.4) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Mood pills label: whisper-quiet */
.hero-moods-label {
    color: rgba(255,255,255,0.2) !important;
    font-size: 10px !important;
}

/* Mood pills: more space from hero content */
.hero-moods {
    margin-top: 48px !important;
}

/* --- Section spacing: create breathing rhythm --- */
/* First section after hero gets extra space — a moment of pause */
.home-potw {
    padding: 88px 0 72px !important;
}

/* Content sections: generous, consistent */
.home-latest {
    padding: 72px 0 !important;
}

/* Film Toolkit: subtle background lift to create depth layer */
.home-discover {
    padding: 80px 0 !important;
    background: rgba(255,255,255,0.015) !important;
}

/* Lists */
.home-lists {
    padding: 72px 0 80px !important;
}

/* --- Section headers: lighter weight, less urgent --- */
.section-header h2 {
    font-weight: 600 !important;
}

.section-header a {
    color: var(--text-tertiary) !important;
    font-weight: 400 !important;
}
.section-header a:hover {
    color: var(--accent) !important;
}

.section-header-sub {
    color: var(--text-tertiary) !important;
}

/* --- Film of the Week: subtle card refinement --- */
.home-potw-card {
    border: 1px solid rgba(255,255,255,0.04) !important;
}

/* --- Rec cards: subtle border for definition on dark bg --- */
.rec-card {
    border: 1px solid rgba(255,255,255,0.04) !important;
}

/* --- Newsletter: gentle top separator, only true divider on page --- */
.section-padding.home-newsletter {
    padding: 0 0 80px !important;
}
.home-newsletter-inner {
    padding-top: 72px !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}

/* --- Contextual section: harmonize with flow --- */
.home-contextual {
    padding: 72px 0 !important;
}

/* ==========================================================================
   12. MOBILE OPTIMIZATION — Touch-first, refined typography, visual polish
   ========================================================================== */

/* --- Primary mobile breakpoint (768px) --- */
@media (max-width: 768px) {

    /* --- Touch feedback: tap press effect --- */
    .rec-card:active,
    .discover-card:active,
    .home-list-card:active,
    .home-potw-card:active,
    .watchlist-card:active,
    .quiz-option:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    /* --- Hover cleanup: prevent sticky hover on touch --- */
    .rec-card:hover,
    .discover-card:hover,
    .home-list-card:hover,
    .home-potw-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-card) !important;
    }

    /* --- Film modal: fix undersized close button (was 32-36px) --- */
    .film-modal-close {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* --- Mobile nav overlay: match Ive palette --- */
    .mobile-nav-overlay {
        background: rgba(12, 12, 14, 0.98) !important;
    }

    /* --- Header CTA: compact ghost button for mobile header --- */
    .site-header .header-cta,
    a.header-cta {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    /* --- Hero mobile refinements --- */
    .hero-eyebrow {
        font-size: 10px !important;
        letter-spacing: 0.14em !important;
    }

    .hero-description {
        font-size: 14px !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-moods {
        margin-top: 36px !important;
    }

    .hero-moods-label {
        font-size: 9px !important;
    }

    /* --- Section spacing: mobile rhythm --- */
    .home-potw {
        padding: 64px 0 56px !important;
    }

    .home-latest,
    .home-contextual {
        padding: 56px 0 !important;
    }

    .home-discover {
        padding: 64px 0 !important;
    }

    .home-lists {
        padding: 56px 0 64px !important;
    }

    .section-padding.home-newsletter {
        padding: 0 0 64px !important;
    }

    .home-newsletter-inner {
        padding-top: 56px !important;
    }

    /* --- Section borders: removed on mobile too --- */
    .home-potw,
    .home-latest,
    .home-discover,
    .home-lists,
    .home-contextual {
        border-bottom: none !important;
        border-top: none !important;
    }

    /* --- Section headers: tighter on mobile --- */
    .section-header {
        margin-bottom: 20px !important;
    }

    .section-header h2 {
        font-size: 1.35rem !important;
        letter-spacing: -0.02em !important;
    }

    /* --- Film of the Week: mobile card polish --- */
    .home-potw-info {
        padding: 20px !important;
    }

    .home-potw-title {
        font-size: 1.25rem !important;
    }

    .home-potw-excerpt {
        font-size: 13px !important;
        line-height: 1.5 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* --- Rec cards: mobile refinement --- */
    .rec-card {
        border-radius: 14px !important;
    }

    .rec-card-excerpt {
        font-size: 13px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* --- Discover cards: compact mobile --- */
    .discover-card {
        padding: 18px !important;
    }

    .discover-card p {
        font-size: 12px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* --- List cards: proportional radius --- */
    .home-list-card {
        border-radius: 14px !important;
    }

    /* --- Newsletter: mobile refinement --- */
    .home-newsletter-inner h2 {
        font-size: 1.4rem !important;
    }

    .home-newsletter-inner p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* --- Quiz: gold active states on mobile --- */
    .quiz-option:active {
        background: rgba(201,169,110,0.12) !important;
        border-color: rgba(201,169,110,0.25) !important;
    }
}

/* --- Touch devices: clean hover states globally --- */
@media (hover: none) {
    .rec-card:hover,
    .discover-card:hover,
    .home-list-card:hover,
    .home-potw-card:hover,
    .watchlist-card:hover {
        transform: none !important;
    }
}

/* --- Small phones (480px) --- */
@media (max-width: 480px) {
    .mood-pill {
        font-size: 12px !important;
        padding: 7px 14px !important;
        white-space: nowrap !important;
    }

    .section-header h2 {
        font-size: 1.2rem !important;
    }

    .home-potw-title {
        font-size: 1.1rem !important;
    }

    .discover-card {
        padding: 16px !important;
    }
}

/* --- Ultra-small screens (375px and below) --- */
@media (max-width: 375px) {
    .hero-eyebrow {
        font-size: 9px !important;
        letter-spacing: 0.1em !important;
    }

    .hero-description {
        font-size: 13px !important;
    }

    .mood-pill {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    .home-potw-info {
        padding: 16px !important;
    }

    .home-potw-title {
        font-size: 1rem !important;
    }

    .rec-card-title a {
        font-size: 14px !important;
    }

    .home-newsletter-inner h2 {
        font-size: 1.2rem !important;
    }
}

/* ==========================================================================
   13. QUIZ — REFINED (Ive/Rams applied)
   REMOVED: Superseded by filmatic-quiz-v5 plugin. All rules below are
   commented out to prevent !important conflicts with the quiz V5 template.
   ========================================================================== */

/*
13A. Quiz Intro — Gold CTA, refined hint

.quiz-start-btn {
    background: var(--accent) !important;
    color: #0c0c0e !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 16px 48px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background 0.2s ease !important;
}

.quiz-start-btn:hover {
    background: var(--accent-hover) !important;
    color: #0c0c0e !important;
    transform: none !important;
    box-shadow: none !important;
}

.quiz-intro-hint {
    color: var(--text-tertiary) !important;
}

13B. Quiz Options — Cleaner borders, gold selected

.quiz-option {
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
}

.quiz-option:hover {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.15) !important;
    transform: none !important;
    box-shadow: none !important;
}

.quiz-option.selected {
    background: rgba(201,169,110,0.08) !important;
    border-color: rgba(201,169,110,0.25) !important;
    box-shadow: none !important;
}

.quiz-option.selected::after {
    display: none !important;
}

13C. Progress Dots — Smaller, gold path

.quiz-progress {
    gap: 8px !important;
}

.progress-dot {
    width: 6px !important;
    height: 6px !important;
    background: rgba(255,255,255,0.08) !important;
    border: none !important;
    box-shadow: none !important;
}

.progress-dot.filled {
    background: rgba(201,169,110,0.3) !important;
    box-shadow: none !important;
}

.progress-dot.active {
    background: var(--accent) !important;
    transform: scale(1.4) !important;
    box-shadow: none !important;
}

13D. Loading — Gold orb

.quiz-loading-orb {
    width: 36px !important;
    height: 36px !important;
    background: var(--accent) !important;
    opacity: 0.7 !important;
}

@keyframes quizOrbPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201,169,110,0.15); }
    50% { box-shadow: 0 0 36px rgba(201,169,110,0.3); }
}

13E. Results

.quiz-results .quiz-screen-inner {
    max-width: 960px !important;
}

.quiz-taste-profile {
    margin-bottom: 40px !important;
}

@media (max-width: 768px) {
    .quiz-taste-profile {
        margin-bottom: 16px !important;
    }

    .quiz-results .quiz-screen-inner > h2,
    .quiz-results .quiz-screen-inner > .quiz-results-title {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .quiz-results .quiz-screen-inner > p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .quiz-results-grid {
        scroll-margin-top: 20px !important;
    }
}

.taste-label {
    color: var(--text-tertiary) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}

13F. Result Cards — Poster-only, click for details

.quiz-results-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 40px !important;
}

.quiz-result-card {
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
}

.quiz-result-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,0.4) !important;
    border-color: transparent !important;
}

.quiz-result-info {
    display: none !important;
}

.quiz-result-poster {
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.quiz-result-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.quiz-result-card:hover .quiz-result-poster img {
    transform: scale(1.04) !important;
}

.quiz-result-card::after {
    content: attr(data-title) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 48px 14px 14px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 50%, transparent 100%) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.quiz-result-card:hover::after {
    opacity: 1 !important;
}

@media (hover: none) {
    .quiz-result-card::after {
        opacity: 0.85 !important;
    }
}

.quiz-result-rank {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    background: rgba(201,169,110,0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #0c0c0e !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    line-height: 1 !important;
    z-index: 2 !important;
}

.quiz-result-poster-title {
    color: rgba(255,255,255,0.7) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

13G. Action Buttons — Gold primary, pill shape

.quiz-results-actions .btn {
    border-radius: 980px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.quiz-results-actions .btn:hover {
    box-shadow: none !important;
}

.quiz-results-actions .btn-primary {
    background: var(--accent) !important;
    color: #0c0c0e !important;
    border: none !important;
}

.quiz-results-actions .btn-primary:hover {
    background: var(--accent-hover) !important;
}

.quiz-results-actions .btn-accent {
    background: transparent !important;
    border: 1px solid rgba(201,169,110,0.2) !important;
    color: var(--accent) !important;
}

.quiz-results-actions .btn-accent:hover {
    background: rgba(201,169,110,0.06) !important;
}

.quiz-results-actions .btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: var(--text-secondary) !important;
}

.quiz-results-actions .btn-ghost {
    color: var(--text-tertiary) !important;
}

13H. Share

.quiz-share-btn {
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.quiz-share-btn:hover {
    background: rgba(255,255,255,0.04) !important;
    box-shadow: none !important;
}

13I. Mobile

@media (max-width: 768px) {
    Carousel: horizontal swipe, Instagram-style
    .quiz-results-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        column-gap: 16px !important;
        row-gap: 0 !important;
        padding: 8px 0 !important;
        max-width: 100% !important;
        margin-bottom: 4px !important;
    }

    .quiz-results-grid::-webkit-scrollbar {
        display: none !important;
    }

    .quiz-result-card {
        flex: 0 0 75% !important;
        scroll-snap-align: center !important;
        border-radius: 16px !important;
    }

    .quiz-result-card:first-child {
        margin-left: 12.5% !important;
    }

    .quiz-result-card:last-child {
        margin-right: 12.5% !important;
    }

    .quiz-result-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .quiz-result-card::after {
        font-size: 13px !important;
        padding: 48px 16px 16px !important;
        opacity: 0.9 !important;
    }

    .quiz-result-poster {
        border-radius: 16px !important;
    }

    .quiz-result-rank {
        font-size: 11px !important;
        padding: 5px 10px !important;
        top: 12px !important;
        left: 12px !important;
    }

    .quiz-option {
        border-radius: 10px !important;
    }

    .quiz-option:active {
        background: rgba(201,169,110,0.08) !important;
        border-color: rgba(201,169,110,0.2) !important;
    }

    .quiz-film-popup {
        flex-direction: column !important;
        max-height: 85vh !important;
        border-radius: 16px !important;
        margin: 0 12px !important;
    }

    .quiz-film-popup-poster {
        flex: 0 0 auto !important;
        height: 320px !important;
        max-height: 40vh !important;
    }

    .quiz-film-popup-poster img {
        border-radius: 16px 16px 0 0 !important;
    }

    .quiz-film-popup-details {
        padding: 24px 20px !important;
    }

    .quiz-film-popup-title {
        font-size: 22px !important;
    }

    .quiz-film-popup-close {
        top: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 480px) {
    .quiz-results-grid {
        column-gap: 12px !important;
    }

    .quiz-result-card {
        flex: 0 0 78% !important;
    }

    .quiz-result-card:first-child {
        margin-left: 11% !important;
    }

    .quiz-result-card:last-child {
        margin-right: 11% !important;
    }

    .quiz-result-card::after {
        font-size: 12px !important;
        padding: 40px 14px 14px !important;
    }

    .quiz-start-btn {
        padding: 14px 36px !important;
    }

    .quiz-film-popup-poster {
        height: 260px !important;
    }

    .quiz-film-popup-details {
        padding: 20px 16px !important;
    }

    .quiz-film-popup-title {
        font-size: 20px !important;
        padding-right: 24px !important;
    }
}

Carousel dot indicators (mobile only)

.quiz-carousel-dots {
    display: none !important;
}

@media (max-width: 768px) {
    .quiz-carousel-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 16px 0 8px !important;
    }

    .quiz-carousel-dot {
        width: 5px !important;
        height: 1.5px !important;
        min-height: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
        display: block !important;
        border-radius: 1px !important;
        border: none !important;
        background: rgba(255,255,255,0.12) !important;
        padding: 0 !important;
        cursor: pointer !important;
        transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        outline: none !important;
    }

    .quiz-carousel-dot.active {
        width: 18px !important;
        background: var(--accent, #c9a96e) !important;
    }
}
*/

/* ==========================================================================
   14. QUIZ FILM POPUP — Detail modal for poster-only cards
   ========================================================================== */

.quiz-film-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.quiz-film-popup-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.quiz-film-popup {
    background: var(--bg-secondary, #141418) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 20px !important;
    max-width: 680px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    display: flex !important;
    position: relative !important;
    transform: scale(0.94) translateY(12px) !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5) !important;
}

.quiz-film-popup-overlay.active .quiz-film-popup {
    transform: scale(1) translateY(0) !important;
}

.quiz-film-popup-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.08) !important;
    border: none !important;
    color: var(--text-secondary, #86868b) !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.quiz-film-popup-close:hover {
    background: rgba(255,255,255,0.15) !important;
    color: var(--text-primary, #e5e5e7) !important;
}

.quiz-film-popup-poster {
    flex: 0 0 240px !important;
    position: relative !important;
    overflow: hidden !important;
}

.quiz-film-popup-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px 0 0 20px !important;
    display: block !important;
}

.quiz-film-popup-rank {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background: rgba(201,169,110,0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #0c0c0e !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    line-height: 1 !important;
    z-index: 2 !important;
}

.quiz-film-popup-details {
    flex: 1 !important;
    padding: 32px 28px !important;
    min-width: 0 !important;
    overflow-y: auto !important;
}

.quiz-film-popup-title {
    font-family: var(--font-heading, 'Inter', sans-serif) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--text-primary, #e5e5e7) !important;
    margin: 0 0 8px !important;
    padding-right: 28px !important;
    line-height: 1.2 !important;
}

.quiz-film-popup-meta {
    font-size: 13px !important;
    color: var(--text-secondary, #86868b) !important;
    margin: 0 0 16px !important;
}

.quiz-film-popup-match-tags {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
}

.quiz-film-popup-match-tag {
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--accent, #c9a96e) !important;
    background: rgba(201,169,110,0.06) !important;
    border: 1px solid rgba(201,169,110,0.12) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
}

.quiz-film-popup-rating {
    font-size: 14px !important;
    color: var(--accent, #c9a96e) !important;
    font-weight: 600 !important;
    margin: 0 0 14px !important;
}

.quiz-film-popup-desc {
    font-size: 14px !important;
    color: var(--text-secondary, #86868b) !important;
    line-height: 1.65 !important;
    margin: 0 0 16px !important;
}

.quiz-film-popup-genres {
    font-size: 12px !important;
    color: var(--text-tertiary, #58585e) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin: 0 0 8px !important;
}

.quiz-film-popup-cast {
    font-size: 13px !important;
    color: var(--text-secondary, #86868b) !important;
    font-style: italic !important;
    margin: 0 0 20px !important;
}

.quiz-film-popup-streaming {
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    padding-top: 16px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.quiz-film-popup-streaming-provider {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: rgba(255,255,255,0.03) !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    color: var(--text-secondary, #86868b) !important;
}

.quiz-film-popup-streaming-provider img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
}

.quiz-film-popup-save.watchlist-btn-inline {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    color: var(--text-secondary, #86868b) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 4px 0 0 !important;
}

.quiz-film-popup-save.watchlist-btn-inline:hover {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.15) !important;
    box-shadow: none !important;
    transform: none !important;
}

.quiz-film-popup-save.watchlist-btn-inline.saved {
    background: rgba(201,169,110,0.08) !important;
    border-color: rgba(201,169,110,0.2) !important;
    color: var(--accent, #c9a96e) !important;
}

.quiz-film-popup::-webkit-scrollbar {
    width: 4px !important;
}

.quiz-film-popup::-webkit-scrollbar-track {
    background: transparent !important;
}

.quiz-film-popup::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06) !important;
    border-radius: 2px !important;
}

/* ==========================================================================
   15. WATCHLIST - C3 Dashboard + Tabs Redesign
   Stats dashboard with progress ring, three-tab interface
   (Gallery / Journey / Details), timeline journey, detail list.
   ========================================================================== */

/* -- Hero refinement -- */
.watchlist-hero {
    padding-bottom: 12px !important;
}

.watchlist-hero .hero-label {
    display: none !important;
}

.watchlist-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

.watchlist-subtitle {
    color: #48484e !important;
    font-size: 14px !important;
}

.watchlist-meta-bar {
    display: none !important;
}

/* -- Stats Dashboard -- */
.wl-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0;
    min-height: 90px;
}

/* Reserve space for stats dashboard before JS loads (prevents first-visit layout shift) */
.watchlist-hero .site-container::after {
    content: '';
    display: block;
    height: 106px;
}
.watchlist-hero .site-container.wl-stats-ready::after {
    display: none;
}

.wl-stat-card {
    padding: 18px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 14px;
    transition: border-color 0.3s;
}

.wl-stat-card:hover {
    border-color: rgba(201,169,110,0.12);
}

.wl-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    color: #c9a96e;
    line-height: 1;
}

.wl-stat-label {
    font-size: 10px;
    color: #48484e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.wl-stat-bar {
    margin-top: 10px;
    height: 3px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    overflow: hidden;
}

.wl-stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #c9a96e, #e8d5a8);
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Progress ring */
.wl-ring-wrap {
    margin: 8px auto 0;
    width: 48px;
    height: 48px;
    position: relative;
}

.wl-ring-bg {
    stroke: rgba(255,255,255,0.04);
}

.wl-ring-fg {
    stroke: #c9a96e;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.wl-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #c9a96e;
    font-weight: 600;
}

/* -- Tab Bar -- */
.wl-tab-bar {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.wl-tab {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #48484e;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.wl-tab.active {
    color: #e5e5e7;
    border-bottom-color: #c9a96e;
}

.wl-tab:hover:not(.active) {
    color: #86868b;
}

/* -- Gallery (reuses existing #watchlist-grid) -- */
.watchlist-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 16px !important;
}

.watchlist-card {
    display: block !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 0 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease !important;
}

.watchlist-card:hover {
    border-color: transparent !important;
    transform: scale(1.04) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(201,169,110,0.08) !important;
}

.watchlist-card-clickable {
    display: block !important;
    width: 100% !important;
}

.watchlist-card-poster {
    width: 100% !important;
    flex-shrink: initial !important;
}

.watchlist-poster {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
    transition: box-shadow 0.35s !important;
}

.watchlist-poster-placeholder {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, rgba(201,169,110,0.25), #1a1a1a) !important;
}

/* Hide info section - accessible via film modal on click */
.watchlist-card-info {
    display: none !important;
}

/* Title overlay on hover */
.watchlist-card::after {
    content: attr(data-film-title) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 48px 12px 12px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, transparent 100%) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    border-radius: 0 0 10px 10px !important;
}

.watchlist-card:hover::after {
    opacity: 1 !important;
}

@media (hover: none) {
    .watchlist-card::after {
        opacity: 0.85 !important;
    }
}

/* Watched badge */
.watchlist-card.is-watched::before {
    content: '\2713' !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 22px !important;
    height: 22px !important;
    background: rgba(52,199,89,0.9) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    z-index: 2 !important;
    line-height: 1 !important;
}

/* -- Journey Panel (Timeline) -- */
.wl-journey-panel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.wl-journey-panel::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 48px;
    left: 47px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(201,169,110,0.3), rgba(201,169,110,0.05));
}

.wl-jmonth {
    margin-bottom: 36px;
}

.wl-jmonth-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.wl-jdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9a96e;
    border: 2px solid var(--bg-primary, #0c0c0e);
    margin-left: 43px;
    flex-shrink: 0;
}

.wl-jtext {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #c9a96e;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.wl-jentries {
    padding-left: 68px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wl-jentry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    cursor: pointer;
    transition: all 0.2s;
}

.wl-jentry:hover {
    background: rgba(201,169,110,0.04);
    border-color: rgba(201,169,110,0.1);
}

.wl-jposter {
    width: 44px;
    height: 66px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.wl-jinfo {
    flex: 1;
    min-width: 0;
}

.wl-jtitle {
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e7;
}

.wl-watched-tag {
    color: #34c759;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
}

.wl-jmeta {
    font-size: 12px;
    color: #48484e;
    margin-top: 2px;
}

.wl-jdate {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #58585e;
    margin-top: 3px;
}

/* -- Details Panel (List) -- */
.wl-details-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.wl-drow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
}

.wl-drow:hover {
    background: rgba(255,255,255,0.02);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 10px;
}

.wl-dposter {
    width: 42px;
    height: 63px;
    border-radius: 6px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.wl-dinfo {
    flex: 1;
    min-width: 0;
}

.wl-dtitle {
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-dmeta {
    font-size: 12px;
    color: #48484e;
    margin-top: 2px;
}

.wl-dstars {
    flex-shrink: 0;
    display: inline-flex;
    gap: 1px;
}

.wl-dstar {
    color: #c9a96e;
    font-size: 10px;
}

.wl-dstar-empty {
    color: rgba(242,237,230,0.15);
    font-size: 10px;
}

.wl-dstatus {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #3a3a3e;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.wl-dstatus.watched {
    background: rgba(52,199,89,0.15);
    border-color: rgba(52,199,89,0.5);
    color: #34c759;
}

.wl-ddate {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #3a3a3e;
    flex-shrink: 0;
}

/* -- Controls refinement (below tabs) -- */
.watchlist-controls {
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.wl-controls-bar {
    padding: 8px 0 12px !important;
}

/* Pick for Me button */
.wl-pick-btn {
    background: var(--accent) !important;
    color: #0c0c0e !important;
    border: none !important;
    border-radius: 980px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.wl-pick-btn:hover {
    background: var(--accent-hover) !important;
    color: #0c0c0e !important;
    box-shadow: 0 0 20px rgba(201,169,110,0.2) !important;
    transform: translateY(-1px) !important;
}

/* Quick pick result */
.wl-quick-pick-result {
    border-color: rgba(201,169,110,0.2) !important;
    background: rgba(201,169,110,0.04) !important;
    border-radius: 16px !important;
}

.wl-qp-label {
    color: var(--accent) !important;
}

.wl-qp-poster {
    border-radius: 10px !important;
}

/* Controls elements */
.wl-select {
    border-radius: 10px !important;
}

.wl-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.08) !important;
}

.watchlist-actions-top .btn {
    border-radius: 980px !important;
}

/* Modal actions */
.wl-modal-seen-btn {
    border-radius: 10px !important;
}

.wl-modal-remove-btn {
    border-radius: 10px !important;
}

.wl-modal-seen-btn.marked {
    color: #34C759 !important;
    background: rgba(52,199,89,0.1) !important;
}

/* -- Empty state for panels -- */
.wl-panel-empty {
    text-align: center;
    padding: 80px 24px;
    color: rgba(242,237,230,0.3);
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.3px;
}

.wl-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(242,237,230,0.06);
}

.wl-modal-seen-btn,
.wl-modal-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(242,237,230,0.1);
    background: rgba(242,237,230,0.04);
    color: rgba(242,237,230,0.6);
    font-size: 13px;
    font-family: 'Instrument Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wl-modal-seen-btn:hover,
.wl-modal-remove-btn:hover {
    background: rgba(242,237,230,0.08);
    color: rgba(242,237,230,0.9);
    border-color: rgba(242,237,230,0.15);
}

.wl-modal-seen-btn.marked {
    color: #c9a96e;
    border-color: rgba(201,169,110,0.2);
    background: rgba(201,169,110,0.08);
}

.wl-modal-remove-btn:hover {
    color: #e55;
    border-color: rgba(238,85,85,0.2);
    background: rgba(238,85,85,0.06);
}
.wl-stats-dashboard {
    transition: opacity 0.4s ease;
}
.wl-tab-section {
    transition: opacity 0.4s ease;
}

/* -- Glimpse Animation: Radial Reveal + Glow -- */
.wl-stat-card {
    position: relative;
    overflow: visible;
}

.wl-stat-card.wl-anim-init {
    clip-path: circle(0% at 50% 50%);
    box-shadow: none;
}

.wl-stat-card.wl-anim-reveal {
    clip-path: circle(100% at 50% 50%);
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.wl-stat-card.wl-anim-glow {
    box-shadow: 0 0 30px rgba(201,169,110,0.3), 0 0 60px rgba(201,169,110,0.12);
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease-out;
}

.wl-stat-card.wl-anim-glow-fade {
    box-shadow: none;
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease-out;
}

.wl-particle-host {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.wl-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c9a96e;
    opacity: 0.4;
    pointer-events: none;
}

.wl-stat-bar-fill {
    position: relative;
}

.wl-stat-bar-fill.wl-filling::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8d5a8;
    box-shadow: 0 0 8px 2px rgba(232,213,168,0.7), 0 0 16px 4px rgba(201,169,110,0.4);
    opacity: 1;
}

.wl-stat-bar-fill.wl-done::after {
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.wl-ring-fg {
    transition: stroke-dashoffset 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.wl-ring-sweep {
    fill: none;
    stroke: #e8d5a8;
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    filter: drop-shadow(0 0 4px rgba(232,213,168,0.9));
    transition: stroke-dashoffset 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .wl-stat-card.wl-anim-init {
        clip-path: none;
    }
    .wl-stat-card.wl-anim-reveal {
        clip-path: none;
        transition: none;
    }
    .wl-stat-card.wl-anim-glow,
    .wl-stat-card.wl-anim-glow-fade {
        box-shadow: none;
        transition: none;
    }
    .wl-particle {
        display: none;
    }
}

/* -- Mobile Responsive -- */
@media (max-width: 900px) {
    .wl-stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .watchlist-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .watchlist-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .watchlist-poster {
        border-radius: 8px !important;
    }

    .watchlist-card::after {
        opacity: 0.9 !important;
        border-radius: 0 0 8px 8px !important;
        font-size: 11px !important;
        padding: 36px 8px 8px !important;
    }

    .watchlist-card.is-watched::before {
        width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        top: 6px !important;
        right: 6px !important;
    }

    .wl-ddate {
        display: none;
    }

    .wl-jentries {
        padding-left: 48px;
    }

    .wl-jdot {
        margin-left: 23px;
    }

    .wl-journey-panel::before {
        left: 27px;
    }

    .wl-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .watchlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 8px !important;
    }

    .watchlist-card::after {
        font-size: 10px !important;
        padding: 28px 6px 6px !important;
    }

    .wl-stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .wl-stat-num {
        font-size: 22px;
    }

    .wl-tab {
        padding: 10px 10px;
        font-size: 11px;
    }
}

/* ==========================================================================
   16. DOUBLE FEATURE — Refined to match Ive aesthetic
   Gold accents, cleaner cards, no decorative emojis.
   ========================================================================== */

/* Connector: gold circle, not red */
.df-connector-plus {
    background: var(--accent) !important;
    color: #0c0c0e !important;
    border: none !important;
    box-shadow: none !important;
}

/* Film posters: consistent radius and hover */
.df-film-poster {
    border-radius: 12px !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.df-film:hover .df-film-poster {
    transform: scale(1.03) !important;
}

.df-film-poster-placeholder {
    border-radius: 12px !important;
}

/* Result card: cleaner borders */
.df-result-card {
    border-color: rgba(255,255,255,0.04) !important;
    border-radius: 16px !important;
}

/* Category buttons */
.df-cat-icon {
    font-size: 24px !important;
    line-height: 1 !important;
}

.df-category-btn {
    border-radius: 12px !important;
    padding: 16px 20px !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
}

.df-category-btn:hover {
    border-color: rgba(201,169,110,0.3) !important;
    transform: translateY(-2px) !important;
    background: var(--bg-tertiary) !important;
}

.df-category-btn.active {
    border-color: rgba(201,169,110,0.4) !important;
    box-shadow: none !important;
}

.df-cat-name {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.df-cat-count {
    color: var(--text-tertiary) !important;
}

/* Search input */
.df-search-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(201,169,110,0.08) !important;
}

/* Result actions: pill buttons */
.df-result-actions .btn {
    border-radius: 980px !important;
}

/* Result category label */
.df-result-category {
    color: var(--accent) !important;
}

/* Film title and meta refinement */
.df-film-title {
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.df-connector-text {
    color: var(--text-tertiary) !important;
}

/* Staff pick fallback */
.df-staff-mini {
    border-radius: 12px !important;
}

.df-staff-mini:hover {
    border-color: rgba(201,169,110,0.3) !important;
}

/* Save button */
.df-save-btn.watchlist-btn-inline {
    border-radius: 10px !important;
}

/* Fallback section */
.df-fallback-inner {
    border-radius: 16px !important;
}

/* Hero refinement */
.df-hero-subtitle {
    color: var(--text-secondary) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .df-film-poster {
        border-radius: 10px !important;
    }

    .df-film-poster-placeholder {
        border-radius: 10px !important;
    }

    .df-result-card {
        padding: 24px !important;
        border-radius: 14px !important;
    }

    .df-category-btn {
        border-radius: 10px !important;
        padding: 14px 16px !important;
    }
}

@media (max-width: 480px) {
    .df-category-btn {
        padding: 12px 14px !important;
    }

    .df-cat-name {
        font-size: 13px !important;
    }
}

/* ==========================================================================
   17. QUIZ LOADING — Cinematic loading experience
   Expanding rings, orbital arc, smooth text transitions, progress bar.
   ========================================================================== */

/* Ambient glow behind the animation */
.quiz-loading .quiz-screen-inner {
    position: relative !important;
}

.quiz-loading .quiz-screen-inner::before {
    content: '' !important;
    position: absolute !important;
    top: 28% !important;
    left: 50% !important;
    width: 300px !important;
    height: 300px !important;
    transform: translate(-50%, -50%) !important;
    background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 70%) !important;
    pointer-events: none !important;
    animation: iveAmbientGlow 4s ease-in-out infinite !important;
    z-index: 0 !important;
}

@keyframes iveAmbientGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Animation container: sized for rings, centered */
.quiz-loading .quiz-loading-animation {
    position: relative !important;
    width: 160px !important;
    height: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 48px !important;
    z-index: 1 !important;
}

/* Orb: richer gradient with inner highlight */
.quiz-loading .quiz-loading-orb {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 35%, #dfc48a, var(--accent, #c9a96e) 60%, rgba(201,169,110,0.5)) !important;
    opacity: 1 !important;
    z-index: 2 !important;
    position: relative !important;
    animation: iveOrbBreathe 3s ease-in-out infinite !important;
}

/* Orbital arc — rotating partial ring around orb */
.quiz-loading .quiz-loading-orb::after {
    content: '' !important;
    position: absolute !important;
    top: -10px !important;
    left: -10px !important;
    right: -10px !important;
    bottom: -10px !important;
    border-radius: 50% !important;
    border: 1.5px solid transparent !important;
    border-top-color: rgba(201,169,110,0.5) !important;
    border-right-color: rgba(201,169,110,0.15) !important;
    animation: iveOrbSpin 2.5s linear infinite !important;
}

@keyframes iveOrbBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(201,169,110,0.25), 0 0 60px rgba(201,169,110,0.08);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 32px rgba(201,169,110,0.4), 0 0 80px rgba(201,169,110,0.12);
    }
}

@keyframes iveOrbSpin {
    to { transform: rotate(360deg); }
}

/* Expanding rings (injected via JS) */
.quiz-loading-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    border-radius: 50% !important;
    border: 1px solid rgba(201,169,110,0.2) !important;
    pointer-events: none !important;
    animation: iveRingExpand 3.5s ease-out infinite !important;
}

.quiz-loading-ring:nth-child(2) {
    width: 80px !important;
    height: 80px !important;
    animation-delay: 0s !important;
}

.quiz-loading-ring:nth-child(3) {
    width: 120px !important;
    height: 120px !important;
    animation-delay: 0.7s !important;
}

.quiz-loading-ring:nth-child(4) {
    width: 160px !important;
    height: 160px !important;
    animation-delay: 1.4s !important;
}

@keyframes iveRingExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0.5;
    }
    80% {
        opacity: 0.08;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Progress bar */
.quiz-loading-progress {
    width: 120px !important;
    height: 1.5px !important;
    background: rgba(255,255,255,0.06) !important;
    border-radius: 1px !important;
    margin: 36px auto 0 !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1 !important;
}

.quiz-loading-progress-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 0% !important;
    background: linear-gradient(90deg, var(--accent, #c9a96e), rgba(201,169,110,0.3)) !important;
    border-radius: 1px !important;
    animation: iveProgressFill 10s cubic-bezier(0.1, 0.3, 0.3, 1) forwards !important;
}

@keyframes iveProgressFill {
    0% { width: 0%; }
    10% { width: 15%; }
    30% { width: 35%; }
    50% { width: 55%; }
    70% { width: 70%; }
    85% { width: 82%; }
    100% { width: 90%; }
}

/* Loading text refinement */
.quiz-loading .quiz-loading-text {
    z-index: 1 !important;
    position: relative !important;
}

.quiz-loading .quiz-loading-sub {
    z-index: 1 !important;
    position: relative !important;
    min-height: 20px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .quiz-loading-ring,
    .quiz-loading .quiz-loading-orb,
    .quiz-loading .quiz-loading-orb::after,
    .quiz-loading-progress-fill,
    .quiz-loading .quiz-screen-inner::before {
        animation: none !important;
    }
    .quiz-loading-ring {
        opacity: 0.15 !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
    .quiz-loading-progress-fill {
        width: 60% !important;
    }
}

/* ==========================================================================
   18. SITE-WIDE POLISH — Layout rhythm, visual consistency, UX refinements
   Addresses cross-page inconsistencies found in full-site visual audit.
   ========================================================================== */

/* --- 18-pre. Hero FOUC Prevention ---
   Hide elements that JS replaces to prevent flash of original text.
   JS in ive-redesign.js makes them visible after modification.
   ------------------------------------------------------------------ */

/* FOUC: eyebrow/moods-label text replaced by JS — golden sweep handles opacity */

.hero-stats,
.hero-social-proof {
    display: none !important;
}

/* --- 18a. Section Spacing Rhythm ---
   Standardize vertical padding across homepage & feature pages.
   Before: ranged from 48px to 88px with asymmetric padding.
   After: consistent 80px desktop, 48px mobile.
   ------------------------------------------------------------------ */

.home-potw,
.home-latest,
.home-discover,
.home-lists {
    padding: 80px 0 !important;
}

.partnerships-section {
    padding: 64px 0 !important;
}

.home-newsletter {
    padding: 0 0 80px !important;
}

/* --- 18b. Card Info Padding ---
   Fix cramped 4px bottom padding on .fp-df-card-info.
   Smooth padding across all card info blocks.
   ------------------------------------------------------------------ */

.fp-df-card-info {
    padding: 14px 14px 12px !important;
}

.list-card-info,
.home-list-info {
    padding-bottom: 14px !important;
}

/* --- 18c. Typography Scale ---
   Smooth the jump from 20px section titles to 14px card titles.
   Card titles bump from 14px → 15px for readability.
   ------------------------------------------------------------------ */

.fp-df-card-title,
.list-card-title,
.home-list-title {
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Card metadata — consistent sizing */
.fp-df-card-meta,
.list-card-meta,
.calendar-card-meta,
.rec-card-meta {
    font-size: 12px !important;
    color: var(--text-secondary, #86868b) !important;
    line-height: 1.5 !important;
}

/* --- 18d. Filter & Pill Button Consistency ---
   Unify active states across lists, F100, calendar, DF category buttons.
   Before: gold fill vs gold border vs gold text (inconsistent).
   After: consistent gold tint + gold text + gold border.
   ------------------------------------------------------------------ */

.filter-btn,
.f100-jump,
.df-category-btn,
.calendar-filter button {
    transition: all 0.2s ease !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 980px !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    background: transparent !important;
    color: var(--text-secondary, #86868b) !important;
    cursor: pointer !important;
}

.filter-btn:hover,
.f100-jump:hover,
.df-category-btn:hover,
.calendar-filter button:hover {
    border-color: rgba(255,255,255,0.12) !important;
    color: var(--text-primary, #e5e5e7) !important;
}

.filter-btn.active,
.f100-jump.active,
.df-category-btn.active,
.calendar-filter button.active {
    background: rgba(201,169,110,0.10) !important;
    color: #c9a96e !important;
    border-color: rgba(201,169,110,0.25) !important;
}

/* --- 18e. Ghost/Secondary Button Consistency ---
   Standardize border opacity: was 0.08 vs 0.15.
   Now unified at 0.10 with consistent hover gold glow.
   ------------------------------------------------------------------ */

.header-cta,
.btn-secondary,
.btn-ghost {
    border: 1px solid rgba(255,255,255,0.10) !important;
    transition: all 0.25s ease !important;
}

.header-cta:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    border-color: rgba(201,169,110,0.3) !important;
    color: #c9a96e !important;
}

/* --- 18f. Card Hover Unification ---
   Standardize all card hover to -4px lift + subtle gold border.
   Watchlist was -6px, others were -4px. Now all -4px.
   ------------------------------------------------------------------ */

.fp-df-card,
.list-card,
.rec-card,
.rec-card-large,
.home-list-card,
.home-potw-card,
.calendar-card,
.watchlist-card,
.feel-like-card {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.fp-df-card:hover,
.list-card:hover,
.rec-card:hover,
.rec-card-large:hover,
.home-list-card:hover,
.home-potw-card:hover,
.calendar-card:hover,
.feel-like-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(201,169,110,0.15) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25),
                0 0 0 1px rgba(201,169,110,0.06) !important;
}

/* --- 18g. Calendar Week Headers ---
   Before: plain h3 blending into the card grid.
   After: styled as subtle dividers with uppercase label treatment.
   ------------------------------------------------------------------ */

.calendar-week h3,
.cal-week-header {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    color: var(--text-tertiary, #58585e) !important;
    font-weight: 600 !important;
    padding-bottom: 14px !important;
    margin-top: 12px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.calendar-week:first-child h3,
.calendar-week:first-child .cal-week-header {
    margin-top: 0 !important;
}

/* Calendar card title overflow protection */
.calendar-card-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* --- 18h. Newsletter Section Consistency ---
   Unify newsletter CTA across all pages.
   Both .newsletter-signup and .home-newsletter-inner now match.
   ------------------------------------------------------------------ */

.newsletter-signup,
.home-newsletter-inner {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.newsletter-signup h2,
.newsletter-signup h3,
.home-newsletter-inner h2,
.home-newsletter-inner h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 8px !important;
}

.newsletter-signup p,
.home-newsletter-inner p,
.home-newsletter-subtitle {
    color: var(--text-secondary, #86868b) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
}

/* --- 18i. Explore More Cards ---
   Polished treatment for the "Explore More from Filmatic" sections
   that appear at the bottom of most feature pages.
   ------------------------------------------------------------------ */

.fp-explore-card,
.explore-card {
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    padding: 28px 24px !important;
    transition: all 0.25s ease !important;
    background: var(--bg-secondary, #141418) !important;
}

.fp-explore-card:hover,
.explore-card:hover {
    border-color: rgba(201,169,110,0.15) !important;
    transform: translateY(-2px) !important;
    background: var(--bg-tertiary, #1c1c22) !important;
}

.fp-explore-card h3,
.explore-card h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: var(--text-primary, #e5e5e7) !important;
}

.fp-explore-card p,
.explore-card p {
    font-size: 13px !important;
    color: var(--text-secondary, #86868b) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* --- 18j. About Page Sections ---
   Add visual section dividers for better content rhythm.
   ------------------------------------------------------------------ */

.about-content section,
.about-section {
    padding-bottom: 48px !important;
    margin-bottom: 48px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.about-content section:last-child,
.about-section:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* --- 18k. Work With Us Page ---
   Brand logos and stat bars get proper treatment.
   ------------------------------------------------------------------ */

.brand-logo {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--text-secondary, #86868b) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 18px 24px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    background: var(--bg-secondary, #141418) !important;
    transition: border-color 0.2s ease !important;
    text-align: center !important;
}

.brand-logo:hover {
    border-color: rgba(201,169,110,0.15) !important;
}

/* Stat progress bars */
.stat-bar {
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255,255,255,0.06) !important;
    overflow: hidden !important;
}

.stat-fill {
    height: 100% !important;
    border-radius: 2px !important;
    background: linear-gradient(90deg, #c9a96e, #d4b87a) !important;
}

/* --- 18l. Collections Page ---
   Give single-card state more presence. Constrain grid.
   ------------------------------------------------------------------ */

.collections-count,
.collection-count {
    font-size: 12px !important;
    color: var(--text-tertiary, #58585e) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 28px !important;
    font-weight: 600 !important;
}

/* --- 18m. Page Load Fade-In ---
   Subtle content entrance for all pages.
   ------------------------------------------------------------------ */

.fp-content,
.page-content,
.recommendations-grid,
.home-content {
    animation: filmaticFadeIn 0.35s ease both !important;
}

@keyframes filmaticFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-content,
    .page-content,
    .recommendations-grid,
    .home-content {
        animation: none !important;
    }
}

/* --- 18n. Filmatic 100 Filter Bar ---
   Group jump/decade/genre filters with visual separation.
   ------------------------------------------------------------------ */

.f100-filters,
.filmatic-100-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.f100-filter-group {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
}

.f100-filter-group + .f100-filter-group {
    padding-left: 12px !important;
    border-left: 1px solid rgba(255,255,255,0.06) !important;
}

.f100-filter-label {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--text-tertiary, #58585e) !important;
    margin-right: 4px !important;
    font-weight: 600 !important;
}

/* --- 18o. Hero Section Consistency ---
   Subtle gradient refinement for all feature page heroes.
   ------------------------------------------------------------------ */

.fp-hero {
    position: relative !important;
    overflow: hidden !important;
}

.fp-hero::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 120px !important;
    background: linear-gradient(to bottom, transparent, var(--bg-primary, #0c0c0e)) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Hero subtitle styling */
.fp-hero-subtitle,
.fp-subtitle {
    font-size: 15px !important;
    color: var(--text-secondary, #86868b) !important;
    line-height: 1.6 !important;
    max-width: 520px !important;
}

/* --- 18p. Mobile Refinements ---
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
    /* Section spacing — tighter on mobile */
    .home-potw,
    .home-latest,
    .home-discover,
    .home-lists {
        padding: 48px 0 !important;
    }

    .partnerships-section {
        padding: 40px 0 !important;
    }

    /* Quiz carousel dots — bigger touch targets */
    .quiz-carousel-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        min-height: 8px !important;
    }

    .quiz-carousel-dot.active {
        width: 24px !important;
        border-radius: 4px !important;
    }

    /* Double Feature grid — allow stacking on phones */
    .fp-df-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }

    /* Calendar title overflow */
    .calendar-card-info {
        overflow: hidden !important;
    }

    /* Newsletter text sizing */
    .newsletter-signup h2,
    .newsletter-signup h3,
    .home-newsletter-inner h2,
    .home-newsletter-inner h3 {
        font-size: 20px !important;
    }

    /* Filter pills — horizontal scroll on mobile */
    .f100-filters,
    .filmatic-100-filters {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 12px !important;
    }

    .f100-filters::-webkit-scrollbar,
    .filmatic-100-filters::-webkit-scrollbar {
        display: none !important;
    }

    .f100-filter-group + .f100-filter-group {
        padding-left: 8px !important;
        border-left: none !important;
    }

    /* Explore More cards stack on mobile */
    .fp-explore-grid,
    .explore-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Small phones */
@media (max-width: 390px) {
    .fp-df-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    }

    .filter-btn,
    .f100-jump,
    .df-category-btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* --- 18q. Focus States for Accessibility ---
   Visible gold focus ring on interactive elements.
   ------------------------------------------------------------------ */

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.header-cta:focus-visible,
.filter-btn:focus-visible,
.f100-jump:focus-visible,
.quiz-start-btn:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(201,169,110,0.6) !important;
    outline-offset: 2px !important;
}

/* --- 18r. Recommendation Cards Refinement ---
   Polish the cards on /recommendations/ page.
   ------------------------------------------------------------------ */

.rec-card {
    border: 1px solid rgba(255,255,255,0.04) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--bg-secondary, #141418) !important;
}

.rec-card .rec-card-content {
    padding: 16px !important;
}

.rec-card .rec-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
}

.rec-card .rec-card-excerpt {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: var(--text-secondary, #86868b) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.rec-card .rec-card-date {
    font-size: 12px !important;
    color: var(--text-tertiary, #58585e) !important;
    margin-top: 12px !important;
}

/* --- 18s-rec-fonts: REMOVED ---
   Recs page now uses Inter (matching About + Work With Us pages).
   No font override needed. */

/* --- 18s-rec newsletter: REMOVED ---
   Recs page now has its own dark-themed newsletter section with Beehiiv iframe.
   No longer hiding iframe or injecting custom form. */

/* --- 18s. Hero-to-POTW Seamless Transition ---
   Eliminate the harsh cutoff between hero and Film of the Week.
   Tighten spacing, extend gradient, add a subtle gold divider accent.
   ------------------------------------------------------------------ */

/* Pull hero bottom edge closer */
.hero-section,
.hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Extend the hero gradient fade so it bleeds further down */
.hero-gradient::after {
    height: 360px !important;
}

/* Tighten POTW top padding — 80px felt like a wall */
body.home .home-potw {
    padding-top: 40px !important;
    position: relative;
}

/* Subtle gold accent line bridging hero and POTW */
body.home .home-potw::before {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent);
    margin: 0 auto 36px;
}

/* Mood buttons: tighten bottom margin so less dead space before POTW */
.hero-moods {
    margin-bottom: 32px !important;
    padding-bottom: 0 !important;
}

/* --- 18t. Mobile Hero CTA & Mood Pills ---
   Bigger CTA button on mobile, mood pills wrap instead of scroll.
   ------------------------------------------------------------------ */

@media (max-width: 768px) {
    /* Bigger hero title on mobile */
    .hero-title,
    .hero h1 {
        font-size: 11vw !important;
        line-height: 1.05 !important;
    }

    /* Mood pills: staggered two-row layout (Concept 2) */
    .hero-moods {
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: auto !important;
        scroll-snap-type: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .hero-moods::-webkit-scrollbar {
        display: none !important;
    }

    .hero-moods .mood-row {
        display: flex !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .hero-moods > a,
    .hero-moods .mood-pill,
    .hero-moods button {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 13px !important;
    }
}

/* --- 18u. Quiz Broadening Message ---
   Make the "Casting a wider net" message a subtle inline hint,
   not a button-like box that crowds the action buttons.
   ------------------------------------------------------------------ */

/* --- 18v. Hero Golden Sweep Animation ---
   JS-driven animation. Only the sweep glow keyframe is needed in CSS.
   JS handles all element hiding, timing, and cleanup.
   ------------------------------------------------------------------ */

@keyframes heroSweepGlow {
    0% { transform: translateX(-110%); opacity: 1; }
    65% { opacity: 1; }
    100% { transform: translateX(110%); opacity: 0; }
}

/* --- 18u. Quiz Broadening Message --- */

.quiz-broadening-msg,
#quiz-broadening-msg {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 13px !important;
    color: var(--text-tertiary, #58585e) !important;
    font-style: italic !important;
    text-align: center !important;
    padding: 8px 16px !important;
    margin: 4px auto 12px !important;
    max-width: 320px !important;
    line-height: 1.4 !important;
}

/* --- 18w. Hero Animation Pre-hide ---
   Hide hero children via CSS before JS runs.
   Prevents FOUC: no layout flash of mood pills, no text visible before sweep.
   JS heroGoldenSweep() overrides with inline opacity when animating.
   ------------------------------------------------------------------ */

body.home .hero-content > * {
    opacity: 0;
    animation: heroFallbackReveal 0s 3s forwards;
}

@keyframes heroFallbackReveal {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.home .hero-content > * {
        opacity: 1;
        animation: none;
    }
}