/* ── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0a0a0f;
  --ink2:       #0e0e16;
  --ink3:       #131320;
  --surface:    #11111a;
  --surface2:   #15151f;
  --border:     #1c1c2a;
  --border2:    #252535;
  --text:       #ece8e0;
  --muted:      #5a5a72;
  --dim:        #2e2e42;
  --gold:       #d4a843;
  --gold2:      #f0c96e;
  --gold3:      #8a6c28;
  --gold-dim:   rgba(212,168,67,0.1);
  --gold-glow:  rgba(212,168,67,0.18);
  --green:      #3a7d5a;
  --green2:     #5ccc8f;
  --red:        #b84848;
  --red2:       #e07070;
  --blue:       #4878b0;
  --purple:     #7855a0;
  --sidebar-w:  300px;
  --header-h:   62px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Syne', 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* GRAIN */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5; mix-blend-mode: overlay;
}

/* ── HEADER ── */
.ci-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: rgba(10,10,15,0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border); z-index: 200;
}
.header-inner {
  max-width: 1600px; margin: 0 auto; height: 100%; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.header-brand { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.header-brand h1 {
  font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 60%, var(--gold2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-sub {
  font-size: 0.55rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px; font-family: 'DM Mono', monospace;
}

#headerSearch { flex: 1; max-width: 500px; position: relative; }

/* ── SEARCH BOX ── */
.search-wrap { position: relative; }
.search-box {
  display: flex; align-items: center; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: 8px; padding: 0 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.1);
}
.search-icon { font-size: 1rem; color: var(--muted); margin-right: 0.5rem; flex-shrink: 0; }
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: 'Syne', sans-serif;
  font-size: 0.9rem; font-weight: 500; padding: 0.7rem 0;
}
.search-box input::placeholder { color: var(--dim); }
.search-kbd {
  background: var(--border); border: 1px solid var(--border2); border-radius: 4px;
  padding: 0.12rem 0.4rem; font-size: 0.62rem; color: var(--muted);
  font-family: 'DM Mono', monospace; flex-shrink: 0; display: none;
}
@media (min-width: 900px) { .search-kbd { display: inline; } }

/* Suggestions */
.suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 10px;
  overflow: hidden; z-index: 500; list-style: none;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}
.suggestions li {
  padding: 0.72rem 1rem; cursor: pointer; font-size: 0.88rem;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Syne', sans-serif; font-weight: 500;
}
.suggestions li::before { content: '🎬'; font-size: 0.78rem; opacity: 0.5; flex-shrink: 0; }
.suggestions[data-mode="tv"] li::before { content: '📺'; }
.suggestions[data-mode="game"] li::before { content: '🎮'; }
.suggestions li:last-child { border-bottom: none; }
.suggestions li:hover, .suggestions li.active {
  background: rgba(212,168,67,0.07); color: var(--gold2);
}

/* ── MODE TOGGLE ── */
.mode-toggle {
  display: flex; align-items: center; background: var(--surface2);
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 3px; gap: 2px; flex-shrink: 0;
}
.mode-btn {
  background: transparent; border: none; color: var(--muted);
  font-family: 'Syne', sans-serif; font-size: 0.74rem; font-weight: 600;
  padding: 0.32rem 0.85rem; border-radius: 6px;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.04em; white-space: nowrap;
}
.mode-btn.active {
  background: rgba(212,168,67,0.14); color: var(--gold);
  border: 1px solid rgba(212,168,67,0.28);
}
.mode-btn:hover:not(.active) { color: var(--text); }

/* ── BACK HOME BUTTON ── */
.back-home-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 1px solid var(--border2); color: var(--muted);
  text-decoration: none; font-family: 'Syne', sans-serif; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.06em; padding: 0.42rem 0.95rem;
  border-radius: 6px; flex-shrink: 0; transition: all 0.2s; white-space: nowrap;
}
.back-home-btn:hover { border-color: rgba(212,168,67,0.4); color: var(--gold2); background: rgba(212,168,67,0.05); }
.back-home-btn:hover svg { transform: translateX(-2px); }
.back-home-btn svg { flex-shrink: 0; transition: transform 0.2s; }
@media (max-width: 768px) { .back-home-desktop { display: none !important; } }

