/* asterix.fan video directory — styles (moved out of the generated .cfm so they're editable and the
   generator template carries no CSS braces). Rendered client-side by site.js from window.__SITE__. */
:root { --blue:#184ea6; --gold:#ffd23f; --ink:#0b1f47; --red:#ff0033; }
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; min-height:100vh; font-family:'Comic Neue',system-ui,-apple-system,sans-serif; background:var(--blue); color:#fff; }
.bg { position:fixed; inset:0; z-index:-1; background:var(--blue) url(inset.jpg) center center / contain no-repeat; }
@media (max-aspect-ratio:1/1){ .bg{ background-size:cover; } }
.wrap { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:44px 16px; }

/* language switcher */
.switch { display:flex; gap:6px; justify-content:center; }
.switch button { padding:6px 16px; border-radius:999px; border:2px solid var(--gold); background:transparent; color:var(--gold); font-weight:800; cursor:pointer; font-family:inherit; font-size:14px; }
.switch button.active { background:var(--gold); color:var(--ink); }

/* hero */
.brand { text-align:center; }
.brand h1 { margin:0; font-size:clamp(30px,6vw,52px); color:var(--gold); letter-spacing:.02em; text-shadow:3px 3px 0 rgba(0,0,0,.35),0 2px 14px rgba(8,20,55,.6); }
.brand p { margin:8px 0 0; font-size:clamp(14px,2.6vw,18px); color:#eef3ff; text-shadow:0 2px 10px rgba(8,20,55,.8); }
.cta-row { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:16px; }
.cta { display:inline-flex; align-items:center; gap:8px; padding:12px 26px; border-radius:999px; text-decoration:none; font-weight:800; font-size:clamp(14px,2.2vw,16px); border:0; cursor:pointer; box-shadow:0 4px 18px rgba(0,0,0,.4); font-family:inherit; }
.cta--yt { background:var(--red); color:#fff; }
.cta--yt:hover { background:#e60030; transform:translateY(-1px); }
.cta--member { background:var(--gold); color:var(--ink); }
.cta--member:hover { filter:brightness(1.05); transform:translateY(-1px); }
.cta[hidden] { display:none; }
.member-note { margin:12px 0 0; font-size:13px; color:#dbe4ff; text-shadow:0 2px 8px rgba(8,20,55,.8); }

/* watch (YouTube) section */
.watch { display:flex; flex-direction:column; align-items:center; gap:18px; width:100%; }
.sec { margin:8px 0 0; font-size:clamp(18px,3vw,24px); color:var(--gold); text-shadow:2px 2px 0 rgba(0,0,0,.3); }
.pls { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.pl { background:var(--gold); color:var(--ink); padding:9px 18px; border-radius:999px; text-decoration:none; font-weight:800; box-shadow:0 3px 12px rgba(0,0,0,.3); }
.pl:hover { filter:brightness(1.05); }
.grid { display:grid; gap:22px; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); width:100%; max-width:980px; }
.card { background:#fff; color:var(--ink); border-radius:16px; overflow:hidden; border:3px solid var(--ink); box-shadow:0 10px 28px rgba(8,20,55,.55); transition:transform .12s,box-shadow .12s; }
.card:hover { transform:translateY(-4px); box-shadow:0 12px 0 var(--gold),0 16px 30px rgba(8,20,55,.5); }
.hero { display:block; aspect-ratio:16/9; background:#0b1f47; }
.hero img { width:100%; height:100%; object-fit:cover; display:block; }
.hero.ph { display:flex; align-items:center; justify-content:center; color:#9fb0d0; font-weight:700; letter-spacing:.04em; }
.card h2 { margin:13px 16px 10px; font-size:20px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; padding:0 16px 16px; }
.chip { display:inline-block; padding:7px 16px; border-radius:999px; background:var(--blue); color:#fff; text-decoration:none; font-weight:800; }
.chip:hover { background:#13408f; }
.chip.soon { background:#c9d2e6; color:#5a6b8c; pointer-events:none; }
.chip.dl { background:var(--gold); color:var(--ink); }
.chip.dl.locked { background:#e6e9f2; color:#8a97b4; }
/* Teaser (a YouTube Short). Deliberately SECONDARY to the watch chip — outlined instead of filled —
   so the album stays the thing you click. It rides on the album's card, never on one of its own. */
.chip.teaser { background:transparent; color:var(--blue); border:2px solid var(--blue);
  padding:5px 14px; font-weight:700; }
.chip.teaser:hover { background:var(--blue); color:#fff; }
.card h2 a { color:inherit; text-decoration:none; }
.card h2 a:hover { text-decoration:underline; }

/* ---- per-album page: /videos/<lang>/<nn>-<title>/ ---- */
.albumpage .wrap { max-width:900px; }
.crumbs { display:flex; align-items:center; gap:12px; padding:18px 4px; flex-wrap:wrap; }
.crumbs a { color:var(--gold); font-weight:800; text-decoration:none; }
.crumbs .langs { margin-left:auto; display:flex; gap:6px; }
.crumbs .lang { display:inline-block; padding:4px 12px; border-radius:999px; background:rgba(255,255,255,.14);
  color:#fff; text-decoration:none; font-weight:800; font-size:13px; }
.crumbs .lang.on { background:var(--gold); color:var(--ink); }
.album { background:#fff; color:var(--ink); border:3px solid var(--ink); border-radius:16px;
  padding:22px 24px 26px; box-shadow:0 10px 28px rgba(8,20,55,.55); }
.album h1 { margin:0 0 16px; font-size:30px; line-height:1.2; }
.album h2 { font-size:19px; margin:26px 0 10px; display:flex; align-items:center; gap:9px; }
.album h2 .n { font-size:12px; background:var(--blue); color:#fff; border-radius:999px; padding:2px 9px; }
/* The player facade: a poster until clicked, then the real embed (see core/site.py). */
.player { position:relative; display:block; aspect-ratio:16/9; border-radius:12px; overflow:hidden;
  background:#0b1f47; cursor:pointer; border:2px solid var(--ink); }
.player img { width:100%; height:100%; object-fit:cover; display:block; }
.player .play { position:absolute; inset:0; margin:auto; width:84px; height:84px; border-radius:50%;
  border:none; background:rgba(19,64,143,.92); color:#fff; font-size:30px; cursor:pointer; }
.player:hover .play { background:var(--gold); color:var(--ink); }
.player.ph { display:flex; align-items:center; justify-content:center; color:#9fb0d0; font-weight:700; }
.albumpage iframe { width:100%; aspect-ratio:16/9; border:2px solid var(--ink); border-radius:12px; }
.album .chips { padding:14px 0 0; }
.synopsis { font-size:16px; line-height:1.65; margin:16px 0 0; }
.chapters ol { list-style:none; margin:0; padding:0; columns:2; column-gap:26px; }
.chapters li { break-inside:avoid; margin:0 0 5px; }
.chapters a { color:var(--ink); text-decoration:none; display:flex; gap:9px; font-size:14.5px; }
.chapters a:hover { color:var(--blue); text-decoration:underline; }
.chapters .t { color:var(--blue); font-weight:800; font-variant-numeric:tabular-nums; min-width:52px; }
.cast ul { list-style:none; margin:0; padding:0; }
.cast li { margin:0 0 6px; font-size:15px; }
/* Every teaser for this album — where the landing page's single chip lands. */
.tgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.tcard { display:block; text-decoration:none; color:var(--ink); border:2px solid var(--ink);
  border-radius:12px; overflow:hidden; background:#f4f7ff; }
.tcard:hover { box-shadow:0 6px 0 var(--gold); transform:translateY(-2px); }
.tcard img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.tcard span { display:block; padding:9px 11px; font-size:13.5px; font-weight:700; line-height:1.35; }
@media (max-width:640px) { .chapters ol { columns:1; } .album { padding:16px 15px 20px; } }

footer { text-align:center; padding:18px 16px; color:#eef3ff; font-size:13px; line-height:1.6; text-shadow:0 2px 8px rgba(8,20,55,.8); }
footer a { color:var(--gold); }

/* account widget (top-right) — auth handled by account.js */
.acct { position:fixed; top:14px; right:16px; z-index:50; }
.acct__ava { width:42px; height:42px; border-radius:50%; border:2px solid var(--ink); cursor:pointer; box-shadow:0 3px 12px rgba(0,0,0,.35); display:block; background:#fff; object-fit:cover; }
.acct__menu { position:absolute; top:54px; right:0; min-width:236px; background:#fff; color:var(--ink); border:2px solid var(--ink); border-radius:14px; box-shadow:0 12px 30px rgba(8,20,55,.5); padding:12px; display:none; }
.acct__menu.open { display:block; }
.acct__name { font-weight:800; font-size:14px; margin:0 0 2px; word-break:break-word; }
.acct__email { font-size:12px; color:#5a6b8c; margin:0 0 10px; word-break:break-word; }
.acct__sep { border:0; border-top:1px solid #e2e8f5; margin:8px 0; }
.acct__row { display:block; width:100%; text-align:left; background:none; border:0; padding:9px 6px; border-radius:8px; font:inherit; font-size:14px; color:var(--ink); cursor:pointer; }
.acct__row:hover { background:#eef3ff; }
