/* SpiderStream homepage. Loaded only on "/". Dark cinematic surfaces, one red accent. */

.body--home {
  --bg: #070709;
  --bg-elev-1: #0f0f12;
  --bg-elev-2: #16161a;
  --bg-elev-3: #1f1f24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #d8232f;
  --accent-strong: #b81d27;
  --accent-ink: #ffffff;
  --ring: 0 0 0 3px rgba(216, 35, 47, 0.45);
  --hm-red: #d8232f;
  --hm-ink: #f4f3f1;
  --hm-mute: #9d9ca4;
  --hm-faint: #65646c;
  background: var(--bg);
}
.body--home .site-header { background: color-mix(in srgb, #070709 86%, transparent); }
.body--home .brand__mark { background: var(--hm-red); color: #fff; }
.page--home { padding-bottom: 0; }

/* ---------- type ---------- */
.hm-eyebrow { color: var(--hm-red); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: var(--s-4); }
.hm-title { font-size: clamp(2.75rem, 1.6rem + 5.5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; color: var(--hm-ink); margin-bottom: var(--s-5); }
.hm-lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.5; color: var(--hm-mute); max-width: 32rem; }
.hm-h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.025em; font-weight: 750; color: var(--hm-ink); }
.hm-muted { color: var(--hm-mute); font-size: var(--text-sm); }
.hm-note { margin-top: var(--s-5); color: var(--hm-faint); font-size: var(--text-sm); }
.hm-link { color: var(--hm-ink); font-weight: 600; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 var(--s-2); border-bottom: 1px solid transparent; }
.hm-link:hover { text-decoration: none; border-bottom-color: var(--hm-ink); }

/* ---------- hero ---------- */
.hm-hero { padding: var(--s-10) 0 var(--s-8); border-bottom: 1px solid var(--border); position: relative; }
.hm-hero__grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 64em) {
  .hm-hero { padding: var(--s-16) 0 var(--s-12); }
  .hm-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: var(--s-12); }
}
.hm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-8); }
.hm-cta { min-width: 12rem; }
@media (max-width: 30em) { .hm-cta { width: 100%; } }

.hm-recent { margin-top: var(--s-8); }
.hm-recent__label { display: block; color: var(--hm-faint); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: var(--s-2); }
.hm-recent__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hm-recent__item { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3) 0 var(--s-1); border: 1px solid var(--border-strong); border-radius: var(--r-pill); color: var(--hm-ink); font-size: var(--text-sm); }
.hm-recent__item:hover { text-decoration: none; border-color: var(--hm-ink); }

/* channel stage */
.hm-stage-wrap { min-width: 0; }
.hm-stage { position: relative; display: grid; grid-template-rows: 1fr auto; aspect-ratio: 16 / 10; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #0b0b0e; border: 1px solid var(--border-strong); color: var(--hm-ink); isolation: isolate; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
@media (min-width: 48em) { .hm-stage { aspect-ratio: 16 / 9; } }
.hm-stage:hover { text-decoration: none; border-color: rgba(255, 255, 255, 0.3); }
.hm-stage:focus-visible { box-shadow: var(--ring); }
.hm-stage__art { display: grid; place-items: center; background:
  linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(7, 7, 9, 0.9) 100%),
  repeating-linear-gradient(90deg, #0d0d11 0 12.5%, #101015 12.5% 25%); }
.hm-stage__meta { position: relative; z-index: 1; padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-1); background: linear-gradient(180deg, rgba(7, 7, 9, 0) 0%, rgba(7, 7, 9, 0.96) 35%); margin-top: -3rem; padding-top: 3.5rem; }
.hm-stage__row { display: flex; align-items: center; gap: var(--s-3); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hm-mute); font-weight: 700; }
.hm-stage__cat { color: var(--hm-mute); }
.hm-stage__name { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -0.02em; font-weight: 750; }
.hm-stage__now { color: var(--hm-ink); font-size: var(--text-sm); }
.hm-stage__time, .hm-stage__next { color: var(--hm-mute); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.hm-stage__next { margin-top: var(--s-1); }
.hm-progress { display: block; height: 2px; background: rgba(255, 255, 255, 0.12); margin-top: var(--s-2); }
.hm-progress > span { display: block; height: 100%; background: var(--hm-red); }
.hm-stage__play { position: absolute; right: var(--s-4); top: var(--s-4); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--hm-red); color: #fff; z-index: 2; box-shadow: 0 10px 30px -10px rgba(216, 35, 47, 0.8); }
.hm-stage--empty { display: grid; place-items: center; }
.hm-live { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: var(--hm-red); padding: 3px 8px; border-radius: 3px; font-size: 0.68rem; letter-spacing: 0.12em; }
.hm-live__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* logos */
.hm-logo { display: grid; place-items: center; border-radius: 8px; background: var(--bg-elev-3); color: var(--hm-mute); font-weight: 800; overflow: hidden; flex: 0 0 auto; }
.hm-logo img { width: 100%; height: 100%; object-fit: contain; }
.hm-logo--xs { width: 28px; height: 28px; font-size: 0.8rem; border-radius: 6px; }
.hm-logo--sm { width: 36px; height: 36px; font-size: 0.95rem; }
.hm-logo--md { width: 56px; height: 56px; font-size: 1.4rem; }
.hm-logo--xl { width: 96px; height: 96px; font-size: 2.75rem; border-radius: 16px; background: #15151a; color: var(--hm-ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }

/* ---------- sections ---------- */
.hm-section { padding: var(--s-10) 0; border-bottom: 1px solid var(--border); }
@media (min-width: 64em) { .hm-section { padding: var(--s-12) 0; } }
.hm-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-6); }
.hm-cats { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: var(--s-5); -webkit-overflow-scrolling: touch; }
.hm-cats::-webkit-scrollbar { display: none; }
@media (min-width: 64em) { .hm-cats { flex-wrap: wrap; overflow: visible; } }
.hm-cat--more { color: var(--hm-mute); border-style: dashed; }
.hm-link--sm { font-size: var(--text-sm); min-height: 36px; }
.hm-cat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-pill); color: var(--hm-ink); font-size: var(--text-sm); font-weight: 500; }
.hm-cat:hover { text-decoration: none; border-color: var(--hm-ink); }
.hm-cat__n { color: var(--hm-faint); font-variant-numeric: tabular-nums; }

