/* ==========================================================================
   HOME PAGE — mockup styles (staged only)
   Sits on the Tier 1 foundation: tokens, shell, nav, search, footer, consent.
   Nothing here redefines foundation tokens; page-specific layout only.
   ========================================================================== */


/* ---------- Hero: full-bleed, borderless, centered ---------- */
.pv-hero {
  position: relative;
  width: 100%;
  height: clamp(480px, 72vh, 760px);
  overflow: hidden;
  background: var(--pv-noir);
  isolation: isolate;
}
.pv-hero__track { position: absolute; inset: 0; }
.pv-hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 900ms var(--pv-ease), visibility 0s 900ms;
}
.pv-hero__slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity 900ms var(--pv-ease), visibility 0s 0s;
  z-index: 1;
}
.pv-hero__link { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.pv-hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Portrait/square art (artists, players) — contained right, blended into noir */
.pv-hero__art--blend {
  object-fit: contain;
  object-position: right center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
  mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
/* Cinematic grade: noir wash + bottom lift for type */
.pv-hero__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,10,11,.94) 0%, rgba(10,10,11,.45) 38%, rgba(10,10,11,.05) 62%, rgba(10,10,11,.25) 100%),
    linear-gradient(100deg, rgba(10,10,11,.72) 0%, rgba(10,10,11,.15) 55%, transparent 80%);
}
/* Spotlight Sweep — the ambient motion; pauses with rotation on hover */
.pv-hero__sweep {
  position: absolute; inset: -20%; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 42%, rgba(244,239,230,.055) 50%, transparent 58%);
  animation: pv-sweep 9s var(--pv-ease) infinite;
}
.pv-hero:hover .pv-hero__sweep { animation-play-state: paused; }
@keyframes pv-sweep {
  0% { transform: translateX(-34%); }
  55%, 100% { transform: translateX(34%); }
}
.pv-hero__copy {
  position: absolute; z-index: 3;
  left: max(var(--pv-gutter), calc((100vw - var(--pv-content-max)) / 2));
  right: var(--pv-gutter);
  bottom: clamp(28px, 7vh, 72px);
  max-width: 640px;
}
.pv-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: var(--pv-label);
  letter-spacing: var(--pv-track-xl);
  text-transform: uppercase;
  color: var(--pv-red);
  margin: 0 0 12px;
}
.pv-hero__kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--pv-red); border-radius: 2px;
}
.pv-hero__title {
  font: var(--pv-display-xl);
  color: var(--pv-ivory);
  margin: 0 0 10px;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.pv-hero__meta {
  font-family: var(--pv-sans); font-size: var(--pv-body);
  color: var(--pv-ivory-dim);
  margin: 0 0 18px;
}
.pv-hero__meta .pv-dot { color: var(--pv-red); margin: 0 8px; }
.pv-hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pv-red); color: var(--pv-on-red);
  font: var(--pv-label); letter-spacing: var(--pv-track-md);
  padding: 14px 26px; border-radius: var(--pv-r-pill);
  box-shadow: var(--pv-shadow-btn-lg);
}
.pv-hero__cta svg { width: 16px; height: 16px; }
/* Progress hairline — shows the 30s cadence honestly */
.pv-hero__progress {
  position: absolute; z-index: 4; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: rgba(244,239,230,.12);
}
.pv-hero__progress i {
  display: block; height: 100%; width: 0;
  background: var(--pv-red);
}
.pv-hero__slide.is-active ~ .pv-hero__progress i,
.pv-hero__progress.is-running i { animation: pv-hero-fill var(--pv-hero-rotate) linear forwards; }
.pv-hero:hover .pv-hero__progress i { animation-play-state: paused; }
@keyframes pv-hero-fill { from { width: 0; } to { width: 100%; } }

/* ---------- Page head (below hero): section header + search slot ---------- */
.pv-home-head {
  max-width: var(--pv-content-max);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) var(--pv-gutter) 0;
}
.pv-home-head .pv-eyebrow { color: var(--pv-red); }
.pv-home-head h1 {
  font: var(--pv-display);
  color: var(--pv-ivory);
  margin: 8px 0 6px;
  text-wrap: balance;
}
.pv-home-head p {
  font-family: var(--pv-sans); font-size: var(--pv-body); color: var(--pv-ivory-dim);
  margin: 0 0 20px; max-width: 60ch;
}
/* REMOVED 2026-09-28 (James's order): the Home page carries NO search bar —
   home-only exception. Every other page keeps the uniform search module in
   its standard slot; the shared search.css/search.js are untouched. */

