:root {
  --bg: #0a0f0d;
  --bg2: #111a16;
  --card: #15201b;
  --line: #24352d;
  --text: #e6ece9;
  --muted: #8fa39a;
  --green: #1f8a5b;
  --green2: #2fbf7f;
  --silver: #c9d1d6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #133325 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--green2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, .logo { font-family: Cinzel, Georgia, serif; letter-spacing: .03em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: .2em 0 .4em; color: var(--silver); }
h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; color: var(--silver); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--green2); margin: 0; }
.eyebrow a { color: inherit; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 13, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--silver); }
.logo span { color: var(--green2); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--card); text-decoration: none; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 720px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
}

/* hero */
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.hero-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }
.trailer { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--green); box-shadow: 0 20px 60px rgba(31, 138, 91, .25); color: #fff; }
.trailer img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.trailer:hover { text-decoration: none; }
.trailer:hover img { transform: scale(1.03); }
.trailer-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: rgba(31, 138, 91, .9); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: 5px; }
.trailer-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.lead { max-width: 680px; color: var(--muted); font-size: 1.1rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-block; background: var(--green); color: #fff; border: 1px solid var(--green); padding: 10px 20px; border-radius: 999px; font: 600 .95rem Inter, sans-serif; cursor: pointer; }
.btn:hover { background: var(--green2); border-color: var(--green2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--silver); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--silver); }
.btn.small { padding: 5px 12px; font-size: .82rem; }

/* sections */
.block { padding: 24px 16px 40px; }
.page { padding-top: 40px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.head h2 { margin-top: 1em; }
.grid { display: grid; gap: 20px; }
.vgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ggrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.agrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* video card */
.vcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .15s, border-color .15s; }
.vcard:hover { transform: translateY(-3px); border-color: var(--green); text-decoration: none; }
.vthumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vplay { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.vmeta { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.vtag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green2); }
.vtitle { font-weight: 600; line-height: 1.35; }
.vdate { font-size: .82rem; color: var(--muted); }

/* next episode announcement */
.next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 20px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--green); background: linear-gradient(100deg, #174a33, #10221a); }
.next-badge { background: var(--green2); color: #06120c; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; }
.next-text { font-weight: 600; color: var(--text); }
.next-date { font: 700 1.1rem Cinzel, serif; color: var(--silver); margin-left: auto; }
.head .eyebrow + h2 { margin-top: .2em; }

/* project cards */
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(140deg, #173326, var(--card)); color: var(--text); }
.pcard:hover { border-color: var(--green); text-decoration: none; }
.pname { font: 700 1.25rem Cinzel, serif; color: var(--silver); }
.ptag { color: var(--green2); margin: 0; }
.pch { color: var(--muted); font-size: .88rem; }
.plist { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.prow { display: flex; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.prow h2 { margin: 0; }
.pact { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
@media (max-width: 720px) { .prow { flex-direction: column; } .pact { flex-direction: row; flex-wrap: wrap; } }

/* prose */
.prose { max-width: 760px; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chips a.on, .chips a:hover { color: var(--text); border-color: var(--green); text-decoration: none; }

/* gallery */
.gitem { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--card); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gitem:hover img { transform: scale(1.05); }
.ggrid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ggrid.wide .gitem { aspect-ratio: 16 / 10; }
.gfig { margin: 0; }
.gfig figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.lb .count { position: absolute; top: 24px; left: 24px; color: var(--muted); font-size: .9rem; }
.acard { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.acard:hover { text-decoration: none; }
.acover { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.acover img { width: 100%; height: 100%; object-fit: cover; }
.aname { font-weight: 600; margin-top: 6px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 16px; }
.lb img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 6px; }
.lb p { color: var(--silver); margin: 12px 0 0; text-align: center; }
.lb button { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 0; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lb .x { top: 16px; right: 16px; }
.lb .prev { left: 16px; top: 50%; }
.lb .next { right: 16px; top: 50%; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; font-size: .88rem; color: var(--muted); }
.foot p { margin: .3em 0; }

/* admin */
.admin .form { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.admin .form.narrow { max-width: 360px; }
.admin .form.row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.admin label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.admin label.check { flex-direction: row; align-items: center; }
.admin input:not([type=checkbox]):not([type=file]), .admin textarea { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; width: 100%; }
.admin .row input { width: auto; }
.admin textarea { resize: vertical; }
.admin .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; background: var(--card); }
.admin summary { cursor: pointer; font-weight: 600; }
.admin .box h2 { margin-top: 0; }
.flash { background: #143a28; border: 1px solid var(--green); padding: 10px 14px; border-radius: 8px; }
.flash.err { background: #3a1414; border-color: #8a1f1f; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.dim { opacity: .45; }
.adm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.adm-ph { display: flex; flex-direction: column; gap: 6px; }
.adm-ph img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.adm-ph form { display: flex; gap: 4px; }
.adm-ph input { padding: 4px 8px !important; font-size: .82rem !important; }

/* analytics cookie notice */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; padding: 12px 16px; background: var(--bg2); border-top: 1px solid var(--line); font-size: .9rem; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; color: var(--muted); }
