/* After Dark network homepage (afterdark.fm). Dark only, like the shows. */
:root {
  color-scheme: dark;
  --bg: #07070e;
  --bg-2: #0d0c1a;
  --panel: #12111f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eeecf8;
  --text-2: #c3bfd8;
  --muted: #8f8aa8;
  --moon: #d9dcff;
  --glow: #8f86ff;
  --live: #ff3b47;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: Oswald, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font-ui); font-size: 16px; line-height: 1.55; color: var(--text);
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(143, 134, 255, 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 10%, rgba(98, 224, 208, 0.08), transparent 70%),
    var(--bg);
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: #fff; color: #000; border-radius: 8px; z-index: 50; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }

/* ---- top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); background: rgba(7, 7, 14, 0.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 12px rgba(143, 134, 255, 0.5)); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: 0.02em; text-transform: lowercase; color: #fff; }
.wordmark em { font-style: normal; color: var(--glow); }
.brand.small .wordmark { font-size: 19px; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text-2); }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 71, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(255, 59, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } html { scroll-behavior: auto; } }

/* ---- hero */
.hero { padding: clamp(48px, 10vw, 120px) var(--gutter) clamp(32px, 6vw, 64px); }
.hero-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 8vw, 96px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.hero h1 span { background: linear-gradient(90deg, #fff, var(--moon) 40%, var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 20px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn-primary { background: #fff; color: #0b0a16; border-color: #fff; }
.btn-primary:hover { background: var(--moon); }

/* ---- bands */
.band { max-width: 1400px; margin: 0 auto; padding: 24px var(--gutter) 48px; scroll-margin-top: 80px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.band-head h2 { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); text-transform: uppercase; letter-spacing: 0.02em; }
.band-sub { margin: 0; color: var(--muted); font-size: 14.5px; }
.loading { color: var(--muted); padding: 40px 0; }

/* ---- live tiles */
.live-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .live-grid[data-n='2'], .live-grid[data-n='3'], .live-grid[data-n='4'] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .live-grid[data-n='3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.live-grid[data-n='1'] .live-tile { max-width: 1100px; }
.live-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -40px var(--accent, var(--glow)); }
.lt-frame { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(70% 70% at 50% 40%, color-mix(in srgb, var(--accent, var(--glow)) 30%, #0c0a14), #06050b); }
.lt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lt-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-2); padding: 20px; }
.lt-ph img.mark { width: 72px; height: 72px; opacity: 0.9; }
.lt-ph .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.lt-ph .ph-text { position: relative; display: grid; gap: 8px; justify-items: center; }
.lt-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.lt-show { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; }
.lt-show img { width: 30px; height: 30px; }
.lt-now { flex: 1 1 260px; min-width: 0; margin: 0; color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-now a { color: #fff; text-decoration: none; font-weight: 600; }
.lt-now a:hover { text-decoration: underline; }
.lt-meta { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: var(--live); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; }
.badge-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge-off { padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: var(--text-2); font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; }

/* ---- show cards */
.show-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.show-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.sc-head { position: relative; display: flex; gap: 16px; align-items: center; padding: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, #0d0b18), color-mix(in srgb, var(--accent2, var(--accent)) 18%, #0d0b18)); }
.sc-head img { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)); }
.sc-head h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.sc-head h3 a { text-decoration: none; }
.sc-topic { margin: 3px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.sc-body { display: grid; gap: 14px; padding: 18px 22px 22px; flex: 1; }
.sc-body p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.sc-eps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sc-eps a { display: grid; gap: 6px; text-decoration: none; font-size: 12.5px; line-height: 1.3; color: var(--text-2); }
.sc-eps a:hover { color: #fff; }
.sc-eps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.sc-eps span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.sc-count { color: var(--muted); font-size: 13px; }
.more-card { display: grid; place-items: center; text-align: center; gap: 10px; padding: 32px 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); }
.more-card strong { color: var(--text); font-size: 18px; }

/* ---- footer */
.footer { border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 28px var(--gutter) 40px; display: grid; gap: 10px; color: var(--muted); font-size: 13.5px; }
.footer-inner p { margin: 0; max-width: 820px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--text-2); }

@media (max-width: 560px) {
  .nav a { padding: 8px 10px; }
  .wordmark { font-size: 20px; }
  .sc-eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-eps li:nth-child(3) { display: none; }
}
