/* ============================================
   CineLog — Deep Gold + Midnight Premium Theme
   ============================================ */

:root {
    /* Midnight palette */
    --bg-deep: #06070d;
    --bg-primary: #0b0d18;
    --bg-card: #0f1222;
    --bg-card-hover: #141828;
    --bg-elevated: #192038;
    --bg-input: #121726;

    /* Text */
    --text-primary: #e4e7f2;
    --text-secondary: #7d89aa;
    --text-muted: #4e5570;
    --text-dim: #343a54;

    /* Deep gold accent (primary) */
    --accent-gold: #c4943a;
    --accent-gold-light: #d8a84e;
    --accent-gold-dim: rgba(196, 148, 58, 0.12);

    /* Secondary accents — muted */
    --accent-rose: #b85870;
    --accent-slate: #6080c0;
    --accent-teal: #3ca090;

    /* Legacy aliases (keep JS working) */
    --accent-primary: #c4943a;
    --accent-secondary: #b07030;
    --accent-tertiary: #6080c0;
    --accent-green: #3ca090;
    --accent-purple: #7860b8;
    --accent-pink: #b85870;

    --gradient-hero: linear-gradient(135deg, #c4943a 0%, #d06840 45%, #b85870 100%);
    --gradient-accent-line: linear-gradient(90deg, var(--accent-gold), var(--accent-rose), transparent);

    --border-subtle: rgba(255, 255, 255, 0.035);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.09);

    --shadow-card: 0 4px 28px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 16px 56px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(196, 148, 58, 0.14);
    --shadow-glow: 0 0 70px rgba(196, 148, 58, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    /* subtle radial glow at top */
    background-image: radial-gradient(ellipse 70% 40% at 50% -5%, rgba(196,148,58,0.04) 0%, transparent 60%);
}

::selection { background: rgba(196, 148, 58, 0.25); color: #fff; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Ambient Background ---- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    animation: orbFloat 24s ease-in-out infinite;
}

.orb-1 {
    width: 650px; height: 650px;
    background: var(--accent-gold);
    top: -280px; right: -180px;
    opacity: 0.055;
}

.orb-2 {
    width: 500px; height: 500px;
    background: var(--accent-slate);
    bottom: -200px; left: -150px;
    opacity: 0.045;
    animation-delay: -9s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: var(--accent-rose);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.03;
    animation-delay: -17s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -32px) scale(1.04); }
    66% { transform: translate(-16px, 20px) scale(0.96); }
}

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 7, 13, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gradient-accent-line);
    opacity: 0.3;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 34px; height: 34px;
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.1); color: var(--accent-gold-light); }

.logo-text {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-accent { color: var(--accent-gold); }

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

.movie-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.025);
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.movie-counter:hover { border-color: rgba(196, 148, 58, 0.18); color: var(--text-primary); }

.hours-counter {
    background: linear-gradient(135deg, rgba(196, 148, 58, 0.06), rgba(184, 88, 112, 0.04));
    border-color: rgba(196, 148, 58, 0.1);
}

.hours-counter .counter-icon { color: var(--accent-rose); }

.hours-counter span:not(.counter-icon) {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-gold);
}

.counter-icon { color: var(--accent-gold); display: inline-flex; align-items: center; }

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 88px 40px 52px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero-content {
    max-width: 540px;
    flex-shrink: 0;
    animation: fadeUp 0.9s ease-out;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
    opacity: 0.85;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 26px; height: 1px;
    background: var(--accent-gold);
    opacity: 0.6;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.title-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.75;
    max-width: 440px;
}

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

/* ---- Filmstrip ---- */
.filmstrip-container {
    flex: 1;
    max-width: 390px;
    animation: fadeUp 0.9s ease-out 0.25s both;
}

.filmstrip {
    background: #040509;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    height: 380px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.03);
}

.filmstrip-holes {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    width: 24px;
    flex-shrink: 0;
    background: #030406;
    z-index: 2;
}

.filmstrip-holes span {
    display: block;
    width: 12px; height: 8px;
    margin: 0 auto;
    background: #181a28;
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.7);
}

.filmstrip-track { flex: 1; overflow: hidden; position: relative; }

