/* cinema template — tangvanquan.com — dark cinematic palette */
:root {
  --bg: #0b0908;
  --bg-elev: #14110f;
  --ink: #f3ebe0;
  --ink-soft: #d8cfc2;
  --muted: #9a9186;
  --accent: #d4a84b;
  --accent-dim: #8a6a2e;
  --line: #2c2620;
  --soft: #1a1612;
  --strip: rgba(8, 6, 5, 0.92);
  --max: 1120px;
  --frame-h: min(78vh, 640px);
  --radius: 0;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, #2a1f14 0%, transparent 55%),
    linear-gradient(180deg, #0e0c0a 0%, var(--bg) 40%, #080706 100%);
  background-attachment: fixed;
  line-height: 1.75;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #e8c56a; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* —— chrome —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 8, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.menu-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.08em;
}
.menu-toggle:hover { border-color: var(--accent-dim); color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--accent); }

/* —— ads slot —— */
.ads-slot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
}
.ads-slot .ads-wrap {
  background: var(--soft) !important;
  border-color: var(--line) !important;
  border-radius: 4px !important;
}
.ads-slot .applist-title,
.ads-slot #ads .caption,
.ads-slot #ads figcaption {
  color: var(--muted) !important;
}

/* —— cinema frames —— */
.cine-reel { width: 100%; }

.cine-frame {
  position: relative;
  min-height: var(--frame-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.cine-frame--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cine-frame--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 6, 5, 0.15) 0%,
    rgba(8, 6, 5, 0.25) 45%,
    rgba(8, 6, 5, 0.75) 100%
  );
  pointer-events: none;
}

.cine-frame--img .cine-shot {
  width: 100%;
  flex: 1;
  min-height: calc(var(--frame-h) - 7.5rem);
  object-fit: cover;
  object-position: center top;
}

.cine-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--strip);
  border-top: 1px solid rgba(212, 168, 75, 0.22);
  padding: 1.15rem clamp(1rem, 4vw, 2.5rem) 1.35rem;
}

.cine-strip .kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.cine-strip h1,
.cine-strip h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--ink);
}

.cine-strip p {
  margin: 0;
  max-width: 52rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.cine-strip .cine-cta {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}
.cine-strip .cine-cta:hover {
  background: rgba(212, 168, 75, 0.12);
  color: #e8c56a;
}

/* —— pure text interludes —— */
.cine-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.cine-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 600;
}

.cine-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.cine-copy p:last-child { margin-bottom: 0; }

.cine-copy .lead {
  font-size: 1.12rem;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.cine-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.cine-links a {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
}

.cine-faq details {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  margin-bottom: 0.65rem;
  padding: 0.75rem 1rem;
}
.cine-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cine-faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— inner pages —— */
.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}
.page-main h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}
.page-main h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent);
}
.page-main p { color: var(--ink-soft); margin: 0 0 1rem; }
.err-box { text-align: center; padding-top: 4rem; min-height: 40vh; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #080706;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* —— mobile —— */
@media (max-width: 768px) {
  :root { --frame-h: min(62vh, 480px); }

  .menu-toggle { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(14, 12, 10, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--line);
  }

  .cine-frame--img .cine-shot {
    min-height: calc(var(--frame-h) - 9rem);
  }

  .cine-strip h1,
  .cine-strip h2 { font-size: 1.25rem; }

  .cine-copy { padding: 1.75rem 1rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
