/* ============================================================
   Browse rails — the "Netflix" hub look (Video + Lens hubs)
   Ported into the-post block theme. Uses theme tokens (--red, fonts).
   Palette: cinema-dark under html.dark (site dark mode) + a light map for
   the site's default light mode. The page flows in the normal document
   scroll (no #app full-height container); the dock is position:fixed.
   RTL / Urdu throughout.
   ============================================================ */

/* ── Palette vars (shared by the app body + the document-level dock/preview/
   queue, which live outside .voice-app). Default = LIGHT; html.dark = cinema. ── */
.voice-app,
.vc-dock,
.vc-preview,
.vc-queue {
  --vc-bg:        var(--paper, #fff);
  --vc-surface:   #ffffff;
  --vc-surface-2: #f4f5f7;
  --vc-card:      #ffffff;
  --vc-text:      var(--ink-900, #0a0a0a);
  --vc-dim:       var(--ink-500, #585858);
  --vc-line:      var(--ink-150, #e0e3e8);
  --vc-red:       var(--red, #b0070f);
  --vc-red-lift:  var(--red-lift, #d24a51);
  --vc-shadow:    0 18px 50px rgba(0,0,0,.16);
  --vc-verify:    #1a7f4b;
}
html.dark .voice-app,
html.dark .vc-dock,
html.dark .vc-preview,
html.dark .vc-queue {
  --vc-bg:        #0a0a0b;
  --vc-surface:   #141416;
  --vc-surface-2: #1b1b1f;
  --vc-card:      #161619;
  --vc-text:      #f4f4f5;
  --vc-dim:       #a1a1aa;
  --vc-line:      rgba(255,255,255,.09);
  --vc-red:       var(--red-lift, #d24a51); /* deep brand red lifts on black */
  --vc-red-lift:  #e86a70;
  --vc-shadow:    0 18px 50px rgba(0,0,0,.55);
  --vc-verify:    #6fe3a1;
}

/* The voice page canvas takes the cinema background edge-to-edge. */
.voice-app {
  background: var(--vc-bg);
  color: var(--vc-text);
  font-family: var(--font-urdu, sans-serif);
  padding-bottom: 120px; /* room for the fixed dock */
  min-height: 60vh;
  overflow-x: clip; /* kill any phantom horizontal scroll (Windows scrollbar); clip won't create a scroll container or clip the fixed dock/preview (they're outside .voice-app) */
}
/* Belt-and-suspenders on the page wrapper too. */
.tbp-browse-main { overflow-x: clip; }
.voice-app *,
.vc-dock *,
.vc-preview *,
.vc-queue * { box-sizing: border-box; }

.voice-app .ltr,
.vc-dock .ltr,
.vc-preview .ltr,
.vc-queue .ltr { direction: ltr; font-family: var(--font-mono, monospace); }

/* ═══════════════════════ HERO BILLBOARD ═══════════════════════ */
.vc-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  min-height: clamp(420px, 62svh, 640px); /* a phone's toolbar does not resize it */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0a0b;
  isolation: isolate;
}
.vc-hero-media {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  filter: saturate(1.05);
}
.vc-hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(8,8,10,.96) 0%, rgba(8,8,10,.55) 42%, rgba(8,8,10,.15) 100%),
    linear-gradient(to left, rgba(8,8,10,.85) 0%, rgba(8,8,10,0) 55%);
}
.vc-hero-wave { color: var(--vc-red); margin: 0 0 20px; max-width: 560px; }
.vc-hero-wave .vc-wavebars { height: 40px; gap: 2.5px; }
.vc-hero-wave .vc-wavebars > i { border-radius: 1.5px; min-width: 2px; }
.vc-hero-inner {
  position: relative;
  width: min(100% - 48px, var(--maxw, 1320px));
  margin: 0 auto;
  padding: 0 0 40px;
  color: #fff;
}
.vc-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.vc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.vc-chip-verified { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.vc-chip-verified svg { width: 14px; height: 14px; fill: var(--vc-verify); }
.vc-chip-plain { background: rgba(255,255,255,.1); color: #fff; }
.vc-hero-title {
  font-family: var(--font-urdu, serif); /* design: upright Noto Naskh Arabic, not Nastaliq */
  font-weight: 700; line-height: 1.35;
  font-size: clamp(30px, 4vw, 52px);
  margin: 0 0 16px; max-width: 34ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.vc-hero-deck {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.8; color: rgba(255,255,255,.82);
  margin: 0 0 22px; max-width: 80ch;
}
.vc-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono, monospace); font-size: 12px;
  color: rgba(255,255,255,.72); margin-bottom: 22px;
}
.vc-hero-meta .vc-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.5); }
.vc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Buttons ── */
.vc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-urdu, sans-serif); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 6px; border: 0; cursor: pointer;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.vc-btn svg { width: 20px; height: 20px; }
.vc-btn:active { transform: scale(.97); }
.vc-btn-play { background: #fff; color: #0a0a0b; }
.vc-btn-play:hover { background: var(--red-lift, #d24a51); color: #fff; }
.vc-btn-ghost { background: rgba(255,255,255,.16); color: #fff; }
.vc-btn-ghost:hover { background: rgba(255,255,255,.28); }

/* ═══════════════════════ RAILS ═══════════════════════ */
.vc-rails {
  width: min(100% - 48px, var(--maxw, 1320px));
  margin: 0 auto;
  padding-top: 30px;
}
.vc-rail { margin-bottom: 38px; }
.vc-rail-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.vc-rail-title {
  font-family: var(--font-urdu, sans-serif); font-weight: 700;
  font-size: clamp(18px, 2vw, 24px); margin: 0; color: var(--vc-text);
}
/* The hub's Studio name + kicker over the category heading (lens/video hub). */
.vc-rail-kicker {
  margin: 0 0 4px; font-size: 13px; color: var(--vc-dim);
}

/* Horizontal scroller — scrolls by wheel/trackpad/swipe/arrows; the native
   scrollbar is hidden (those gray bars looked broken on Windows). */
.vc-rail-track {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; padding: 6px 2px 26px; /* bottom room so card shadows aren't clipped into a band */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* old Edge/IE */
}
.vc-rail-track::-webkit-scrollbar { display: none; } /* Chrome/Safari/Edge */

/* ── Card ── */
.vc-card {
  scroll-snap-align: start; flex: 0 0 auto; width: 236px;
  background: var(--vc-card); border: 1px solid var(--vc-line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative;
}
.vc-card:hover { transform: translateY(-3px); box-shadow: var(--vc-shadow); border-color: var(--vc-red); }
.vc-card-cover { position: relative; aspect-ratio: 16 / 10; background: var(--vc-surface-2); overflow: hidden; }
.vc-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.vc-card-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 55%);
}
.vc-card-playmark {
  position: absolute; inset-block-end: 10px; inset-inline-start: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; color: #fff;
  opacity: 0; transform: scale(.8); transition: opacity .16s ease, transform .16s ease;
}
.vc-card-playmark svg { width: 18px; height: 18px; fill: currentColor; }
.vc-card:hover .vc-card-playmark { opacity: 1; transform: scale(1); }
.vc-card-dur {
  position: absolute; inset-block-end: 10px; inset-inline-end: 10px; z-index: 2;
  font-family: var(--font-mono, monospace); font-size: 11px; color: #fff;
  background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 4px;
}
.vc-card-body { padding: 11px 13px 14px; }
.vc-card-title {
  font-family: var(--font-urdu, sans-serif); font-weight: 700; font-size: 15px;
  line-height: 1.55; margin: 0 0 7px; color: var(--vc-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vc-card-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim);
}
.vc-card-meta .vc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--vc-dim); }
.vc-card-verify { color: var(--vc-verify); display: inline-flex; align-items: center; }
.vc-card-verify svg { width: 12px; height: 12px; fill: currentColor; }

/* Continue Listening — progress bar under cover */
.vc-card-progress {
  position: absolute; inset-block-end: 0; inset-inline: 0; height: 4px;
  background: rgba(255,255,255,.25); z-index: 3;
}
.vc-card-progress > i { display: block; height: 100%; background: var(--vc-red); }

/* ── Top-10: giant rank numerals ── */
.vc-rail--top .vc-rail-track { gap: 6px; }
.vc-top-item {
  scroll-snap-align: start; flex: 0 0 auto;
  display: flex; align-items: flex-end; cursor: pointer;
  padding-inline-start: 4px;
}
.vc-top-rank {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 800; font-style: italic; line-height: .8;
  font-size: clamp(90px, 12vw, 168px);
  color: transparent;
  -webkit-text-stroke: 2px var(--vc-dim);
  margin-inline-end: -18px; margin-inline-start: -6px;
  transition: -webkit-text-stroke-color .16s ease, color .16s ease;
  user-select: none;
}
.vc-top-item:hover .vc-top-rank { -webkit-text-stroke-color: var(--vc-red); color: color-mix(in srgb, var(--red) 6%, transparent); }
/* Top-10 cards are image-forward 3:4 portrait posters (Netflix Top-10 look),
   sitting beside the giant rank numeral — not the landscape rail card. */
.vc-top-item .vc-card { width: 158px; }
.vc-top-item .vc-card-cover { aspect-ratio: 3 / 4; }
.vc-top-item .vc-card-body { padding: 9px 11px 12px; }
.vc-top-item .vc-card-title { font-size: 13.5px; line-height: 1.5; margin-bottom: 5px; }
.vc-top-item .vc-card-meta { font-size: 10px; gap: 5px; }

/* ═══════════════════════ HOVER PREVIEW ═══════════════════════ */
.vc-preview {
  position: fixed; z-index: 60; width: 320px;
  background: var(--vc-card); color: var(--vc-text);
  border: 1px solid var(--vc-line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--vc-shadow);
  transform-origin: center bottom; animation: vc-pop .16s ease both;
  font-family: var(--font-urdu, sans-serif);
}
@keyframes vc-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.vc-preview[hidden] { display: none; }
.vc-preview-cover { aspect-ratio: 16 / 9; background: var(--vc-surface-2); position: relative; }
.vc-preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.vc-preview-cover .vc-wavebars { position: absolute; inset-block-end: 8px; inset-inline: 12px; }
.vc-preview-body { padding: 13px 15px 16px; }
.vc-preview-title { font-weight: 700; font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.vc-preview-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); margin-bottom: 12px;
}
.vc-preview-actions { display: flex; gap: 8px; }
.vc-mini-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-urdu, sans-serif); font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 6px; border: 1px solid var(--vc-line);
  background: var(--vc-surface-2); color: var(--vc-text); cursor: pointer;
}
.vc-mini-btn svg { width: 16px; height: 16px; }
.vc-mini-btn.is-primary { background: var(--vc-red); color: #fff; border-color: var(--vc-red); flex: 1; }
.vc-mini-btn.is-primary svg { fill: currentColor; }
.vc-mini-btn:hover { border-color: var(--vc-red); }

/* Waveform bars (barStrip) */
.vc-wavebars { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.vc-wavebars > i { flex: 1; background: currentColor; border-radius: 2px; opacity: .8; min-width: 2px; }

/* ═══════════════════════ QUEUE ═══════════════════════ */
.vc-queue {
  position: fixed; z-index: 70; inset-block: 0; inset-inline-end: 0; width: min(360px, 88vw);
  background: var(--vc-surface); color: var(--vc-text);
  border-inline-start: 1px solid var(--vc-line); box-shadow: var(--vc-shadow);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.75,.2,1);
  display: flex; flex-direction: column; font-family: var(--font-urdu, sans-serif);
}
html[dir="rtl"] .vc-queue { inset-inline-end: 0; transform: translateX(-100%); }
.vc-queue.is-open { transform: translateX(0); }
.vc-queue[hidden] { display: none; }
.vc-queue-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--vc-line);
}
.vc-queue-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.vc-queue-close { background: none; border: 0; cursor: pointer; color: var(--vc-dim); padding: 4px; }
.vc-queue-close svg { width: 20px; height: 20px; }
.vc-queue-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.vc-queue-empty { color: var(--vc-dim); text-align: center; padding: 40px 20px; font-size: 14px; }
.vc-q-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer;
}
.vc-q-item:hover { background: var(--vc-surface-2); }
.vc-q-item.is-playing { background: var(--vc-surface-2); }
.vc-q-cover { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; background: var(--vc-surface-2); }
.vc-q-main { min-width: 0; flex: 1; }
.vc-q-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-q-meta { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); }
.vc-q-remove { background: none; border: 0; cursor: pointer; color: var(--vc-dim); padding: 4px; }
.vc-q-remove svg { width: 16px; height: 16px; }