/* ── MOBILE STICKY BAR ── */
.mobile-search-row {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 199;
  background: rgba(10,10,15,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem 0;
  flex-direction: column;
}
.mobile-search-row .search-box { width: 100%; border-radius: 8px; }
.mobile-search-row .search-box input { padding: 0.7rem 0; font-size: 0.9rem; }

.back-home-mobile {
  display: none; align-items: center; gap: 0.45rem; color: var(--muted);
  text-decoration: none; font-family: 'Syne', sans-serif; font-size: 0.74rem;
  font-weight: 600; letter-spacing: 0.05em; padding: 0.3rem 0; margin-bottom: 0.4rem;
  transition: color 0.2s; width: fit-content;
}
.back-home-mobile:hover { color: var(--gold2); }
.back-home-mobile svg { flex-shrink: 0; transition: transform 0.2s; }
.back-home-mobile:hover svg { transform: translateX(-3px); }

.mobile-mode-toggle {
  display: none; align-items: center; justify-content: center;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px;
  padding: 3px; gap: 2px; margin: 0.5rem 0; width: 100%;
}
.mobile-mode-toggle .mode-btn { flex: 1; text-align: center; font-size: 0.7rem; padding: 0.3rem 0.5rem; }
#mobileSearchSuggestions { position: absolute; top: calc(100% + 4px); left: 1rem; right: 1rem; z-index: 500; }

/* ── LANDING SCREEN ── */
.landing-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(212,168,67,0.05) 0%, transparent 70%);
}
.landing-inner { max-width: 680px; width: 100%; text-align: center; animation: fadeUp 0.7s ease both; }
.landing-icon {
  font-size: 3rem; display: block; margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 28px rgba(212,168,67,0.4));
}
.landing-title h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 7vw, 4rem); letter-spacing: 0.04em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.05; margin-bottom: 1rem;
}
.landing-title p {
  color: var(--muted); font-family: 'DM Mono', monospace;
  font-size: clamp(0.78rem, 2vw, 0.9rem); line-height: 1.75; margin-bottom: 2.5rem;
}
.landing-search-wrap { position: relative; margin-bottom: 1.5rem; }
.landing-search-box { border-radius: 10px !important; padding: 0 1.3rem !important; background: var(--surface) !important; border-color: var(--border2) !important; }
.landing-search-box input { padding: 1.05rem 0 !important; font-size: 1rem !important; }

.landing-mode-pills {
  display: flex; justify-content: center; gap: 0.45rem; margin-bottom: 1.5rem;
}
.landing-mode-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.38rem 1rem; border-radius: 6px; font-size: 0.74rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 1px solid var(--border2);
  background: var(--surface2); color: var(--muted);
  font-family: 'Syne', sans-serif; letter-spacing: 0.04em;
}
.landing-mode-pill.active { background: rgba(212,168,67,0.13); border-color: rgba(212,168,67,0.32); color: var(--gold); }
.landing-mode-pill:hover:not(.active) { color: var(--text); transform: translateY(-1px); }