/* ---------- Lanes ---------- */
.pv-lane { margin-top: clamp(32px, 6vh, 64px); }
.pv-lane__head {
  max-width: var(--pv-content-max); margin: 0 auto var(--pv-gutter-sm);
  padding: 0 var(--pv-gutter);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.pv-lane__title {
  font: var(--pv-title);
  color: var(--pv-ivory);
  margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.pv-lane__title .pv-lane__kick {
  font: var(--pv-label-xs); letter-spacing: var(--pv-track-xl);
  text-transform: uppercase; color: var(--pv-red);
  display: block; margin-bottom: 4px;
}
.pv-lane__more {
  font: var(--pv-label); color: var(--pv-ivory-dim); text-decoration: none;
  white-space: nowrap; padding: 10px 4px;
}
.pv-lane__more:hover { color: var(--pv-red); }
.pv-lane__rail {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px var(--pv-gutter) 18px;
  scrollbar-width: none;
  max-width: var(--pv-content-max); margin: 0 auto;
  /* Scroll-system hardening (flawless-rail pass):
     - touch-action tells touch browsers the rail pans natively (horizontal
       momentum on the rail, vertical on the page) — no JS fighting native.
     - -webkit-overflow-scrolling: touch for legacy iOS momentum.
     - cursor affordance for the mouse drag (JS adds .is-dragging).
     - snap is disabled while dragging so proximity snap never yanks
       mid-gesture; it re-engages on release. */
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.pv-lane__rail::-webkit-scrollbar { display: none; }
.pv-lane__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
/* Card — the luxury is in the art, not chrome */
.pv-card {
  position: relative; flex: 0 0 auto;
  width: clamp(150px, 38vw, 196px);
  scroll-snap-align: start;
  border-radius: var(--pv-r-card-sm);
  overflow: hidden; background: #141416;
  text-decoration: none; color: inherit;
  box-shadow: var(--pv-shadow-card);
  transition: transform var(--pv-t-fast) var(--pv-ease);
}
.pv-card:hover { transform: translateY(-4px); }
.pv-card img {
  display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover;
  background: #1c1c1f;
}
.pv-card__body { padding: 10px 12px 12px; }
.pv-card__t { display: block; font-family: var(--pv-sans); font-size: var(--pv-body-sm); color: var(--pv-ivory); margin: 0 0 2px; font-weight: 600; }
.pv-card__m { display: block; font: var(--pv-caption); color: var(--pv-ivory-faint); margin: 0; }
.pv-card__badge {
  position: absolute; top: 8px; left: 8px;
  font: var(--pv-label-xs); letter-spacing: var(--pv-track-lg); text-transform: uppercase;
  background: rgba(10,10,11,.82); color: var(--pv-ivory);
  border: 1px solid var(--pv-rule);
  padding: 5px 10px; border-radius: var(--pv-r-pill);
  backdrop-filter: blur(6px);
}
.pv-card__badge--live { background: var(--pv-red); border-color: transparent; color: var(--pv-on-red); }
/* Top 10 — the number IS the design */
.pv-top10 .pv-card { display: flex; align-items: flex-end; width: clamp(210px, 52vw, 260px); background: transparent; box-shadow: none; overflow: visible; }
.pv-top10__rank {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(96px, 22vw, 150px);
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 2px var(--pv-red);
  margin-right: -14px; margin-bottom: -6px;
  flex: 0 0 auto;
}
.pv-top10 .pv-card__art { position: relative; flex: 1; border-radius: var(--pv-r-card-sm); overflow: hidden; box-shadow: var(--pv-shadow-card); }
.pv-top10 .pv-card__art img { aspect-ratio: 2/3; }
/* Coming Soon teaser */
.pv-soon .pv-card__date {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  font: var(--pv-label-xs); letter-spacing: var(--pv-track-lg); text-transform: uppercase;
  color: var(--pv-ivory); background: rgba(10,10,11,.78);
  padding: 6px 10px; border-radius: var(--pv-r-sm);
  border-left: 2px solid var(--pv-red);
  backdrop-filter: blur(6px);
}
.pv-soon__cta { text-align: center; padding: 8px var(--pv-gutter) 0; }
.pv-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--pv-rule); color: var(--pv-ivory);
  font: var(--pv-label); letter-spacing: var(--pv-track-md);
  padding: 14px 28px; border-radius: var(--pv-r-pill); text-decoration: none;
}
.pv-btn-ghost:hover { border-color: var(--pv-red); color: var(--pv-red); }

/* ---------- Live Now strip ---------- */
.pv-livecard {
  position: relative; flex: 0 0 auto;
  width: clamp(200px, 46vw, 250px);
  scroll-snap-align: start;
  border-radius: var(--pv-r-card-sm);
  overflow: hidden; background: #141416;
  text-decoration: none; color: inherit;
  box-shadow: var(--pv-shadow-card);
  border: 1px solid var(--pv-rule);
  padding: 18px 16px 6px;
  text-align: center;
  transition: transform var(--pv-t-fast) var(--pv-ease);
}
.pv-livecard:hover { transform: translateY(-4px); }
.pv-livecard__ava {
  display: block; width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; margin: 14px auto 10px;
  border: 2px solid var(--pv-rule); background: #1c1c1f;
}
.pv-livecard__badge {
  position: absolute; top: 10px; left: 10px;
  font: var(--pv-label-xs); letter-spacing: var(--pv-track-lg); text-transform: uppercase;
  background: rgba(10,10,11,.82); color: var(--pv-ivory);
  border: 1px solid var(--pv-rule);
  padding: 5px 10px; border-radius: var(--pv-r-pill);
  backdrop-filter: blur(6px);
}
.pv-livecard__badge--live {
  background: var(--pv-red); border-color: transparent; color: var(--pv-on-red);
  display: inline-flex; align-items: center; gap: 7px;
}
.pv-livedot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pv-live-pulse 1.6s ease-in-out infinite; }
@keyframes pv-live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.pv-livecard .pv-card__body { padding: 0 4px 12px; }