/* ═══════════════════════ DOCKED MINI-PLAYER ═══════════════════════ */
.vc-dock {
  position: fixed; z-index: 65; inset-inline: 0; inset-block-end: 0;
  background: var(--vc-surface); color: var(--vc-text);
  border-top: 1px solid var(--vc-line); box-shadow: 0 -10px 40px rgba(0,0,0,.18);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.75,.2,1);
  font-family: var(--font-urdu, sans-serif);
}
.vc-dock.is-open { transform: translateY(0); }
.vc-dock[hidden] { display: none; }
.vc-dock-inner {
  width: min(100% - 32px, var(--maxw, 1320px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 16px; padding: 12px 0;
}
/* Now-playing (leading) */
.vc-dock-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vc-dock-cover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--vc-surface-2); }
.vc-dock-nowmeta { min-width: 0; }
.vc-dock-title { font-size: 14px; font-weight: 700; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-dock-sub { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); display: flex; gap: 6px; align-items: center; }
.vc-dock-sub .vc-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--vc-dim); }
/* Transport (center) */
.vc-dock-transport { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vc-dock-controls { display: flex; align-items: center; gap: 10px; }
.vc-ctrl {
  background: none; border: 0; cursor: pointer; color: var(--vc-text); padding: 6px;
  display: grid; place-items: center; border-radius: 50%;
}
.vc-ctrl svg { width: 20px; height: 20px; fill: currentColor; }
.vc-ctrl:hover { color: var(--vc-red); }
.vc-ctrl-play { background: var(--vc-text); color: var(--vc-bg); width: 42px; height: 42px; }
.vc-ctrl-play:hover { background: var(--vc-red); color: #fff; }
.vc-ctrl-play svg { width: 22px; height: 22px; }
.vc-dock-seekrow { display: flex; align-items: center; gap: 10px; width: min(52vw, 520px); }
.vc-dock-time { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); min-width: 38px; text-align: center; }
.vc-seek {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px;
  background: var(--vc-line); cursor: pointer; direction: ltr;
}
.vc-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--vc-red); cursor: pointer;
}
.vc-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--vc-red); cursor: pointer; }
/* Extras (trailing) */
.vc-dock-extras { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.vc-speed {
  font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 700;
  background: var(--vc-surface-2); border: 1px solid var(--vc-line); color: var(--vc-text);
  padding: 6px 10px; border-radius: 6px; cursor: pointer; min-width: 44px;
}
.vc-speed:hover { border-color: var(--vc-red); }
.vc-dock-wave { color: var(--vc-red); width: 120px; }
.vc-dock-wave .vc-wavebars { height: 30px; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 900px) {
  .vc-dock-inner { grid-template-columns: 1fr auto; grid-template-areas: "now extras" "transport transport"; row-gap: 8px; }
  .vc-dock-now { grid-area: now; }
  .vc-dock-extras { grid-area: extras; }
  .vc-dock-transport { grid-area: transport; }
  .vc-dock-seekrow { width: 100%; }
  .vc-dock-wave { display: none; }
}
@media (max-width: 560px) {
  .vc-card { width: 180px; }
  .vc-preview { display: none !important; } /* hover preview is desktop-only */
  .vc-hero-inner { padding-bottom: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vc-hero-media { transform: none; }
  #vc-hero-wave { display: none; }
  .vc-card, .vc-btn, .vc-preview, .vc-queue, .vc-dock { transition: none; animation: none; }
}

/* ═══════════════════ STORY DETAIL — audio-first inner page ═══════════════════ */
.vc-story { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }
.vc-story-top { padding: 14px 0; }
.vc-story-back {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 1px solid var(--vc-line); color: var(--vc-text);
  border-radius: 22px; padding: 7px 14px; font-family: var(--font-urdu, sans-serif); font-size: 14px;
}
.vc-story-back svg { width: 16px; height: 16px; }
.vc-story-back:hover { border-color: var(--vc-red); color: var(--vc-red); }

.vc-story-hero { position: relative; border-radius: 16px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.vc-story-cover { position: absolute; inset: 0; background-size: cover; background-position: center; }
.vc-story-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.2) 100%); }
.vc-story-head { position: relative; padding: clamp(20px, 4vw, 40px); color: #fff; width: 100%; }
.vc-story-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vc-chip-live { background: var(--vc-red); color: #fff; }
.vc-story-title { font-family: var(--font-urdu, sans-serif); font-weight: 800; font-size: clamp(24px, 4vw, 40px); line-height: 1.4; margin: 0 0 12px; color: #fff; }
.vc-story-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono, monospace); font-size: 12px; color: rgba(255,255,255,.85); }
.vc-story-meta .vc-dot { background: rgba(255,255,255,.6); }

.vc-story-player {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 18px;
  background: var(--vc-surface); border: 1px solid var(--vc-line); border-radius: 14px; box-shadow: var(--vc-shadow);
}
.vc-story-play {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--vc-red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(176,7,15,.35);
}
.vc-story-play svg { width: 24px; height: 24px; fill: currentColor; }
.vc-story-pl-main { flex: 1; min-width: 0; }
.vc-story-wave { display: flex; align-items: center; gap: 2px; height: 34px; cursor: pointer; }
.vc-story-wave i { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--vc-line); }
.vc-story-wave i.on { background: var(--vc-red); }
.vc-story-times { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); }
.vc-story-speed, .vc-story-queue, .vc-story-dl {
  flex: 0 0 auto; cursor: pointer; border: 1px solid var(--vc-line); background: var(--vc-surface-2);
  color: var(--vc-text); border-radius: 22px; display: inline-flex; align-items: center; gap: 6px;
}
.vc-story-speed { padding: 8px 12px; font-family: var(--font-mono, monospace); font-size: 12px; }
.vc-story-queue { padding: 8px 14px; font-family: var(--font-urdu, sans-serif); font-size: 13px; }
.vc-story-queue svg { width: 16px; height: 16px; }
.vc-story-dl { width: 40px; height: 40px; border-radius: 50%; justify-content: center; text-decoration: none; }
.vc-story-dl svg { width: 18px; height: 18px; }
.vc-story-speed:hover, .vc-story-queue:hover, .vc-story-dl:hover { border-color: var(--vc-red); color: var(--vc-red); }
.vc-story-syn { margin: 22px 2px 0; font-family: var(--font-urdu, sans-serif); font-size: 16px; line-height: 2; color: var(--vc-text); max-width: 70ch; }
.vc-story-related { margin-top: 30px; }
@media (max-width: 640px) {
  .vc-story-player { flex-wrap: wrap; }
  .vc-story-pl-main { order: 3; flex-basis: 100%; }
}