.landing-hints { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.hint-chip {
  background: rgba(212,168,67,0.07); border: 1px solid rgba(212,168,67,0.18);
  color: var(--gold); padding: 0.28rem 0.85rem; border-radius: 5px;
  font-family: 'DM Mono', monospace; font-size: 0.76rem; cursor: pointer;
  transition: all 0.2s;
}
.hint-chip:hover { background: rgba(212,168,67,0.16); border-color: var(--gold); transform: translateY(-2px); }

/* ── APP LAYOUT ── */
.app-layout {
  display: grid; grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh; padding-top: var(--header-h);
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  overflow-y: auto; background: var(--ink2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ══════════════════════════════════════════════════════
   SIDEBAR POSTER — MOVIE/TV (portrait 2:3)
   ══════════════════════════════════════════════════════ */
.sidebar-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--surface2);
}

.sidebar-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.sidebar-poster-wrap:hover .sidebar-poster { transform: scale(1.04); }

.sidebar-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--ink2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR POSTER — GAME (landscape 16:9)
   ══════════════════════════════════════════════════════ */
.sidebar-poster-wrap.game-poster {
  aspect-ratio: 16 / 9 !important;
  min-height: 168px;
}

.sidebar-poster-wrap.game-poster .sidebar-poster {
  object-position: center center;
  object-fit: cover;
}

.sidebar-meta { padding: 1rem 1.2rem 2rem; flex: 1; }
.sidebar-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.5rem; letter-spacing: 0.04em; color: var(--gold2); line-height: 1.1; margin-bottom: 0.2rem;
}
.sidebar-year {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.1em; margin-bottom: 0.7rem;
}
.sidebar-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.7rem; }
.badge {
  background: rgba(212,168,67,0.09); border: 1px solid rgba(212,168,67,0.22);
  color: var(--gold); padding: 0.15rem 0.6rem; border-radius: 4px;
  font-family: 'DM Mono', monospace; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.05em;
}
.sidebar-tagline {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: #6a6a80; font-style: italic; margin-bottom: 0.85rem; line-height: 1.5;
}
.sidebar-overview {
  font-family: 'DM Mono', monospace; font-size: 0.75rem;
  line-height: 1.78; color: #808090; margin-bottom: 1.2rem;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.45rem; margin-bottom: 1.2rem; }
.sidebar-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.55rem 0.45rem; text-align: center;
}
.sidebar-stat-lbl {
  font-family: 'DM Mono', monospace; font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem;
}
.sidebar-stat-val {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.95rem; color: var(--gold2); letter-spacing: 0.02em; line-height: 1;
}
.sidebar-score-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.score-ring-wrap { position: relative; width: 76px; height: 76px; }
.score-ring { width: 76px; height: 76px; transform: rotate(-90deg); }
.score-track { fill: none; stroke: var(--border); stroke-width: 5; }
.score-fill {
  fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 163.4; stroke-dashoffset: 163.4;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22,1,0.36,1);
}
.score-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--gold2); letter-spacing: 0.02em;
}
.score-label {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
}

/* ── CONTENT AREA ── */
.content-area { min-width: 0; padding-bottom: 4rem; }

/* ── HERO BACKDROP ── */
.hero-backdrop {
  position: relative; height: clamp(200px, 36vw, 380px);
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero-backdrop-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  filter: brightness(0.28) saturate(0.55); transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-backdrop:hover .hero-backdrop-img { transform: scale(1.0); }
.hero-backdrop-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, var(--ink) 100%),
              linear-gradient(to right, var(--ink2) 0%, transparent 28%);
}
.hero-top-bar {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 2rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem); letter-spacing: 0.03em;
  color: var(--gold2); line-height: 1; margin-bottom: 0.45rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-badges-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hero-fin-quick { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.fin-quick-item { text-align: right; }
.fin-quick-item .fq-label {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.fin-quick-item .fq-val {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.2rem; letter-spacing: 0.02em; color: var(--gold2);
}

/* ── STAT RIBBON ── */
.stat-ribbon {
  display: flex; overflow-x: auto; gap: 0;
  border-bottom: 1px solid var(--border); scrollbar-width: none;
}
.stat-ribbon::-webkit-scrollbar { display: none; }
.stat-ribbon-item {
  flex: 1; min-width: 130px; padding: 1rem 1.1rem;
  border-right: 1px solid var(--border); text-align: center;
  transition: background 0.2s; cursor: default; position: relative;
}
.stat-ribbon-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--gold); transition: left 0.25s, right 0.25s;
}
.stat-ribbon-item:hover { background: rgba(212,168,67,0.04); }
.stat-ribbon-item:hover::after { left: 0; right: 0; }
.stat-ribbon-item:last-child { border-right: none; }
.stat-rib-label {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.35rem;
}
.stat-rib-value {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.45rem; color: var(--gold2); letter-spacing: 0.02em; line-height: 1;
}
.stat-rib-sub { font-family: 'DM Mono', monospace; font-size: 0.64rem; margin-top: 0.22rem; font-weight: 500; color: var(--green2); }
.stat-rib-sub.loss    { color: var(--red2); }
.stat-rib-sub.neutral { color: var(--muted); }

/* ── SHOW STAT BAND ── */
.show-stat-band {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
  gap: 0.55rem; padding: 1.2rem 1.5rem 0;
}
.show-stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.85rem; text-align: center;
}
.show-stat-card .lbl {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.32rem;
}
.show-stat-card .val {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.2rem; color: var(--gold2); letter-spacing: 0.02em; line-height: 1;
}

