@font-face{font-family:'IBM Plex Sans';src:url(fonts/plex-400.woff2) format('woff2');font-weight:400;font-display:swap;unicode-range:U+0000-024F,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212}
@font-face{font-family:'IBM Plex Sans';src:url(fonts/plex-600.woff2) format('woff2');font-weight:600;font-display:swap;unicode-range:U+0000-024F,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212}
@font-face{font-family:'IBM Plex Sans';src:url(fonts/plex-700.woff2) format('woff2');font-weight:700;font-display:swap;unicode-range:U+0000-024F,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212}
@font-face{font-family:'IBM Plex Sans Arabic';src:url(fonts/ar-400.woff2) format('woff2');font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:'IBM Plex Sans Arabic';src:url(fonts/ar-700.woff2) format('woff2');font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
:root{--f-ar:'IBM Plex Sans Arabic';}
/* narwi.tv — dark cinematic theme in the Narwi brand (gold #FECB03, red #C00000, navy #0D2149). */
:root {
  --bg: #0a0a0b; --bg2: #141416; --bg3: #1e1e21; --line: #2e2e33;
  --tx: #f5f3ee; --tx2: #bdb9b1; --tx3: #97938b;
  --gold: #fecb03; --gold-d: #d7aa00; --red: #c00000; --navy: #0d2149;
  --pad: clamp(16px, 4vw, 64px); --gap: clamp(8px, 0.9vw, 14px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --hdr: 64px;
  --font: 'IBM Plex Sans', var(--f-ar), system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[lang='ar'] { --font: var(--f-ar), 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
abbr { text-decoration: none; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #000; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0 1.4em; border-radius: 6px; border: 0; font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; transition: background-color .2s, transform .2s var(--ease); }
.btn svg { font-size: 1.35em; }
.btn--primary { background: var(--gold); color: #0a0a0b; }
.btn--primary:hover { background: #ffd83d; }
.btn--ghost { background: rgba(58, 58, 64, 0.82); color: var(--tx); }
.btn--ghost:hover { background: rgba(82, 82, 90, 0.92); }
.btn--disabled { background: var(--bg3); color: var(--tx2); cursor: default; }
.btn:active { transform: scale(0.97); }
.js-list .i-on { display: none; }
.js-list[aria-pressed='true'] .i-on { display: inline-flex; }
.js-list[aria-pressed='true'] .i-off { display: none; }
.js-list span { display: inline-flex; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--hdr); display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 0 var(--pad); background: rgba(10, 10, 11, 0.97); transition: background-color .3s; }
.hdr--overlay { position: fixed; inset-inline: 0; background: transparent; }
.hdr--overlay.hdr--solid { background: rgba(10, 10, 11, 0.97); }
.hdr__logo img { height: 28px; width: auto; }
.hdr__nav ul { display: flex; gap: clamp(12px, 2vw, 28px); }
.hdr__nav a { color: var(--tx2); font-size: 0.95rem; font-weight: 600; padding: 6px 0; transition: color .2s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { color: var(--tx); }
.hdr__nav a[aria-current] { box-shadow: inset 0 -2px var(--gold); }
.hdr__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.hdr__icon { display: grid; place-items: center; width: 44px; height: 44px; font-size: 24px; border-radius: 50%; }
.hdr__icon:hover { background: rgba(255, 255, 255, 0.1); }
.hdr__lang { font-size: 0.9rem; font-weight: 600; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px; }
.hdr__lang:hover { border-color: var(--tx); }
@media (max-width: 640px) {
  .hdr { gap: 12px; }
  .hdr__logo img { height: 22px; }
  .hdr__nav { position: fixed; bottom: 0; inset-inline: 0; background: rgba(10, 10, 11, 0.98); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 45; }
  .hdr__nav ul { justify-content: space-around; }
  .hdr__nav a { display: block; padding: 14px 8px; }
  .hdr__nav a[aria-current] { box-shadow: inset 0 2px var(--gold); }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  body.watch { padding-bottom: 0; }
  .hdr__lang { padding: 6px 10px; }
}

/* ---------- hero (home + show) ---------- */
.hero, .showhero { position: relative; display: flex; align-items: flex-end; min-height: clamp(560px, 56.25vw, 94vh); padding: calc(var(--hdr) + 24px) var(--pad) clamp(96px, 12vw, 190px); isolation: isolate; }
.showhero { min-height: clamp(520px, 48vw, 82vh); padding-bottom: clamp(32px, 5vw, 64px); }
.hero__media, .showhero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg2); overflow: hidden; }
.hero__img, .hero__vid, .showhero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__vid { opacity: 0; transition: opacity .8s; }
.hero.is-playing .hero__vid { opacity: 1; }
/* contrast scrim for text over the picture (functional, not decoration) */
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(to top, var(--bg) 0, rgba(10, 10, 11, 0.6) 22%, transparent 48%),
  linear-gradient(to bottom, rgba(10, 10, 11, 0.7) 0, transparent 22%); }
:root[dir='ltr'] .hero__scrim { background:
  linear-gradient(to top, var(--bg) 0, rgba(10, 10, 11, 0.6) 22%, transparent 48%),
  linear-gradient(to bottom, rgba(10, 10, 11, 0.7) 0, transparent 22%),
  linear-gradient(to right, rgba(10, 10, 11, 0.75) 0, transparent 60%); }
:root[dir='rtl'] .hero__scrim { background:
  linear-gradient(to top, var(--bg) 0, rgba(10, 10, 11, 0.6) 22%, transparent 48%),
  linear-gradient(to bottom, rgba(10, 10, 11, 0.7) 0, transparent 22%),
  linear-gradient(to left, rgba(10, 10, 11, 0.75) 0, transparent 60%); }
.hero__body, .showhero__body { max-width: 40rem; display: grid; gap: 14px; }
.hero__kicker { color: var(--gold); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
.hero__t { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem); line-height: 1.05; font-weight: 700; text-wrap: balance; }
.hero__pitch, .showhero__desc { font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.3rem); color: #e9e6df; max-width: 34rem; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero__mute { position: absolute; inset-inline-end: var(--pad); bottom: clamp(120px, 14vw, 220px); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.7); background: rgba(10, 10, 11, 0.4); display: grid; place-items: center; font-size: 20px; }
.hero__mute:hover { background: rgba(255, 255, 255, 0.15); }
.hero__mute .i-sound, .hero__mute[aria-pressed='false'] .i-muted { display: none; }
.hero__mute[aria-pressed='false'] .i-sound { display: inline; }
.hero__mute span { display: grid; }
.showhero__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tx2); font-size: 0.95rem; }
.showhero__meta span + span::before { content: '·'; margin-inline-end: 14px; color: var(--tx3); }
@media (max-width: 640px) {
  .hero { min-height: 82svh; padding-bottom: 40px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__mute { display: none; }
}

/* ---------- rows ---------- */
.rows { position: relative; z-index: 2; margin-top: clamp(-150px, -9vw, -24px); display: grid; gap: clamp(8px, 1.4vw, 26px); padding-bottom: 48px; }
body:not(.home) .rows { margin-top: 0; }
.row__head { display: flex; align-items: baseline; gap: 16px; padding: 0 var(--pad); margin-bottom: 4px; }
.row__head h2 { font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem); font-weight: 700; }
.row__head h2 a:hover { color: var(--gold); }
.row__more { display: inline-flex; align-items: center; gap: 2px; font-size: 0.9rem; font-weight: 600; color: var(--gold); padding: 6px 0; }
:root[dir='rtl'] .row__more svg { transform: scaleX(-1); }
.row__wrap { position: relative; }
.row__track {
  --n: 2.2;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--pad) * 2 - (var(--n) - 1) * var(--gap)) / var(--n));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 12px var(--pad) 18px; scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__track > li { scroll-snap-align: start; min-width: 0; }
