/* ==========================================================================
   كادر — قسم المشاهدة
   Same ink & paper system as the reading side, turned cinematic: full-bleed backdrops,
   poster cards with a lift, a theater-grade player. Loaded only on /watch pages.
   ========================================================================== */

.watch-mode { --w-radius: 14px; --w-poster-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.watch-mode .site-header { background: color-mix(in srgb, var(--bg) 72%, transparent); }
.watch-mode .main { padding-top: 0; }
.w-glass { background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.16) !important; color: #fff !important; backdrop-filter: blur(10px); }
.w-glass:hover { background: rgba(255,255,255,.18) !important; }
:root[data-theme="light"] .w-title-info .w-glass, :root[data-theme="light"] .w-under .w-glass { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line-2) !important; }

/* ---------- Mode switch (shared with the reading header, kept here for watch pages) ---------- */
.w-section { margin-top: 34px; }
.w-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: w-pulse 1.6s infinite; display: inline-block; }
@keyframes w-pulse { 70% { box-shadow: 0 0 0 9px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }

/* ---------- Hero ---------- */
.w-hero { position: relative; isolation: isolate; min-height: min(78vh, 720px); display: grid; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); background: var(--bg); }
.w-hero-slide { grid-area: 1 / 1; position: relative; display: grid; align-items: end; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; }
.w-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.w-hero-bg { position: absolute; inset: 0; z-index: -2; }
.w-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.06); transition: transform 8s linear; }
.w-hero-slide.is-active .w-hero-bg img { transform: scale(1); }
.w-hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 65%),
              linear-gradient(to left, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 45%, transparent 75%); }
