/* Spectral is loaded via a <link rel="stylesheet"> in each page's <head> (parallel
   discovery) — the old @import here serialized the font request behind styles.css. */

/* ============================================================
   Stargazr — time-of-day "sky" design system (ported from the
   launch-window seed). The sky/canvas follows the visitor's local
   hour; the stargazing go/no-go semantics and the starlight-violet
   identity stay constant across every phase. Night is the richest
   phase (this is a stargazing app), with a moon + dense stars.
   ============================================================ */

:root {
  /* stargazing conditions — semantic, constant across every phase */
  --go: #34d39a;     /* excellent / clear */
  --fair: #f5b62a;   /* marginal */
  --poor: #8b95a7;   /* washed out / cloudy */
  --alert: #ef4060;
  --aurora: #4fd1c5; /* aurora teal-green */
  --meteor: #fcd34d; /* meteor gold */
  --radius: 15px;

  --stars:
    radial-gradient(1px 1px at 18px 32px, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 64px 14px, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 122px 48px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 174px 22px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 40px 88px, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 96px 104px, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 150px 92px, rgba(255,255,255,.55), transparent),
    radial-gradient(1.4px 1.4px at 190px 70px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 26px 150px, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 80px 168px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 134px 150px, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 186px 176px, rgba(255,255,255,.55), transparent);
  --grid:
    linear-gradient(rgba(80,70,140,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,70,140,.06) 1px, transparent 1px);
  --stars2:
    radial-gradient(1.5px 1.5px at 50px 60px, rgba(255,255,255,.95), transparent),
    radial-gradient(1.6px 1.6px at 150px 30px, rgba(199,210,254,.9), transparent),
    radial-gradient(1.3px 1.3px at 100px 130px, rgba(255,255,255,.85), transparent),
    radial-gradient(1.5px 1.5px at 24px 118px, rgba(196,181,253,.85), transparent),
    radial-gradient(1.4px 1.4px at 210px 96px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 252px 170px, rgba(199,210,254,.85), transparent),
    radial-gradient(1.3px 1.3px at 70px 208px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 170px 198px, rgba(196,181,253,.85), transparent);
}

