/* ==========================================================================
   billysorrells.com — EDITORIAL LAYER v2 (Oct 14 2026)
   BET-style video hero slider + GQ/Esquire editorial type.
   Loads after bet.css. Every selector is scoped so bet.css stays untouched.
   Type: Bodoni Moda (editorial display, italic) · Anton (labels, UI) · Outfit (body)
   ========================================================================== */
:root {
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --ivory: #F3EFE8;
  --teal: #2DD6AE;
  --scrim: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 46%, rgba(0,0,0,.08) 100%);
}

/* ---------------- HERO SLIDER ---------------- */
.hx { position: relative; isolation: isolate; background: #000; color: var(--white);
  height: min(92svh, 860px); min-height: 600px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hx__bg { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .9s var(--ease); }
.hx__bg.is-on { opacity: 1; }
.hx__bg video, .hx__bg img { width: 100%; height: 100%; object-fit: cover; }
.hx__bg--poster img { filter: blur(28px) brightness(.45) saturate(1.1); transform: scale(1.15); }
.hx::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim), linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 38%); }
.hx__slides { position: relative; height: 100%; }
.hx__slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility 0s .7s; }
.hx__slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.hx__in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(6.5rem, 14vh, 8.5rem);
  display: grid; gap: clamp(1rem, 3vw, 2.4rem); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .hx__in--poster { grid-template-columns: 1fr minmax(240px, 330px); } }
.hx__kick { margin: 0 0 .9rem; font: 400 .95rem/1 var(--display); letter-spacing: .14em; color: var(--teal); }
.hx__title, .hx h1.hx__title { margin: 0; font: 900 italic clamp(3.1rem, 10vw, 8.6rem)/.86 var(--serif); letter-spacing: -.02em;
  text-transform: none; color: var(--white); }