.filmstrip-scroll {
    display: flex;
    flex-direction: column;
    animation: filmScroll 20s linear infinite;
    gap: 3px;
    padding: 3px 0;
}

.filmstrip-scroll:hover { animation-play-state: paused; }

.filmstrip-frame { position: relative; width: 100%; flex-shrink: 0; overflow: hidden; }

.filmstrip-frame img {
    width: 100%; height: 150px;
    object-fit: cover; display: block;
    filter: saturate(0.7) contrast(1.1) brightness(0.9);
    transition: var(--transition-smooth);
}

.filmstrip-frame:hover img {
    filter: saturate(1.0) contrast(1.1) brightness(1.0);
    transform: scale(1.05);
}

.filmstrip-frame-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.filmstrip-frame:hover .filmstrip-frame-overlay { opacity: 1; }

.filmstrip-frame-caption {
    font-size: 0.6rem; color: rgba(255,255,255,0.75);
    font-weight: 500; text-align: center; letter-spacing: 0.05em;
}

@keyframes filmScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.filmstrip-track::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 1; mix-blend-mode: overlay;
}

.filmstrip-track::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(4,5,9,0.7) 0%, transparent 18%, transparent 82%, rgba(4,5,9,0.7) 100%);
    pointer-events: none; z-index: 2;
}

.filmstrip-label {
    text-align: center; margin-top: 14px;
    font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.24em;
    color: var(--text-dim);
}

/* ---- Recently Added Ticker ---- */
.recent-section {
    margin-top: 60px;
    animation: fadeUp 0.9s ease-out 0.15s both;
}

.section-label {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(to right, var(--border-light), transparent);
    max-width: 100px;
}

.ticker-wrapper {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    padding: 8px 0 12px;
}

.ticker-track {
    display: flex; gap: 14px;
    width: max-content;
    animation: ticker var(--ticker-speed, 28s) linear infinite;
}

.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-card {
    flex: 0 0 165px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    background: var(--bg-card);
}

.ticker-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(196,148,58,0.22);
    border-color: rgba(196, 148, 58, 0.25);
    z-index: 2;
}

.ticker-card img {
    width: 100%; height: 245px;
    object-fit: cover; display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.9);
}

.ticker-card:hover img { transform: scale(1.05); filter: saturate(1.08); }

.ticker-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 44px 10px 12px;
    background: linear-gradient(to top, rgba(6,7,13,0.98) 0%, rgba(6,7,13,0.4) 60%, transparent 100%);
}

.ticker-card-title {
    font-size: 0.78rem; font-weight: 700;
    line-height: 1.3; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-primary);
}

.ticker-card-meta {
    font-size: 0.64rem; color: var(--accent-gold);
    font-weight: 600; letter-spacing: 0.02em;
}

/* ---- Controls ---- */
.controls {
    position: sticky;
    top: 72px; z-index: 90;
    background: rgba(6, 7, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
}

.controls-inner {
    max-width: 1320px; margin: 0 auto;
    padding: 14px 40px;
    display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap;
}

.search-box { position: relative; flex: 1; min-width: 220px; max-width: 280px; }

.search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
    transition: var(--transition-fast);
}

.search-box:focus-within .search-icon { color: var(--accent-gold); }

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    font-family: var(--font-body);
    font-size: 0.84rem; font-weight: 400;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-primary); outline: none;
    transition: var(--transition-fast);
}

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

.search-box input:focus {
    border-color: rgba(196, 148, 58, 0.32);
    box-shadow: 0 0 0 3px rgba(196, 148, 58, 0.06);
}

.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-select-wrap { display: flex; flex-direction: column; gap: 5px; }

.filter-select-wrap label {
    font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--text-muted); padding-left: 4px;
}

.filter-select-wrap select {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 9px 32px 9px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary); cursor: pointer; outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237d89aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: var(--transition-fast);
    min-width: 132px;
}

.filter-select-wrap select:focus {
    border-color: rgba(196, 148, 58, 0.32);
    box-shadow: 0 0 0 3px rgba(196, 148, 58, 0.06);
}

/* ---- Movie Listing ---- */
.movie-listing {
    position: relative; z-index: 1;
    max-width: 1320px; margin: 0 auto;
    padding: 40px 40px 64px;
    min-height: 400px;
}