/* ═══════════════════ PLAYLIST-ORIENTED BROWSE ═══════════════════ */
.vc-rail-sub { font-size: .6em; font-weight: 500; color: var(--vc-dim); margin-inline-start: 8px; }

/* Category tiles — theme-aware editorial cards (surface + tokens, adapt to
   light/dark) with a restrained accent icon; brand red leads. */
.vc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vc-cat-tile {
  position: relative; overflow: hidden; text-align: start; cursor: pointer;
  background: var(--vc-card); border: 1px solid var(--vc-line); color: var(--vc-text);
  border-radius: 14px; padding: 16px; min-height: 118px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.vc-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--vc-shadow); border-color: var(--accent, var(--vc-red)); }
.vc-cat-tile:focus-visible { outline: 2px solid var(--accent, var(--vc-red)); outline-offset: 2px; }
/* faint accent wash keyed off the tile's accent — subtle in both modes */
.vc-cat-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 120% at 100% 0%, var(--accent, var(--vc-red)), transparent 55%);
  opacity: .07;
}

.vc-cat-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--vc-surface-2); /* fallback */
  background: color-mix(in srgb, var(--accent, var(--vc-red)) 16%, transparent);
  color: var(--accent, var(--vc-red));
}
.vc-cat-ico svg { width: 24px; height: 24px; }