/* ---- DUSK (default / fallback) ---- */
:root, :root[data-theme="dusk"] {
  --bg: #0b0a1f;
  --head-bg: rgba(11,10,31,.6);
  --card: rgba(255,255,255,.045);
  --chip: rgba(255,255,255,.05);
  --line: rgba(255,255,255,.10);
  --ink: #e9eefb; --muted: #a6b0cf; --strong: #ffffff;
  --accent: #a5b4fc; --on-accent: #1a1547;
  --shadow: 0 12px 30px rgba(0,0,0,.40);
  --sky:
    radial-gradient(900px 480px at 50% 122%, rgba(167,139,250,.12), transparent 62%),
    radial-gradient(1100px 720px at 50% -12%, #261658 0%, #160e38 42%, #0b0a1f 100%);
  --tex: var(--stars); --tex-opacity: .5; --tex-size: 220px 220px; --tex2-opacity: .7;
  --sweep-color: rgba(165,180,252,.45);
}

/* ---- NIGHT (richest — the stargazing default mood) ---- */
:root[data-theme="night"] {
  --bg: #06050e;
  --head-bg: rgba(6,5,14,.62);
  --card: rgba(255,255,255,.05);
  --chip: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --ink: #eef2fb; --muted: #a4adcf; --strong: #ffffff;
  --accent: #b4bdff; --on-accent: #14112e;
  --shadow: 0 12px 30px rgba(0,0,0,.50);
  --sky:
    radial-gradient(800px 500px at 50% 120%, rgba(99,90,200,.16), transparent 60%),
    radial-gradient(1200px 820px at 50% -10%, #14122e 0%, #0a0a1c 45%, #06050e 100%);
  --tex: var(--stars); --tex-opacity: .9; --tex-size: 200px 200px; --tex2-opacity: .95;
  --sweep-color: rgba(180,189,255,.45);
}

/* ---- DAWN (rosy) ---- */
:root[data-theme="dawn"] {
  --bg: #241641;
  --head-bg: rgba(36,22,65,.55);
  --card: rgba(255,255,255,.06);
  --chip: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.13);
  --ink: #f4eef6; --muted: #d2bdd0; --strong: #ffffff;
  --accent: #c4b5fd; --on-accent: #2a1452;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --sky:
    radial-gradient(1300px 760px at 50% 116%, rgba(255,158,110,.46), rgba(214,120,200,.24) 38%, rgba(150,110,225,.14) 62%, transparent 78%),
    radial-gradient(1100px 840px at 50% -8%, #412c63 0%, #30214f 46%, #241641 100%);
  --tex: var(--stars); --tex-opacity: .26; --tex-size: 220px 220px; --tex2-opacity: .42;
  --sweep-color: rgba(196,181,253,.55);
}

/* ---- DAY (soft blue daylight) ---- */
:root[data-theme="day"] {
  --bg: #e6edf2;
  --head-bg: rgba(230,237,242,.72);
  --card: #ffffff;
  --chip: rgba(60,50,110,.05);
  --line: rgba(60,50,110,.12);
  --ink: #1c1840; --muted: #5f5a7e; --strong: #14112e;
  --accent: #6d28d9; --on-accent: #ffffff;
  --shadow: 0 12px 30px rgba(60,50,110,.12);
  --sky: radial-gradient(1000px 560px at 50% -10%, #cdd9e4 0%, #dde6ee 45%, #e6edf2 100%);
  --tex: var(--grid); --tex-opacity: .6; --tex-size: 40px 40px; --tex2-opacity: 0;
  --sweep-color: rgba(109,40,217,.28);
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg); background-image: var(--sky);
  background-attachment: fixed; background-repeat: no-repeat; min-height: 100vh;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  transition: background-color .7s ease, color .5s ease;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--tex-opacity, .5);
  background-image: var(--tex); background-size: var(--tex-size, 220px 220px);
  transition: opacity .6s ease;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--stars2); background-size: 300px 300px;
  opacity: var(--tex2-opacity, 0);
  animation: twinkle 4.2s ease-in-out infinite; transition: opacity .6s ease;
}
@keyframes twinkle { 0%,100% { opacity: var(--tex2-opacity, 0); } 50% { opacity: calc(var(--tex2-opacity, 0) * .35); } }

/* shooting stars (dark phases only) */
.sky-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky-fx i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255,255,255,.55); opacity: 0; }
.sky-fx i::after { content: ""; position: absolute; top: 50%; left: 2px; width: 92px; height: 1px; transform: translateY(-50%); background: linear-gradient(90deg, rgba(255,255,255,.55), transparent); }
.sky-fx i:nth-child(1) { top: 8%;  left: 80%; animation: shoot 11s ease-in 4s infinite; }
.sky-fx i:nth-child(2) { top: 16%; left: 94%; animation: shoot 16s ease-in 10s infinite; }
.sky-fx i:nth-child(3) { top: 28%; left: 70%; animation: shoot 21s ease-in 15s infinite; }
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0,0) rotate(-29deg); }
  2%   { opacity: 1; }
  10%  { opacity: 0; transform: translate(-340px, 190px) rotate(-29deg); }
  100% { opacity: 0; transform: translate(-340px, 190px) rotate(-29deg); }
}
[data-theme="day"] .sky-fx { display: none; }