@media (min-width: 600px) { .row__track { --n: 3.2; } }
@media (min-width: 900px) { .row__track { --n: 4.2; } }
@media (min-width: 1300px) { .row__track { --n: 5.2; } }
@media (min-width: 1800px) { .row__track { --n: 6.2; } }
.row--tall .row__track { --n: 2.6; }
@media (min-width: 600px) { .row--tall .row__track { --n: 4.2; } }
@media (min-width: 900px) { .row--tall .row__track { --n: 5.2; } }
@media (min-width: 1300px) { .row--tall .row__track { --n: 7.2; } }
.row--short .row__track { --n: 2.6; }
@media (min-width: 600px) { .row--short .row__track { --n: 4.4; } }
@media (min-width: 900px) { .row--short .row__track { --n: 6.3; } }
@media (min-width: 1300px) { .row--short .row__track { --n: 8.3; } }
.row__arrow { position: absolute; top: 12px; bottom: 18px; z-index: 3; width: calc(var(--pad) - 4px); min-width: 28px; display: none; place-items: center; border: 0; background: rgba(10, 10, 11, 0.7); color: var(--tx); font-size: 34px; opacity: 0; transition: opacity .2s; }
.row__arrow--prev { inset-inline-start: 0; }
.row__arrow--next { inset-inline-end: 0; }
.row__arrow--prev svg { transform: scaleX(-1); }
:root[dir='rtl'] .row__arrow--prev svg { transform: none; }
:root[dir='rtl'] .row__arrow--next svg { transform: scaleX(-1); }
.row__arrow.off { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .row__arrow { display: grid; }
  .row__wrap:hover .row__arrow { opacity: 1; }
  .row__arrow:hover { background: rgba(10, 10, 11, 0.9); }
  .row__arrow:hover svg { transform: scale(1.25); }
  .row__arrow--prev:hover svg { transform: scaleX(-1) scale(1.25); }
  :root[dir='rtl'] .row__arrow--prev:hover svg { transform: scale(1.25); }
  :root[dir='rtl'] .row__arrow--next:hover svg { transform: scaleX(-1) scale(1.25); }
}

