/* Media Player V2 — streaming services UI (badges, provider dialog, player) */

.st-badges{position:absolute; top:46px; left:10px; z-index:3; display:flex; gap:4px; pointer-events:none}
.st-b{font-size:9px; font-weight:800; letter-spacing:.5px; padding:2px 6px; border-radius:5px;
  color:#fff; background:rgba(8,8,12,.55); border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
.st-b.st-sub{border-color:rgba(96,165,250,.7)}
.st-b.st-dub{border-color:rgba(192,132,252,.7)}
.st-b.st-hi{border-color:rgba(251,191,36,.7)}
.episode-action.st-globe{background:rgba(20,60,120,.72); border-color:rgba(96,165,250,.65);
  box-shadow:0 0 10px rgba(96,165,250,.35)}
.episode-action.st-globe.unavailable{background:rgba(120,20,20,.72); border-color:rgba(248,113,113,.65);
  box-shadow:0 0 10px rgba(248,113,113,.35); color:#f87171; cursor:default;
  animation:st-globe-pulse 1.6s ease-in-out infinite}
@keyframes st-globe-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){
  .episode-action.st-globe.unavailable{animation:none}
}

/* Choose Provider dialog */
.st-scrim{position:fixed; inset:0; z-index:900; display:flex; align-items:flex-end; justify-content:center;
  background:rgba(0,0,0,.62); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); padding:18px}
.st-dialog{position:relative; width:min(480px,100%); max-height:82vh; overflow:auto;
  background:#0a0a0c; border:1px solid #232326; border-radius:20px;
  padding:22px 18px 18px; box-shadow:0 24px 60px rgba(0,0,0,.6)}
.st-dialog h3{margin:0 0 4px; font-size:19px; font-weight:800; color:#fff}
.st-dialog .st-sub{margin:0 0 16px; font-size:13px; color:rgba(255,255,255,.55)}
.st-x{position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%;
  border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); color:#fff; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center}
.st-x .icon{width:14px; height:14px}

/* Sticky modal header: title + close stay visible while scrolling */
.st-head{position:sticky; top:-22px; z-index:10; display:flex;
  align-items:flex-start; justify-content:space-between; gap:12px;
  margin:-22px -18px 14px; padding:16px 18px 12px;
  background:#0a0a0c; border-radius:20px 20px 0 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(0,0,0,.35)}
.st-head-tx{min-width:0; flex:1}
.st-head .st-x{position:static; flex:none}
.st-head h3{margin:0 0 4px; font-size:19px; font-weight:800; color:#fff}
.st-head .st-sub{margin:0; font-size:13px; color:rgba(255,255,255,.55)}

/* Slim OLED-style scrollbar for modals (replaces bulky browser default) */
.st-dialog{scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.18) transparent}
.st-dialog::-webkit-scrollbar{width:8px}
.st-dialog::-webkit-scrollbar-track{background:transparent}
.st-dialog::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18); border-radius:8px}
.st-dialog::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3)}
.st-provs{display:flex; flex-direction:column; gap:10px; margin-bottom:14px}
.st-prov{display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  padding:12px 14px; border-radius:14px; color:#fff; font:inherit;
  background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.1)}
.st-prov.sel{background:rgba(96,165,250,.14); border-color:rgba(96,165,250,.65);
  box-shadow:0 0 14px rgba(96,165,250,.25)}
.st-prov-ic{width:36px; height:36px; flex:none; border-radius:10px; display:inline-flex;
  align-items:center; justify-content:center; background:rgba(255,255,255,.07)}