.hx__title--md { font-size: clamp(2.6rem, 7.4vw, 6.2rem); }
.hx__lead { margin: 1rem 0 0; max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ivory); }
.hx__role { margin: .5rem 0 0; font: 400 1rem/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hx .btn-row { margin-top: 1.6rem; }
.hx__meta { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  font-size: .82rem; color: var(--muted); }
.hx__meta li { margin: 0; }
.hx__poster { margin: 0; justify-self: end; width: 100%; transform: rotate(1.5deg); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.hx__poster img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid rgba(255,255,255,.18); }
@media (max-width: 959px) { .hx__poster { display: none; } }
.hx .cd__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 460px; margin-top: 1.4rem; }
.hx .cd__clock > div { background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14); padding: .6rem .2rem .5rem; text-align: center; backdrop-filter: blur(6px); }
.hx .cd__clock b { display: block; font: 400 clamp(1.9rem, 4.4vw, 3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.hx .cd__clock span { display: block; margin-top: .35rem; font: 400 .62rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hx .cd__state { margin: 1.2rem 0 0; font: 900 italic clamp(1.8rem, 4vw, 2.8rem)/1 var(--serif); color: var(--teal); }

/* slider controls: BET-style labelled progress tabs */
.hx__nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.hx__tabs { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hx__tab { all: unset; cursor: pointer; display: block; padding-top: .7rem; font: 400 .78rem/1.2 var(--display); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55); position: relative; }
.hx__tab::before, .hx__tab i { content: ""; position: absolute; left: 0; top: 0; height: 3px; }
.hx__tab::before { right: 0; background: rgba(255,255,255,.22); }
.hx__tab i { width: 0; background: var(--teal); }
.hx__tab.is-on { color: var(--white); }
.hx__tab.is-on i { animation: hxfill var(--hx-dur, 8s) linear forwards; }
.hx.is-paused .hx__tab.is-on i { animation-play-state: paused; }
.hx__tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@keyframes hxfill { to { width: 100%; } }
@media (max-width: 600px) { .hx__tab span { display: none; } .hx__tabs { gap: 6px; } }

/* trailer player */
.tm { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; background: rgba(0,0,0,.94); padding: 3vh 3vw; }
.tm.is-open { display: grid; }
.tm__box { width: min(1200px, 100%); }
.tm video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.tm__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; }
.tm__bar strong { font: 900 italic 1.6rem/1 var(--serif); }
.tm__close { min-height: 40px; padding: 8px 16px; background: transparent; color: var(--white); border: 1px solid var(--line);
  font: 400 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tm__close:hover, .tm__close:focus-visible { border-color: var(--teal); color: var(--teal); }

/* ---------------- SECTION HEADER BANDS ---------------- */
.band { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 clamp(1.8rem, 4vw, 2.8rem); min-height: clamp(260px, 38vw, 470px);
  display: grid; align-items: end; background: #000; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__v, .band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim), linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0) 55%); }
.band__in { padding-top: 3rem; padding-bottom: clamp(1.6rem, 4vw, 2.6rem); width: 100%; }
.band .kicker { color: var(--teal); }
.band h2 { margin: .2rem 0 .6rem; font: 900 italic clamp(2.8rem, 8vw, 6.4rem)/.9 var(--serif); letter-spacing: -.02em; text-transform: none; }
.band h2 em { color: inherit; font-style: italic; }
.band p { max-width: 56ch; color: var(--ivory); font-size: 1.02rem; margin: 0; }
.section.has-band { padding-top: 0; }

/* ---------------- EDITORIAL CARDS ---------------- */
#watch .card, #specials .card { background: transparent; border: 0; }
#watch .card__media, #specials .card__media { border: 1px solid var(--line); }
#watch .card__body, #specials .card__body { padding: 14px 2px 6px; }
#watch .card__title, #specials .card__title { font: 900 italic clamp(1.5rem, 2.4vw, 2rem)/1.02 var(--serif); letter-spacing: -.01em;
  text-transform: none; margin: 0 0 .45rem; }
#watch .grid--auto .card__title { font-size: 1.35rem; }
#watch .card__badge, #specials .card__badge { font: 400 .66rem/1 var(--display); letter-spacing: .12em; padding: 6px 8px; }
#watch .card__play { border-radius: 0; }
#watch .card:hover .card__media, #specials .card:hover .card__media { border-color: var(--teal); }

/* ---------------- EDITORIAL RAIL (posters) ---------------- */
.rail-wrap { background: #000; padding: clamp(1.6rem, 4vw, 2.4rem) 0 0; border-bottom: 1px solid var(--line); }
.rail__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.rail__head h2 { margin: 0; font: 900 italic clamp(2rem, 4.6vw, 3.4rem)/.95 var(--serif); text-transform: none; }
.rail__head p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.rail__ctrl { display: flex; gap: 6px; }
.rail__ctrl button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--white); font: 400 1.1rem var(--sans); cursor: pointer; }
.rail__ctrl button:hover, .rail__ctrl button:focus-visible { border-color: var(--teal); color: var(--teal); }
.rail__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 var(--gutter) clamp(1.6rem, 4vw, 2.4rem); }
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { flex: none; width: clamp(210px, 40vw, 300px); scroll-snap-align: start; margin: 0; position: relative; }
.rail__item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); transition: border-color .3s; }
.rail__item:hover img, .rail__item:focus-within img { border-color: var(--teal); }
.rail__item figcaption { margin-top: .55rem; font: 700 italic 1rem/1.2 var(--serif); color: var(--ivory); }
.rail__item button { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.rail__item button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------------- DETROIT FEATURE ---------------- */
.detroit { background: #0c0a0b; }
.detroit__grid { display: grid; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .detroit__grid { grid-template-columns: 1.1fr 1fr; } }
.detroit__art { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: end; }
.detroit__art figure { margin: 0; }
.detroit__art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.detroit__art figure:nth-child(2) { transform: translateY(-14%); }
.detroit h2 { font: 900 italic clamp(2.8rem, 7vw, 5.4rem)/.9 var(--serif); text-transform: none; letter-spacing: -.02em; }
.detroit h2 em { color: #C9A15A; font-style: italic; }
.detroit .kicker { color: #C9A15A; }
.detroit__times { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; border-top: 1px solid var(--line); }
.detroit__times li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.detroit__times b { font: 400 1.2rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.detroit__times span { color: var(--muted); font-variant-numeric: tabular-nums; }
.detroit__note { font-size: .92rem; color: var(--muted); }

/* ---------------- SHARED ---------------- */
.lb { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; background: rgba(0,0,0,.93); padding: 4vh 4vw; }
.lb.is-open { display: grid; }
.lb img { max-height: 88vh; width: auto; max-width: 100%; border: 1px solid var(--line); }
.lb__close { position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 8px 14px; background: #000; color: var(--white);
  border: 1px solid var(--line); font: 400 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 700 italic 1rem var(--serif); color: var(--ivory); }
.show__soon { display: inline-flex; align-items: center; min-height: 40px; padding: 10px 16px; border: 1px dashed var(--line);
  font: 400 .72rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.show--next .show__date { color: var(--teal); }
.sync-note { margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.split__media video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .hx__bg, .hx__slide { transition: none; }
  .hx__tab.is-on i { animation: none; width: 100%; }
}
.hx__bg--detroit { background: radial-gradient(120% 90% at 78% 40%, #5a2a1a 0%, #1a0d09 45%, #000 100%); }

/* v2.1 — banded sections align to the page gutter; cameo grid lays out as 3 x 2 (no orphan) */
.has-band .wrap--wide { max-width: var(--wrap); }
#watch .grid--auto { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #watch .grid--auto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