/* channel rail */
.hm-rail { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: var(--s-2); }
.hm-rail::-webkit-scrollbar { display: none; }
.hm-rail:focus-visible { outline: none; box-shadow: inset var(--ring); }
.hm-rail__track { list-style: none; margin: 0; display: flex; gap: var(--s-3); padding: 2px var(--gutter); width: max-content; min-width: 100%; max-width: none; }
.hm-rail__item { flex: 0 0 min(78vw, 17rem); scroll-snap-align: start; }
@media (min-width: 48em) { .hm-rail__item { flex-basis: 16rem; } }
@media (min-width: 64em) {
  .hm-rail { overflow: visible; }
  .hm-rail__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; min-width: 0; max-width: var(--container); margin-inline: auto; }
  .hm-rail__item { flex-basis: auto; }
  .hm-rail__item--more { display: none; } /* the section head links to the full catalog; no orphan card */
}
.hm-ch { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); min-height: 80px; border-radius: 12px; background: var(--bg-elev-1); border: 1px solid var(--border); color: var(--hm-ink); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.hm-ch:hover { text-decoration: none; background: var(--bg-elev-2); border-color: var(--border-strong); }
.hm-ch__body { display: grid; gap: 2px; min-width: 0; }
.hm-ch__name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ch__sub { color: var(--hm-mute); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ch--more { border-style: dashed; justify-content: center; text-align: center; }

/* guide */
.hm-guide { display: grid; gap: var(--s-2); }
.hm-guide__row { display: grid; gap: var(--s-2); padding: var(--s-3) 0; border-top: 1px solid var(--border); }
@media (min-width: 48em) { .hm-guide__row { grid-template-columns: 14rem minmax(0, 1fr); align-items: center; gap: var(--s-6); } }
.hm-guide__ch { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--hm-ink); font-weight: 600; min-height: 40px; }
.hm-guide__ch:hover { text-decoration: none; color: var(--hm-mute); }
.hm-guide__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
@media (min-width: 48em) { .hm-guide__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hm-guide__slot { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s-2); font-size: var(--text-sm); min-width: 0; }
.hm-guide__time { color: var(--hm-faint); font-variant-numeric: tabular-nums; }
.hm-guide__slot.is-now .hm-guide__time { color: var(--hm-red); font-weight: 700; }
.hm-guide__title { color: var(--hm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* plans */
.hm-plans { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 40em) { .hm-plans { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.hm-plan { display: grid; gap: var(--s-1); padding: var(--s-5); border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev-1); }
.hm-plan__name { color: var(--hm-mute); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.hm-plan__price { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; color: var(--hm-ink); }
.hm-plan__per { font-size: var(--text-sm); color: var(--hm-mute); font-weight: 500; letter-spacing: 0; }
.hm-plan__facts { color: var(--hm-mute); font-size: var(--text-sm); }
.hm-plan__link { margin-top: var(--s-2); color: var(--hm-ink); font-weight: 600; font-size: var(--text-sm); min-height: 40px; display: inline-flex; align-items: center; }

/* closing */
.hm-close { padding: var(--s-12) 0 calc(var(--s-12) + 72px); }
@media (min-width: 64em) { .hm-close { padding: var(--s-16) 0; } }
.hm-close__inner { display: grid; gap: var(--s-5); justify-items: start; }
.hm-close__line { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); letter-spacing: -0.03em; font-weight: 750; color: var(--hm-ink); max-width: 24ch; }

/* mobile sticky action */
.hm-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--s-3) var(--gutter) calc(var(--s-3) + var(--safe-bottom)); background: color-mix(in srgb, #070709 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
@media (min-width: 64em) { .hm-sticky { display: none; } }
.body--home .site-footer { padding-bottom: calc(var(--s-6) + 72px + var(--safe-bottom)); }
@media (min-width: 64em) { .body--home .site-footer { padding-bottom: var(--s-6); } }

@media (prefers-reduced-motion: reduce) { .hm-stage, .hm-ch { transition: none; } }
