/* ==========================================================================
   CINEMATCH AI — ULTRA-PREMIUM DESIGN SYSTEM (DARK MODE)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-primary: #06070a;
    --bg-surface: #0e0f17;
    --bg-surface-light: #161824;
    --bg-glass: rgba(16, 18, 27, 0.72);
    --bg-glass-hover: rgba(26, 29, 43, 0.85);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents & Glows */
    --accent-gold: #f5c518;
    --accent-gold-light: #ffdb57;
    --accent-gold-glow: rgba(245, 197, 24, 0.3);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.3);
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.3);

    /* Borders & Dividers */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-bright: rgba(255, 255, 255, 0.18);
    --border-accent: rgba(245, 197, 24, 0.4);

    /* Shadows & Effects */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 35px var(--accent-gold-glow);

    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   02. BASE RESETS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

button, input, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   03. AMBIENT LIGHTING & DYNAMIC BACKDROP
   -------------------------------------------------------------------------- */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    filter: blur(10px) brightness(0.6);
    transform: scale(1.05);
    transition: opacity 1.2s ease, background-image 1.2s ease;
}

.backdrop.active {
    opacity: 0.35;
}

.backdrop-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: 
        radial-gradient(circle at 50% 0%, rgba(245, 197, 24, 0.12), transparent 50%),
        linear-gradient(180deg, rgba(6, 7, 10, 0.85) 0%, #06070a 100%);
}

.ambient-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}

.glow-top-left {
    top: -150px;
    left: -150px;
    background: var(--accent-gold);
}

.glow-bottom-right {
    bottom: -150px;
    right: -150px;
    background: var(--accent-purple);
}

/* --------------------------------------------------------------------------
   04. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    background: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-gold), #d49a00);
    display: grid;
    place-items: center;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 0 16px var(--accent-gold-glow);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.ai-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    background: rgba(245, 197, 24, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 197, 24, 0.4);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-back-link {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #a855f7 !important;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.nav-back-link:hover {
    background: rgba(168, 85, 247, 0.3);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.nav-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    width: 220px;
}

.nav-search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold-glow);
    width: 280px;
}

.nav-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
}

.nav-search-box input::placeholder {
    color: var(--text-muted);
}

.shortcut-key {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   05. HERO SECTION & CONSOLE
   -------------------------------------------------------------------------- */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 6vw 70px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    background: rgba(245, 197, 24, 0.08);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: 22px;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 12px var(--accent-gold);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.eyebrow-text {
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: clamp(34px, 4.8vw, 56px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 18px;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #f5c518 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.75;
}




/* Glass Search Console (Sticky Navigation) */
.search-console {
    position: sticky;
    top: 85px;
    z-index: 99;
    background: rgba(14, 15, 23, 0.92);
    backdrop-filter: blur(28px);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-lg);
    padding: 10px 10px 10px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transition: var(--transition-normal);
}


.search-console:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 40px var(--accent-gold-glow), var(--shadow-lg);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.search-icon {
    font-size: 24px;
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
}

.search-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.limit-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.limit-selector select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-gold);
    font-weight: 700;
    cursor: pointer;
}

.limit-selector select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

#searchButton {
    background: linear-gradient(135deg, var(--accent-gold), #d49a00);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px var(--accent-gold-glow);
}

#searchButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-gold-glow);
}

.autocorrect-banner {
    margin-top: 16px;
    padding: 10px 20px;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.35);
    border-radius: var(--radius-full);
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.15);
    animation: fadeIn 0.3s ease;
}

.search-error {
    margin-top: 20px;
    width: 100%;
}