/* ---------- Card shape variants ---------- */
.pv-card--wide { width: clamp(240px, 62vw, 330px); }
.pv-card--wide img { aspect-ratio: 16/10; }
.pv-card--square { width: clamp(150px, 38vw, 190px); }
.pv-card--square img { aspect-ratio: 1/1; }
.pv-card--vert { width: clamp(130px, 32vw, 168px); }
.pv-card--vert img { aspect-ratio: 3/4; }

/* ---------- Ranked chart lanes (Top 10 Games / Creators / Music Videos / Albums / Podcasts) ---------- */
.pv-top10 .pv-card--wide { width: clamp(300px, 72vw, 400px); }
.pv-top10 .pv-card--wide .pv-card__art img { aspect-ratio: 16/10; }
.pv-top10 .pv-card--square { width: clamp(230px, 56vw, 300px); }
.pv-top10 .pv-card--square .pv-card__art img { aspect-ratio: 1/1; }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .pv-hero { height: 92svh; min-height: 560px; }  .pv-hero__art--blend {
    object-fit: cover; object-position: center 20%;
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 96%);
    mask-image: linear-gradient(to top, #000 55%, transparent 96%);
    opacity: .85;
  }
  .pv-hero__copy { bottom: 88px; }
  .pv-hero__title { font-size: clamp(40px, 12vw, 56px); }
  /* Chart lanes: keep a peek of the next card so the rail reads as scrollable */
  .pv-top10 .pv-card--wide { width: clamp(220px, 62vw, 400px); }
  .pv-top10 .pv-card--square { width: clamp(200px, 52vw, 300px); }
}

/* ---------- Reduced motion: rotation + sweep die, hero stays put ---------- */
@media (prefers-reduced-motion: reduce) {
  .pv-hero__slide { transition: none; }
  .pv-hero__sweep, .pv-hero__progress i { animation: none !important; }
  .pv-card { transition: none; }
  .pv-livedot { animation: none; }
}

/* Live badge on hero slides carrying data-pv-live */
.pv-hero__livebadge {
  position: absolute; z-index: 3;
  top: clamp(76px, 12vh, 110px);
  left: max(var(--pv-gutter), calc((100vw - var(--pv-content-max)) / 2));
  display: inline-flex; align-items: center; gap: 8px;
  font: var(--pv-label); letter-spacing: var(--pv-track-md); text-transform: uppercase;
  color: #fff; background: var(--pv-red);
  padding: 8px 14px; border-radius: var(--pv-r-pill);
  pointer-events: none;
}
.pv-hero__livebadge i {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pv-liveblink 1.2s ease-in-out infinite;
}
@keyframes pv-liveblink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .pv-hero__livebadge i { animation: none; }
}
