/* ═══════════════════════════════════════════════════════════════
   STYLE.CSS — CineTrack / Lohaput SEO Pages
   Fonts loaded by the page: Bebas Neue · Inter · IBM Plex Mono
   ═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Surface */
  --bg:           #0c0e16;
  --surface:      #11131a;
  --surface-2:    #181b26;
  --surface-3:    #1f2233;
  --border:       #252840;
  --border-soft:  rgba(255,255,255,.06);

  /* Text */
  --text:         #e4ddd0;
  --text-muted:   #6b708a;
  --text-faint:   #3e4258;

  /* Accent — amber marquee */
  --accent:       #f5a623;
  --accent-dim:   rgba(245,166,35,.14);
  --accent-glow:  rgba(245,166,35,.28);

  /* Quality badges */
  --q4k-bg:     #3b1f6e;
  --q4k-text:   #c9a9ff;
  --q4k-border: #6b3fd4;

  --qhd-bg:     #0f2d52;
  --qhd-text:   #7ab8ff;
  --qhd-border: #1e5fa8;

  --qsd-bg:     #1e2030;
  --qsd-text:   #8890aa;
  --qsd-border: #353a55;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;

  /* Type scale */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing unit */
  --gap: 1.5rem;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: .04em;
  line-height: 1.1;
}

/* ── LAYOUT WRAPPER ──────────────────────────────────────────── */
.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── SECTION SPACING (single rule, no conflicts) ─────────────── */
section {
  padding-block: 3.5rem;
}

/* ── SECTION DESCRIPTION ─────────────────────────────────────── */
.section-description {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: .4rem;
  margin-bottom: 1.75rem;
  max-width: 68ch;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,14,22,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

/* Brand logo */
.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: .08em;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

/* Nav links */
header nav {
  display: flex;
  gap: 1.75rem;
}

header nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .18s;
}

header nav a:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */
nav.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-block: .7rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}

nav.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

nav.breadcrumb::before {
  content: '⌂  /';
  color: var(--text-faint);
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #181b2a 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  padding-block: 3rem 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Poster */
.hero-poster {
  width: 220px;
  height: 330px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 40px rgba(0,0,0,.7),
    0 0 60px var(--accent-glow);
  flex-shrink: 0;
}

/* Info side */
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--text);
  margin-bottom: .55rem;
  margin-top: .75rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--accent);
  color: #0c0e16;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .52rem 1.1rem;
  border-radius: var(--r-sm);
  transition: opacity .18s, transform .18s;
  margin-bottom: .9rem;
}

.hero-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.meta-line {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.meta-line strong {
  color: var(--text);
  font-weight: 600;
}

/* ── CHIP COMBO (language + quality pill, hero) ──────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.chip-combo {
  display: inline-flex;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.chip-lang {
  background: var(--surface-3);
  color: var(--text);
  padding: .28rem .7rem;
  letter-spacing: .03em;
}

.chip-q {
  padding: .28rem .7rem;
  letter-spacing: .04em;
}

/* ── QUALITY CLASSES (shared by .chip-q & .quality-tag) ─────── */
.q-4k {
  background: var(--q4k-bg);
  color: var(--q4k-text);
  border-color: var(--q4k-border);
}

.q-hd {
  background: var(--qhd-bg);
  color: var(--qhd-text);
  border-color: var(--qhd-border);
}

.q-sd {
  background: var(--qsd-bg);
  color: var(--qsd-text);
  border-color: var(--qsd-border);
}

/* ══════════════════════════════════════════════════════════════
   MOVIE INFORMATION
   ══════════════════════════════════════════════════════════════ */
.movie-information {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.movie-information h2 {
  font-size: 1.6rem;
  color: var(--accent);
}

.movie-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: var(--surface-2);
  padding: .9rem 1.1rem;
  transition: background .15s;
}

.info-item:hover {
  background: var(--surface-3);
}

.info-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-value {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════
   SELECTOR (Available Tracks)
   ══════════════════════════════════════════════════════════════ */
.selector {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.selector h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .6rem;
  transition: border-color .18s, background .18s;
}

.track:hover {
  background: var(--surface-3);
  border-color: var(--accent-dim);
}

.lang {
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.lang small {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.quality-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  padding: .28rem .7rem;
  border-radius: 100px;
  border: 1px solid;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH INTENTS
   ══════════════════════════════════════════════════════════════ */
.search-intents {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.search-intents h2 {
  font-size: 1.6rem;
  color: var(--text);
}

.search-query-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.search-query {
  display: block;
  font-size: .875rem;
  color: var(--text-muted);
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s, padding-left .15s;
}

.search-query:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  padding-left: 1.1rem;
}

.search-query::before {
  content: '⌕  ';
  font-family: var(--font-mono);
  font-size: .8em;
  opacity: .5;
}

/* ══════════════════════════════════════════════════════════════
   CONTENT BLOCK (About the film / Also searched as / Browse)
   ══════════════════════════════════════════════════════════════ */
.content-block {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.content-block h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: .9rem;
}

.content-block p {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 72ch;
  line-height: 1.75;
}

.tagline {
  margin-top: 1rem;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

/* Generic chips (.chip = keyword, .tag = browse) */
.chip,
.tag {
  display: inline-block;
  font-size: .75rem;
  font-family: var(--font-mono);
  padding: .3rem .75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  transition: color .15s, border-color .15s, background .15s;
  cursor: default;
}

.chip:hover,
.tag:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ══════════════════════════════════════════════════════════════
   FAQ SECTION
   ══════════════════════════════════════════════════════════════ */
.faq-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.faq-section h2 {
  font-size: 1.6rem;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .18s;
}

details[open] {
  border-color: var(--accent);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .15s;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

details[open] summary::after {
  content: '−';
  color: var(--accent);
}

details[open] summary {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

details p {
  padding: .9rem 1.15rem;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer .wrap {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
  line-height: 1.6;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 768px) {
  section { padding-block: 2.5rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-poster {
    width: 160px;
    height: 240px;
    margin-inline: auto;
  }

  .hero h1 {
    text-align: center;
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .hero > .wrap > div:last-child {
    text-align: center;
  }

  .hero .chip-row {
    justify-content: center;
  }

  .hero-btn {
    margin-inline: auto;
  }

  .movie-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .movie-info-grid {
    grid-template-columns: 1fr;
  }

  .track {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  header nav {
    gap: 1rem;
  }

  header nav a {
    font-size: .76rem;
  }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ── FOCUS STYLES (keyboard nav) ─────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}