/* ── PROFIT BAR ── */
.profit-bar-wrap {
  margin: 1.5rem 1.5rem 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.5rem;
}
.profit-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.profit-bar-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.profit-bar-ratio { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); }
.profit-bar-label {
  display: flex; justify-content: space-between;
  font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-bottom: 0.5rem;
}
.profit-bar-track { background: var(--border); border-radius: 99px; height: 9px; overflow: visible; position: relative; }
.profit-bar-fill { height: 100%; border-radius: 99px; width: 0; transition: width 1.2s cubic-bezier(0.22,1,0.36,1); position: relative; }
.profit-pill-row { display: flex; gap: 0.65rem; margin-top: 0.85rem; flex-wrap: wrap; }
.profit-pill {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 7px; padding: 0.4rem 0.85rem;
  font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted);
}
.profit-pill strong { color: var(--text); font-weight: 600; }

/* ── CHARTS GRID ── */
.charts-master-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem;
}
.chart-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color 0.2s;
}
.chart-panel:hover { border-color: var(--border2); }
.chart-panel.span-2 { grid-column: 1 / -1; }
.chart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border);
}
.chart-panel-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.chart-body { padding: 1rem; }
.chart-tabs { display: flex; gap: 0.3rem; }
.tab-btn {
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
  padding: 0.28rem 0.8rem; border-radius: 5px;
  font-family: 'DM Mono', monospace; font-size: 0.7rem; cursor: pointer; transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold2); }
.tab-btn.active { background: rgba(212,168,67,0.1); border-color: var(--gold); color: var(--gold); }
.chart-wrap { position: relative; height: 240px; }
.chart-note {
  font-family: 'DM Mono', monospace; font-size: 0.62rem;
  color: var(--dim); text-align: center; padding: 0 1rem 0.8rem;
}

/* Production/Platforms list */
.prod-list { padding: 0.8rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prod-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.75rem; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.2s;
  animation: fadeUp 0.4s ease both;
}
.prod-item:hover { border-color: var(--border2); }
.prod-logo { width: 38px; height: 26px; object-fit: contain; filter: brightness(0.85) grayscale(0.3); flex-shrink: 0; background: white; border-radius: 4px; padding: 2px; }
.prod-no-logo { width: 38px; height: 26px; background: var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.prod-info { min-width: 0; }
.prod-name { font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-country { font-family: 'DM Mono', monospace; font-size: 0.64rem; color: var(--muted); }

/* ── SECTION HEADER ── */
.section-header {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); padding: 0 1.5rem; margin: 0.5rem 0 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── PEOPLE GRID ── */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(96px,1fr));
  gap: 0.7rem; padding: 0 1.5rem; margin-bottom: 1.5rem;
}
.person-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-align: center; cursor: default;
  transition: border-color 0.2s, transform 0.2s; animation: fadeUp 0.4s ease both;
}
.person-card:hover { border-color: rgba(212,168,67,0.28); transform: translateY(-3px); }
.person-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.person-no-img { width: 100%; aspect-ratio: 2/3; background: #12121c; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.person-name {
  font-family: 'Syne', sans-serif; font-size: 0.67rem; font-weight: 600;
  color: var(--text); padding: 0.42rem 0.3rem 0.18rem; line-height: 1.3;
}
.person-role {
  font-family: 'DM Mono', monospace; font-size: 0.57rem;
  color: var(--dim); padding: 0 0.3rem 0.5rem; line-height: 1.3;
}
.person-role.gold { color: var(--gold); }

/* ── SEASONS ── */
.seasons-table { padding: 0 1.5rem 1.5rem; }
.seasons-table-header {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.seasons-table-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.seasons-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 0.55rem; }
.season-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s; animation: fadeUp 0.3s ease both;
}
.season-card:hover { border-color: rgba(212,168,67,0.28); transform: translateY(-2px); }
.season-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.season-card-no-img { width: 100%; aspect-ratio: 2/3; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.season-card-body { padding: 0.5rem 0.65rem; }
.season-card-name { font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--text); margin-bottom: 0.12rem; }
.season-card-eps { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   🎮 GAME PANELS
═══════════════════════════════════════════ */
#screenshotsSection { padding: 0 1.5rem 1.5rem; }
.screenshots-header {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.screenshots-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 0.55rem; }
.screenshot-card {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16/9; transition: border-color 0.2s, transform 0.2s; animation: fadeUp 0.3s ease both;
}
.screenshot-card:hover { border-color: rgba(212,168,67,0.28); transform: translateY(-2px); }
.screenshot-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

#gameRatingsPanel { padding: 0 1.5rem 0; }
.game-ratings-header {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.game-ratings-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.game-ratings-chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.2rem; height: 260px;
}

#gameStatsPanel { padding: 0 1.5rem 1.5rem; }
.game-stats-header {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.game-stats-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.game-stats-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 0.55rem; }
.game-stat-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.7rem;
  transition: border-color 0.2s; animation: fadeUp 0.3s ease both;
}
.game-stat-item:hover { border-color: rgba(212,168,67,0.22); }
.game-stat-icon { font-size: 1.3rem; flex-shrink: 0; }
.game-stat-info { min-width: 0; }
.game-stat-lbl { font-family: 'DM Mono', monospace; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.2rem; }
.game-stat-val { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--gold2); }

