/* TOC Media film platform: classic, dignified, cinematic (brand style guide) */
:root {
  --navy: #253158; --blue: #2563AD; --blue-hover: #1D4F8C;
  --gold: #C9A55C; --gold-text: #9A7633; --gold-light: #E6C98F; --gold-light-hover: #F1DAA8;
  --ink: #22262C; --muted: #6B6F76; --line: #E4E3EE;
  --film-bg: #111317; --film-bg-2: #0B0C0F; --film-text: #E4E7EC; --film-muted: #9EA5B0;
  --beige-bg: #F7F4EE; --beige-line: #E6E1D6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--film-bg); color: var(--film-text); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-light); color: #14161A; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.topbar { background: var(--film-bg-2); border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.wordmark img { width: 36px; height: 36px; }
.wordmark-divider { width: 1px; height: 30px; background: rgba(255, 255, 255, .28); }
.wordmark-text { display: flex; align-items: baseline; gap: 6px; }
.wm-toc { font: 800 22px/1 var(--cond); letter-spacing: .14em; color: #fff; }
.wm-media { font: italic 500 23px/1 var(--serif); color: var(--gold-light); }

.account { display: flex; align-items: center; gap: 6px; }
.nav-link {
  background: none; border: 0; cursor: pointer; text-decoration: none;
  color: var(--film-text); font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
  padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; transition: color .25s var(--ease);
}
.nav-link:hover { color: var(--gold-light); }
.ministry-link { color: var(--film-muted); margin-right: 6px; }
.who { color: var(--film-muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }

/* ---------- Buttons ---------- */
.btn {
  height: 52px; padding: 0 30px; border-radius: 4px; cursor: pointer; border: 1.5px solid transparent;
  font: 700 15px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn-primary { background: var(--gold-light); color: #14161A; }
.btn-primary:hover:not(:disabled) { background: var(--gold-light-hover); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost-sm {
  height: 40px; padding: 0 16px; border-radius: 4px; cursor: pointer; background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55); font: 700 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.btn-ghost-sm:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Stage: big player first, poster blurred behind ---------- */
.stage { position: relative; overflow: hidden; background: var(--film-bg); }
.stage-bg {
  position: absolute; inset: -60px; background: url("/assets/poster-bg.jpg") center / cover no-repeat;
  filter: blur(40px); opacity: .35; transform: scale(1.1);
}
.stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, .7) 0%, rgba(10, 12, 16, .95) 100%);
}
.stage-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 32px 24px 28px; }

.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; }
.play-overlay {
  position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; border: 0; background: #fff; color: #14161A; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-left: 5px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55); transition: transform .25s var(--ease), background .25s var(--ease);
}
.play-overlay:hover { transform: scale(1.06); background: var(--gold-light-hover); }
.trailer-pill {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 4px; cursor: pointer; background: rgba(11, 12, 15, .82); color: #fff;
  font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s var(--ease);
}
.trailer-pill:hover { background: rgba(11, 12, 15, .96); color: var(--gold-light-hover); }
.player-note { margin: 14px 0 0; color: var(--film-muted); font: 700 13px/1.4 var(--cond); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Details + rental ---------- */
.details { background: var(--film-bg); border-top: 1px solid rgba(255, 255, 255, .06); }
.details-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px;
  border: 1px solid rgba(230, 201, 143, .4); border-radius: 999px; color: var(--gold-light);
  font: 700 13px/1 var(--cond); letter-spacing: .2em; text-transform: uppercase;
}
.pill-dot { font-size: 9px; }
.title { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font: italic 500 clamp(42px, 6vw, 64px)/1.05 var(--serif); letter-spacing: -0.012em; color: #fff; }
.badge {
  font: 800 14px/1 var(--cond); font-style: normal; letter-spacing: .1em; color: var(--film-bg);
  background: var(--film-muted); border-radius: 3px; padding: 5px 7px;
}
.producer { margin: 12px 0 0; color: #C3C8D0; font-size: 17px; }

.facts-row { display: flex; gap: 28px; align-items: center; margin: 32px 0 34px; flex-wrap: wrap; }
.trailer-card {
  position: relative; flex: none; width: 240px; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.trailer-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .25s var(--ease); }
.trailer-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.trailer-card:hover img { opacity: 1; }
.trailer-card-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 4px; white-space: nowrap;
  background: rgba(11, 12, 15, .82); color: #fff; font: 700 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
}
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.facts dt { color: var(--film-muted); font: 700 13px/1.6 var(--cond); letter-spacing: .16em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--film-text); font-size: 16px; line-height: 1.5; }

.synopsis-lede { margin: 0 0 14px; color: #fff; font: italic 400 23px/1.45 var(--serif); }
.body-dark { margin: 0 0 16px; max-width: 64ch; color: var(--film-text); font-size: 17px; line-height: 1.75; }
.cast { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #C3C8D0; font-size: 16px; }
.cast span { display: block; margin-bottom: 4px; color: var(--gold-light); font: 700 13px/1.2 var(--cond); letter-spacing: .2em; text-transform: uppercase; }

.details-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.rent-card { padding: 24px; background: #181B21; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.rent-price { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price { font: 500 36px/1 var(--serif); color: #fff; }
.price-note { color: var(--gold-light); font: 700 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; }
.rent-sub { margin: 8px 0 0; color: var(--film-muted); font-size: 15px; }
.status { margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--film-muted); font-size: 15px; }
.status.ok { color: #A8DDB5; }
.status.warn { color: #F2B3A8; }
.btn-block { width: 100%; }

.tv-note { border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.tv-note summary {
  list-style: none; cursor: pointer; padding: 14px 18px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--film-text); font: 700 14px/1.3 var(--cond); letter-spacing: .12em; text-transform: uppercase;
}
.tv-note summary::-webkit-details-marker { display: none; }
.tv-note summary::after { content: "+"; color: var(--gold-light); font: 400 22px/1 var(--sans); transition: transform .25s var(--ease); }
.tv-note[open] summary::after { transform: rotate(45deg); }
.tv-note summary:hover { color: var(--gold-light-hover); }
.tv-body { padding: 0 18px 16px; color: #C3C8D0; font-size: 15px; line-height: 1.6; }
.tv-body p { margin: 0 0 10px; }
.tv-body ul { margin: 0 0 10px; padding-left: 18px; }
.tv-body li { margin-bottom: 8px; }
.tv-body strong { color: #fff; font-weight: 600; }
.tv-tip { color: var(--film-muted); font-size: 14px; }

.poster { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* Gentle rise-in */
.details-main > *, .details-side > * { animation: rise .5s var(--ease) both; }
.details-main > :nth-child(2), .details-side > :nth-child(2) { animation-delay: .06s; }
.details-main > :nth-child(3), .details-side > :nth-child(3) { animation-delay: .12s; }
.details-main > :nth-child(n+4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Shared section text (mission section) */
.section-title { margin: 0; font: 500 clamp(30px, 4vw, 42px)/1.15 var(--serif); letter-spacing: -0.012em; color: var(--navy); }
.section-title.center { text-align: center; }
.body-text { margin: 0 0 18px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.body-text.center { text-align: center; }

.beige { background: var(--beige-bg); color: var(--ink); border-top: 1px solid var(--beige-line); border-bottom: 1px solid var(--beige-line); }
.beige-inner { max-width: 760px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin-bottom: 22px; }
.hairline { width: 64px; height: 1px; background: var(--gold); }
.intro { margin: 20px auto 14px; max-width: 46ch; font: italic 400 22px/1.55 var(--serif); color: var(--navy); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px;
  color: var(--blue); text-decoration: none; font: 700 15px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
}
.text-link:hover { color: var(--blue-hover); }
.text-link .arrow { transition: transform .25s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer { background: var(--film-bg-2); color: var(--film-muted); text-align: center; font-size: 14px; padding: 32px 24px 40px; }
.footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .details-inner { grid-template-columns: 1fr; gap: 36px; padding: 32px 20px 64px; }
  .details-side { position: static; }
  .poster { display: none; }
  .stage-inner { padding: 16px 12px 20px; }
  .beige-inner { padding: 64px 20px; }
}
@media (max-width: 600px) {
  .topbar-inner { padding: 0 16px; height: 64px; }
  .ministry-link, .who { display: none !important; }
  .wordmark { gap: 10px; }
  .wordmark img { width: 30px; height: 30px; }
  .wm-toc { font-size: 19px; }
  .wm-media { font-size: 20px; }
  .nav-link { padding: 0 8px; font-size: 13px; }
  .btn-ghost-sm { padding: 0 12px; }
  .nav-link, .btn-ghost-sm { white-space: nowrap; }
  .wordmark-divider { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .text-link { justify-content: center; text-align: center; }
  .play-overlay { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .trailer-pill { left: 12px; bottom: 12px; height: 38px; padding: 0 14px; font-size: 13px; }
  .trailer-card { width: min(200px, 56%); }
  .trailer-card-label { padding: 7px 10px; font-size: 12px; gap: 6px; }
  .facts-row { gap: 20px; }
}

@media (max-width: 400px) {
  #btn-signup { display: none; } /* the sign-in page has its own "Sign up" link */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