/* moon — soft glowing disc */
.sky-fx .moon {
  position: absolute; top: 64px; right: 6%; width: 76px; height: 76px; border-radius: 50%;
  background:
    radial-gradient(circle at 66% 70%, rgba(150,160,195,.38), transparent 22%),
    radial-gradient(circle at 40% 58%, rgba(150,160,195,.30), transparent 16%),
    radial-gradient(circle at 60% 34%, rgba(150,160,195,.24), transparent 13%),
    radial-gradient(circle at 36% 33%, #fefdf8, #e9ecf5 52%, #c4cad8 100%);
  box-shadow: 0 0 38px 8px rgba(214,226,255,.22), inset -7px -7px 16px rgba(85,95,130,.45);
  opacity: 0; transition: opacity .6s ease;
}
[data-theme="night"] .sky-fx .moon { opacity: 1; }
[data-theme="dusk"] .sky-fx .moon { opacity: .5; }
@media (max-width: 600px) { .sky-fx .moon { top: 60px; right: 5%; width: 60px; height: 60px; } }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { line-height: 1.14; margin: 0; }
.accent { color: var(--accent); }
b { color: var(--strong); }

.site-head { border-bottom: 1px solid var(--line); background: var(--head-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.head-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand-mark { font-size: 1.35rem; }
.brand-name { letter-spacing: -.02em; font-size: 1.15rem; }
.header-right { display: inline-flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--accent); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle:active { transform: scale(.92); }
.head-tag { font-size: .76rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 4px 10px; border-radius: 999px; }

.hero { padding: 32px 0 14px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 850; letter-spacing: -.03em; }
.hero .sub { color: var(--muted); max-width: 58ch; margin: 11px 0 0; }
.hero em { color: var(--ink); font-style: italic; }

/* location / score summary */
.area-wrap { margin: 18px 0; }
.btn { font: inherit; font-weight: 700; border-radius: 11px; padding: 11px 18px; cursor: pointer; border: 1.5px solid transparent; transition: .15s; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--chip); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.linklike { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--ink); }
.loc-note { margin-left: 12px; color: var(--muted); font-size: .85rem; }

/* big tonight-score card */
.score { border-radius: var(--radius); padding: 20px 20px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.score-top { display: flex; align-items: center; gap: 16px; }
.score-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 1.5rem; color: #04121a; background: var(--poor); }
.score.s-go .score-ring { background: var(--go); } .score.s-fair .score-ring { background: var(--fair); } .score.s-poor .score-ring { background: var(--poor); }
.score h2 { font-size: 1.3rem; }
.score .score-sub { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.score.s-go { border-color: rgba(52,211,154,.35); }
.score.s-fair { border-color: rgba(245,182,42,.4); }
.factors { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.factors span b { color: var(--ink); font-weight: 700; }

/* condition panels */
.cond { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.panel.aurora { border-left-color: var(--aurora); }
.panel.meteor { border-left-color: var(--meteor); }
.panel.moon { border-left-color: var(--accent); }
.panel h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.panel .verdict { font-weight: 800; margin: 10px 0 4px; font-size: 1.15rem; }
.panel .verdict.v-go { color: var(--go); } .panel .verdict.v-fair { color: var(--fair); } .panel .verdict.v-poor { color: var(--poor); }
.panel .verdict.v-aurora { color: var(--aurora); } .panel .verdict.v-meteor { color: var(--meteor); }
.panel p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.panel .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.st { background: var(--chip); border-radius: 9px; padding: 9px 11px; }
.st-v { display: block; font-weight: 750; font-variant-numeric: tabular-nums; }
.st-l { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 1px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--meteor); font-weight: 800; }
.stale-badge { display: inline-block; font-size: .68rem; color: var(--fair); border: 1px solid color-mix(in srgb, var(--fair) 40%, transparent); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }

/* quiet / empty / error */
.quiet { text-align: center; padding: 38px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.quiet-ico { font-size: 2.6rem; }
.quiet h2 { font-size: 1.35rem; margin: 8px 0; }
.quiet p { color: var(--muted); max-width: 48ch; margin: 0 auto 16px; }

/* upcoming strip */
.upcoming { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.upcoming b { color: var(--ink); }

/* about */
.about { margin: 36px 0 8px; }
.about h2 { font-size: 1.3rem; margin-bottom: 14px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why li { color: var(--muted); padding-left: 26px; position: relative; }
.why li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: .9rem; }
.why strong { color: var(--ink); }
.disclaimer { color: var(--muted); font-size: .8rem; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.disclaimer a { color: var(--accent); }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0; color: var(--muted); font-size: .85rem; text-align: center; }
.site-foot a { color: var(--accent); }

/* theme-change sweep + toast */
.theme-sweep {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: radial-gradient(circle at var(--ox, 50%) var(--oy, 8%), var(--sweep-color), transparent 55%);
  opacity: 0; will-change: opacity, transform; animation: theme-sweep .85s ease forwards;
}
@keyframes theme-sweep { 0% { opacity: 0; transform: scale(.5); } 30% { opacity: .95; } 100% { opacity: 0; transform: scale(1.5); } }
.theme-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  z-index: 10000; pointer-events: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 700; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
  opacity: 0; animation: theme-toast 1.8s ease forwards;
}
@keyframes theme-toast {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  12%, 70% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ---------- ad slot (reserved, no shift) ---------- */
.ad-slot {
  margin: 26px 0; min-height: 100px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); overflow: hidden;
}
.ad-slot::before { content: "Advertisement"; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ad-slot .adsbygoogle { display: block; width: 100%; }
.ad-slot[data-empty] { display: none; }   /* JS hides slots AdSense didn't fill, so no orphan "Advertisement" box */

@media (max-width: 540px) { .cond { grid-template-columns: 1fr; } }

/* ============================================================
   BUILDER "COSMIC" OVERHAUL LAYER (added).
   Spectral serif headings + cinematic video hero/banners + an
   astrophotography highlight strip + photo feature cards. Layered
   on top of the existing sky theme; the conditions tool, corpus,
   chart/sky tools and all token classes are untouched.
   ============================================================ */
h1, h2, h3, .brand-name, .cine-hero h1, .cine-banner h2, .hl-card .cap b, .featcard .fc-h b {
  font-family: "Spectral", Georgia, "Times New Roman", serif; letter-spacing: 0;
}
.brand-name { font-weight: 700; }

/* video hero + banners (full-bleed) */
html, body { overflow-x: clip; }
[hidden] { display: none !important; }   /* .cond{display:grid} was overriding the UA hidden rule; app.js toggles the attr */
.cine { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 100% at 50% 0%, #1b1442, #06050e); }
.cine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cine .scrim { position: absolute; inset: 0; z-index: -1; }
.cine-hero { min-height: clamp(380px, 58vh, 560px); display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 0 0 22px 22px; margin-bottom: 10px; }
.cine-hero .scrim { background: linear-gradient(180deg, rgba(6,5,14,.45) 0%, rgba(6,5,14,.18) 40%, rgba(6,5,14,.92) 100%); }
.cine-inner { position: relative; padding: 56px 20px; max-width: 760px; }
.cine-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.cine-hero h1 .accent { color: var(--accent); }
.cine-hero .sub { color: #e7ecff; font-size: clamp(1.02rem, 2vw, 1.2rem); margin: 14px auto 0; max-width: 56ch; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.cine-hero .sub em { color: #fff; font-style: italic; }
.cine-banner { min-height: clamp(240px, 38vh, 340px); display: flex; align-items: center; border-radius: 22px; margin: 28px 0; }
@media (max-width: 880px) { .cine-banner { border-radius: 0; } }
.cine-banner.center { justify-content: center; text-align: center; }
.cine-banner .scrim { background: linear-gradient(90deg, rgba(6,5,14,.9), rgba(6,5,14,.3) 55%, transparent); }
.cine-banner.center .scrim { background: linear-gradient(0deg, rgba(6,5,14,.92), rgba(6,5,14,.4) 55%, rgba(6,5,14,.22)); }
.cine-banner .cine-inner { padding: 0 clamp(22px, 5vw, 48px); }
.cine-banner h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.cine-banner p { color: #dce3ff; margin-top: 10px; text-shadow: 0 2px 12px rgba(0,0,0,.9); max-width: 46ch; }
.cine-banner.center p { margin-inline: auto; }
.btn.gold { background: var(--meteor); color: #1c1400; border-color: var(--meteor); margin-top: 18px; box-shadow: 0 10px 26px -12px rgba(252,211,77,.6); }
.btn.gold:hover { filter: brightness(1.06); }

/* feature cards with photos */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.featcard { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .15s, transform .15s, box-shadow .2s; box-shadow: var(--shadow); }
.featcard:hover { border-color: var(--accent); transform: translateY(-3px); }
.featcard .fc-img { aspect-ratio: 16 / 6; overflow: hidden; background: linear-gradient(135deg, #1b1442, #06050e); }
.featcard .fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featcard:hover .fc-img img { transform: scale(1.05); }
.featcard .fc-body { padding: 14px 16px; }
.featcard .fc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.featcard .fc-h b { color: var(--strong); font-size: 1.05rem; }
.featcard .fc-badge { font-size: .66rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 999px; padding: 2px 9px; font-weight: 700; white-space: nowrap; }
.featcard .fc-d { color: var(--muted); font-size: .88rem; margin-top: 5px; }

/* astrophotography highlight strip */
.highlights { margin: 32px 0; }
.highlights > h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 14px; }
.hl-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.hl-strip::-webkit-scrollbar { display: none; }
.hl-card { scroll-snap-align: start; flex: none; width: 264px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: #06050e; box-shadow: var(--shadow); }
.hl-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hl-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; background: linear-gradient(0deg, rgba(6,5,14,.94), transparent); }
.hl-card .cap b { color: #fff; font-size: 1.02rem; display: block; }
.hl-card .cap span { color: var(--muted); font-size: .72rem; }

/* under reduced motion, drop the autoplay videos (the gradient bed shows) */
@media (prefers-reduced-motion: reduce) { .cine video { display: none; } }

/* ============================================================
   CINEMATIC LAYER 2 — interior-page heroes, Ken Burns stills,
   the 3D constellation viewer and the "tonight's dome" chart.
   ============================================================ */

/* Interior-page hero: same full-bleed .cine bed, shorter. Carries either a
   looping video (when a /video/hero-*.mp4 master exists) or a Ken Burns still. */
.cine-page { min-height: clamp(220px, 34vh, 320px); display: flex; align-items: flex-end; border-radius: 0 0 22px 22px; margin: 0 0 18px; }
.cine-page .scrim { background: linear-gradient(180deg, rgba(6,5,14,.35) 0%, rgba(6,5,14,.25) 45%, rgba(6,5,14,.94) 100%); }
.cine-page .cine-inner { padding: 28px 4px 20px; max-width: 760px; width: 100%; margin: 0 auto; text-align: left; }
.cine-page h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 700; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.85); margin: .3rem 0 .1rem; }
.cine-page .cine-kicker { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #cdd6ff; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.cine-page .cine-kicker a { color: inherit; text-decoration: none; }
.cine-page .cine-sub { color: #dfe5ff; margin: 4px 0 0; max-width: 58ch; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.cine-page img.cine-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
img.kenburns { animation: kenburns 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { 0% { transform: scale(1) translate3d(0,0,0); } 100% { transform: scale(1.12) translate3d(1.6%, -1.8%, 0); } }
@media (prefers-reduced-motion: reduce) { img.kenburns { animation: none; } }

/* 3D constellation viewer */
.sky3d { position: relative; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 130% at 50% -10%, #131038, #06050e 70%); box-shadow: var(--shadow); }
.sky3d canvas { display: block; width: 100%; height: auto; aspect-ratio: 100 / 62; cursor: grab; touch-action: pan-y; }
.sky3d canvas:active { cursor: grabbing; }
.sky3d .sky3d-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 18px 12px 8px; font-size: .72rem; color: #aab3d6; background: linear-gradient(0deg, rgba(6,5,14,.85), transparent); pointer-events: none; }
.sky3d .sky3d-cap b { color: #e8ecff; font-weight: 600; }

/* tonight's dome (moon-path) chart inside the moon panel */
.domechart { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 10px; background: linear-gradient(180deg, rgba(20,17,52,.55), rgba(6,5,14,.35)); }

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