:root {
  --bg: #0b0b0f;
  --bg-2: #14141b;
  --bg-3: #1d1d27;
  --line: #2a2a36;
  --text: #f4f4f6;
  --muted: #a3a3b2;
  --dim: #6e6e7e;
  --accent: #ff5a3c;
  --accent-2: #ff7a5e;
  --ok: #3ccf91;
  --warn: #ffb547;
  --err: #ff5470;
  --radius: 10px;
  --pad: clamp(16px, 4vw, 56px);
  --card-w: clamp(118px, 14vw, 190px);
  --live-w: clamp(170px, 18vw, 260px);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden, [hidden] { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #ffffff22; border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.spinner.sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; background: var(--bg-3); font-weight: 600; font-size: 15px; transition: background .15s, transform .1s, opacity .15s; white-space: nowrap; }
.btn:hover { background: #2a2a38; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.light { background: #fff; color: #111; }
.btn.light:hover { background: #e6e6e6; }
.btn.ghost { background: #ffffff1a; backdrop-filter: blur(6px); }
.btn.ghost:hover { background: #ffffff2e; }
.btn.danger { background: transparent; border-color: #ff547055; color: var(--err); }
.btn.danger:hover { background: #ff54701a; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.icon { padding: 10px; border-radius: 50%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.input, select.input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--accent); }
.hint { font-size: 13px; color: var(--dim); margin-top: 2px; }
.error-box { background: #ff547018; border: 1px solid #ff547044; color: #ffb3c0; padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.ok-box { background: #3ccf9118; border: 1px solid #3ccf9144; color: #a6f0cf; padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }

.tabs { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.tabs button { background: transparent; border: 0; padding: 8px 14px; border-radius: 7px; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs button.active { background: var(--bg-3); color: var(--text); }

/* ---------- Autenticación ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 600px at 10% -10%, #ff5a3c33, transparent 60%),
  radial-gradient(900px 500px at 110% 110%, #6b4cff2a, transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); background: #14141bcc; border: 1px solid var(--line); border-radius: 16px; padding: 32px; backdrop-filter: blur(10px); }
.auth-card h1 { font-size: 26px; margin: 18px 0 6px; }
.auth-card p { margin: 0 0 22px; }
.auth-card .btn { width: 100%; padding: 13px; margin-top: 6px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--text); font-weight: 600; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; }
.brand span b { color: var(--accent); }

/* ---------- Barra superior ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: linear-gradient(#0b0b0fee, #0b0b0f00); transition: background .25s; }
.topbar.solid { background: #0b0b0ff2; box-shadow: 0 1px 0 #ffffff0d; backdrop-filter: blur(8px); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: #d6d6de; font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; font-weight: 700; }
.topbar .spacer { flex: 1; }
.search-box { display: flex; align-items: center; gap: 8px; background: #00000066; border: 1px solid #ffffff22; border-radius: 8px; padding: 0 10px; height: 38px; width: min(280px, 32vw); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { background: transparent; border: 0; outline: none; width: 100%; font-size: 14px; }
.avatar-btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: linear-gradient(135deg, var(--accent), #ff9a3c); font-weight: 800; color: #fff; display: grid; place-items: center; }
.menu { position: absolute; top: 60px; right: var(--pad); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 200px; box-shadow: 0 20px 50px #0009; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 7px; background: none; border: 0; font-size: 14px; }
.menu a:hover, .menu button:hover { background: var(--bg-3); }
.menu .who { padding: 10px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .topbar { gap: 12px; height: 58px; }
  .topbar .nav { display: none; }
  .search-box { width: auto; flex: 1; }
  .brand { font-size: 19px; }
  .brand span { display: none; }
  .mobile-nav { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; background: #0b0b0ff5; border-top: 1px solid #ffffff12; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; backdrop-filter: blur(10px); }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 8px; }
  .mobile-nav a.active { color: #fff; }
  .mobile-nav svg { width: 22px; height: 22px; }
  main { padding-bottom: 80px; }
}

main { min-height: 100vh; }
.page { padding: 96px var(--pad) 48px; }
.page-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 22px; letter-spacing: -.02em; }

/* ---------- Destacado ---------- */
.hero { position: relative; min-height: min(72vh, 640px); display: flex; align-items: flex-end; padding: 120px var(--pad) 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center 25%; filter: blur(28px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0f 0%, #0b0b0fcc 35%, #0b0b0f33 70%, #0b0b0f00), linear-gradient(0deg, var(--bg) 0%, #0b0b0f00 40%); }
.hero-inner { position: relative; z-index: 1; display: flex; gap: 40px; align-items: flex-end; width: 100%; }
.hero-text { flex: 1; max-width: 640px; }
.hero-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 5vw, 60px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 14px; text-shadow: 0 2px 20px #0008; }
.hero-meta { color: #d0d0d8; margin-bottom: 22px; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 12px 26px; font-size: 16px; }
.hero-poster { width: clamp(150px, 18vw, 260px); aspect-ratio: 2/3; border-radius: 12px; object-fit: cover; box-shadow: 0 30px 60px #000a; flex: none; }
@media (max-width: 700px) { .hero-poster { display: none; } .hero { min-height: 56vh; padding-bottom: 40px; } }

/* ---------- Filas ---------- */
.rows { padding-bottom: 40px; position: relative; z-index: 2; }
.rows.offset { margin-top: -40px; }
.row { margin: 0 0 34px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--pad); margin-bottom: 10px; }
.row-head h2 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; }
.row-head a { font-size: 13px; color: var(--muted); font-weight: 600; opacity: .85; }
.row-head a:hover { color: var(--accent); }
.row-body { position: relative; }
.row-track { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; padding: 6px var(--pad) 10px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.row-track::-webkit-scrollbar { display: none; }
.row-arrow { position: absolute; top: 6px; bottom: 40px; width: calc(var(--pad) - 6px); min-width: 36px; border: 0; background: #0b0b0fb3; color: #fff; font-size: 34px; z-index: 3; opacity: 0; transition: opacity .2s; display: grid; place-items: center; }
.row-arrow.left { left: 0; } .row-arrow.right { right: 0; }
.row-body:hover .row-arrow { opacity: 1; }
@media (hover: none) { .row-arrow { display: none; } }

/* ---------- Tarjetas ---------- */
.card { flex: none; width: var(--card-w); scroll-snap-align: start; position: relative; outline: none; }
.card .thumb { position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); transition: transform .2s ease, box-shadow .2s; }
.card:hover .thumb, .card:focus-visible .thumb { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 34px #000b, 0 0 0 2px #ffffff33; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .name { font-size: 13px; margin-top: 8px; line-height: 1.3; color: #dcdce4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12px; color: var(--dim); margin-top: 2px; }
.card.live { width: var(--live-w); }
.card.live .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #20202c, #15151d); display: grid; place-items: center; }
.card.live .thumb img { width: 70%; height: 70%; object-fit: contain; }
.card.wide { width: var(--live-w); }
.card.wide .thumb { aspect-ratio: 16/9; }
.card.wide .thumb img { object-position: center 20%; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.2; color: #ffffffd0; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; z-index: 1; }
.badge.right { left: auto; right: 8px; background: #000000aa; }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #ffffff33; }
.pbar i { display: block; height: 100%; background: var(--accent); }
.play-ico { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: #0006; }
.play-ico svg { width: 46px; height: 46px; filter: drop-shadow(0 4px 10px #000a); }
.card:hover .play-ico { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 22px 12px; }
.grid .card { width: auto; }
.grid.live { grid-template-columns: repeat(auto-fill, minmax(var(--live-w), 1fr)); }
.sentinel { height: 40px; display: grid; place-items: center; margin: 20px 0; }

/* ---------- Estado vacío ---------- */
.empty { max-width: 560px; margin: 16vh auto 0; text-align: center; padding: 0 20px; }
.empty .big-ico { width: 72px; height: 72px; margin: 0 auto 20px; color: var(--accent); }
.empty h2 { font-size: 26px; margin-bottom: 10px; }
.empty p { color: var(--muted); line-height: 1.5; margin: 0 0 22px; }

/* ---------- Panel / ajustes ---------- */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel > p.muted { margin: 0 0 18px; font-size: 14px; }
.settings { max-width: 920px; }
.pl-item { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pl-item:first-of-type { border-top: 0; }
.pl-item .info { flex: 1; min-width: 220px; }
.pl-item .info b { font-size: 16px; }
.pl-item .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pl-item .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--bg-3); }
.status.ok { color: var(--ok); } .status.error { color: var(--err); } .status.syncing, .status.pending { color: var(--warn); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.cat-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.cat-tools .input { flex: 1; min-width: 200px; }
.cat-list { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid #ffffff0a; font-size: 14px; cursor: pointer; }
.cat-row:first-child { border-top: 0; }
.cat-row:hover { background: #ffffff06; }
.cat-row .n { margin-left: auto; color: var(--dim); font-size: 12px; }
.cat-row.off { color: var(--dim); }
.switch { width: 36px; height: 20px; border-radius: 99px; background: #3a3a48; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(16px); }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; }
table.list td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.list code { background: var(--bg-3); padding: 3px 8px; border-radius: 6px; font-size: 14px; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: #000000b8; display: grid; place-items: start center; overflow-y: auto; padding: 5vh 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(860px, 100%); background: var(--bg-2); border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 40px 100px #000c; animation: pop .2s ease; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #000000aa; color: #fff; font-size: 22px; display: grid; place-items: center; }
.detail-head { position: relative; padding: 40px 32px 28px; display: flex; gap: 28px; align-items: flex-end; min-height: 300px; overflow: hidden; }
.detail-head .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45) saturate(1.2); }
.detail-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2), #14141b00 70%); }
.detail-head > *:not(.bg) { position: relative; z-index: 1; }
.detail-head img.poster { width: 170px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; box-shadow: 0 20px 40px #000a; flex: none; }
.detail-head h1 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 10px; }
.detail-head .meta { color: #cfcfd8; margin-bottom: 18px; font-size: 14px; }
.detail-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .detail-head { flex-direction: column; align-items: flex-start; padding: 60px 20px 20px; } .detail-head img.poster { width: 120px; } }
.detail-body { padding: 0 32px 32px; }
@media (max-width: 600px) { .detail-body { padding: 0 20px 24px; } }

/* ---------- Página de serie ---------- */
.series-page .detail-head { padding: 110px var(--pad) 36px; min-height: 420px; }
.series-page .detail-head::after { background: linear-gradient(0deg, var(--bg), #0b0b0f00 70%); }
.series-page .detail-head img.poster { width: clamp(140px, 16vw, 220px); }
.series-page .detail-body { padding: 0 var(--pad) 60px; }
.season-bar { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; flex-wrap: wrap; }
.season-bar select { width: auto; min-width: 180px; }
.episodes { display: grid; gap: 4px; }
.ep { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.ep:hover { background: #ffffff0a; }
.ep .num { width: 30px; text-align: center; font-size: 22px; font-weight: 700; color: var(--dim); flex: none; }
.ep .ethumb { width: clamp(120px, 16vw, 180px); aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg-3); position: relative; flex: none; }
.ep .ethumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .etext { flex: 1; min-width: 0; }
.ep .etitle { font-weight: 600; font-size: 15px; }
.ep .esub { font-size: 13px; color: var(--dim); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep .check { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--dim); flex: none; }
.ep .check.on { background: var(--ok); border-color: var(--ok); color: #062; }
.ep .check svg { width: 16px; height: 16px; }
.ep.current { background: #ff5a3c14; box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- Búsqueda ---------- */
.search-big { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; height: 56px; margin-bottom: 28px; }
.search-big svg { width: 22px; height: 22px; color: var(--muted); }
.search-big input { flex: 1; background: transparent; border: 0; outline: none; font-size: 18px; }
.section-title { font-size: 18px; font-weight: 700; margin: 28px 0 14px; }

/* ---------- Avisos ---------- */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { background: #1f1f2a; border: 1px solid var(--line); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px #0008; animation: pop .2s; max-width: 90vw; }
.toast.err { border-color: #ff547066; }
.banner { margin: 0 var(--pad) 22px; padding: 12px 16px; border-radius: 10px; background: #ffb54714; border: 1px solid #ffb54744; color: #ffd89a; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.banner.err { background: #ff547014; border-color: #ff547044; color: #ffb3c0; }
.banner a { text-decoration: underline; font-weight: 600; }

/* ---------- Reproductor ---------- */
.player { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.player.idle { cursor: none; }
.player .layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; opacity: 1; transition: opacity .3s; background: linear-gradient(#000a, #0000 22%, #0000 65%, #000c); }
.player.idle .layer { opacity: 0; }
.p-top { display: flex; align-items: center; gap: 16px; padding: 18px 24px; }
.p-title { flex: 1; min-width: 0; }
.p-title b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-title span { font-size: 13px; color: #ffffffaa; }
.p-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; flex: none; transition: background .15s, transform .1s; }
.p-btn:hover { background: #ffffff22; }
.p-btn:active { transform: scale(.94); }
.p-btn svg { width: 26px; height: 26px; }
.p-btn.big svg { width: 34px; height: 34px; }
.p-btn.txt { width: auto; border-radius: 99px; padding: 0 14px; font-size: 13px; font-weight: 700; gap: 6px; display: inline-flex; align-items: center; }
.p-btn.txt svg { width: 20px; height: 20px; }
.p-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.p-center .spinner { width: 56px; height: 56px; }
.p-msg { max-width: 520px; text-align: center; background: #000000cc; padding: 22px 26px; border-radius: 14px; pointer-events: auto; line-height: 1.5; }
.p-msg .btn { margin-top: 14px; }
.p-bottom { padding: 0 24px calc(18px + env(safe-area-inset-bottom)); }
.p-seek { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; margin-bottom: 4px; }
.p-seek .rail { position: absolute; left: 0; right: 0; height: 4px; background: #ffffff40; border-radius: 4px; transition: height .1s; }
.p-seek:hover .rail { height: 6px; }
.p-seek .buf { position: absolute; left: 0; height: 100%; background: #ffffff55; border-radius: 4px; }
.p-seek .fill { position: absolute; left: 0; height: 100%; background: var(--accent); border-radius: 4px; }
.p-seek .knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); top: 50%; transform: translateY(-50%) scale(0); transition: transform .1s; }
.p-seek:hover .knob { transform: translateY(-50%) scale(1); }
.p-seek .tip { position: absolute; bottom: 24px; transform: translateX(-50%); background: #000d; padding: 3px 8px; border-radius: 5px; font-size: 12px; display: none; white-space: nowrap; }
.p-seek:hover .tip { display: block; }
.p-row { display: flex; align-items: center; gap: 6px; }
.p-time { font-size: 14px; font-variant-numeric: tabular-nums; color: #ffffffdd; margin-left: 8px; }
.p-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; margin-left: 8px; }
.p-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--err); box-shadow: 0 0 10px var(--err); }
.p-vol { width: 90px; accent-color: #fff; }
@media (max-width: 640px) { .p-vol { display: none; } .p-hide-sm { display: none !important; } .p-top { padding: 12px; } .p-bottom { padding: 0 12px 14px; } }
.p-next { position: absolute; right: 24px; bottom: 110px; background: #fff; color: #000; border: 0; border-radius: 8px; padding: 12px 18px; font-weight: 800; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px #000a; }
.p-next small { font-weight: 600; color: #555; }
.p-side { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 90vw); background: #0b0b0ff2; border-left: 1px solid #ffffff14; overflow-y: auto; transform: translateX(100%); transition: transform .25s; z-index: 5; }
.p-side.open { transform: none; }
.p-side h3 { padding: 18px 18px 10px; font-size: 15px; position: sticky; top: 0; background: #0b0b0f; display: flex; justify-content: space-between; align-items: center; }
.ch { display: flex; gap: 12px; align-items: center; padding: 8px 18px; cursor: pointer; font-size: 14px; }
.ch:hover { background: #ffffff10; }
.ch.on { background: #ff5a3c22; color: #fff; }
.ch img, .ch .chph { width: 54px; height: 32px; object-fit: contain; flex: none; background: #1d1d27; border-radius: 5px; }
.p-flash { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #000a; border-radius: 50%; width: 84px; height: 84px; display: grid; place-items: center; pointer-events: none; animation: flash .5s forwards; }
.p-flash svg { width: 40px; height: 40px; }
@keyframes flash { from { opacity: 1; transform: translate(-50%, -50%) scale(.9); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