/* ═══════════════════════════════════════════
   🎮 RELATED GAMES SECTION
═══════════════════════════════════════════ */
#relatedGamesSection {
  padding: 0 1.5rem 1.5rem;
}

.related-games-header {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-games-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.related-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
}

.related-game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  animation: fadeUp 0.4s ease both;
}

.related-game-card:hover {
  border-color: rgba(212,168,67,0.45);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.related-game-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.related-game-card-no-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.related-game-card-body {
  padding: 0.6rem 0.75rem;
}

.related-game-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.28rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-game-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-game-card-rating {
  color: var(--gold);
  font-weight: 600;
}

/* Platforms panel */
#platformsPanel { display: none; margin: 0 1.5rem 1rem; }
#platformsPanel .prod-list { padding: 0.8rem 1.2rem 1.2rem; }

/* ═══════════════════════════════════════════
   🏆 AWARDS SECTION
═══════════════════════════════════════════ */
#awardsSection { padding: 0 1.5rem 2rem; animation: fadeUp 0.5s ease both; }
.awards-header {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.awards-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.awards-summary-bar {
  display: flex; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 1.2rem;
}
.award-summary-item {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.85rem 1rem;
}
.award-summary-icon { font-size: 1.2rem; }
.award-summary-val {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.9rem; letter-spacing: 0.02em; color: var(--gold2); line-height: 1;
}
.award-summary-lbl {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
  align-self: flex-end; padding-bottom: 4px;
}
.award-summary-divider { width: 1px; height: 38px; background: var(--border); flex-shrink: 0; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(195px,1fr)); gap: 0.7rem; }
.award-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s; animation: fadeUp 0.4s ease both;
}
.award-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  opacity: 0; transition: opacity 0.25s;
}
.award-won { border-color: rgba(212,168,67,0.2); background: linear-gradient(145deg, rgba(212,168,67,0.04) 0%, var(--surface) 60%); }
.award-won::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.award-won:hover { border-color: rgba(212,168,67,0.5); transform: translateY(-3px); }
.award-won:hover::before { opacity: 1; }
.award-nom { border-color: rgba(80,80,100,0.3); }
.award-nom:hover { border-color: rgba(80,80,120,0.6); transform: translateY(-2px); }
.award-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.2rem; }
.award-icon { font-size: 1.3rem; }
.award-result-badge {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.14em; padding: 0.18rem 0.5rem; border-radius: 4px;
}
.badge-won { background: rgba(212,168,67,0.12); border: 1px solid rgba(212,168,67,0.32); color: var(--gold); }
.badge-nom { background: rgba(80,80,100,0.12); border: 1px solid rgba(80,80,120,0.28); color: var(--muted); }
.award-show {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.84rem; letter-spacing: 0.05em; color: var(--text); line-height: 1.2;
}
.award-category { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.award-year { font-family: 'DM Mono', monospace; font-size: 0.62rem; color: var(--dim); letter-spacing: 0.06em; margin-top: 0.1rem; }

/* ── META DUO ── */
.meta-duo { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; padding: 0 1.5rem 2rem; }
.meta-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.meta-card-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); padding: 0.72rem 1rem; border-bottom: 1px solid var(--border);
}
.meta-card-body {
  padding: 0.75rem 1rem; font-family: 'DM Mono', monospace;
  font-size: 0.76rem; line-height: 1.9; color: #8a8a9a;
}
.meta-tag {
  display: inline-flex; align-items: center; gap: 0.28rem;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 5px;
  padding: 0.18rem 0.55rem; font-size: 0.68rem; color: var(--text); margin: 0.12rem;
}

