:root {
  /* Dark navy ground with a single cyan accent, in the manner of the big
     blue streaming apps — as opposed to the red-on-near-black this used
     before. One accent token drives every highlight, so the scheme can be
     re-pointed from here rather than hunted through the file. */
  --bg: #0f171e;
  --bg-2: #1a242f;
  --surface: #21313f;
  --text: #ffffff;
  --text-dim: #aab7c4;
  --accent: #00a8e1;
  --accent-bright: #4fd0ff;
  --accent-deep: #0089b8;
  --card-radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: background 0.3s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.55) 70%, rgba(0,0,0,0));
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
}
.nav.scrolled { background: var(--bg); }
.nav.scrolled { background: var(--bg); }

.nav-left { display: flex; align-items: center; gap: 36px; }
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px;
  color: var(--text);
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.search input {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 2px;
  width: 220px;
  outline: none;
}
.search input::placeholder { color: #888; }
.avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 4px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- HERO ---------- */
/* Shorter hero than the red app's full-viewport banner.
 *
 * At 85vh the first row sat below the fold, so the page opened on a single
 * title and you had to scroll before the catalogue existed. Around 62vh the
 * hero still dominates but a row is visible on load, which is how the
 * browse-first layouts are arranged. */
.hero {
  position: relative;
  height: 62vh;
  min-height: 400px;
  max-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 56px;
  overflow: hidden;
}
/* Sits under the video and carries the landscape still. Painting this as a
   background rather than the video's `poster` attribute matters: a poster is
   discarded the moment the first frame decodes, which flashed mid-load. */
.hero-still {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 22%;   /* faces sit above centre on film stills */
  background-color: #0b0b0b;
  z-index: 0;
  pointer-events: none;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  /* Held back until 'canplay', then crossfades over the still. */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.ready { opacity: 1; }
.hero-fade {
  position: absolute; inset: 0;
  /* Must out-rank .hero-video, which now carries z-index 1 for the crossfade.
     Without this the gradient fell behind the video and the title lost its
     contrast the moment the film faded in. */
  z-index: 2;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.1) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(0,0,0,0) 40%);
}
.hero-content {
  position: relative;
  max-width: 620px;
  z-index: 3;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero-desc {
  font-size: 16px;
  line-height: 1.5;
  color: #eaeaea;
  margin-bottom: 22px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero-buttons { display: flex; gap: 12px; }
.btn {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.8; }
.btn:active { transform: scale(0.98); }
/* Filled accent rather than white: on a navy ground a white block reads as
   a gap in the page, where the accent reads as the primary action. */
.btn-play { background: var(--accent); color: #04121b; font-weight: 700; }
.btn-play:hover { background: var(--accent-bright); }
.btn-info { background: rgba(255,255,255,0.14); color: #fff; }
.btn-info:hover { background: rgba(255,255,255,0.22); }

.hero-mute {
  position: absolute;
  right: 48px;
  bottom: 140px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.hero-mute:hover {
  background: rgba(0,0,0,0.8);
  border-color: #fff;
}

/* ---------- ROWS ---------- */
.rows {
  position: relative;
  z-index: 3;
  padding: 0 0 60px;
  /* Was -90px, to pull rows up under an 85vh hero. With the hero at 62vh that
     same pull dragged the first row over the hero's buttons. */
  margin-top: 4px;
}
.row {
  margin-bottom: 36px;
  padding: 0 48px;
}
/* Row heading reads as a way in, not just a label: a chevron on hover hints
   the row is a category you can open, which is how the blue streaming apps
   present them. */
.row h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #e8eef4;
  cursor: default;
}
.row h2::after {
  content: "\203A";
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.row:hover h2::after { opacity: 1; transform: translateX(0); }
.row-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.row:hover .row-more { opacity: 1; }
.row-more:hover { color: #fff; }
.row-rail { position: relative; }
.row-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0 20px;
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }

/* Scroll affordance. The track hides its scrollbar, so without these a mouse
   user has no way to reach the rest of a row. */
.row-arrow {
  position: absolute;
  top: 8px;
  bottom: 20px;
  z-index: 6;
  width: 46px;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  background: rgba(10,10,10,0.6);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.row-arrow-l { left: 0; border-radius: 0 4px 4px 0; }
.row-arrow-r { right: 0; border-radius: 4px 0 0 4px; }
.row-rail:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(10,10,10,0.85); }
.row-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: -3px; }
/* Nothing further to scroll in that direction. */
.row.at-start .row-arrow-l,
.row.at-end .row-arrow-r,
.row.no-scroll .row-arrow { display: none; }

.rows-note { padding: 40px 48px; color: var(--text-dim); }

/* Genre toggles above the rows. Sticky under the nav so you can keep
   filtering while scrolling a long catalogue. */
.filters {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 48px 12px;
  background: linear-gradient(180deg, rgba(10,10,10,0.97), rgba(10,10,10,0.82) 70%, transparent);
  backdrop-filter: blur(6px);
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.filters-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: #e5e5e5;
  flex: 0 0 auto;
}
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  flex: 1 1 auto;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { background: rgba(255,255,255,0.16); color: #fff; }
.chip.on {
  background: #fff;
  border-color: #fff;
  color: #111;
  font-weight: 700;
}
.filter-clear {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.filter-clear:hover { color: #fff; }

@media (max-width: 720px) {
  .filters { padding: 12px 20px 10px; }
  .filters-label { display: none; }
}

/* ---- cards ----
 *
 * Artwork and title are separate blocks, the title sitting beneath rather
 * than overlaid. Overlaying it meant a row's contents stayed hidden until you
 * swept the mouse across them; underneath, every title is readable at rest.
 *
 * Hover is a small lift and an accent edge instead of a large scale-up — the
 * grid stays put and nothing has to fight for z-index above its neighbours.
 */
.card {
  flex: 0 0 auto;
  width: 232px;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); }
.card:hover .card-art {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,0.6);
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.card-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface), var(--bg));
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #fff;
  text-align: center;
  padding: 10px;
}
/* Always visible, and clipped to one line so a long title cannot push the
   row's cards out of alignment with each other. */
.card-label {
  padding: 9px 2px 0;
  font-size: 13px;
  font-weight: 500;
  color: #e8eef4;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Landscape artwork in every row, matching the browse-first layouts.
 *
 * The provider only supplies portrait posters (TMDB 2:3), so these are
 * cropped to 16:9 rather than letterboxed. The crop is biased to the upper
 * part of the image because that is where faces and titles sit on a poster —
 * centring it decapitates most of them. */
.card-poster { width: 176px; }
.card-poster .card-art { aspect-ratio: 2 / 3; }

/* Featured entries come from get_vod_info, which carries a proper 16:9 still,
   so those cards are landscape. */
.card-wide { width: 300px; }
.card-wide .card-art { aspect-ratio: 16 / 9; }

/* Live channel cards carry a station logo, not a still — letterbox it on a
   dark panel instead of cropping, and label it as always-on. */
.card-channel .card-art {
  background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg));
}
.card-channel img {
  object-fit: contain;
  padding: 16px 18px 22px;
}

.card-live {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0,0,0,0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.card-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  animation: fade 0.2s ease;
}
.modal-panel {
  position: relative;
  width: min(900px, 92vw);
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  animation: pop 0.25s ease;
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-video iframe,
.modal-video video {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
/* Shown in place of the player when the container has no browser demuxer. */
.modal-unplayable {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 40px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.modal-unplayable strong { color: #fff; }
/* Overlaid on a film that is playing fine but whose audio codec the browser
   cannot decode — see warnIfSilent() in player.js. */
.player-note {
  position: absolute;
  left: 0; right: 0; bottom: 62px;
  margin: 0 auto;
  max-width: 560px;
  padding: 9px 14px;
  border-radius: 5px;
  background: rgba(10,10,10,0.86);
  color: #e5e5e5;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}
.modal-video { position: relative; }
.modal-url {
  width: 100%;
  max-width: 560px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  background: rgba(0,0,0,0.55);
  color: #b3b3b3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
}

.modal-meta { padding: 22px 26px 26px; }
.modal-meta h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  margin-bottom: 10px;
}
.modal-meta p {
  color: var(--text-dim);
  line-height: 1.5;
  font-size: 15px;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 48px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .search input { width: 140px; }
  .hero { padding: 0 20px 80px; height: 70vh; }
  .hero-title { font-size: 44px; }
  .row { padding: 0 20px; }
  .card { width: 180px; }
}

/* ---- contract address pill (nav) ---- */
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8d8d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ca-pill:hover { background: rgba(255,255,255,0.12); color: #fff; }
.ca-pill .ca-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
/* Brief confirmation after a click — the label swaps to "copied", so the pill
   turns green rather than staying visually identical to its idle state. */
.ca-pill.copied {
  border-color: rgba(70, 200, 120, 0.7);
  color: #4ec87a;
}
.ca-pill.copied .ca-label { color: #4ec87a; }

@media (max-width: 860px) {
  /* The address is the first thing to go when space is tight — search and the
     nav links are what people actually navigate with. */
  .ca-pill { display: none; }
}

/* ---- X link ----
   Sized and shaped to match .ca-pill so the two read as one group. */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8d8d8;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.x-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.x-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The pair, pinned clear of the rail and above the hero. */
.social {
  position: fixed;
  top: 18px;
  right: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Both sit on artwork, which can be any colour, so they carry their own
   shadow rather than relying on the hero's gradient. */
.social .ca-pill,
.social .x-btn {
  backdrop-filter: blur(6px);
  background: rgba(15, 23, 30, 0.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

@media (max-width: 860px) {
  .social { top: 12px; right: 14px; }
  .x-btn { width: 30px; height: 30px; }
}

/* ---- category strip (second nav tier) ---- */
.subnav {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 30, 0.55);
  backdrop-filter: blur(8px);
}
.subnav[hidden] { display: none; }
.subnav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px 48px;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.subnav a:hover { background: rgba(255,255,255,0.09); color: #fff; }
.subnav a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }

@media (max-width: 720px) {
  .subnav-inner { padding: 8px 20px; }
}

/* ================= LEFT RAIL LAYOUT =================
 *
 * Navigation hangs off a narrow vertical rail instead of a top bar, which is
 * what the browse-first streaming layouts do: it frees the full height of the
 * window for artwork, and the hero can start at the very top of the page.
 *
 * The rail is collapsed to icons and widens on hover to reveal labels, so it
 * costs 68px at rest rather than a permanent sidebar's worth.
 */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 60;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 0;
  background: linear-gradient(to right, rgba(6,12,17,0.97), rgba(6,12,17,0.82));
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: width 0.18s ease, background 0.18s ease;
}
.rail:hover {
  width: 218px;
  background: rgba(6,12,17,0.98);
}

.rail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 68px;
  height: 40px;
  margin-bottom: 10px;
}
/* The wordmark is wider than the collapsed rail, so it is sized to the rail
   rather than to itself, and grows when the rail expands on hover. */
.rail-logo img {
  width: 46px;
  height: auto;
  display: block;
  transition: width 0.18s ease;
}
.rail:hover .rail-logo img { width: 132px; }

.rail-items { display: flex; flex-direction: column; gap: 4px; width: 100%; }

.rail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.rail-item svg { flex: 0 0 auto; }
.rail-item:hover { color: #fff; background: rgba(255,255,255,0.07); }
/* Current page: an accent edge on the rail, the way a selected tab reads. */
.rail-item.on { color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.rail-item.copied { color: #4ec87a; }

/* Labels only exist once the rail is open; they stay in the DOM so the hover
   target does not resize its own contents mid-transition. */
.rail-label { opacity: 0; transition: opacity 0.14s; }
.rail:hover .rail-label { opacity: 1; }

/* Everything else shifts right by the collapsed rail width. The rail expands
   OVER the page rather than pushing it, so the layout never reflows on hover. */
body { padding-left: 68px; }

/* Search is summoned from the rail rather than occupying the chrome. */
.searchbar {
  position: fixed;
  top: 16px; left: 84px;
  z-index: 59;
  width: min(420px, calc(100vw - 120px));
}
.searchbar[hidden] { display: none; }
.searchbar input {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  background: rgba(6,12,17,0.96);
  color: #fff;
  font-size: 14px;
}
.searchbar input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 720px) {
  .rail { width: 56px; }
  .rail-logo, .rail-item { min-width: 56px; }
  .rail-item { padding: 0 18px; }
  body { padding-left: 56px; }
  .searchbar { left: 68px; top: 12px; }
}

/* ---- hero metadata stack ---- */
.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.hero-eyebrow[hidden] { display: none; }

/* Facts on one line, separated by dots drawn between chips rather than typed
   into the strings — so a missing value never leaves a stray separator. */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 10px 0 14px;
  font-size: 14px;
  color: #cfd9e3;
}
.hero-meta[hidden] { display: none; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 14px; }
.hero-meta > span + span::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.chip-star { color: var(--accent-bright); font-weight: 600; }

.hero-title { margin-bottom: 4px; }


/* ---- ranked strip ----
 *
 * The first row is numbered. The numeral sits in a gutter to the left of the
 * artwork rather than over it, so no poster is obscured, and it is drawn as an
 * outline so a bright still cannot swallow it. Absolute positioning keeps the
 * card itself an ordinary column — that is what keeps each title under its own
 * picture instead of beside the number.
 */
.row-numbered .row-track { gap: 10px; }

.card-ranked {
  position: relative;
  width: 300px;            /* 232px of artwork + a 68px numeral gutter */
  padding-left: 68px;
}
.card-rank {
  position: absolute;
  left: -2px;
  bottom: 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 104px;
  line-height: 0.74;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.5);
  user-select: none;
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.18s ease;
}
.card-ranked:hover .card-rank { -webkit-text-stroke-color: var(--accent); }

@media (max-width: 720px) {
  .card-ranked { width: 216px; padding-left: 48px; }
  .card-rank { font-size: 72px; bottom: 22px; }
}
