Files
tv/web/css/player.css
T
4DBug ee0e36d2c7 web: watch-party layer for the Discord Activity
party.js is inert unless a transport attaches. The host publishes route changes
and playback snapshots; viewers mirror the route, load the host's stream without
scraping and follow its clock. Also: forceProxy playback, bug-tv-tmdb/bug-tv-img
meta overrides, relative API bases (/tv), trailer hidden in party mode, and the
web package no longer ships web/test.
2026-10-27 10:00:34 -05:00

1335 lines
28 KiB
CSS

/*
PLAYER — full-screen watch view (js/views/watch.js).
Uses the shell's tokens when present, with standalone fallbacks.
*/
html.pl-open,
html.pl-open body {
overflow: hidden;
}
.pl {
--pl-accent: var(--accent, var(--color-accent, #c084fc));
--pl-text: #f5f5f7;
--pl-dim: rgba(245, 245, 247, 0.66);
--pl-faint: rgba(245, 245, 247, 0.38);
--pl-glass: rgba(18, 18, 22, 0.72);
--pl-glass-strong: rgba(14, 14, 18, 0.9);
--pl-line: rgba(255, 255, 255, 0.1);
--pl-ease: cubic-bezier(0.22, 1, 0.36, 1);
--pl-font: var(--font-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
position: fixed;
inset: 0;
z-index: 1000;
background: #000;
color: var(--pl-text);
font-family: var(--pl-font);
overflow: hidden;
overflow: clip;
user-select: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
outline: none;
cursor: default;
}
.pl:not(.show-ui)[data-phase="playing"] {
cursor: none;
}
.pl button {
font: inherit;
color: inherit;
}
/* ---- backdrop + video ---------------------------------------------------- */
.pl-backdrop {
position: absolute;
inset: -40px;
background: #000 center / cover no-repeat;
filter: blur(28px) saturate(1.2) brightness(0.6);
transform: scale(1.06);
transition: opacity 0.9s var(--pl-ease), filter 0.9s var(--pl-ease);
}
.pl[data-phase="playing"] .pl-backdrop,
.pl[data-phase="paused"] .pl-backdrop,
.pl[data-phase="buffering"] .pl-backdrop {
opacity: 0;
}
.pl-video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
background: transparent;
opacity: 0;
transition: opacity 0.6s var(--pl-ease);
}
.pl[data-phase="playing"] .pl-video,
.pl[data-phase="paused"] .pl-video,
.pl[data-phase="buffering"] .pl-video {
opacity: 1;
}
.pl-video::cue {
font-family: var(--pl-font);
font-size: 4.2vh;
line-height: 1.3;
color: #fff;
background: rgba(0, 0, 0, 0.55);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.pl[data-subsize="s"] .pl-video::cue { font-size: 3.2vh; }
.pl[data-subsize="l"] .pl-video::cue { font-size: 5.4vh; }
.pl[data-subsize="xl"] .pl-video::cue { font-size: 7vh; }
.pl-scrim {
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 22%),
linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 18%, rgba(0, 0, 0, 0) 38%);
opacity: 0;
transition: opacity 0.35s var(--pl-ease);
}
.pl.show-ui .pl-scrim,
.pl[data-phase="paused"] .pl-scrim {
opacity: 1;
}
/* ---- loading overlay ------------------------------------------------------- */
.pl-load {
position: absolute;
inset: 0;
display: grid;
place-items: center;
padding: 72px 24px 40px;
background:
radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 70%),
linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.15) 60%);
transition: opacity 0.6s var(--pl-ease), visibility 0.6s;
z-index: 2;
}
.pl[data-phase="playing"] .pl-load,
.pl[data-phase="paused"] .pl-load,
.pl[data-phase="buffering"] .pl-load {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.pl-load__inner {
width: min(560px, 100%);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
animation: pl-rise 0.7s var(--pl-ease) both;
}
.pl-load__logo {
max-width: min(360px, 80%);
max-height: 120px;
object-fit: contain;
filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6));
margin-bottom: 4px;
}
.pl-load__title {
margin: 0;
font-size: clamp(1.6rem, 4vw, 2.6rem);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.1;
text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.pl-load__sub {
margin: 0 0 14px;
color: var(--pl-dim);
font-size: 0.98rem;
}
.pl-load__status {
margin-top: 14px;
font-weight: 600;
font-size: 1.02rem;
}
.pl-load__count {
color: var(--pl-dim);
font-size: 0.86rem;
font-variant-numeric: tabular-nums;
}
.pl-load__bar {
width: min(320px, 80%);
height: 3px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.12);
overflow: hidden;
}
.pl-load__bar span {
display: block;
height: 100%;
width: 6%;
border-radius: inherit;
background: var(--pl-accent);
box-shadow: 0 0 12px var(--pl-accent);
transition: width 0.4s var(--pl-ease);
}
.pl-load__torrent {
font-size: 0.86rem;
color: var(--pl-accent);
font-variant-numeric: tabular-nums;
}
.pl-load__ticker {
list-style: none;
margin: 12px 0 0;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
max-height: 96px;
overflow: hidden;
mask-image: linear-gradient(to bottom, #000 70%, transparent);
-webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.pl[data-phase="error"] .pl-ring {
display: none;
}
.pl[data-phase="error"] .pl-load__status {
color: #ff8a8a;
}
.pl-chip-btn {
margin-top: 14px;
padding: 8px 16px;
border-radius: 999px;
border: 1px solid var(--pl-line);
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
cursor: pointer;
font-size: 0.86rem;
font-weight: 600;
transition: background 0.2s, border-color 0.2s;
}
.pl-chip-btn:hover {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(255, 255, 255, 0.24);
}
/* provider chips (ticker + panel) */
.pl-prov {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px 4px 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255, 255, 255, 0.06);
font-size: 0.76rem;
color: var(--pl-dim);
animation: pl-pop 0.35s var(--pl-ease) both;
}
.pl-prov__dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--pl-faint);
flex: none;
}
.pl-prov__name {
color: var(--pl-text);
}
.pl-prov__count {
padding: 0 5px;
border-radius: 6px;
background: color-mix(in srgb, var(--pl-accent) 25%, transparent);
color: var(--pl-text);
font-weight: 700;
}
.pl-prov__ms {
font-variant-numeric: tabular-nums;
color: var(--pl-faint);
}
.pl-prov--pending .pl-prov__dot {
animation: pl-blink 1s ease-in-out infinite;
}
.pl-prov--ok .pl-prov__dot {
background: var(--pl-accent);
box-shadow: 0 0 8px var(--pl-accent);
}
.pl-prov--empty .pl-prov__dot {
background: #8a8a92;
}
.pl-prov--timeout .pl-prov__dot {
background: #f0b429;
}
.pl-prov--error .pl-prov__dot {
background: #ff6b6b;
}
.pl-prov--empty,
.pl-prov--timeout,
.pl-prov--error {
opacity: 0.7;
}
/* ---- ring spinner -------------------------------------------------------------- */
.pl-ring {
width: 46px;
height: 46px;
border-radius: 50%;
border: 3px solid rgba(255, 255, 255, 0.12);
border-top-color: var(--pl-accent);
animation: pl-spin 0.9s linear infinite;
}
/* ---- top bar ---------------------------------------------------------------------- */
.pl-top,
.pl-bottom {
position: absolute;
left: 0;
right: 0;
z-index: 4;
transition: opacity 0.35s var(--pl-ease), transform 0.35s var(--pl-ease);
}
.pl-top {
top: 0;
display: flex;
align-items: center;
gap: 12px;
padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
}
.pl-top__text {
min-width: 0;
}
.pl-top__title {
font-size: 1.08rem;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pl-top__sub {
font-size: 0.86rem;
color: var(--pl-dim);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* while finding sources the loading card shows the title */
.pl[data-phase="finding"] .pl-top__text,
.pl[data-phase="starting"] .pl-top__text,
.pl[data-phase="error"] .pl-top__text {
opacity: 0;
}
.pl:not(.show-ui):not([data-phase="paused"]):not([data-phase="finding"]):not([data-phase="starting"]):not([data-phase="error"]) .pl-top {
opacity: 0;
transform: translateY(-12px);
pointer-events: none;
}
.pl:not(.show-ui):not([data-phase="paused"]) .pl-bottom,
.pl[data-phase="finding"] .pl-bottom,
.pl[data-phase="starting"] .pl-bottom,
.pl[data-phase="error"] .pl-bottom {
opacity: 0;
transform: translateY(14px);
pointer-events: none;
}
/* ---- buttons --------------------------------------------------------------------- */
.pl-btn {
position: relative;
display: inline-grid;
place-items: center;
width: 42px;
height: 42px;
flex: none;
padding: 0;
border: 0;
border-radius: 50%;
background: transparent;
cursor: pointer;
transition: background 0.2s, transform 0.15s, color 0.2s, opacity 0.2s;
}
.pl-btn:hover {
background: rgba(255, 255, 255, 0.12);
}
.pl-btn:active {
transform: scale(0.92);
}
.pl-btn:focus-visible,
.pl-seek:focus-visible,
.pl-vol:focus-visible,
.pl-source:focus-visible,
.pl-ep:focus-visible,
.pl-menu__item:focus-visible {
outline: 2px solid var(--pl-accent);
outline-offset: 2px;
}
.pl-btn[hidden] {
display: none;
}
.pl-ico {
display: grid;
place-items: center;
width: 24px;
height: 24px;
}
.pl-ico svg {
width: 100%;
height: 100%;
}
.pl-btn.is-on {
color: var(--pl-accent);
}
.pl-btn.is-on::after {
content: "";
position: absolute;
bottom: 6px;
left: 50%;
width: 14px;
height: 2px;
margin-left: -7px;
border-radius: 2px;
background: var(--pl-accent);
}
.pl-btn.is-dim {
opacity: 0.45;
}
.pl-btn.pl-back {
width: 44px;
height: 44px;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.pl-back .pl-ico {
width: 26px;
height: 26px;
}
.pl-src-btn__count {
position: absolute;
top: 3px;
right: 1px;
min-width: 17px;
height: 17px;
padding: 0 4px;
border-radius: 9px;
background: var(--pl-accent);
color: #000;
font-size: 0.66rem;
font-weight: 800;
line-height: 17px;
text-align: center;
}
.pl-src-btn__count:empty {
display: none;
}
.pl-src-btn.is-searching .pl-src-btn__count {
animation: pl-blink 1.4s ease-in-out infinite;
}
/* ---- center --------------------------------------------------------------------- */
.pl-center {
position: absolute;
inset: 0;
display: grid;
place-items: center;
pointer-events: none;
z-index: 3;
}
.pl-center > * {
grid-area: 1 / 1;
}
.pl-btn.pl-bigplay {
width: 84px;
height: 84px;
background: rgba(255, 255, 255, 0.14);
backdrop-filter: blur(16px) saturate(1.4);
-webkit-backdrop-filter: blur(16px) saturate(1.4);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
opacity: 0;
transform: scale(0.85);
transition: opacity 0.3s var(--pl-ease), transform 0.3s var(--pl-ease), background 0.2s;
}
.pl-bigplay .pl-ico {
width: 38px;
height: 38px;
margin-left: 4px;
}
.pl-bigplay:hover {
background: var(--pl-accent);
color: #000;
}
.pl[data-phase="paused"] .pl-bigplay {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.pl-spin {
opacity: 0;
transition: opacity 0.3s;
}
.pl[data-phase="buffering"] .pl-spin {
opacity: 1;
transition-delay: 0.25s;
}
.pl-spin .pl-ring {
width: 56px;
height: 56px;
}
.pl-center-msg {
margin-top: 96px;
font-size: 0.86rem;
color: var(--pl-dim);
opacity: 0;
}
.pl[data-phase="buffering"] .pl-center-msg {
opacity: 1;
}
/* double-tap / j-l ripples */
.pl-ripple {
position: absolute;
top: 0;
bottom: 0;
width: 38%;
display: grid;
place-content: center;
justify-items: center;
gap: 6px;
font-size: 0.84rem;
font-weight: 700;
pointer-events: none;
opacity: 0;
z-index: 3;
}
.pl-ripple .pl-ico {
width: 40px;
height: 40px;
}
.pl-ripple--l {
left: 0;
border-radius: 0 50% 50% 0 / 0 50% 50% 0;
background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
}
.pl-ripple--r {
right: 0;
border-radius: 50% 0 0 50% / 50% 0 0 50%;
background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
}
.pl-ripple.is-on {
animation: pl-ripple 0.6s var(--pl-ease);
}
/* ---- bottom controls ---------------------------------------------------------------- */
.pl-bottom {
bottom: 0;
padding: 0 max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.pl-row {
display: flex;
align-items: center;
gap: 2px;
}
.pl-spacer {
flex: 1;
}
.pl-time {
margin-left: 10px;
font-size: 0.88rem;
font-variant-numeric: tabular-nums;
color: var(--pl-dim);
white-space: nowrap;
}
.pl-qtag {
margin-right: 6px;
padding: 2px 7px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.28);
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.04em;
color: var(--pl-dim);
}
.pl-qtag:empty {
display: none;
}
/* seek bar */
.pl-seek {
position: relative;
height: 22px;
display: flex;
align-items: center;
cursor: pointer;
touch-action: none;
margin-bottom: 4px;
}
.pl-seek__track {
position: relative;
width: 100%;
height: 4px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.2);
overflow: hidden;
transition: height 0.18s var(--pl-ease);
}
.pl-seek.is-hover .pl-seek__track,
.pl-seek.is-scrub .pl-seek__track {
height: 7px;
}
.pl-seek__buf,
.pl-seek__hover,
.pl-seek__fill {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 0;
}
.pl-seek__buf {
background: rgba(255, 255, 255, 0.32);
transition: width 0.3s linear;
}
.pl-seek__hover {
background: rgba(255, 255, 255, 0.18);
opacity: 0;
}
.pl-seek.is-hover .pl-seek__hover {
opacity: 1;
}
.pl-seek__fill {
background: var(--pl-accent);
box-shadow: 0 0 10px color-mix(in srgb, var(--pl-accent) 60%, transparent);
}
.pl-seek__thumb {
position: absolute;
top: 50%;
width: 14px;
height: 14px;
margin: -7px 0 0 -7px;
border-radius: 50%;
background: var(--pl-accent);
box-shadow: 0 0 0 4px color-mix(in srgb, var(--pl-accent) 25%, transparent), 0 2px 8px rgba(0, 0, 0, 0.5);
transform: scale(0);
transition: transform 0.18s var(--pl-ease);
}
.pl-seek.is-hover .pl-seek__thumb,
.pl-seek.is-scrub .pl-seek__thumb,
.pl-seek:focus-visible .pl-seek__thumb {
transform: scale(1);
}
.pl-seek__tip {
position: absolute;
bottom: 26px;
transform: translateX(-50%);
padding: 4px 8px;
border-radius: 6px;
background: var(--pl-glass-strong);
border: 1px solid var(--pl-line);
font-size: 0.78rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 0.15s;
}
.pl-seek.is-hover .pl-seek__tip,
.pl-seek.is-scrub .pl-seek__tip {
opacity: 1;
}
/* volume */
.pl-volwrap {
display: flex;
align-items: center;
}
.pl-vol {
width: 0;
height: 30px;
display: flex;
align-items: center;
overflow: hidden;
cursor: pointer;
touch-action: none;
transition: width 0.25s var(--pl-ease), margin 0.25s var(--pl-ease);
}
.pl-volwrap:hover .pl-vol,
.pl-vol:focus-visible,
.pl-vol:active {
width: 84px;
margin: 0 6px 0 2px;
}
.pl-vol__track {
position: relative;
width: 100%;
height: 4px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.24);
}
.pl-vol__fill {
position: absolute;
inset: 0 auto 0 0;
border-radius: inherit;
background: #fff;
}
/* ---- menus ------------------------------------------------------------------------ */
.pl-menu {
position: absolute;
bottom: 84px;
right: 20px;
z-index: 6;
min-width: 230px;
max-width: min(320px, calc(100vw - 24px));
max-height: min(60vh, 460px);
overflow-y: auto;
padding: 8px;
border-radius: 14px;
background: var(--pl-glass);
backdrop-filter: blur(24px) saturate(1.5);
-webkit-backdrop-filter: blur(24px) saturate(1.5);
border: 1px solid var(--pl-line);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
opacity: 0;
transform: translateY(8px) scale(0.98);
transform-origin: bottom right;
transition: opacity 0.2s var(--pl-ease), transform 0.2s var(--pl-ease);
}
.pl-menu.is-in {
opacity: 1;
transform: none;
}
.pl-menu[hidden] {
display: none;
}
.pl-menu__head {
padding: 10px 10px 6px;
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--pl-faint);
}
.pl-menu__item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 9px 10px;
border: 0;
border-radius: 9px;
background: transparent;
text-align: left;
cursor: pointer;
font-size: 0.92rem;
}
.pl-menu__item:hover {
background: rgba(255, 255, 255, 0.09);
}
.pl-menu__check {
width: 18px;
height: 18px;
flex: none;
color: var(--pl-accent);
}
.pl-menu__check .pl-ico {
width: 18px;
height: 18px;
}
.pl-menu__label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pl-menu__item[aria-checked="true"] .pl-menu__label {
font-weight: 700;
}
.pl-menu__hint {
font-size: 0.76rem;
color: var(--pl-faint);
}
.pl-menu__empty {
padding: 6px 10px 10px;
font-size: 0.84rem;
color: var(--pl-faint);
}
.pl-menu__seg {
display: flex;
gap: 4px;
padding: 2px 6px 8px;
}
.pl-seg {
flex: 1;
padding: 7px 4px;
border: 1px solid var(--pl-line);
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);
cursor: pointer;
font-size: 0.78rem;
font-weight: 600;
}
.pl-seg.is-on {
background: var(--pl-accent);
border-color: transparent;
color: #000;
}
/* ---- side panels -------------------------------------------------------------------- */
.pl-panel {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 7;
width: min(420px, 100vw);
display: flex;
flex-direction: column;
background: linear-gradient(to left, var(--pl-glass-strong), var(--pl-glass));
backdrop-filter: blur(28px) saturate(1.4);
-webkit-backdrop-filter: blur(28px) saturate(1.4);
border-left: 1px solid var(--pl-line);
box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
transform: translateX(105%);
visibility: hidden;
transition: transform 0.4s var(--pl-ease), visibility 0s linear 0.4s;
user-select: text;
}
.pl-panel.is-open {
transform: none;
visibility: visible;
transition: transform 0.4s var(--pl-ease), visibility 0s;
}
.pl-panel__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: max(18px, env(safe-area-inset-top)) 16px 12px 20px;
border-bottom: 1px solid var(--pl-line);
}
.pl-panel__head h2 {
margin: 0 0 4px;
font-size: 1.2rem;
font-weight: 800;
}
.pl-panel__meta {
font-size: 0.8rem;
color: var(--pl-dim);
}
.pl-panel__list {
flex: 1;
overflow-y: auto;
padding: 10px 12px 20px;
display: flex;
flex-direction: column;
gap: 6px;
overscroll-behavior: contain;
}
.pl-panel__empty {
padding: 40px 12px;
text-align: center;
color: var(--pl-faint);
}
.pl-source {
display: block;
width: 100%;
padding: 11px 12px;
border-radius: 12px;
border: 1px solid transparent;
background: rgba(255, 255, 255, 0.04);
text-align: left;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
animation: pl-rise 0.35s var(--pl-ease) both;
}
.pl-source:hover {
background: rgba(255, 255, 255, 0.09);
}
.pl-source.is-current {
border-color: color-mix(in srgb, var(--pl-accent) 70%, transparent);
background: color-mix(in srgb, var(--pl-accent) 12%, transparent);
}
.pl-source.is-failed {
opacity: 0.45;
}
.pl-source__top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.pl-source__prov {
font-weight: 700;
font-size: 0.92rem;
text-transform: capitalize;
}
.pl-source__now {
font-size: 0.68rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--pl-accent);
}
.pl-source__name {
margin: 2px 0 8px;
font-size: 0.78rem;
color: var(--pl-faint);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pl-source__name:empty {
display: none;
}
.pl-source__badges {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.pl-badge {
padding: 2px 7px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.08);
font-size: 0.7rem;
font-weight: 700;
color: var(--pl-dim);
white-space: nowrap;
}
.pl-badge--q {
background: rgba(255, 255, 255, 0.16);
color: var(--pl-text);
}
.pl-badge--q.is-hd {
background: color-mix(in srgb, var(--pl-accent) 30%, transparent);
}
.pl-badge--q.is-4k {
background: linear-gradient(135deg, #f5c451, #e08b2b);
color: #1b1200;
}
.pl-badge--hls { color: #8ecbff; }
.pl-badge--file { color: #9ef0c0; }
.pl-badge--remux { color: #f7c97a; }
.pl-badge--torrent { color: #d8a8ff; }
.pl-badge--direct {
color: var(--pl-accent);
}
.pl-badge--fail {
background: rgba(255, 107, 107, 0.2);
color: #ff9a9a;
}
.pl-provs-wrap {
border-top: 1px solid var(--pl-line);
padding: 10px 16px max(14px, env(safe-area-inset-bottom));
max-height: 34%;
overflow-y: auto;
}
.pl-provs-wrap summary {
cursor: pointer;
font-size: 0.8rem;
font-weight: 700;
color: var(--pl-dim);
}
.pl-provs {
list-style: none;
margin: 10px 0 0;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.pl-select {
margin-top: 2px;
padding: 6px 28px 6px 10px;
border-radius: 8px;
border: 1px solid var(--pl-line);
background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 8px center / 14px no-repeat;
color: var(--pl-text);
font: inherit;
font-size: 0.86rem;
appearance: none;
cursor: pointer;
}
.pl-select option {
background: #16161a;
}
/* episodes */
.pl-ep {
display: flex;
gap: 12px;
width: 100%;
padding: 8px;
border: 1px solid transparent;
border-radius: 12px;
background: transparent;
text-align: left;
cursor: pointer;
transition: background 0.2s;
}
.pl-ep:hover {
background: rgba(255, 255, 255, 0.07);
}
.pl-ep.is-current {
background: color-mix(in srgb, var(--pl-accent) 12%, transparent);
border-color: color-mix(in srgb, var(--pl-accent) 55%, transparent);
}
.pl-ep__thumb {
position: relative;
flex: none;
width: 132px;
aspect-ratio: 16 / 9;
border-radius: 8px;
overflow: hidden;
background: rgba(255, 255, 255, 0.06);
display: grid;
place-items: center;
font-weight: 800;
color: var(--pl-faint);
}
.pl-ep__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.pl-ep__prog {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 3px;
background: rgba(0, 0, 0, 0.5);
}
.pl-ep__prog span {
display: block;
height: 100%;
background: var(--pl-accent);
}
.pl-ep__now {
position: absolute;
inset: auto 6px 8px auto;
padding: 2px 6px;
border-radius: 5px;
background: var(--pl-accent);
color: #000;
font-size: 0.62rem;
font-weight: 800;
text-transform: uppercase;
}
.pl-ep__body {
min-width: 0;
}
.pl-ep__num {
font-size: 0.72rem;
font-weight: 700;
color: var(--pl-faint);
}
.pl-ep__name {
font-weight: 700;
font-size: 0.9rem;
margin: 2px 0 4px;
}
.pl-ep__ov {
font-size: 0.76rem;
color: var(--pl-dim);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* ---- next episode card --------------------------------------------------------------- */
.pl-nextcard {
position: absolute;
right: max(24px, env(safe-area-inset-right));
bottom: 96px;
z-index: 5;
display: flex;
gap: 14px;
width: min(420px, calc(100vw - 32px));
padding: 12px;
border-radius: 16px;
background: var(--pl-glass);
backdrop-filter: blur(24px) saturate(1.4);
-webkit-backdrop-filter: blur(24px) saturate(1.4);
border: 1px solid var(--pl-line);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
opacity: 0;
transform: translateY(16px);
transition: opacity 0.4s var(--pl-ease), transform 0.4s var(--pl-ease);
}
.pl-nextcard.is-in {
opacity: 1;
transform: none;
}
.pl-nextcard[hidden] {
display: none;
}
.pl-nextcard__img {
position: relative;
flex: none;
width: 150px;
aspect-ratio: 16 / 9;
border-radius: 10px;
background: #222 center / cover no-repeat;
overflow: hidden;
}
.pl-nextcard.is-counting .pl-nextcard__img::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 100%;
background: var(--pl-accent);
transform-origin: left;
animation: pl-countdown var(--countdown, 10s) linear forwards;
}
.pl-nextcard__body {
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
}
.pl-nextcard__label {
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--pl-accent);
}
.pl-nextcard__name {
margin: 3px 0 10px;
font-weight: 700;
font-size: 0.92rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.pl-nextcard__actions {
display: flex;
gap: 8px;
}
.pl-nextcard__play,
.pl-nextcard__cancel {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border-radius: 999px;
border: 0;
cursor: pointer;
font-size: 0.84rem;
font-weight: 700;
}
.pl-nextcard__play {
background: #fff;
color: #000 !important;
}
.pl-nextcard__play .pl-ico {
width: 16px;
height: 16px;
}
.pl-nextcard__play:hover {
background: var(--pl-accent);
}
.pl-nextcard__cancel {
background: rgba(255, 255, 255, 0.1);
}
.pl-nextcard__cancel:hover {
background: rgba(255, 255, 255, 0.18);
}
/* ---- toasts -------------------------------------------------------------------------- */
.pl-toasts {
position: absolute;
top: 76px;
left: 50%;
z-index: 9;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
pointer-events: none;
width: min(520px, calc(100vw - 32px));
}
.pl-toast {
padding: 9px 16px;
border-radius: 999px;
background: var(--pl-glass-strong);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--pl-line);
font-size: 0.86rem;
font-weight: 600;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
opacity: 0;
transform: translateY(-8px);
transition: opacity 0.3s var(--pl-ease), transform 0.3s var(--pl-ease);
}
.pl-toast.is-in {
opacity: 1;
transform: none;
}
.pl-toast--err {
border-color: rgba(255, 107, 107, 0.45);
}
/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 720px) {
.pl-btn {
width: 38px;
height: 38px;
}
.pl-ico {
width: 22px;
height: 22px;
}
.pl-time {
font-size: 0.78rem;
margin-left: 4px;
}
.pl-row .pl-btn[aria-label^="Back 10s"],
.pl-row .pl-btn[aria-label^="Forward 10s"],
.pl-row .pl-qtag,
.pl-row .pl-btn[aria-label="Picture in picture"],
.pl-vol {
display: none;
}
.pl-nextcard {
right: 16px;
bottom: 84px;
}
.pl-nextcard__img {
width: 110px;
}
.pl-ep__thumb {
width: 112px;
}
.pl-btn.pl-bigplay {
width: 72px;
height: 72px;
}
}
@media (max-width: 480px) {
.pl-bottom {
padding-left: 10px;
padding-right: 10px;
}
.pl-row {
gap: 0;
}
.pl-btn {
width: 36px;
height: 36px;
}
.pl-load__ticker {
max-height: 64px;
}
}
@media (hover: none) {
.pl-vol {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.pl *,
.pl *::before,
.pl *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
/* ---- keyframes -------------------------------------------------------------------------- */
@keyframes pl-spin {
to { transform: rotate(360deg); }
}
@keyframes pl-blink {
50% { opacity: 0.3; }
}
@keyframes pl-rise {
from { opacity: 0; transform: translateY(10px); }
}
@keyframes pl-pop {
from { opacity: 0; transform: scale(0.9); }
}
@keyframes pl-ripple {
0% { opacity: 0; }
25% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes pl-countdown {
from { transform: scaleX(0); }
to { transform: scaleX(1); }
}
/* ---- watch party: viewer mode (party.js) ---------------------------------------------- */
/* Viewers follow the host: only volume, mute, fullscreen and PiP stay usable. */
.pl.is-viewer .pl-host-only,
.pl.is-viewer .pl-load__count,
.pl.is-viewer .pl-load__bar,
.pl.is-viewer .pl-load__ticker {
display: none !important;
}
.pl.is-viewer .pl-seek {
pointer-events: none;
}
.pl.is-viewer .pl-seek__thumb,
.pl.is-viewer .pl-seek__tip,
.pl.is-viewer .pl-seek__hover {
display: none;
}
.pl-join {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 14px 26px;
border: 0;
border-radius: 999px;
background: var(--pl-accent);
color: #000;
font: inherit;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
pointer-events: auto;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
z-index: 1;
}
.pl-join[hidden] {
display: none;
}
.pl-join .pl-ico {
width: 20px;
height: 20px;
}