.vc-cat-name { margin-block-start: auto; font-family: var(--font-urdu, sans-serif); font-weight: 800; font-size: 17px; line-height: 1.45; color: var(--vc-text); }
.vc-cat-count { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); letter-spacing: .03em; }
.vc-cat-go {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent, var(--vc-red)); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.vc-cat-tile:hover .vc-cat-go { opacity: 1; transform: none; }
.vc-cat-go svg { width: 13px; height: 13px; fill: #fff; margin-inline-start: 1px; }

/* Restrained, editorial accent palette (red brand leads). */
.vc-cat-0 { --accent: var(--vc-red); }
.vc-cat-1 { --accent: #3b6ea5; }
.vc-cat-2 { --accent: #4a8a5c; }
.vc-cat-3 { --accent: #c07a3e; }
.vc-cat-4 { --accent: #7a5aa8; }
.vc-cat-5 { --accent: #3f8a86; }

/* Playlist cards */
.vc-pl-card { flex: 0 0 auto; width: 180px; scroll-snap-align: start; background: transparent; border: 0; cursor: pointer; text-align: start; padding: 0; }
.vc-pl-cover { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--vc-surface-2); box-shadow: 0 4px 14px rgba(0,0,0,.14); transition: box-shadow .16s ease, transform .16s ease; }
.vc-pl-card:hover .vc-pl-cover { box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.vc-pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.vc-pl-badge { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.7); color: #fff; font-family: var(--font-mono, monospace); font-size: 11px; padding: 2px 7px; border-radius: 20px; }
.vc-pl-playmark { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--vc-red); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s; }
.vc-pl-playmark svg { width: 18px; height: 18px; fill: #fff; }
.vc-pl-card:hover .vc-pl-playmark { opacity: 1; transform: none; }
.vc-pl-title { display: block; margin-top: 10px; font-family: var(--font-urdu, sans-serif); font-weight: 700; font-size: 14px; color: var(--vc-text); line-height: 1.5; }

/* Playlist view (collection) */
.vc-pl-hero { display: flex; gap: 24px; align-items: flex-end; margin: 6px 0 24px; flex-wrap: wrap; }
.vc-pl-hero-cover { width: 200px; height: 200px; border-radius: 14px; overflow: hidden; box-shadow: var(--vc-shadow); flex: 0 0 auto; }
.vc-pl-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.vc-pl-hero-main { flex: 1; min-width: 240px; }
.vc-pl-kicker { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--vc-dim); }
.vc-pl-hero-title { font-family: var(--font-urdu, sans-serif); font-weight: 800; font-size: clamp(26px, 4vw, 44px); margin: 6px 0 10px; color: var(--vc-text); }
.vc-pl-hero-meta { font-family: var(--font-mono, monospace); font-size: 13px; color: var(--vc-dim); margin-bottom: 16px; }
.vc-pl-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.vc-pl-hero-actions .vc-btn-ghost { background: var(--vc-surface-2); color: var(--vc-text); border: 1px solid var(--vc-line); }

/* Track list */
.vc-tracks { list-style: none; margin: 0; padding: 0; }
.vc-tr { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.vc-tr:hover { background: var(--vc-surface-2); }
.vc-tr-i { width: 22px; text-align: center; font-family: var(--font-mono, monospace); font-size: 13px; color: var(--vc-dim); flex: 0 0 auto; }
.vc-tr-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--vc-surface-2); }
.vc-tr-main { flex: 1; min-width: 0; }
.vc-tr-title { display: block; font-family: var(--font-urdu, sans-serif); font-weight: 700; font-size: 15px; color: var(--vc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-tr-meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono, monospace); font-size: 11px; color: var(--vc-dim); margin-top: 3px; }
.vc-tr-meta .vc-card-verify { color: var(--vc-verify); }
.vc-tr-meta .vc-card-verify svg { width: 12px; height: 12px; fill: currentColor; }
.vc-tr-dur { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--vc-dim); flex: 0 0 auto; }
.vc-tr-play { width: 34px; height: 34px; border-radius: 50%; background: var(--vc-red); display: grid; place-items: center; flex: 0 0 auto; opacity: 0; transition: opacity .14s; }
.vc-tr-play svg { width: 15px; height: 15px; fill: #fff; }
.vc-tr:hover .vc-tr-play { opacity: 1; }
@media (max-width: 640px) { .vc-tr-play { opacity: 1; } .vc-pl-hero-cover { width: 140px; height: 140px; } }