.st-prov-ic .icon{width:18px; height:18px}
.st-prov-tx{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.st-prov-tx b{font-size:14px; font-weight:800}
.st-prov-tx i{font-style:normal; font-size:12px; color:rgba(255,255,255,.55)}
.st-prov-go{flex:none; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center;
  color:rgba(255,255,255,.6)}
.st-prov-go .icon{width:17px; height:17px}
.st-langwrap{margin-bottom:14px}
.st-langlabel{font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase;
  color:rgba(255,255,255,.5); margin-bottom:8px}
.st-langs{display:flex; gap:8px; flex-wrap:wrap}
.st-lang{padding:8px 16px; border-radius:999px; font:inherit; font-size:13px; font-weight:700; cursor:pointer;
  color:#fff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14)}
.st-lang.sel{background:rgba(96,165,250,.2); border-color:rgba(96,165,250,.7)}
.st-start{width:100%; padding:13px; border:0; border-radius:14px; font:inherit; font-size:15px; font-weight:800;
  color:#fff; background:linear-gradient(135deg,#2563eb,#7c3aed); cursor:pointer}
.st-start:disabled{opacity:.45; cursor:default}
/* Entry 137: torrent picker inside the provider dialog. */
.st-tlist{display:flex; flex-direction:column; gap:8px; max-height:46vh; overflow-y:auto; margin:4px 0 12px}
.st-tlist-msg{color:rgba(255,255,255,.55); font-size:13px; text-align:center; padding:18px 8px; margin:0}
.st-trow{display:flex; align-items:center; gap:10px; width:100%; text-align:left; cursor:pointer;
  padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.04); color:#fff; font:inherit}
.st-trow:active{background:rgba(96,165,250,.14)}
.st-trow-tx{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.st-trow-tx b{font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.st-trow-tx i{font-style:normal; font-size:11px; color:rgba(255,255,255,.55)}
.st-trow-seed{flex:none; font-size:12px; font-weight:800; color:#4ade80}
.st-tback{display:block; width:100%; padding:10px; border:0; background:none; color:rgba(255,255,255,.65);
  font:inherit; font-size:13px; font-weight:700; cursor:pointer}
/* Entry 137: P2P peer/speed pill over the video. */
.st-p-torrent-stats{position:absolute; left:10px; bottom:52px; z-index:5; pointer-events:none;
  font-size:11px; font-weight:700; color:#fff; background:rgba(0,0,0,.62);
  border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:5px 10px}
@media(min-width:640px){.st-scrim{align-items:center}}

/* In-app player */
.st-player{position:fixed; inset:0; z-index:950; background:#000; display:flex; flex-direction:column}
.st-p-top{display:flex; align-items:center; gap:10px; padding:calc(10px + env(safe-area-inset-top)) 12px 10px;
  background:linear-gradient(rgba(0,0,0,.75),transparent); position:absolute; top:0; left:0; right:0; z-index:2}
.st-p-title{flex:1; min-width:0; display:flex; flex-direction:column}
.st-p-title b{color:#fff; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.st-p-title i{font-style:normal; color:rgba(255,255,255,.6); font-size:11px}
.st-p-btn{border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.08); color:#fff;
  border-radius:999px; padding:7px 14px; font:inherit; font-size:12px; font-weight:700; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px}
.st-p-btn .icon{width:14px; height:14px}
.st-p-video{flex:1; width:100%; min-height:0; background:#000; object-fit:contain}
/* Episode prev/next in the player top bar */
.st-p-prev .icon, .st-p-next .icon{width:14px; height:14px}
.st-p-prev:disabled, .st-p-next:disabled{opacity:.35; cursor:default}
/* Touch-gesture feedback indicator (double-tap seek, swipe volume/brightness, pinch fit) */
.st-gesture-ind{position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(.9);
  z-index:5; pointer-events:none; font-size:15px; font-weight:800; color:#fff;
  background:rgba(0,0,0,.62); border:1px solid rgba(255,255,255,.22);
  padding:10px 18px; border-radius:999px; opacity:0; transition:opacity .18s, transform .18s;
  white-space:nowrap}
.st-gesture-ind.on{opacity:1; transform:translate(-50%,-50%) scale(1)}
.st-gesture-ind b{font-size:17px}
.st-p-loading{position:absolute; inset:0; display:flex; flex-direction:column; gap:12px;
  align-items:center; justify-content:center; background:rgba(0,0,0,.55); z-index:3}
.st-p-loading i{font-style:normal; color:rgba(255,255,255,.7); font-size:13px}
/* Idle season staging: season poster behind, prompt to pick an episode. */
.st-p-idle-hint{position:absolute; inset:0; z-index:2; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px; text-align:center; padding:0 24px;
  background:rgba(0,0,0,.45); pointer-events:none}
.st-p-idle-hint b{font-size:17px; color:#fff}
.st-p-idle-hint span{font-size:13px; color:rgba(255,255,255,.75)}
.st-p-spin{width:38px; height:38px; border-radius:50%; border:3px solid rgba(255,255,255,.2);
  border-top-color:#fff; animation:stspin 0.9s linear infinite}
@keyframes stspin{to{transform:rotate(360deg)}}
.st-p-error{position:absolute; inset:0; display:flex; flex-direction:column; gap:8px;
  align-items:center; justify-content:center; background:rgba(0,0,0,.7); z-index:3; padding:24px; text-align:center}
.st-p-error b{color:#fff; font-size:16px}
.st-p-error p{color:rgba(255,255,255,.65); font-size:13px; margin:0 0 8px; max-width:320px}
.st-p-retry{border:0; border-radius:12px; padding:11px 26px; font:inherit; font-weight:800; color:#fff;
  background:linear-gradient(135deg,#2563eb,#7c3aed); cursor:pointer}
.st-p-menu{position:absolute; z-index:60; max-width:calc(100vw - 24px);
  max-height:min(50vh, 320px); overflow-y:auto;
  min-width:190px; background:rgba(16,16,24,.97); border:1px solid rgba(255,255,255,.14);
  border-radius:14px; padding:8px; display:flex; flex-direction:column; gap:2px}
.st-p-menu b{font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:rgba(255,255,255,.5);
  padding:6px 10px 4px}
.st-p-menu button{border:0; background:none; color:#fff; font:inherit; font-size:13px; text-align:left;
  padding:9px 10px; border-radius:9px; cursor:pointer}
.st-p-menu button.sel{background:rgba(96,165,250,.2); color:#bfdbfe}
/* Entry 118: unified settings panel rows (rendered inside .st-p-menu),
   styled after the reference: label left, current value + chevron right. */
.st-p-menu .st-set-row{display:flex; align-items:center; gap:10px; width:100%;
  padding:12px 10px; font-size:14px}
.st-p-menu .st-set-row .st-set-label{flex:1; color:#fff}
.st-p-menu .st-set-val{color:rgba(255,255,255,.55); font-size:13px}
.st-p-menu .st-set-chev{color:rgba(255,255,255,.45); font-size:18px; line-height:1}
.st-p-menu .st-set-toggle{position:relative; width:44px; height:26px; border:0;
  border-radius:999px; background:rgba(255,255,255,.18); cursor:pointer;
  flex-shrink:0; padding:0}
.st-p-menu .st-set-toggle i{position:absolute; top:3px; left:3px; width:20px;
  height:20px; border-radius:50%; background:#fff; transition:left .15s ease}
.st-p-menu .st-set-toggle.on{background:#3b82f6}
.st-p-menu .st-set-toggle.on i{left:21px}
.st-p-menu .st-set-back{display:flex; align-items:center; gap:6px; width:100%;
  font-weight:700}
.st-p-menu .st-set-back span{font-size:18px; line-height:1}
.st-p-menu .st-set-opt.sel{background:rgba(96,165,250,.2); color:#bfdbfe}
/* Entry 119: prev/next episode buttons overlaid on the video edges. The
   container lets taps through; only the buttons capture them.
   Entry 130: the overlay fades out after 2s idle (any tap brings it back). */
.st-p-epnav{position:absolute; inset:0; z-index:5; pointer-events:none;
  display:flex; align-items:center; justify-content:space-between; padding:0 10px;
  opacity:1; transition:opacity .35s ease}
.st-p-epnav.epnav-idle{opacity:0}
.st-p-epnav.epnav-idle .st-p-epnav-btn{pointer-events:none}
.st-p-epnav-btn{pointer-events:auto; width:44px; height:44px; border:0;
  border-radius:50%; background:rgba(0,0,0,.45); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center}
.st-p-epnav-btn svg{width:22px; height:22px}
.st-p-epnav-btn:disabled{opacity:.3; cursor:default}
.st-player.mini-mode .st-p-epnav{display:none}
.hidden{display:none !important}

/* Landscape phones (notch / Dynamic Island): keep the video and the player
   chrome clear of the hardware cutouts. The video letterboxes inside the
   safe area instead of sliding under the notch. */
@media (orientation: landscape) {
  .st-p-video {
    box-sizing: border-box;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .st-p-top {
    left: env(safe-area-inset-left, 0px);
    right: env(safe-area-inset-right, 0px);
  }
  .st-p-menu { right: calc(12px + env(safe-area-inset-right, 0px)); }
}

/* ---------- YouTube-style player layout (split screen) ---------- */
.st-player.st-yt {
  display: flex; flex-direction: row; gap: 20px; padding: 20px;
  overflow-y: auto; align-items: flex-start;
  background: #000;
}
.st-yt-main { flex: 1 1 auto; min-width: 0; max-width: 1120px; }
.st-yt-video-wrap {
  position: relative; aspect-ratio: 16/9;
  background: #000; border-radius: 12px; overflow: hidden;
}
.st-yt-video-wrap .st-p-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.st-yt-video-wrap .st-p-loading,
.st-yt-video-wrap .st-p-error {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.st-yt-info { padding: 14px 4px 0; }
.st-yt-titlebar { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.st-yt-back {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.st-yt-back svg { width: 18px; height: 18px; transform: scaleX(-1); }
.st-yt-back:hover { background: rgba(255,255,255,.16); }
.st-yt-title {
  flex: 1 1 auto; min-width: 0; background: none; border: 0; color: #fff;
  font-size: 19px; font-weight: 700; line-height: 1.3; text-align: left;
  cursor: pointer; padding: 0; transition: opacity .6s ease;
}
/* Idle: the series name dims but stays readable — it no longer vanishes. */
.st-player.st-idle .st-yt-title { opacity: .38; }
.st-yt-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-yt-title:hover span { white-space: normal; }
/* Current-episode pill: ‹ Series name [S2 E5] */
.st-yt-cur {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  color: #fff; background: rgba(229,9,20,.85); border-radius: 999px;
  padding: 4px 10px; white-space: nowrap;
}
.st-yt-title.static { cursor: default; }
.st-yt-seasons { margin: 10px 0 2px; }
/* Pinned panel header: the season strip and the "Episodes" title stay fixed
   while only the episode cards scroll beneath them. */
.st-yt-side-pin {
  position: sticky; top: 0; z-index: 5;
  background: #000; padding: 8px 0 4px;
}
.st-yt-side-pin .st-yt-seasons { margin: 0; }
.st-yt-season:disabled { opacity: .55; }
.st-yt-season-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
  scrollbar-width: none; -ms-overflow-style: none; }
.st-yt-season-row::-webkit-scrollbar { display: none; }
.st-yt-season {
  flex: 0 0 auto; width: 76px; padding: 0; background: none;
  border: 2px solid transparent; border-radius: 12px;
  color: inherit; cursor: pointer; text-align: left;
}
.st-yt-season-img {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 108px; border-radius: 9px; overflow: hidden;
  background: rgba(255,255,255,.08); color: #9a9aa0;
  font-size: 11px; font-weight: 600; text-align: center;
}
.st-yt-season-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-yt-season-img > span { padding: 0 6px; }
.st-yt-season-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 5px; min-height: 28px;
  font-size: 11px; font-weight: 600; line-height: 1.3; color: inherit;
}
.st-yt-season:hover .st-yt-season-img { outline: 1px solid rgba(255,255,255,.25); }
.st-yt-season.cur { border-color: #f2f2f5; }
.st-yt-season.off { opacity: .35; }
.st-yt-ep-title { margin: 5px 0 12px; color: #9a9aa0; font-size: 13px; }
.st-yt-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-p-btn.st-yt-btn {
  border-radius: 999px; padding: 9px 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.st-p-btn.st-yt-btn:disabled { opacity: .35; cursor: default; }
.st-p-btn.st-yt-btn svg { width: 16px; height: 16px; }
.st-yt-sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.st-yt-sec-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.st-yt-epcount { color: #9a9aa0; font-size: 12px; }
/* reviews carousel */
.st-yt-reviews { margin-top: 20px; padding: 0 4px; }
.st-yt-rev-view { overflow: hidden; border-radius: 12px; }
.st-yt-rev-track { display: flex; transition: transform .5s ease; }
.st-yt-rev-card {
  flex: 0 0 100%; box-sizing: border-box;
  padding: 14px 16px; background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
}
.st-yt-rev-who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.st-yt-rev-who b { font-size: 13px; }
.st-yt-rev-who span { color: #ffb340; font-size: 12px; font-weight: 700; }
.st-yt-rev-sum { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.st-yt-rev-body { margin: 0; font-size: 13px; line-height: 1.55; color: #c9c9d0; }
.st-yt-rev-more { display: none; } /* small screens only (see media query) */
.st-yt-rev-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.st-yt-rev-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0;
  background: #fff; opacity: .3; cursor: pointer;
}
.st-yt-rev-dots button.on { opacity: 1; }
.st-yt-empty { color: #9a9aa0; font-size: 13px; margin: 0; }
/* episode sidebar */
.st-yt-side {
  flex: 0 0 340px; width: 340px;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 0;
}
.st-yt-countdown {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.st-yt-cd-label { display: block; font-size: 12px; color: #9a9aa0; margin-bottom: 8px; }
.st-yt-cd-boxes { display: flex; gap: 6px; }
.st-yt-cd-boxes b {
  min-width: 44px; text-align: center; padding: 8px 6px;
  background: rgba(255,255,255,.07); border-radius: 8px;
  font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.st-yt-cd-boxes b i { display: block; font-style: normal; font-size: 10px; font-weight: 600; color: #9a9aa0; }
.st-yt-cd-out { font-size: 16px; }
.st-yt-eplist { display: flex; flex-direction: column; gap: 4px; }
.st-yt-ep {
  display: flex; gap: 10px; align-items: center; width: 100%;
  flex-shrink: 0; /* Entry 116: rows must never crush inside the capped mobile list */
  padding: 9px 10px; border-radius: 10px; position: relative; overflow: hidden;
  background: transparent; border: 0; color: inherit;
  text-align: left; cursor: pointer;
}
.st-yt-ep:hover { background: rgba(255,255,255,.05); }
.st-yt-ep.cur { background: rgba(255,255,255,.08); }
.st-yt-ep-n {
  flex: 0 0 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700;
}
.st-yt-ep.cur .st-yt-ep-n { background: var(--tone, #b54aea); }
.st-yt-ep-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.st-yt-ep-tx b { font-size: 13px; font-weight: 600; }
.st-yt-ep-title { font-size: 12px; color: #c9c9d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-yt-ep-sub { font-size: 11px; color: #9a9aa0; }
.st-yt-ep-cd { color: var(--tone, #b54aea); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; }
.st-yt-ep.st-yt-soon { cursor: default; opacity: .85; border: 1px dashed rgba(255,255,255,.22); }
.st-yt-ep.st-yt-soon:hover { background: transparent; }
.st-yt-ep-scan { padding: 14px 10px; font-size: 12px; color: #9a9aa0; text-align: center; }
.st-yt-ep-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.14);
}
.st-yt-ep-progress span { display: block; height: 100%; background: var(--tone, #b54aea); }
/* portrait phones / narrow: single column, sidebar becomes a section below */
@media (max-width: 899px) {
  .st-player.st-yt { flex-direction: column; padding: 12px; gap: 16px; }
  .st-yt-main { max-width: none; width: 100%; }
  .st-yt-side {
    flex: none; width: 100%; max-height: none;
    position: static; overflow: visible;
  }
  .st-yt-eplist { max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
  /* Pin the video to the top of the screen while the rest of the page
     scrolls underneath (the shell itself is the scroller on phones). */
  .st-player.st-yt:not(.mini-mode) .st-yt-video-wrap {
    position: fixed; top: 12px; left: 12px; right: 12px; z-index: 30;
  }
  .st-player.st-yt:not(.mini-mode) {
    padding-top: calc(12px + (100vw - 24px) * 9 / 16);
  }
  /* Reviews: title line only; More/Less expands the full text. */
  .st-yt-rev-card .st-yt-rev-body { display: none; }

  /* Entry 133: halve the mobile gap between the series title and the
     episode line (was 10+14+5 = 29px, now 5+7+2 = 14px). */
  .st-yt-titlebar { padding-bottom: 5px; }
  .st-yt-info { padding-top: 7px; }
  .st-yt-ep-title { margin-top: 2px; }
  .st-yt-rev-card.open .st-yt-rev-body { display: block; margin-top: 8px; }
  .st-yt-rev-more {
    display: inline-block; margin-top: 8px; padding: 6px 14px;
    border: 0; border-radius: 999px; background: rgba(255,255,255,.1);
    color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  }
  /* Entry 136: compact review cards on small screens. */
  .st-yt-rev-card { padding: 10px 12px; }
  .st-yt-rev-who { margin-bottom: 3px; }
  .st-yt-rev-who b { font-size: 12px; }
  .st-yt-rev-sum { margin: 0 0 3px; font-size: 13px; }
  .st-yt-rev-more { margin-top: 6px; padding: 5px 12px; font-size: 11px; }
  .st-yt-rev-dots { margin-top: 8px; }
}
/* Wide/desktop: center the split layout so the video column doesn't hug
   the left edge leaving a black void on the right. */
@media (min-width: 1500px) {
  .st-player.st-yt { justify-content: center; }
  .st-yt-main { max-width: 1240px; }
}

/* episode cards with thumbnail backgrounds (dark gradient for legibility) */
.st-yt-ep.has-bg {
  background-image: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.35) 100%),
    var(--ep-bg);
  background-size: cover, cover;
  background-position: center, center;
  border: 1px solid rgba(255,255,255,.08);
}
.st-yt-ep.has-bg:hover { background-image: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.48) 60%, rgba(0,0,0,.28) 100%),
    var(--ep-bg); }
/* custom themed dropdowns (dark glass, replace native select) */
.st-yt-dd { position: relative; flex: none; }
.st-yt-dd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 9px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  max-width: 180px;
}
.st-yt-dd-btn .st-yt-dd-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-yt-dd-btn .icon { width: 12px; height: 12px; opacity: .7; flex: none; transition: transform .18s ease; }
.st-yt-dd.open .st-yt-dd-btn { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
.st-yt-dd.open .st-yt-dd-btn .icon { transform: rotate(180deg); }
.st-yt-dd-list {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 100%;
  background: rgba(26,26,30,.97);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  padding: 6px; z-index: 60; margin: 0;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.st-yt-dd-list[hidden] { display: none; }
.st-yt-dd-opt {
  display: flex; align-items: center; width: 100%;
  padding: 10px 12px; border: none; background: transparent; color: #e8e8ec;
  font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 9px;
  text-align: left; white-space: nowrap;
}
.st-yt-dd-opt:hover, .st-yt-dd-opt:focus-visible { background: rgba(255,255,255,.09); color: #fff; outline: none; }
.st-yt-dd-opt.sel { color: #fff; font-weight: 700; background: rgba(181,74,234,.16); }
/* Entry 132: group headings inside the combined mobile Server dropdown */
.st-yt-dd-head {
  padding: 8px 12px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.st-yt-dd-head:first-child { padding-top: 4px; }

/* Entry 131: server picker dropdown in the provider dialog — collapsed
   trigger showing the chosen server, tap to expand, pick, it collapses. */
.st-prov-dd{flex:1 1 auto; width:100%}
.st-prov-dd .st-yt-dd-btn.st-prov-trigger{width:100%; max-width:none; border-radius:14px;
  padding:10px 14px; justify-content:flex-start}
.st-prov-dd .st-yt-dd-btn .st-prov-ic .icon{width:18px; height:18px}
.st-yt-dd.open .st-prov-dd .st-prov-ic .icon,
.st-prov-dd.open .st-prov-trigger .st-prov-ic .icon{transform:none}
.st-prov-dd .st-prov-tx{text-align:left}
.st-prov-dd .st-yt-dd-btn > .icon:last-child{margin-left:auto}
.st-prov-dd .st-yt-dd-list{left:0; right:0; max-height:264px; overflow-y:auto; padding:8px;
  display:flex; flex-direction:column; gap:8px}
.st-prov-dd .st-yt-dd-list[hidden]{display:none}
.st-prov-dd .st-prov{flex:none; width:100%}

/* floating draggable mini-player */
.st-player.mini-mode {
  inset: auto; top: auto; left: auto;
  right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(260px, 62vw); aspect-ratio: 16 / 9;
  background: transparent; overflow: visible;
  display: block; padding: 0; z-index: 960;
  touch-action: none; cursor: grab;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.55));
}
.st-player.mini-mode:active { cursor: grabbing; }
.st-player.mini-mode .st-yt-main { display: block; height: 100%; }
.st-player.mini-mode .st-yt-video-wrap { height: 100%; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.st-player.mini-mode .st-yt-info,
.st-player.mini-mode .st-yt-titlebar,
.st-player.mini-mode .st-yt-reviews,
.st-player.mini-mode .st-yt-side,
.st-player.mini-mode .st-p-menu,
.st-player.mini-mode .st-p-loading,
.st-player.mini-mode .st-p-error { display: none; }
.st-mini-bar {
  display: none; position: absolute; left: 0; right: 0; bottom: 0;
  align-items: center; gap: 8px; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  border-radius: 0 0 12px 12px;
}
.st-player.mini-mode .st-mini-bar { display: flex; }
.st-mini-title { flex: 1; min-width: 0; color: #fff; font-size: 11px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-mini-btn { border: none; background: rgba(255,255,255,.14); color: #fff;
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.st-mini-btn .icon { width: 15px; height: 15px; }

/* Watch page (#/watch) empty state — shown only when no player session
   exists (deep link / consumed session). The player shell itself is a
   fixed full-screen overlay owned by stream.js. */
.watch-empty{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#000;color:#9a9aa0}
.watch-empty-back{color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);padding:10px 20px;border-radius:999px;text-decoration:none;font-weight:600}