.w-hero-inner { padding-block: 40px 140px; }
.w-hero-info { max-width: 620px; display: grid; gap: 14px; }
.w-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .82em; font-weight: 700; color: var(--brand-2); letter-spacing: .02em; }
.w-hero-kicker .ic { width: 16px; height: 16px; }
.w-hero-title { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.1; font-weight: 400; text-shadow: 0 4px 30px rgba(0,0,0,.5); color: #fff; }
.w-hero-logo img { max-height: 130px; max-width: min(420px, 80%); width: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.w-hero-overview { color: rgba(255,255,255,.86); line-height: 1.9; max-width: 560px; font-size: .98em; }
:root[data-theme="light"] .w-hero-overview { color: var(--text-2); }
:root[data-theme="light"] .w-hero-title { color: var(--text); text-shadow: none; }
.w-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.w-hero-thumbs { position: absolute; z-index: 3; inset-inline: 0; bottom: 26px; display: flex; gap: 10px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
.w-hero-thumb { position: relative; flex: none; width: 58px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .25s, transform .25s, border-color .25s; background: var(--surface); }
.w-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.w-hero-thumb:hover { opacity: .9; }
.w-hero-thumb.is-active { opacity: 1; border-color: var(--brand); transform: translateY(-4px); }
.w-hero-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--brand); transform-origin: right; transform: scaleX(0); }
.w-hero.is-playing .w-hero-thumb.is-active .w-hero-progress { animation: w-progress var(--w-hero-delay, 7000ms) linear forwards; }
@keyframes w-progress { to { transform: scaleX(1); } }
@media (max-width: 700px) {
  .w-hero { min-height: 82vh; }
  .w-hero-bg img { object-position: center top; }
  .w-hero-shade { background: linear-gradient(to top, var(--bg) 8%, color-mix(in srgb, var(--bg) 75%, transparent) 42%, transparent 75%); }
  .w-hero-inner { padding-bottom: 110px; text-align: center; }
  .w-hero-info { justify-items: center; margin-inline: auto; }
  .w-hero-actions { justify-content: center; }
  .w-hero-thumbs { justify-content: center; bottom: 20px; }
  .w-hero-thumb { width: 42px; }
  .w-hero-overview { -webkit-line-clamp: 2; }
}

/* ---------- Meta line ---------- */
.w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .88em; color: var(--text-2); }
.w-hero .w-meta { color: rgba(255,255,255,.82); }
:root[data-theme="light"] .w-hero .w-meta { color: var(--text-2); }
.w-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; margin-inline-end: 14px; vertical-align: middle; }
.w-meta a:hover { color: var(--brand); }
.w-meta-rate { display: inline-flex; align-items: center; gap: 4px; color: #ffc53d; font-weight: 700; }
.w-meta-rate .ic { width: 15px; height: 15px; fill: currentColor; }
.w-cert-inline { border: 1px solid currentColor; border-radius: 5px; padding: 0 6px; font-size: .85em; line-height: 1.5; }
.w-status.s-returning-series { color: var(--success); }

/* ---------- Poster cards ---------- */
.w-rail { grid-auto-columns: minmax(132px, 1fr); }
@media (min-width: 700px) { .w-rail { grid-auto-columns: 172px; } }
.w-rail-ep { grid-auto-columns: minmax(250px, 1fr); }
@media (min-width: 700px) { .w-rail-ep { grid-auto-columns: 300px; } }
.w-rail-rank { grid-auto-columns: minmax(170px, 1fr); }
@media (min-width: 700px) { .w-rail-rank { grid-auto-columns: 220px; } }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 14px; }
@media (min-width: 900px) { .w-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; } }
.w-grid-ep { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.w-card { min-width: 0; }
.w-card-link { display: grid; gap: 8px; }
.w-poster { position: relative; display: block; aspect-ratio: 2/3; border-radius: var(--w-radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); transition: transform .35s var(--ease-out), box-shadow .35s; }
.w-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .35s; }
.w-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 45%); opacity: .7; transition: opacity .3s; }
.w-card-link:hover .w-poster, .w-card-link:focus-visible .w-poster { transform: none; box-shadow: var(--w-poster-shadow), 0 0 0 2px color-mix(in srgb, var(--brand) 70%, transparent); }
.w-card-link:hover .w-poster img { transform: scale(1.06); filter: brightness(.82); }
.w-kind { position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; font-size: .68em; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); color: #fff; background: rgba(10,11,16,.62); backdrop-filter: blur(6px); }
.w-kind.k-anime { background: color-mix(in srgb, #a678ff 80%, transparent); }
.w-kind.k-series { background: color-mix(in srgb, #2b8cff 78%, transparent); }
.w-rate { position: absolute; z-index: 2; bottom: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: .78em; font-weight: 700; color: #fff; }
.w-rate .ic { width: 13px; height: 13px; color: #ffc53d; fill: #ffc53d; }
.w-new, .w-cert { position: absolute; z-index: 2; top: 8px; inset-inline-end: 8px; font-size: .66em; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); color: #fff; }
.w-new { background: var(--grad); }
.w-cert { background: rgba(10,11,16,.62); border: 1px solid rgba(255,255,255,.25); }
.w-play { position: absolute; z-index: 3; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 10px 30px -8px var(--brand);
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--ease-out); }
.w-play .ic { width: 22px; height: 22px; fill: currentColor; margin-inline-start: -3px; }
a:hover .w-play, a:focus-visible .w-play { opacity: 1; transform: none; }
.w-card-title { font-weight: 700; font-size: .92em; line-height: 1.5; }
.w-card-link:hover .w-card-title { color: var(--brand); }
.w-card-meta { display: flex; gap: 8px; font-size: .76em; color: var(--muted); margin-top: -4px; }
.w-card-meta span + span::before { content: "·"; margin-inline-end: 8px; }
/* top 10 */
.w-card.has-rank .w-card-link { grid-template-columns: auto 1fr; align-items: end; column-gap: 0; }
.w-card.has-rank .w-card-title, .w-card.has-rank .w-card-meta { grid-column: 1 / -1; }
.w-rank { font-family: var(--font-display); font-size: 6.2em; line-height: .78; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--text) 45%, transparent); margin-inline-end: -14px; position: relative; z-index: 2; user-select: none; font-variant-numeric: lining-nums; }
.w-card.has-rank .w-card-link:hover .w-rank { -webkit-text-stroke-color: var(--brand); }

/* ---------- Episode (landscape) cards ---------- */
.w-ep-link { display: grid; gap: 8px; }
.w-ep-img { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--w-radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.w-ep-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.w-ep-link:hover .w-ep-img img { transform: scale(1.05); }
.w-ep-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 55%); }
.w-ep-num { position: absolute; bottom: 9px; inset-inline-start: 10px; font-weight: 800; font-size: .8em; color: #fff; letter-spacing: .04em; }
.w-ep-flag { position: absolute; top: 8px; inset-inline-start: 8px; font-size: .7em; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--grad); color: #fff; }
.w-ep-bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.22); }
.w-ep-bar span { display: block; height: 100%; background: var(--brand); border-radius: 0 2px 2px 0; }
.w-ep-body { display: grid; gap: 2px; padding-inline: 2px; }
.w-ep-title { font-weight: 700; font-size: .92em; }
.w-ep-sub { font-size: .78em; color: var(--muted); }
.w-ep-link:hover .w-ep-title { color: var(--brand); }

/* ---------- Genres / rooms ---------- */
.w-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.w-genre { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: end; min-height: 78px; padding: 12px 14px; border-radius: var(--w-radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s; isolation: isolate; }
.w-genre::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; background: radial-gradient(circle at 15% 15%, var(--g, var(--brand)), transparent 70%); transition: opacity .25s; }
.w-genre:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g, var(--brand)) 55%, transparent); }
.w-genre:hover::before { opacity: .42; }
.w-genre b { font-size: 1.02em; } .w-genre span { font-size: .75em; color: var(--muted); }
.g-action { --g: #ff5a36; } .g-adventure { --g: #ffb547; } .g-animation { --g: #a678ff; } .g-comedy { --g: #ffd84d; } .g-crime { --g: #8a94ad; }
.g-documentary { --g: #3dd6a3; } .g-drama { --g: #5fb3ff; } .g-family { --g: #8ef0c6; } .g-fantasy { --g: #b77dff; } .g-history { --g: #c49a6c; }
.g-horror { --g: #e0245e; } .g-music { --g: #ff7ad9; } .g-mystery { --g: #6c7a9c; } .g-romance { --g: #ff4f8b; } .g-sci-fi { --g: #00b8d9; }
.g-thriller { --g: #e67e22; } .g-war { --g: #7f8c8d; } .g-western { --g: #d35400; } .g-kids { --g: #2ecc71; } .g-reality { --g: #00cec9; }
.w-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.w-room-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--w-radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.w-room-card:hover { border-color: color-mix(in srgb, #ff3b5c 50%, transparent); }
.w-room-card img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; flex: none; }
.w-room-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.w-room-count { display: inline-flex; align-items: center; gap: 4px; font-size: .8em; color: #ff3b5c; font-weight: 700; }

/* ---------- Page heads, filters ---------- */
.w-browse { padding-top: 26px; }
.w-page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.w-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.w-select { display: grid; gap: 4px; min-width: 130px; flex: 1 1 130px; max-width: 220px; }
.w-select span { font-size: .72em; color: var(--muted); font-weight: 600; }
.w-select .select { height: 38px; }
.w-search-page { margin-bottom: 22px; max-width: 640px; }
.w-days { margin-bottom: 16px; }
.w-sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.w-sched-item { position: relative; }
.w-sched-item.is-mine .w-ep-img { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.w-sched-mine { position: absolute; top: 8px; inset-inline-end: 8px; }

/* ---------- Title page (series / anime) ---------- */
.w-title-hero { position: relative; isolation: isolate; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 36px); padding-bottom: 34px; overflow: hidden; }
.w-title-bg { position: absolute; inset: 0; z-index: -2; }
.w-title-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.w-title-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 40%, color-mix(in srgb, var(--bg) 55%, transparent) 100%), linear-gradient(to left, color-mix(in srgb, var(--bg) 70%, transparent), transparent 70%); }
.w-title-inner { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: end; }
.w-title-poster img { width: 100%; border-radius: 18px; box-shadow: var(--w-poster-shadow), 0 0 0 1px rgba(255,255,255,.08); aspect-ratio: 2/3; object-fit: cover; }
.w-title-info { display: grid; gap: 12px; min-width: 0; }
.w-title-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.15; }
.w-title-logo img { max-height: 120px; max-width: min(400px, 90%); filter: drop-shadow(0 6px 22px rgba(0,0,0,.5)); }
.w-title-sub { color: var(--text-2); font-size: .95em; margin-top: -6px; }
.w-tagline { color: var(--brand-2); font-style: italic; font-size: .95em; }
.w-overview { line-height: 2; color: var(--text-2); max-width: 760px; }
.w-overview.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.w-title-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.w-actions .btn.is-on { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
.w-next-air { display: inline-flex; align-items: center; gap: 6px; font-size: .86em; color: var(--success); }
.w-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .8em; color: var(--muted); }
.w-crumbs .ic { width: 13px; height: 13px; }
.w-crumbs a:hover { color: var(--brand); }
@media (max-width: 800px) {
  .w-title-hero { padding-top: calc(var(--header-h) + 18px); }
  .w-title-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .w-title-poster { width: 170px; margin-inline: auto; }
  .w-title-info { justify-items: center; }
  .w-meta, .w-title-cta, .w-actions, .w-crumbs { justify-content: center; }
}

/* stars */
.w-stars { display: inline-flex; gap: 2px; padding: 4px 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.w-stars button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; transition: transform .15s, color .15s; }
.w-stars button .ic { width: 18px; height: 18px; }
.w-stars button.is-on { color: #ffc53d; } .w-stars button.is-on .ic { fill: #ffc53d; }
.w-stars:hover button { color: #ffc53d; }
.w-stars button:hover ~ button { color: var(--muted); }
.w-stars button:hover { transform: scale(1.18); }

/* seasons & episodes */
.w-title-body { padding-bottom: 20px; }
.w-title-body > .tabs-line { margin-bottom: 18px; }
.w-season-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.w-seasons { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.w-seasons .chip { flex: none; }
.w-episodes { display: grid; gap: 12px; }
@media (min-width: 1000px) { .w-episodes { grid-template-columns: 1fr 1fr; } }
.w-episode { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.w-episode:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.w-episode-img { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.w-episode-img img { width: 100%; height: 100%; object-fit: cover; }
.w-episode-n { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 28px; height: 24px; padding-inline: 7px; display: grid; place-items: center; border-radius: 7px; background: rgba(10,11,16,.72); color: #fff; font-weight: 800; font-size: .8em; }
.w-episode-done { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; }
.w-episode-done .ic { width: 14px; height: 14px; }
.w-episode-body { display: grid; align-content: center; gap: 4px; min-width: 0; }
.w-episode-title { font-weight: 700; }
.w-episode-ov { color: var(--text-2); line-height: 1.75; }
.w-episode.is-watched .w-episode-img img { filter: grayscale(.5) brightness(.75); }
.w-episode.is-upcoming { opacity: .6; }
@media (max-width: 560px) { .w-episode { grid-template-columns: 132px 1fr; gap: 10px; } .w-episode-ov { display: none; } }

/* details */
.w-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; overflow-wrap: anywhere; }
.w-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; min-width: 0; }
.w-facts > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.w-facts span { font-size: .74em; color: var(--muted); }
.w-facts b { font-size: .92em; }
.w-cast { grid-auto-columns: 112px; }
.w-person { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; text-align: center; min-width: 0; }
.w-person-img { aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.w-person-img img { width: 100%; height: 100%; object-fit: cover; }
.w-person b { font-size: .82em; }

/* ---------- Watch page ---------- */
.watch-main { padding-top: 18px; }
.w-watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.w-watch-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.w-watch-main > *, .w-watch-main [data-tabs-scope], .w-title-body [data-tab-panel], .w-watch-main [data-tab-panel] { min-width: 0; }
.w-watch-main .rail, .w-title-body .rail { min-width: 0; }
.w-watch-main [data-tab-panel], .w-title-body [data-tab-panel] { overflow-wrap: anywhere; }
.w-watch:not(:has(.w-watch-side)) { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
@media (max-width: 1080px) { .w-watch { grid-template-columns: minmax(0, 1fr); } }
body.w-theater .w-watch { grid-template-columns: minmax(0, 1fr); max-width: none; }
body.w-theater .w-watch-side { display: none; }

.w-player { position: relative; z-index: 1; isolation: isolate; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.w-stage { position: relative; aspect-ratio: 16/9; background: #000; }
body.w-theater .w-stage { aspect-ratio: auto; height: min(80vh, calc(100vw * 9 / 16)); }
.w-cover, .w-frame { position: absolute; inset: 0; }
.w-cover img { width: 100%; height: 100%; object-fit: cover; }
.w-cover-shade { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,.72)); }
.w-bigplay { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 25%, transparent), 0 20px 60px -10px var(--brand); transition: transform .25s var(--ease-out), box-shadow .25s; }
.w-bigplay .ic { width: 38px; height: 38px; fill: currentColor; margin-inline-start: -5px; }
.w-bigplay:hover { transform: scale(1.08); box-shadow: 0 0 0 18px color-mix(in srgb, var(--brand) 20%, transparent), 0 20px 60px -10px var(--brand); }
@media (max-width: 600px) { .w-bigplay { width: 70px; height: 70px; } .w-bigplay .ic { width: 28px; height: 28px; } }
.w-resume-hint { position: absolute; bottom: 14px; inset-inline: 0; margin-inline: auto; width: max-content; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.6); color: #fff; font-size: .8em; }
.w-cover-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; text-align: center; padding: 20px; }
.w-cover-msg .ic { width: 34px; height: 34px; opacity: .8; }
.w-cover-msg span { color: rgba(255,255,255,.7); font-size: .88em; }
.w-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
/* the site's own player (mp4/hls): timeline stays left-to-right like every video player, captions follow their text */
.w-frame video { width: 100%; height: 100%; display: block; background: #000; direction: ltr; }
.w-frame video::cue { font-family: inherit; font-size: 1.05em; line-height: 1.5; background: rgba(0,0,0,.72); unicode-bidi: plaintext; }
.w-fail { background: rgba(0,0,0,.85); z-index: 2; }
.w-fail .btn { color: #fff; }
.w-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.w-loading[hidden] { display: none; }
.w-spin { width: 46px; height: 46px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .w-spin { animation-duration: 2.4s; } }
.w-server-ext { padding: 1px 7px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); color: #b9bed0 !important; }
.w-server-ok { display: inline-flex; color: #3ddc97; }
.w-server-ok .ic { width: 14px; height: 14px; }
.w-quality select { height: 32px; padding-inline: 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e9ebf3; font: inherit; font-size: .82em; }
.w-quality select option { color: #111; }
.w-ext-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; background: #0d0e14; border-top: 1px solid rgba(255,255,255,.06); color: #9aa0b5; font-size: .8em; }
.w-ext-note[hidden] { display: none; }
.w-ext-note .ic { width: 15px; height: 15px; flex: none; }
.w-countdown { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(0,0,0,.55); pointer-events: none; }
.w-countdown span { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 7rem); color: #fff; text-shadow: 0 0 40px var(--brand); animation: w-pop .6s var(--ease-out); }
@keyframes w-pop { from { transform: scale(1.6); opacity: 0; } }

.w-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #0d0e14; border-top: 1px solid rgba(255,255,255,.06); color: #e9ebf3; }
.w-servers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.w-server { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding-inline: 13px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: .84em; font-weight: 600; color: #d6d9e4; transition: background .2s, border-color .2s; }
.w-server:hover { background: rgba(255,255,255,.11); }
.w-server em { font-style: normal; font-size: .78em; color: #9aa0b5; }
.w-server-dot { width: 7px; height: 7px; border-radius: 50%; background: #5d6378; }
.w-server.is-on { background: color-mix(in srgb, var(--brand) 22%, transparent); border-color: color-mix(in srgb, var(--brand) 60%, transparent); color: #fff; }
.w-server.is-on .w-server-dot { background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.w-tools { display: flex; align-items: center; gap: 4px; }
.w-tools .icon-btn { color: #c8ccd9; }
.w-tools .icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.w-party-btn { color: #fff !important; border-color: rgba(255,255,255,.18) !important; }
.w-dim .w-player { z-index: 60; }
.w-lights-off { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.88); }
body.w-dim .w-player { box-shadow: 0 0 120px -10px color-mix(in srgb, var(--brand) 35%, transparent); }

.w-epnav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.w-epnav-mid { text-align: center; min-width: 0; }
.w-ep-h1 { font-size: 1.2em; font-weight: 800; }
.w-ep-h1 span { display: block; font-size: .78em; font-weight: 600; color: var(--muted); }
.w-ep-name { color: var(--text-2); font-size: .9em; }
.w-under { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.w-under-poster img { width: 100%; border-radius: 12px; aspect-ratio: 2/3; object-fit: cover; }
.w-under-info { display: grid; gap: 10px; align-content: start; min-width: 0; }
.w-under-title { font-size: 1.35em; font-weight: 800; }
.w-under-title a:hover { color: var(--brand); }
.w-mark, .w-autonext { display: inline-flex; }
@media (max-width: 600px) { .w-under { grid-template-columns: 1fr; } .w-under-poster { display: none; } .w-epnav { grid-template-columns: 1fr 1fr; } .w-epnav-mid { grid-column: 1 / -1; order: -1; } }

/* side episode list */
.w-watch-side { position: sticky; top: calc(var(--header-h) + 14px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.w-side-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.w-side-list { max-height: min(70vh, 640px); overflow-y: auto; padding: 8px; display: grid; gap: 6px; scrollbar-width: thin; }
.w-side-ep { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; transition: background .15s; }
.w-side-ep:hover { background: var(--surface-2); }
.w-side-ep.is-current { background: color-mix(in srgb, var(--brand) 12%, var(--surface-2)); box-shadow: inset 3px 0 0 var(--brand); }
.w-side-ep.is-upcoming { opacity: .55; }
.w-side-img { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface-3); }
.w-side-img img { width: 100%; height: 100%; object-fit: cover; }
.w-side-now, .w-side-done { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; }
.w-side-now .ic { fill: currentColor; } .w-side-done { background: color-mix(in srgb, var(--success) 45%, rgba(0,0,0,.4)); }
.w-side-body { display: grid; gap: 2px; min-width: 0; font-size: .86em; }
.w-season-menu { max-height: 320px; overflow-y: auto; }
@media (max-width: 1080px) { .w-watch-side { position: static; } .w-side-list { max-height: 420px; } }

/* ---------- Rooms ---------- */
.w-room { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; position: relative; }
@media (max-width: 1000px) { .w-room { grid-template-columns: 1fr; } }
.w-room-main { display: grid; gap: 12px; min-width: 0; }
.w-room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.w-live { display: inline-flex; align-items: center; gap: 6px; font-size: .74em; font-weight: 800; color: #ff3b5c; text-transform: uppercase; letter-spacing: .04em; }
.w-room-title { font-size: 1.15em; font-weight: 800; }
.w-room-title span { font-weight: 600; color: var(--muted); font-size: .85em; }
.w-room-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.w-room-clock { display: flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.w-room-clock b { font-size: 1.25em; font-variant-numeric: tabular-nums; }
.w-room-state { font-size: .72em; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); font-weight: 700; }
.w-room-state.is-playing { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.w-room-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.w-seek { display: flex; flex-wrap: nowrap; width: auto; }
.w-seek .input { width: 86px; }
.w-room-eps { display: grid; gap: 6px; }
.w-room-side { position: sticky; top: calc(var(--header-h) + 14px); display: grid; grid-template-rows: auto 1fr auto auto; height: min(78vh, 720px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
@media (max-width: 1000px) { .w-room-side { position: static; height: 520px; } }
.w-room-members { padding: 12px; border-bottom: 1px solid var(--line); }
.w-room-members-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .88em; }
.w-room-avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.w-member { display: inline-flex; align-items: center; gap: 6px; max-width: 150px; padding: 3px 9px 3px 3px; border-radius: var(--r-pill); background: var(--surface-2); font-size: .78em; }
.w-member img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.w-member.is-host { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-2) 60%, transparent); }
.w-member .ic { width: 13px; height: 13px; color: var(--brand-2); }
.w-chat { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.w-msg { display: flex; gap: 8px; font-size: .88em; line-height: 1.6; }
.w-msg img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.w-msg b { font-size: .86em; }
.w-msg p { color: var(--text); word-break: break-word; }
.w-msg.mine p { color: var(--text); }
.w-msg.sys { align-self: center; font-size: .76em; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: var(--r-pill); text-align: center; }
.w-msg.react { font-size: .8em; color: var(--muted); }
.w-msg.react span { font-size: 1.3em; }
.w-reacts { display: flex; justify-content: space-around; padding: 6px; border-top: 1px solid var(--line); }
.w-reacts button { font-size: 1.25em; width: 36px; height: 36px; border-radius: 50%; transition: transform .15s, background .15s; }
.w-reacts button:hover { transform: scale(1.2); background: var(--surface-2); }
.w-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.w-chat-form .input { flex: 1; }
.w-float-reacts { position: fixed; inset-inline: 0; bottom: 0; height: 60vh; pointer-events: none; z-index: 70; }
.w-float-reacts span { position: absolute; bottom: 0; font-size: 2.2em; animation: w-float 2.6s var(--ease-out) forwards; }
@keyframes w-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1.1); } 100% { transform: translateY(-50vh) scale(1); opacity: 0; } }

/* party modal */
.w-party-art { display: flex; justify-content: center; margin: 4px 0 14px; }
.w-party-art span { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); border: 3px solid var(--elev); margin-inline: -8px; }
.w-party-art span:nth-child(2) { background: var(--gem-grad); transform: translateY(-6px); }
.w-party-art span:nth-child(3) { background: linear-gradient(135deg, #3dd6a3, #5fb3ff); }

/* trailer modal */
.w-trailer-box { max-width: 980px; }
.w-ratio { position: relative; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; }
.w-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* footer grid with the extra watch column */
.watch-mode .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); }
@media (max-width: 900px) { .watch-mode .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .w-hero-slide, .w-hero-bg img, .w-poster, .w-poster img, .w-ep-img img { transition: none !important; }
  .w-live-dot, .w-countdown span { animation: none !important; }
}

/* phones: the player runs edge to edge, servers get their own scrolling row */
@media (max-width: 640px) {
  .w-watch-main > .w-player, .w-room-main > .w-player { margin-inline: -16px; border-radius: 0; }
  .w-bar { padding: 8px 10px; }
  .w-servers { flex-basis: 100%; order: -1; }
  .w-tools { width: 100%; justify-content: space-between; }
  .w-party-btn span { font-size: .9em; }
  .w-room-head .btn { width: 100%; }
}

.w-random { align-self: end; margin-inline-start: auto; height: 38px; }

/* ───── Site player controls (mp4 / hls / gateway) ───── */
.wp { position: absolute; inset: 0; z-index: 3; color: #fff; direction: ltr; font-size: 14px; user-select: none; -webkit-user-select: none; }
.wp[hidden] { display: none; }
.wp-tap { position: absolute; inset: 0; }
.wp:not(.is-active):not(.is-paused) { cursor: none; }
.wp-ic { width: 22px; height: 22px; display: block; }
/* subtitles: lifted above the bar while it is visible */
.wp-subs { position: absolute; inset-inline: 6%; bottom: 7%; display: grid; justify-items: center; gap: 2px; pointer-events: none; transition: bottom .2s var(--ease-out); text-align: center; z-index: 1; }
.wp.is-active .wp-subs, .wp.is-paused .wp-subs { bottom: 92px; }
.wp-cue { unicode-bidi: plaintext; white-space: pre-line; line-height: 1.45; font-weight: 600; padding: 1px 10px; border-radius: 6px;
  font-size: clamp(15px, 2.6cqi, 30px); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.w-stage { container-type: inline-size; }
.wp[data-sub-size="s"] .wp-cue { font-size: clamp(13px, 2cqi, 24px); }
.wp[data-sub-size="l"] .wp-cue { font-size: clamp(18px, 3.2cqi, 38px); }
.wp[data-sub-size="xl"] .wp-cue { font-size: clamp(21px, 3.9cqi, 46px); }
.wp[data-sub-bg="box"] .wp-cue { background: rgba(0,0,0,.6); }
.wp[data-sub-bg="solid"] .wp-cue { background: #000; text-shadow: none; }
.wp[data-sub-bg="none"] .wp-cue { text-shadow: 0 0 4px #000, 0 0 4px #000, 0 2px 2px #000; }
.wp[data-sub-color="yellow"] .wp-cue { color: #ffe14d; }
/* bar */
.wp-bar { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.82)); opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease-out); pointer-events: none; z-index: 2; }
.wp.is-active .wp-bar, .wp.is-paused .wp-bar, .wp.menu-open .wp-bar { opacity: 1; transform: none; pointer-events: auto; }
.wp-row { display: flex; align-items: center; gap: 2px; }
.wp-grow { flex: 1; }
.wp-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; background: none; border: 0; cursor: pointer; transition: background .15s, transform .15s; }
.wp-btn:hover { background: rgba(255,255,255,.12); }
.wp-btn:active { transform: scale(.92); }
.wp-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.wp-btn.is-on { color: var(--brand); }
.wp-btn.is-on::after { content: ''; position: absolute; }
.wp-play .wp-ic { width: 24px; height: 24px; }
.wp-time { font-variant-numeric: tabular-nums; font-size: .9em; color: rgba(255,255,255,.9); margin-inline: 8px; white-space: nowrap; }
.wp-vol { display: flex; align-items: center; }
.wp-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--brand); }
.wp-vol:hover input, .wp-vol:focus-within input { width: 80px; opacity: 1; }
/* timeline */
.wp-track { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin-bottom: 2px; }
.wp-rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; transition: height .15s; }
.wp-track:hover .wp-rail { height: 6px; }
.wp-buf, .wp-played { position: absolute; inset-block: 0; left: 0; }
.wp-buf { background: rgba(255,255,255,.35); }
.wp-played { background: var(--brand); }
.wp-marks { position: absolute; inset: 0; z-index: 1; }
/* skippable parts on the timeline: intro, recap and ending in yellow (the skip button appears there), preview blue */
.wp-mark { position: absolute; inset-block: 0; background: #f5c518; box-shadow: inset 2px 0 0 rgba(0,0,0,.6), inset -2px 0 0 rgba(0,0,0,.6); }
.wp-mark-preview { background: rgba(120,160,255,.75); }
.wp-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent);
  transform: scale(0); transition: transform .15s; }
.wp-track:hover .wp-knob, .wp-track:focus-visible .wp-knob { transform: scale(1); }
.wp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(10,10,16,.92); font-size: .8em; white-space: nowrap; pointer-events: none; direction: rtl; }
/* center feedback, double-tap flashes */
.wp-center { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; }
.wp-center .wp-ic { width: 34px; height: 34px; }
.wp-center.is-on { animation: wp-pop .55s ease-out; }
@keyframes wp-pop { 0% { opacity: .95; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
.wp-flash { position: absolute; top: 0; bottom: 0; width: 34%; display: grid; place-content: center; justify-items: center; gap: 4px; opacity: 0; pointer-events: none; }
.wp-flash .wp-ic { width: 34px; height: 34px; }
.wp-flash b { font-size: .9em; }
.wp-flash-l { left: 0; background: radial-gradient(ellipse at left, rgba(255,255,255,.18), transparent 70%); }
.wp-flash-r { right: 0; background: radial-gradient(ellipse at right, rgba(255,255,255,.18), transparent 70%); }
.wp-flash.is-on { animation: wp-flash .6s ease-out; }
@keyframes wp-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
/* skip intro / next episode */
.wp-skip { position: absolute; right: 18px; bottom: 96px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 16px 18px; border-radius: 10px;
  background: rgba(255,255,255,.94); color: #111; border: 0; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); direction: rtl; animation: wp-in .3s var(--ease-out); }
.wp-skip[hidden] { display: none; }
.wp-skip .wp-ic { width: 18px; height: 18px; transform: scaleX(-1); }
.wp-skip:hover { background: #fff; transform: translateY(-1px); }
.wp-next { position: absolute; right: 18px; bottom: 96px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(12,12,18,.92);
  border: 1px solid rgba(255,255,255,.12); direction: rtl; box-shadow: 0 16px 40px -10px #000; animation: wp-in .3s var(--ease-out); }
.wp-next[hidden] { display: none; }
.wp-next-text { display: grid; padding-inline: 4px; }
.wp-next-text small { color: rgba(255,255,255,.65); }
.wp-next-go { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; }
.wp-next-go .wp-ic { width: 16px; height: 16px; transform: scaleX(-1); }
.wp-next-stay { height: 38px; padding-inline: 12px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; border: 0; font: inherit; cursor: pointer; }
@keyframes wp-in { from { opacity: 0; transform: translateY(8px); } }
/* menu */
.wp-menu { position: absolute; right: 12px; bottom: 74px; z-index: 4; width: min(330px, calc(100% - 24px)); max-height: calc(100% - 90px); overflow: auto; padding: 8px; border-radius: 14px;
  background: rgba(14,14,20,.96); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px -12px #000; direction: rtl; text-align: start; scrollbar-width: thin; }
.wp-menu[hidden] { display: none; }
.wp-mh { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.wp-back { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; border: 0; font-size: 18px; line-height: 1; cursor: pointer; transform: scaleX(-1); }
.wp-opt { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border-radius: 9px; background: none; border: 0; color: #e9ebf3; font: inherit; cursor: pointer; text-align: start; }
.wp-opt:hover { background: rgba(255,255,255,.08); }
.wp-opt span { flex: 1; }
.wp-opt em { font-style: normal; color: rgba(255,255,255,.6); font-size: .9em; }
.wp-opt i { font-style: normal; color: rgba(255,255,255,.6); }
.wp-opt.is-on { color: #fff; font-weight: 700; }
.wp-opt.is-on i { color: var(--brand); }
.wp-switch input { accent-color: var(--brand); width: 18px; height: 18px; }
.wp-note, .wp-keys { margin: 6px 10px; color: rgba(255,255,255,.55); font-size: .82em; line-height: 1.6; }
.wp-seg-row { display: grid; gap: 6px; padding: 8px 10px; }
.wp-seg-row > span { color: rgba(255,255,255,.7); font-size: .85em; }
.wp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wp-chip { height: 32px; padding-inline: 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #fff; font: inherit; font-size: .85em; cursor: pointer; }
.wp-chip.is-on { background: color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.wp-off { min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; font-size: .85em; }
.wp-save { margin: 6px 10px 4px; width: calc(100% - 20px); }
/* fullscreen stage */
.w-stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.w-stage:fullscreen .w-frame video { object-fit: contain; }
.w-stage:-webkit-full-screen { width: 100%; height: 100%; }
@media (max-width: 600px) {
  .wp-bar { padding: 22px 6px 4px; }
  .wp-btn { width: 36px; height: 36px; }
  .wp-time { font-size: .8em; margin-inline: 4px; }
  .wp-vol input { display: none; }
  .wp-skip, .wp-next { right: 10px; bottom: 74px; }
  .wp.is-active .wp-subs, .wp.is-paused .wp-subs { bottom: 74px; }
  .wp-menu { bottom: 62px; }
}
@media (prefers-reduced-motion: reduce) { .wp-center.is-on, .wp-flash.is-on, .wp-skip, .wp-next { animation: none; } }
.wp-stat { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .88em; }
.wp-stat span { color: rgba(255,255,255,.65); }
.wp-stat b { font-variant-numeric: tabular-nums; }
.w-fail-why { display: block; margin-top: 8px; max-width: 640px; max-height: 120px; overflow: auto; white-space: pre-line; font-size: .78em; color: rgba(255,255,255,.6); text-align: left; }

/* A reserved rank column keeps 1–10 aligned; badge rows cannot overlap. */
.w-card.has-rank .w-card-link{grid-template-columns:42px minmax(0,1fr);align-items:start;column-gap:4px}
.w-card.has-rank .w-poster{grid-column:2;grid-row:1;width:100%}
.w-rank{grid-column:1;grid-row:1;align-self:end;font-size:3.3rem;margin:0 0 8px;line-height:1;letter-spacing:-.08em;text-align:center}
.w-badges{position:absolute;inset:8px 6px auto;z-index:2;display:flex;flex-wrap:wrap;gap:4px;align-items:flex-start;justify-content:space-between}
.w-badges .w-kind,.w-badges .w-new,.w-badges .w-cert{position:static;max-width:100%;font-size:10px;line-height:1.5;padding:2px 6px;white-space:nowrap}
.w-card-link{height:100%;align-content:start}.w-card-meta{flex-wrap:wrap}
.w-season-picker{display:flex;align-items:center;gap:12px;max-width:100%}.w-season-picker .select{width:auto;max-width:100%;min-width:200px}
@media(max-width:420px){.w-season-picker{width:100%;flex-wrap:wrap}.w-season-picker .select{width:100%}.w-rank{font-size:2.7rem}.w-card.has-rank .w-card-link{grid-template-columns:34px minmax(0,1fr)}}