.mistake-card {
    background: rgba(14, 15, 23, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.mistake-icon {
    font-size: 38px;
    line-height: 1;
    background: rgba(245, 197, 24, 0.12);
    padding: 14px;
    border-radius: 50%;
    border: 1px solid rgba(245, 197, 24, 0.3);
    flex-shrink: 0;
}

.mistake-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.mistake-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.mistake-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* Quick Discovery Presets */
.quick-presets {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.presets-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chips-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.preset-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.preset-chip:hover {
    background: rgba(245, 197, 24, 0.12);
    border-color: rgba(245, 197, 24, 0.4);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

/* Recent Session History Tray */
.recent-search-section {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.recent-label {
    font-size: 11px;
    color: var(--text-muted);
}

.recent-chips {
    display: flex;
    gap: 6px;
}

.recent-chip {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.clear-history-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   06. SPOTLIGHT SECTION (SEARCH TARGET)
   -------------------------------------------------------------------------- */
.section-container {
    max-width: 1400px;
    width: 90vw;
    margin: 0 auto;
}

.spotlight-section {
    padding: 40px 0 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.spotlight-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    box-shadow: var(--shadow-lg);
}

.spotlight-poster-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.spotlight-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.spotlight-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-details h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.1;
    margin-bottom: 16px;
}

.movie-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rating-badge {
    background: rgba(245, 197, 24, 0.15);
    border: 1px solid rgba(245, 197, 24, 0.4);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: var(--radius-md);
}

.year-badge, .tmdb-badge {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.genre-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.genre-pill {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
}

.synopsis {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 800px;
}

.spotlight-actions {
    display: flex;
    gap: 14px;
}

.primary-action-btn {
    background: linear-gradient(135deg, var(--accent-gold), #d49a00);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.secondary-action-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
}

.secondary-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}



/* --------------------------------------------------------------------------
   07. RECOMMENDATION HUB & TOOLBAR
   -------------------------------------------------------------------------- */
.recommendations-section {
    padding: 40px 0 100px;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.header-titles h2 {
    font-family: 'Syne', sans-serif;
    font-size: 34px;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-count-pill {
    padding: 6px 16px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* View Switcher Toggle */
.view-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 3px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.view-btn.active, .view-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

/* --------------------------------------------------------------------------
   08. MOVIE CARDS (GRID VS LIST VIEW)
   -------------------------------------------------------------------------- */
/* Grid Mode */
.movie-grid.grid-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

.movie-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 197, 24, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-gold-glow);
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .card-poster {
    transform: scale(1.06);
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 7, 10, 0.95) 100%);
}

.match-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.match-high {
    background: rgba(245, 197, 24, 0.85);
    color: #000;
}

.match-mid {
    background: rgba(168, 85, 247, 0.85);
    color: #fff;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    z-index: 5;
}

.card-info h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.star-rating {
    color: var(--accent-gold);
    font-weight: 700;
}

/* List Mode */
.movie-grid.list-mode {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.movie-grid.list-mode .movie-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    height: 200px;
}

.movie-grid.list-mode .card-poster-wrapper {
    aspect-ratio: auto;
    height: 100%;
}

.movie-grid.list-mode .card-gradient-overlay {
    display: none;
}

.movie-grid.list-mode .card-info {
    position: static;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-grid.list-mode .card-info h3 {
    font-size: 20px;
    white-space: normal;
    margin-bottom: 8px;
}

.list-overview {
    font-size: 13px;
    color: var(--text-secondary);
    line-clamp: 2;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
}

/* Alert No Results */
.no-results-alert {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
}

.alert-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.reset-filters-btn {
    margin-top: 16px;
    background: var(--accent-gold);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   09. LOADING & OVERLAY STATES
   -------------------------------------------------------------------------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.spinner-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.glow-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.inner-spinner {
    position: absolute;
    inset: 8px;
    border: 3px solid transparent;
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.6s linear reverse infinite;
}

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

.loading-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.loading-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. MOOD EXPLORER SECTION
   -------------------------------------------------------------------------- */
.moods-section {
    padding: 90px 0;
    border-top: 1px solid var(--border-glass);
}

.section-header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header-center h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.mood-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.mood-card {
    position: relative;
    height: 310px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass-bright);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.mood-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(245, 197, 24, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 197, 24, 0.25);
}

.mood-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.mood-card:hover .mood-bg {
    transform: scale(1.1);
    opacity: 0.85;
}

.sci-fi { background-image: url('https://image.tmdb.org/t/p/w780/edv5CZvWj09upOsy2Y6IwDhK8bt.jpg'); }
.dark-hero { background-image: url('https://image.tmdb.org/t/p/w780/qJ2tW6WMUDux911r6m7haRef0WH.jpg'); }
.cosmic { background-image: url('https://image.tmdb.org/t/p/w780/gEU2QniE6E77NI6lCU6MxlNBvIx.jpg'); }
.cult { background-image: url('https://image.tmdb.org/t/p/w780/d5iIlFn5s0ImszYzBPb8JPIfbXD.jpg'); }

.mood-content {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(6,7,10,0.1) 0%, rgba(6,7,10,0.7) 40%, rgba(6,7,10,0.95) 100%);
}

.mood-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 3px 10px;
    background: rgba(245, 197, 24, 0.12);
    border: 1px solid rgba(245, 197, 24, 0.3);
    border-radius: 9999px;
    align-self: flex-start;
}

.mood-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.mood-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.45;
}

.mood-action {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.mood-card:hover .mood-action {
    transform: translateX(4px);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. ENDLESS DISCOVERY MODAL & ARCHITECTURE MODAL
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    z-index: 2;
    width: min(1080px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #10121d 0%, #0a0b12 100%);
    border: 1px solid rgba(245, 197, 24, 0.28);
    border-radius: 24px;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.95), 0 0 60px rgba(245, 197, 24, 0.14);
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 15, 23, 0.8);
    border: 1px solid rgba(245, 197, 24, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: var(--accent-gold);
    color: #000;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
}

.modal-movie-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    padding: 40px;
    align-items: stretch;
}

.modal-poster {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 197, 24, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.modal-info h2 {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #ffffff;
}

.modal-info .movie-meta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.stat-box {
    background: var(--bg-surface-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-info p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
    margin: 16px 0 24px;
}

.chain-discover-btn {
    background: linear-gradient(135deg, #ffd700 0%, #d49a00 100%);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    border: none;
    padding: 16px 32px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(245, 197, 24, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chain-discover-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(245, 197, 24, 0.6);
    background: linear-gradient(135deg, #ffe033 0%, #e6a800 100%);
}

/* Architecture Modal Specifics */
.architecture-modal-content {
    padding: 40px;
}

.arch-header {
    text-align: center;
    margin-bottom: 30px;
}

.arch-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 30px;
}

.arch-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-step {
    display: flex;
    gap: 20px;
    padding: 18px;
    background: var(--bg-surface-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.step-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: 'Syne', sans-serif;
}

.step-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.step-details p {
    font-size: 13px;
    color: var(--text-secondary);
}

.arch-footer {
    margin-top: 30px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   12. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 14px;
    max-width: 360px;
}

.footer-stats-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-stat {
    padding: 22px 18px;
    background: rgba(18, 20, 29, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.footer-stat:hover {
    border-color: rgba(245, 197, 24, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 197, 24, 0.15);
}

.stat-number {
    display: block;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #f5c518 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.back-to-top {
    color: var(--accent-gold);
    text-decoration: none;
}

/* 40-Movie Category Discovery Tabs & Pills */
.category-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px;
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted, #94a3b8);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab:hover {
    background: rgba(245, 197, 24, 0.18);
    border-color: rgba(245, 197, 24, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%);
    border-color: var(--accent-gold, #f5c518);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.3);
}

.category-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: var(--accent-gold, #f5c518);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.search-filter-group input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: var(--radius-md, 10px);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s ease;
    width: 140px;
}

.search-filter-group input:focus {
    border-color: var(--accent-gold, #f5c518);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.25);
}

.toolbar-reset-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 8px 14px;
    border-radius: var(--radius-md, 10px);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.toolbar-reset-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #f87171;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   13. UTILITIES & RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .spotlight-card {
        grid-template-columns: 200px 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-stats-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding-top: 120px;
    }
    .search-console {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }
    .search-controls-right {
        justify-content: space-between;
    }
    .spotlight-card {
        grid-template-columns: 1fr;
    }
    .modal-movie-body {
        grid-template-columns: 1fr;
    }
    .controls-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}