/* ---------- cards ---------- */
.card { display: block; position: relative; border-radius: 6px; transition: transform .3s var(--ease); transform-origin: center; }
.card__img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg3); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card--tall .card__img { aspect-ratio: 2 / 3; }
.card--short .card__img { aspect-ratio: 4 / 5; }
.card__info { display: grid; gap: 2px; padding: 8px 2px 0; }
.card__t { font-weight: 600; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__m { color: var(--tx2); font-size: 0.82rem; }
.card__badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--gold); color: #0a0a0b; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.card__ext { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 11, 0.7); font-size: 15px; }
.bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.28); }
.bar i { display: block; height: 100%; width: 0; background: var(--red); }
:root[dir='rtl'] .bar i { margin-inline-start: 0; }
.card:focus-visible { outline: none; }
.card:focus-visible .card__img { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .card:not(.card--tall):not(.card--short) .card__m { opacity: 0; transition: opacity .2s; }
  .card:hover, .card:focus-visible { transform: scale(1.06); z-index: 2; }
  .card:hover .card__m, .card:focus-visible .card__m { opacity: 1; }
  .card:hover .card__img { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .btn, .hero__vid { transition: none; }
  .card:hover, .card:focus-visible { transform: none; }
}

/* ---------- show page: episodes ---------- */
.episodes { padding: 8px var(--pad) 56px; max-width: 1280px; }
.episodes__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.episodes__head h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.select select { appearance: none; background: var(--bg3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23f5f3ee'/%3E%3C/svg%3E") no-repeat; background-size: 22px; background-position: right 10px center; border: 1px solid var(--line); border-radius: 6px; padding: 10px 44px 10px 16px; font-weight: 600; min-height: 44px; }
:root[dir='rtl'] .select select { background-position: left 10px center; padding: 10px 16px 10px 44px; }
.has-season-pick .season__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.season__h { font-size: 1.1rem; margin: 24px 0 8px; color: var(--tx2); }
.ep > a, .ep > div { display: grid; grid-template-columns: minmax(130px, 260px) 1fr; gap: clamp(12px, 2vw, 24px); align-items: center; padding: 14px 12px; border-radius: 8px; }
.ep > a:hover { background: var(--bg2); }
.ep + .ep { border-top: 1px solid var(--line); }
.ep__img { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg3); }
.ep__img img { width: 100%; height: 100%; object-fit: cover; }
.ep__play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 11, 0.6); border: 1.5px solid rgba(255, 255, 255, 0.9); font-size: 22px; opacity: 0.9; transition: transform .2s var(--ease), background-color .2s; }
.ep > a:hover .ep__play, .ep > a:focus-visible .ep__play { background: var(--gold); color: #0a0a0b; border-color: var(--gold); transform: scale(1.08); }
.ep__soon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 11, 0.62); font-weight: 700; font-size: 0.9rem; color: var(--tx); }
.ep--soon .ep__img img { filter: grayscale(1) brightness(0.7); }
.ep__body { display: grid; gap: 3px; min-width: 0; }
.ep__n { color: var(--gold); font-size: 0.85rem; font-weight: 700; }
.ep__t { font-weight: 600; font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.12rem); line-height: 1.4; }
.ep__m { color: var(--tx2); font-size: 0.86rem; }
.ep--soon .ep__t { color: var(--tx2); }
@media (max-width: 520px) { .ep > a, .ep > div { grid-template-columns: 42% 1fr; padding: 12px 0; } }