/* Year Group */
.year-group {
    margin-bottom: 52px;
    animation: fadeUp 0.6s ease-out both;
}

.year-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.year-label {
    font-family: var(--font-display);
    font-size: 2.1rem; font-weight: 900; font-style: italic;
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; flex-shrink: 0;
}

.year-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, var(--border-light), transparent);
}

.year-count {
    font-size: 0.7rem; color: var(--text-muted);
    font-weight: 600; letter-spacing: 0.04em;
    background: var(--bg-card);
    padding: 3px 12px; border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

/* ---- CARD GRID (2-column, full info always visible) ---- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.movie-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    animation: fadeUp 0.5s ease-out both;
    position: relative;
}

.movie-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 3px 0 0 3px;
    z-index: 1;
}

.movie-card:hover {
    border-color: rgba(196, 148, 58, 0.18);
    box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(196,148,58,0.1);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.movie-card:hover::before { opacity: 1; }

/* Poster column */
.movie-card-poster {
    position: relative;
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.movie-card-poster img {
    width: 100%; height: 100%;
    min-height: 155px;
    object-fit: cover; display: block;
    transition: var(--transition-smooth);
    filter: saturate(0.85) brightness(0.92);
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.06);
    filter: saturate(1.0) brightness(1.0);
}

/* Details column — always visible */
.movie-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.movie-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.movie-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    flex: 1;
    min-width: 0;
}

.movie-card:hover .movie-card-title { color: var(--accent-gold-light); }

.movie-card-ratings {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.card-rating {
    font-family: var(--font-mono);
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 9px; border-radius: 5px;
    line-height: 1.4; text-align: center;
    min-width: 52px;
}

.card-rating.imdb {
    color: var(--accent-gold);
    background: rgba(196, 148, 58, 0.1);
    border: 1px solid rgba(196, 148, 58, 0.2);
}

.card-rating.mine {
    color: var(--accent-rose);
    background: rgba(184, 88, 112, 0.1);
    border: 1px solid rgba(184, 88, 112, 0.2);
}

.movie-card-chips {
    display: flex; flex-wrap: wrap; gap: 4px;
}

.movie-card-moods {
    display: flex; flex-wrap: wrap; gap: 4px;
}

.movie-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.movie-card-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; color: var(--text-muted);
    transition: var(--transition-fast);
}

.movie-card:hover .movie-card-meta-item { color: var(--text-secondary); }