/* ── LOADER ── */
.loader {
  position: fixed; inset: 0; background: rgba(10,10,15,0.94);
  backdrop-filter: blur(10px); z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.loader-inner { text-align: center; animation: fadeUp 0.3s ease; }
.film-spinner { width: 56px; height: 56px; margin: 0 auto 1.2rem; position: relative; }
.film-reel {
  width: 56px; height: 56px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-right-color: rgba(212,168,67,0.4);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold2); margin-bottom: 0.3rem;
}
.loader-sub { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }

/* ── UTILS ── */
.hidden { display: none !important; }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ── TABLET ── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 255px; }
  .meta-duo { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --header-h: 54px; --mobile-search-h: 108px; }

  .header-inner { padding: 0 1rem; gap: 0.5rem; }
  #headerSearch { display: none !important; }
  .header-sub { display: none !important; }
  #modeToggle { display: none !important; }

  .mobile-search-row { display: flex !important; }
  .back-home-mobile { display: flex !important; }
  .mobile-mode-toggle { display: flex !important; }

  .landing-screen { padding-top: calc(var(--header-h) + var(--mobile-search-h) + 1.5rem) !important; }
  .app-layout { padding-top: calc(var(--header-h) + var(--mobile-search-h)) !important; grid-template-columns: 1fr !important; }

  .sidebar { position: static !important; height: auto !important; overflow: visible !important; border-right: none !important; border-bottom: 1px solid var(--border); }
  .sidebar-poster-wrap { aspect-ratio: 2/3 !important; height: auto !important; max-height: 75vw !important; }
  .sidebar-poster-wrap.game-poster { aspect-ratio: 16/9 !important; max-height: 55vw !important; }

  .hero-backdrop { height: 170px !important; }
  .hero-top-bar { flex-direction: column !important; align-items: flex-start !important; gap: 0.3rem !important; padding: 0.8rem 1rem !important; }
  .hero-title { font-size: 1.45rem !important; }
  .hero-fin-quick { display: none !important; }

  .stat-ribbon-item { min-width: 90px !important; padding: 0.6rem 0.7rem !important; }
  .stat-rib-value { font-size: 1.05rem !important; }
  .stat-rib-label { font-size: 0.52rem !important; }
  .show-stat-band { grid-template-columns: repeat(2,1fr) !important; padding: 0.7rem 1rem 0 !important; }
  .profit-bar-wrap { margin: 0.85rem 1rem !important; padding: 0.9rem 1.1rem !important; }
  .charts-master-grid { grid-template-columns: 1fr !important; padding: 0.85rem !important; gap: 0.6rem !important; }
  .chart-panel.span-2 { grid-column: 1 !important; }
  .chart-wrap { height: 205px !important; }
  .people-grid { grid-template-columns: repeat(3,1fr) !important; padding: 0 1rem !important; gap: 0.5rem !important; }
  .section-header { padding: 0 1rem !important; }
  .seasons-table { padding: 0 1rem 1.2rem !important; }
  .seasons-grid { grid-template-columns: repeat(auto-fill,minmax(86px,1fr)) !important; gap: 0.45rem !important; }
  .meta-duo { grid-template-columns: 1fr !important; padding: 0 1rem 1.5rem !important; gap: 0.6rem !important; }
  #screenshotsSection { padding: 0 1rem 1.2rem !important; }
  .screenshots-grid { grid-template-columns: 1fr 1fr !important; gap: 0.4rem !important; }
  #gameStatsPanel { padding: 0 1rem 1.2rem !important; }
  .game-stats-list { grid-template-columns: 1fr 1fr !important; gap: 0.4rem !important; }
  #gameRatingsPanel { padding: 0 1rem 0 !important; }
  #awardsSection { padding: 0 1rem 1.5rem !important; }
  .awards-grid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 0.5rem; }
  .award-summary-val { font-size: 1.5rem; }
  .related-games-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
  #relatedGamesSection { padding: 0 1rem 1.2rem !important; }
}

@media (max-width: 480px) {
  .header-brand h1 { font-size: 1rem; }
  .people-grid { grid-template-columns: repeat(3,1fr) !important; }
  .hero-title { font-size: 1.3rem !important; }
  .hero-backdrop { height: 145px !important; }
  .screenshots-grid { grid-template-columns: 1fr !important; }
  .awards-grid { grid-template-columns: 1fr 1fr; }
  .related-games-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 360px) {
  .people-grid { grid-template-columns: repeat(2,1fr) !important; }
}