/* ---------- generic pages ---------- */
.page { padding: 32px var(--pad) 64px; width: 100%; max-width: 1600px; margin-inline: auto; }
.page--center { display: grid; justify-items: center; align-content: center; text-align: center; gap: 14px; min-height: 60vh; }
.page__h { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); margin-bottom: 12px; }
.page__lead { color: var(--tx2); max-width: 40rem; margin-bottom: 24px; }
.page--center .page__lead { margin-bottom: 8px; }
.nf__code { font-size: clamp(5rem, 14vw, 10rem); font-weight: 700; line-height: 1; color: var(--gold); }
.grid { display: grid; gap: 24px var(--gap); }
.grid--tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid--short { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.empty { display: grid; justify-items: start; gap: 16px; padding: 32px 0; color: var(--tx2); }
.sbox { position: relative; max-width: 760px; }
.sbox input { width: 100%; min-height: 56px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; padding-inline-start: 52px; font-size: 1.15rem; color: var(--tx); }
.sbox input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sbox input::placeholder { color: var(--tx3); }
.sbox__i { position: absolute; inset-inline-start: 16px; top: 16px; font-size: 24px; color: var(--tx2); display: flex; }
.sres__status { color: var(--tx2); margin: 18px 0 14px; }
.sres { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px 20px; }
.sres__a { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 8px; }
.sres__a:hover { background: var(--bg2); }
.sres__a img { width: 140px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 5px; background: var(--bg3); }
.sres__a > span { display: grid; gap: 2px; min-width: 0; }
.sres__t { font-weight: 600; line-height: 1.35; }
.sres__m { font-size: 0.85rem; color: var(--tx2); }
.sres__m .soon { color: var(--gold); }

/* ---------- footer ---------- */
.ftr { padding: 40px var(--pad) 48px; border-top: 1px solid var(--line); color: var(--tx2); font-size: 0.9rem; display: grid; gap: 16px; }
.ftr img { height: 22px; width: auto; opacity: 0.9; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr nav a { padding: 6px 0; }
.ftr nav a:hover { color: var(--tx); }
.ftr__note { color: var(--tx3); }

/* ---------- watch page ---------- */
body.watch { background: #000; }
.player { position: relative; width: 100%; height: min(100vh, 56.25vw); min-height: 220px; background: #000; overflow: hidden; container-type: inline-size; color: #fff; font-family: var(--font); user-select: none; -webkit-user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.fs { height: 100vh; }
.pl-nojs { position: absolute; inset: auto 0 20px; text-align: center; }
.pl-hit { position: absolute; inset: 0; z-index: 1; }
.pl-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: #fff; font-size: 26px; border-radius: 6px; padding: 0; flex: none; transition: background-color .15s, transform .15s; }
.pl-btn:hover { background: rgba(255, 255, 255, 0.14); }
.pl-btn:active { transform: scale(0.92); }
.pl-btn[aria-pressed='true'] { color: var(--gold); }
.pl-top { position: absolute; top: 0; inset-inline: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px var(--pad) 40px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent); transition: opacity .3s; }
.pl-top[dir='rtl'] .pl-back svg { transform: scaleX(-1); }
.pl-title { display: grid; line-height: 1.3; min-width: 0; }
.pl-title span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.pl-title strong { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ctrl { position: absolute; bottom: 0; inset-inline: 0; z-index: 4; padding: 48px var(--pad) max(12px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); transition: opacity .3s; }
.player.idle { cursor: none; }
.player.idle .pl-ctrl, .player.idle .pl-top { opacity: 0; pointer-events: none; }
.pl-seek { position: relative; height: 26px; display: flex; align-items: center; touch-action: none; }
.pl-rail { position: absolute; inset-inline: 0; height: 4px; background: rgba(255, 255, 255, 0.28); border-radius: 2px; transition: height .15s; }
.pl-seek:hover .pl-rail, .pl-seek:focus-within .pl-rail { height: 6px; }
.pl-buf, .pl-played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.pl-buf { background: rgba(255, 255, 255, 0.45); }
.pl-played { background: var(--red); }
.pl-knob { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--red); transform: scale(0.8); transition: transform .15s; }
.pl-seek:hover .pl-knob, .pl-seek:focus-within .pl-knob { transform: scale(1.1); }
.pl-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pl-seek:has(.pl-range:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.pl-prev { position: absolute; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; pointer-events: none; }
.pl-prev__img { border: 2px solid #fff; border-radius: 4px; background-color: #000; background-repeat: no-repeat; }
.pl-prev span { font-size: 0.85rem; font-weight: 700; background: rgba(0, 0, 0, 0.75); padding: 2px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.pl-bar { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.pl-time { font-size: 0.9rem; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; color: rgba(255, 255, 255, 0.9); }
.pl-sp { flex: 1; }
.pl-vol { display: flex; align-items: center; }
.pl-volw { display: flex; width: 0; overflow: hidden; transition: width .2s; }
.pl-volr { width: 84px; flex: none; accent-color: var(--gold); height: 24px; margin: 0 6px; }
.pl-vol:hover .pl-volw, .pl-vol:focus-within .pl-volw { width: 96px; }
@media (hover: none) { .pl-volw { display: none; } }
.pl-spin { position: absolute; inset: 0; margin: auto; z-index: 3; width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: var(--gold); animation: spin .9s linear infinite; display: none; pointer-events: none; }
.player.loading .pl-spin { display: block; }
.player.has-err .pl-spin, .player.has-err .pl-big { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pl-spin { animation-duration: 3s; } }
.pl-big { position: absolute; inset: 0; margin: auto; z-index: 3; width: clamp(64px, 9cqw, 96px); height: clamp(64px, 9cqw, 96px); border-radius: 50%; border: 0; background: var(--gold); color: #0a0a0b; display: none; place-items: center; font-size: clamp(30px, 4cqw, 44px); }
.pl-big svg { margin-inline-start: 4px; }
.player.paused:not(.started):not(.loading) .pl-big { display: grid; }
.pl-subs { position: absolute; inset-inline: 6%; bottom: 7%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; transition: bottom .3s; }
.player:not(.idle) .pl-subs { bottom: max(7%, 110px); }
.pl-subs span { background: rgba(0, 0, 0, 0.78); padding: 0.1em 0.45em; border-radius: 3px; line-height: 1.35; white-space: pre-line; max-width: 100%; }
.subs-s .pl-subs { font-size: max(13px, 1.9cqw); }
.subs-m .pl-subs { font-size: max(15px, 2.6cqw); }
.subs-l .pl-subs { font-size: max(18px, 3.5cqw); }
.pl-menu { position: absolute; bottom: 64px; inset-inline-end: var(--pad); width: min(300px, calc(100% - 32px)); max-height: min(420px, calc(100cqh - 90px)); overflow: auto; background: rgba(20, 20, 22, 0.97); border: 1px solid var(--line); border-radius: 10px; padding: 8px; z-index: 6; }
.pl-grp { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 6px; }
.pl-grp + .pl-grp { border-top: 1px solid var(--line); }
.pl-grp__h { width: 100%; font-size: 0.8rem; font-weight: 700; color: var(--tx2); margin-bottom: 2px; }
.pl-opt { border: 1px solid var(--line); background: var(--bg3); border-radius: 6px; padding: 7px 12px; min-height: 36px; font-size: 0.9rem; color: var(--tx); }
.pl-opt:hover { border-color: var(--tx2); }
.pl-opt[aria-pressed='true'] { background: var(--gold); color: #0a0a0b; border-color: var(--gold); font-weight: 700; }
.pl-err, .pl-next { position: absolute; z-index: 7; background: rgba(20, 20, 22, 0.96); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 14px; }
.pl-err { inset: 0; margin: auto; width: min(460px, calc(100% - 32px)); height: max-content; text-align: center; justify-items: center; font-size: 1.05rem; }
.pl-next { inset-inline-end: var(--pad); bottom: 96px; width: min(360px, calc(100% - 32px)); }
.player.ended .pl-ctrl, .player.ended .pl-top { opacity: 1; }
.pl-next__k { font-weight: 700; }
.pl-next__n { color: var(--gold); font-variant-numeric: tabular-nums; }
.pl-next__card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.pl-next__card img { width: 120px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 4px; }
.pl-next__card div { display: grid; gap: 2px; font-size: 0.92rem; }
.pl-next__card span { color: var(--gold); font-size: 0.8rem; font-weight: 700; }
.pl-next__bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pl-next__bar i { display: block; height: 100%; background: var(--gold); animation: shrink 10s linear forwards; transform-origin: left; }
.pl-next__bar i.still { animation: none; }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.pl-next__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-next__btns .btn { min-height: 42px; flex: 1; }
.pl-skip { position: absolute; inset-inline-end: var(--pad); bottom: 110px; z-index: 5; background: rgba(20, 20, 22, 0.9); color: #fff; border: 1.5px solid #fff; border-radius: 6px; padding: 10px 20px; font-weight: 700; }
.pl-toast { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 12px; background: rgba(20, 20, 22, 0.94); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; font-size: 0.92rem; white-space: nowrap; }
.pl-toast[dir='rtl'] { padding: 6px 16px 6px 6px; }
.pl-chip { border: 0; background: var(--bg3); color: var(--tx); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.88rem; min-height: 34px; }
.pl-chip:hover { background: var(--line); }
@media (max-width: 640px) {
  .pl-b10, .pl-f10, .pl-time .pl-dur { display: none; }
  .pl-bar { gap: 0; }
  .pl-btn { width: 40px; height: 40px; font-size: 23px; }
  .pl-next { inset-inline: 12px; bottom: 76px; width: auto; }
  .pl-menu { bottom: 56px; inset-inline-end: 8px; }
  .pl-top { padding-top: 8px; }
  .pl-toast { top: 56px; font-size: 0.82rem; }
}
.winfo { padding: 24px var(--pad) 8px; display: grid; gap: 10px; max-width: 980px; }
.winfo__show a { color: var(--gold); font-weight: 700; }
.winfo__show a:hover { text-decoration: underline; }
.winfo__t { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.2; }
.winfo__m { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tx2); font-size: 0.95rem; }
.winfo__m span + span::before { content: '·'; margin-inline-end: 14px; color: var(--tx3); }
.winfo__d { color: var(--tx2); max-width: 46rem; }
body.watch .row { margin: 24px 0 40px; }
.pl-debug{font:11px/1.35 ui-monospace,Menlo,monospace;white-space:pre-wrap;word-break:break-all;background:#000;color:#9f9;padding:10px;margin:0;max-height:45vh;overflow:auto;direction:ltr;text-align:left}
