/* FreeShowFinder site styles. Brand tokens copied from brand/tokens.css (Option A "After Dark"). */
@font-face { font-family: "Anton"; src: url(fonts/anton.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 400; src: url(fonts/inter-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 700; src: url(fonts/inter-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 800; src: url(fonts/inter-800.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #0D0A12; --surface: #1A1522; --surface-2: #251E30; --line: #3A3046;
  --text: #F6F2FA; --muted: #A79DB4;
  --hot: #FF2D7A; --hot-ink: #FFFFFF; --spark: #FFE14D; --spark-ink: #1A1300;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(13,10,18,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { border-radius: 7px; }
.word { font: 400 22px/1 var(--display); letter-spacing: .3px; }
.word b { font-weight: 400; color: var(--hot); }
.age { font: 800 12px var(--body); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; color: var(--muted); }

main { max-width: 1180px; margin: 0 auto; padding: 12px 16px 24px; display: grid; gap: 22px; }
@media (min-width: 900px) { main { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; padding-top: 22px; } }

/* Stage */
.stage-wrap, .rail-wrap { min-width: 0; }
.stage-wrap { display: grid; gap: 10px; }
.stage { position: relative; height: max(300px, min(calc(100svh - 215px), 125vw)); width: 100%; border-radius: var(--r); overflow: hidden; background: var(--surface); outline: none; touch-action: pan-y; user-select: none; }
@media (min-width: 900px) { .stage { height: auto; aspect-ratio: 16 / 11; } }
.media, .media > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media img { object-fit: cover; }
.media .bg { filter: blur(24px) brightness(.55); transform: scale(1.15); }
.media .fg { object-fit: contain; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,10,18,.55) 0%, transparent 22%, transparent 50%, rgba(13,10,18,.96) 100%); }
.stage.embed .shade { background: linear-gradient(180deg, transparent 70%, rgba(13,10,18,.9) 100%); }
.pills { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 800 12px var(--body); padding: 5px 10px; border-radius: 99px; }
.pill.live { background: var(--hot); color: var(--hot-ink); }
.pill.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.pill.soft { background: rgba(13,10,18,.7); color: var(--text); }
.pill.soft:empty { display: none; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.live i { animation: none; } }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(13,10,18,.55); font-size: 28px; line-height: 1; cursor: pointer; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.nav:hover { background: rgba(13,10,18,.85); }
.info { position: absolute; left: 16px; right: 16px; bottom: 14px; pointer-events: none; }
.name { margin: 0; font: 400 clamp(30px, 8vw, 46px)/1 var(--display); letter-spacing: .3px; overflow-wrap: anywhere; }
.stat { margin: 8px 0 0; font: 800 15px var(--body); }
.x { display: inline-block; background: var(--spark); color: var(--spark-ink); padding: 2px 8px; border-radius: 7px; margin-right: 8px; }
.x:empty { display: none; }
.sub, .hours { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.watch { display: block; text-align: center; text-decoration: none; background: var(--hot); color: var(--hot-ink); font: 800 18px var(--body); padding: 16px 20px; border-radius: 99px; border: 0; cursor: pointer; box-shadow: 0 8px 28px rgba(255,45,122,.35); transition: transform .08s; }
.watch:active { transform: scale(.98); }
.watch:focus-visible, .nav:focus-visible, .chip:focus-visible, .card:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; }
.count, .note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }

/* Rail */
.rail-wrap h2 { margin: 0 0 10px; font: 400 24px/1.1 var(--display); letter-spacing: .3px; }
.search { width: 100%; margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 99px; font: 700 13px var(--body); cursor: pointer; }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 900px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; } }
.card { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface); border: 2px solid transparent; cursor: pointer; padding: 0; text-align: left; }
.card.on { border-color: var(--hot); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .cshade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(13,10,18,.95)); }
.card .cinfo { position: absolute; left: 9px; right: 9px; bottom: 8px; }
.card .cname { display: block; font: 400 18px/1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .cstat { display: block; font: 800 12px var(--body); margin-top: 4px; color: var(--muted); }
.card .cstat b { color: var(--spark); }
.card .cnet { position: absolute; top: 8px; left: 8px; font: 800 10px var(--body); background: rgba(13,10,18,.75); padding: 3px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }

.foot { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

/* Age notice */
.gate { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(13,10,18,.97); }
.gate[hidden] { display: none; }
.gate-box { max-width: 380px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.gate-box img { border-radius: 10px; }
.gate-box h2 { font: 400 30px/1 var(--display); margin: 12px 0 8px; }
.gate-box p { color: var(--muted); margin: 0 0 18px; }
.gate-box .watch { width: 100%; }
.leave { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 13px; }
.fav { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(13,10,18,.6); font-size: 22px; cursor: pointer; }
.fav[aria-pressed="true"] { color: var(--hot); }