.movie-card-comment {
    font-size: 0.76rem; color: var(--text-secondary);
    font-style: italic; font-weight: 300;
    line-height: 1.5;
    padding: 7px 10px;
    background: rgba(255,255,255,0.015);
    border-left: 2px solid var(--accent-gold);
    border-radius: 0 4px 4px 0;
    opacity: 0.8;
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-card-comment { opacity: 1; }

/* Hover overlay */
.movie-card-overlay { display: none; }
.movie-card-info { display: none; }
.movie-card-footer { display: none; }
.movie-card-name { display: none; }
.movie-card-year-badge { display: none; }
.movie-card-date { display: none; }

/* Small mood tags inside cards */
.mood-tag-sm {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 100px;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---- Show More Button ---- */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 11px 24px;
    background: rgba(196, 148, 58, 0.04);
    border: 1px dashed rgba(196, 148, 58, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.show-more-btn:hover {
    background: rgba(196, 148, 58, 0.08);
    border-color: rgba(196, 148, 58, 0.35);
    color: var(--accent-gold);
}

.show-more-chevron {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.show-more-btn.expanded .show-more-chevron {
    transform: rotate(180deg);
}

/* Revealed hidden cards */
.movie-card.hidden-card { display: none; }

.movie-card.reveal {
    animation: fadeUp 0.45s ease-out both;
}

/* ---- Meta Chips (muted/monochrome premium) ---- */
.meta-chip {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 9px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    font-size: 0.68rem; font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    letter-spacing: 0.01em;
}

.meta-chip.genre-chip {
    background: rgba(120, 96, 184, 0.06);
    border-color: rgba(120, 96, 184, 0.12);
    color: #9080c0;
}

.meta-chip.country-chip {
    background: rgba(96, 128, 192, 0.06);
    border-color: rgba(96, 128, 192, 0.12);
    color: #7090b8;
}

.meta-chip.lang-chip {
    background: rgba(60, 160, 144, 0.06);
    border-color: rgba(60, 160, 144, 0.12);
    color: #50a898;
}

.meta-chip.year-chip {
    background: rgba(196, 148, 58, 0.06);
    border-color: rgba(196, 148, 58, 0.12);
    color: var(--accent-gold);
}

.meta-chip.runtime-chip {
    background: rgba(184, 88, 112, 0.06);
    border-color: rgba(184, 88, 112, 0.12);
    color: #b06880;
}

/* ---- Mood Tags (full-size, for row layout fallback) ---- */
.mood-tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 100px;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.03em;
    animation: fadeIn 0.4s ease-out both;
}

/* Muted, premium mood palette */
.mood-tag[data-mood="Inspiring"] { background: rgba(196,148,58,0.1); color: #c4943a; border: 1px solid rgba(196,148,58,0.2); }
.mood-tag[data-mood="Emotional"] { background: rgba(184,88,112,0.1); color: #b85870; border: 1px solid rgba(184,88,112,0.2); }
.mood-tag[data-mood="Mind-Bending"] { background: rgba(120,96,184,0.1); color: #9080c8; border: 1px solid rgba(120,96,184,0.2); }
.mood-tag[data-mood="Thrilling"] { background: rgba(200,96,64,0.1); color: #c06840; border: 1px solid rgba(200,96,64,0.2); }
.mood-tag[data-mood="Dark"] { background: rgba(80,88,120,0.12); color: #7080a0; border: 1px solid rgba(80,88,120,0.22); }
.mood-tag[data-mood="Classic"] { background: rgba(180,160,112,0.1); color: #b4a070; border: 1px solid rgba(180,160,112,0.2); }
.mood-tag[data-mood="Feel-Good"] { background: rgba(60,160,144,0.1); color: #40a898; border: 1px solid rgba(60,160,144,0.2); }
.mood-tag[data-mood="Epic"] { background: rgba(96,128,192,0.1); color: #6888c0; border: 1px solid rgba(96,128,192,0.2); }
.mood-tag[data-mood="Intense"] { background: rgba(192,64,64,0.1); color: #c05050; border: 1px solid rgba(192,64,64,0.2); }
.mood-tag[data-mood="Crime"] { background: rgba(180,120,48,0.1); color: #b48030; border: 1px solid rgba(180,120,48,0.2); }
.mood-tag[data-mood="Thriller"] { background: rgba(160,48,72,0.1); color: #a04050; border: 1px solid rgba(160,48,72,0.2); }
.mood-tag[data-mood="Drama"] { background: rgba(72,120,184,0.1); color: #5880b8; border: 1px solid rgba(72,120,184,0.2); }
.mood-tag[data-mood="Sport"] { background: rgba(48,176,96,0.1); color: #40b060; border: 1px solid rgba(48,176,96,0.2); }

/* Compact mood tag for inside grid cards */
.mood-tag-sm[data-mood="Inspiring"] { background: rgba(196,148,58,0.12); color: #c4943a; border: 1px solid rgba(196,148,58,0.2); }
.mood-tag-sm[data-mood="Emotional"] { background: rgba(184,88,112,0.12); color: #b85870; border: 1px solid rgba(184,88,112,0.2); }
.mood-tag-sm[data-mood="Mind-Bending"] { background: rgba(120,96,184,0.12); color: #9080c8; border: 1px solid rgba(120,96,184,0.2); }
.mood-tag-sm[data-mood="Thrilling"] { background: rgba(200,96,64,0.12); color: #c06840; border: 1px solid rgba(200,96,64,0.2); }
.mood-tag-sm[data-mood="Dark"] { background: rgba(80,88,120,0.14); color: #7080a0; border: 1px solid rgba(80,88,120,0.24); }
.mood-tag-sm[data-mood="Classic"] { background: rgba(180,160,112,0.12); color: #b4a070; border: 1px solid rgba(180,160,112,0.2); }
.mood-tag-sm[data-mood="Feel-Good"] { background: rgba(60,160,144,0.12); color: #40a898; border: 1px solid rgba(60,160,144,0.2); }
.mood-tag-sm[data-mood="Epic"] { background: rgba(96,128,192,0.12); color: #6888c0; border: 1px solid rgba(96,128,192,0.2); }
.mood-tag-sm[data-mood="Intense"] { background: rgba(192,64,64,0.12); color: #c05050; border: 1px solid rgba(192,64,64,0.2); }
.mood-tag-sm[data-mood="Crime"] { background: rgba(180,120,48,0.12); color: #b48030; border: 1px solid rgba(180,120,48,0.2); }
.mood-tag-sm[data-mood="Thriller"] { background: rgba(160,48,72,0.12); color: #a04050; border: 1px solid rgba(160,48,72,0.2); }
.mood-tag-sm[data-mood="Drama"] { background: rgba(72,120,184,0.12); color: #5880b8; border: 1px solid rgba(72,120,184,0.2); }
.mood-tag-sm[data-mood="Sport"] { background: rgba(48,176,96,0.12); color: #40b060; border: 1px solid rgba(48,176,96,0.2); }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

/* ---- Stats Bar ---- */
.stats-bar {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(11,13,24,0.5) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-inner {
    max-width: 1320px; margin: 0 auto;
    padding: 36px 40px;
    display: flex; align-items: center; justify-content: center;
    gap: 52px; flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; }

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem; font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}

.stat-label {
    font-size: 0.66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px; height: 42px;
    background: linear-gradient(to bottom, transparent, var(--border-medium), transparent);
}

/* ---- Footer ---- */
.footer { position: relative; z-index: 1; padding: 28px 0; }

.footer-inner {
    max-width: 1320px; margin: 0 auto;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}

.footer-left {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.8rem; color: var(--text-muted);
}

.footer-brand { font-weight: 800; font-size: 0.92rem; color: var(--text-secondary); letter-spacing: -0.02em; }
.footer-sep { color: var(--text-dim); }
.footer-left strong { color: var(--text-secondary); font-weight: 600; }

.github-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 20px; border-radius: 100px;
    border: 1px solid var(--border-medium);
    background: rgba(15, 18, 34, 0.8);
    transition: var(--transition-fast);
}

.github-link:hover {
    border-color: rgba(196, 148, 58, 0.28);
    color: var(--accent-gold);
    background: var(--bg-elevated);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* ---- No Results ---- */
.no-results { text-align: center; padding: 100px 20px; color: var(--text-muted); }
.no-results-icon { margin-bottom: 20px; opacity: 0.35; }
.no-results-icon svg { width: 56px; height: 56px; }
.no-results p { font-size: 1rem; }

/* ---- Loading ---- */
.loading-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--bg-deep);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-spinner { text-align: center; }

.spinner-ring {
    width: 40px; height: 40px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin 0.9s linear infinite;
}

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

.loading-spinner p { font-size: 0.84rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .header-inner { padding: 0 24px; }
    .hero { padding: 52px 24px 36px; }
    .hero-layout { flex-direction: column; gap: 36px; }
    .filmstrip-container { max-width: 100%; }
    .filmstrip { height: 240px; }
    .filmstrip-frame img { height: 78px; }
    .controls-inner { padding: 12px 24px; }
    .movie-listing { padding: 28px 24px 52px; }
    .search-box { max-width: 100%; flex-basis: 100%; }
    .filter-group { flex-basis: 100%; }
    .filter-select-wrap select { min-width: 0; flex: 1; }
    .stats-inner { gap: 28px; padding: 28px 24px; }
    .header-nav { gap: 8px; }
    .hours-counter { display: none; }
    .footer-inner { padding: 0 24px; }
    .movie-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.4rem; }
    .movie-card { grid-template-columns: 90px 1fr; }
    .movie-card-poster img { min-height: 130px; }
    .movie-card-body { padding: 12px 14px; gap: 8px; }
    .movie-card-title { font-size: 0.92rem; }
    .ticker-card { flex: 0 0 140px; }
    .ticker-card img { height: 205px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .stat-divider { display: none; }
    .stats-inner { gap: 16px 28px; }
    .year-label { font-size: 1.8rem; }
}
