Kaleido-Desktop/src/styles/player.css
Elijah 43c168da95 Address the first beta's bugs and requested changes
Startup now uses the Android iris animation, and playback can continue
in a corner miniplayer while browsing (the video is drawn into a corner
rectangle beneath a matching hole in the page). The player keeps the
window controls, hides its chrome when the pointer leaves, and gains
audio/subtitle tracks, audio sync, source bitrate and playback details
in its options. Subtitles can be styled in Settings with a live preview.
Categories replace Collections, the A–Z rail magnifies, descriptions
expand in place, downloads can be removed in bulk, and search keeps its
results while typing.

Fixes scroll jank from per-card and scrolling backdrop blurs, the hidden
colour wash, the cubic volume curve, loud theme music, the search focus
ring, a stray nav indicator, Continue Watching previews and the TV Shows
header overlap. Removes the star rating, the duplicate Settings menu
entry and the server settings' Show advanced switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 18:06:54 -07:00

796 lines
15 KiB
CSS

.player {
position: fixed;
inset: 0;
z-index: 600;
color: #fff;
cursor: default;
user-select: none;
}
.player.idle {
cursor: none;
}
.player.loading {
background: #000;
}
.player-cover {
position: absolute;
inset: 0;
background: #000;
}
.player-cover img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.35;
filter: blur(2px);
animation: fade-in 500ms;
}
.player-cover-scrim {
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 80%);
}
.player-gradient {
position: absolute;
left: 0;
right: 0;
pointer-events: none;
transition: opacity 400ms var(--ease);
}
.player-gradient.top {
top: 0;
height: 160px;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}
.player-gradient.bottom {
bottom: 0;
height: 300px;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
}
.player.idle .player-gradient,
.player.idle .player-top,
.player.idle .player-bottom {
opacity: 0;
pointer-events: none;
}
.player.idle .player-bottom {
transform: translateY(10px);
}
.player-top {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 72px;
display: flex;
align-items: center;
gap: 16px;
padding: 0 28px;
transition: opacity 400ms var(--ease);
}
/* The window's own buttons, top right, fading with the rest of the chrome. */
.player-top .window-controls {
position: absolute;
top: 0;
right: 0;
height: 34px;
margin: 0;
}
.player-top .window-controls button {
height: 34px;
color: #e4e8e9;
}
.player-back {
width: 42px;
height: 42px;
border-radius: 50%;
display: grid;
place-items: center;
color: #fff;
transition: background var(--t-fast);
}
.player-back:hover {
background: rgba(255, 255, 255, 0.14);
}
.player-top-title {
font-size: 14px;
color: #d9dddf;
pointer-events: none;
}
.player-top-title b {
color: #fff;
font-weight: 650;
margin-right: 8px;
}
.player-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.player-flash {
position: absolute;
left: 50%;
top: 50%;
width: 84px;
height: 84px;
margin: -42px 0 0 -42px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(8px);
display: grid;
place-items: center;
pointer-events: none;
animation: flash 600ms var(--ease-out) forwards;
}
@keyframes flash {
0% {
opacity: 0;
transform: scale(0.7);
}
25% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(1.25);
}
}
.player-bottom {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 0 clamp(24px, 3.5vw, 56px) 22px;
transition:
opacity 400ms var(--ease),
transform 400ms var(--ease);
}
.player-bottom-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-bottom: 14px;
}
.player-title {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.player-title .title-text {
font-size: 26px;
}
.player-episode {
font-size: 14px;
font-weight: 600;
color: #eef0f0;
}
.player-title .facts {
font-size: 12px;
color: #c8ced0;
}
.player-delivery {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #b9c2c3;
}
/* Timeline */
.timeline {
position: relative;
height: 22px;
display: flex;
align-items: center;
cursor: pointer;
touch-action: none;
}
.timeline-track {
position: relative;
width: 100%;
height: 4px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.22);
overflow: hidden;
transition: height 140ms var(--ease);
}
.timeline:hover .timeline-track,
.timeline.dragging .timeline-track {
height: 7px;
}
.timeline-buffered {
position: absolute;
inset: 0 auto 0 0;
background: rgba(255, 255, 255, 0.28);
}
.timeline-played {
position: absolute;
inset: 0 auto 0 0;
background: #f1f4f3;
}
.timeline-marker {
position: absolute;
top: 0;
bottom: 0;
background: rgba(169, 199, 192, 0.45);
mix-blend-mode: screen;
}
.timeline-chapter {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background: rgba(0, 0, 0, 0.55);
}
.timeline-thumb {
position: absolute;
top: 50%;
width: 15px;
height: 15px;
margin: -7.5px 0 0 -7.5px;
border-radius: 50%;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
transform: scale(0);
transition: transform 140ms var(--ease);
pointer-events: none;
}
.timeline:hover .timeline-thumb,
.timeline.dragging .timeline-thumb {
transform: scale(1);
}
.timeline-preview {
position: absolute;
bottom: 30px;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
pointer-events: none;
}
.timeline-preview img {
width: 220px;
aspect-ratio: 16 / 9;
object-fit: cover;
border-radius: 6px;
background: #000;
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.6),
0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.timeline-preview-text {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
font-size: 12px;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.timeline-preview-text span {
color: #d2d7d8;
font-size: 11px;
}
.timeline-preview-text b {
font-variant-numeric: tabular-nums;
}
/* Controls */
.player-controls {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 6px;
}
.player-controls-left,
.player-controls-right {
display: flex;
align-items: center;
gap: 4px;
}
.player-icon {
width: 44px;
height: 44px;
border-radius: 50%;
display: grid;
place-items: center;
color: #f2f4f4;
transition:
background var(--t-fast),
transform var(--t-fast);
}
.player-icon:hover {
background: rgba(255, 255, 255, 0.13);
}
.player-icon:active {
transform: scale(0.92);
}
.player-icon.on {
background: rgba(255, 255, 255, 0.18);
}
.player-icon.lit {
color: var(--accent-strong);
}
.player-icon.big {
width: 48px;
height: 48px;
}
.player-time {
margin-left: 12px;
font-size: 13px;
font-variant-numeric: tabular-nums;
color: #f0f2f2;
}
.player-time .dim {
color: #a5acaf;
}
.volume {
display: flex;
align-items: center;
}
.volume input {
width: 0;
opacity: 0;
transition:
width var(--t) var(--ease-out),
opacity var(--t);
appearance: none;
-webkit-appearance: none;
height: 4px;
border-radius: 4px;
background: linear-gradient(90deg, #fff var(--v), rgba(255, 255, 255, 0.25) var(--v));
cursor: pointer;
}
.volume:hover input,
.volume input:focus {
width: 90px;
opacity: 1;
margin-right: 6px;
}
.volume input::-webkit-slider-thumb {
-webkit-appearance: none;
width: 13px;
height: 13px;
border-radius: 50%;
background: #fff;
}
/* Panels */
.player-panel {
position: absolute;
right: clamp(24px, 3.5vw, 56px);
bottom: 84px;
min-width: 300px;
max-height: min(60vh, 520px);
overflow-y: auto;
padding: 14px 8px 8px;
border-radius: 14px;
background: rgba(22, 25, 27, 0.9);
backdrop-filter: blur(28px) saturate(1.3);
box-shadow:
0 24px 70px rgba(0, 0, 0, 0.6),
inset 0 0 0 1px rgba(255, 255, 255, 0.12);
animation: pop-in 180ms var(--ease-out);
}
.player-panel.tracks {
width: min(620px, calc(100vw - 48px));
}
.player-panel-title {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 750;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #9aa4a6;
padding: 0 12px 10px;
}
.panel-back {
width: 24px;
height: 24px;
margin: -4px 0 -4px -6px;
border-radius: 6px;
display: grid;
place-items: center;
color: #c9d0d2;
}
.panel-back:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.panel-stats {
display: grid;
gap: 5px;
padding: 12px 12px 6px;
margin-top: 6px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 11px;
line-height: 1.45;
}
.panel-stats div {
display: grid;
grid-template-columns: 74px minmax(0, 1fr);
gap: 10px;
}
.panel-stats span {
color: #7f888b;
}
.panel-stats b {
font-weight: 500;
color: #c3cacc;
}
.panel-row:disabled {
opacity: 0.45;
}
.panel-row b {
max-width: 190px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.panel-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.panel-columns h4 {
margin: 4px 12px 6px;
font-size: 13px;
}
.panel-option {
width: 100%;
display: flex;
align-items: flex-start;
gap: 8px;
padding: 9px 10px;
border-radius: 8px;
text-align: left;
font-size: 13px;
color: #d9dedf;
}
.panel-option:hover {
background: rgba(255, 255, 255, 0.09);
}
.panel-option.selected {
color: #fff;
font-weight: 620;
}
.panel-check {
width: 18px;
flex: none;
color: var(--accent-strong);
padding-top: 1px;
}
.panel-label {
display: flex;
flex-direction: column;
gap: 2px;
}
.panel-label small {
font-size: 11px;
color: #8f989b;
font-weight: 400;
}
.panel-empty {
padding: 8px 12px;
color: var(--dim);
font-size: 12px;
}
.panel-delay {
display: flex;
align-items: center;
gap: 8px;
margin: 10px 10px 4px;
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 12px;
color: #a5adb0;
}
.panel-delay span {
margin-right: auto;
}
.panel-delay button {
width: 28px;
height: 28px;
border-radius: 7px;
background: rgba(255, 255, 255, 0.1);
font-size: 15px;
}
.panel-delay b {
min-width: 50px;
text-align: center;
font-variant-numeric: tabular-nums;
color: #fff;
}
.panel-row {
width: 100%;
display: flex;
align-items: center;
gap: 10px;
padding: 11px 12px;
border-radius: 8px;
font-size: 13px;
}
.panel-row:hover {
background: rgba(255, 255, 255, 0.09);
}
.panel-row span {
margin-right: auto;
}
.panel-row b {
font-weight: 500;
color: #a9b2b5;
}
.panel-info {
padding: 10px 12px 6px;
margin-top: 6px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 11px;
color: #899295;
line-height: 1.5;
}
.player-panel.chapters {
min-width: 340px;
}
/* Skip & post-play */
.skip-button {
position: absolute;
right: clamp(24px, 3.5vw, 56px);
bottom: 170px;
display: inline-flex;
align-items: center;
gap: 10px;
height: 46px;
padding: 0 22px;
border-radius: 8px;
background: rgba(20, 22, 24, 0.82);
backdrop-filter: blur(14px);
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.5),
inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
font-size: 14px;
font-weight: 650;
color: #fff;
animation: rise-in 300ms var(--ease-out);
transition:
background var(--t-fast),
color var(--t-fast);
}
.skip-button:hover {
background: #f3f5f4;
color: #111;
}
.post-play {
position: absolute;
right: clamp(24px, 3.5vw, 56px);
bottom: 150px;
display: flex;
gap: 16px;
align-items: center;
width: min(520px, calc(100vw - 48px));
padding: 14px;
border-radius: 14px;
background: rgba(20, 22, 24, 0.88);
backdrop-filter: blur(20px);
box-shadow:
0 24px 70px rgba(0, 0, 0, 0.6),
inset 0 0 0 1px rgba(255, 255, 255, 0.12);
animation: rise-in 360ms var(--ease-out);
}
.post-play-art {
position: relative;
width: 180px;
aspect-ratio: 16 / 9;
border-radius: 8px;
overflow: hidden;
flex: none;
background: #000;
}
.post-play-art img {
width: 100%;
height: 100%;
object-fit: cover;
}
.post-play-ring {
position: absolute;
inset: 0;
margin: auto;
width: 46px;
height: 46px;
transform: rotate(-90deg);
}
.post-play-ring circle {
fill: rgba(0, 0, 0, 0.45);
stroke: #fff;
stroke-width: 3;
stroke-dasharray: 107;
animation: ring 8s linear forwards;
}
@keyframes ring {
from {
stroke-dashoffset: 107;
}
to {
stroke-dashoffset: 0;
}
}
.post-play-text {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.post-play-text b {
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.post-play-text .actions {
margin-top: 6px;
}
.player-error {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: min(480px, calc(100vw - 48px));
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
color: #f2c4c3;
}
.player-error h2 {
margin: 4px 0 0;
color: #fff;
font-size: 20px;
}
.player-error p {
color: #c4cacc;
margin: 0 0 14px;
line-height: 1.55;
}
/* —— Miniplayer ————————————————————————————————————————————— */
:root {
--mini-w: clamp(300px, 26vw, 440px);
--mini-h: calc(var(--mini-w) * 9 / 16);
--mini-gap: 24px;
}
.mini-player {
position: fixed;
right: var(--mini-gap);
bottom: var(--mini-gap);
z-index: 600;
width: var(--mini-w);
height: var(--mini-h);
border-radius: 10px;
color: #fff;
user-select: none;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
animation: mini-in 260ms var(--ease-out);
}
.mini-player.loading {
background: #000;
}
/* Opacity only: the video beneath can't follow a transform. */
@keyframes mini-in {
from {
opacity: 0;
}
}
.mini-scrim {
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.75) 100%);
}
.mini-scrim,
.mini-top,
.mini-center,
.mini-caption {
opacity: 0;
transition: opacity var(--t);
}
.mini-player:hover .mini-scrim,
.mini-player:hover .mini-top,
.mini-player:hover .mini-center,
.mini-player:hover .mini-caption,
.mini-player.loading .mini-center,
.mini-player:focus-within .mini-top,
.mini-player:focus-within .mini-center {
opacity: 1;
}
.mini-top {
position: absolute;
top: 6px;
left: 6px;
right: 6px;
display: flex;
justify-content: space-between;
}
.mini-center {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
pointer-events: none;
}
.mini-center > * {
pointer-events: auto;
}
.mini-icon {
width: 34px;
height: 34px;
border-radius: 50%;
display: grid;
place-items: center;
color: #fff;
transition: background var(--t-fast), transform var(--t-fast);
}
.mini-icon:hover {
background: rgba(255, 255, 255, 0.16);
}
.mini-icon:active {
transform: scale(0.92);
}
.mini-icon.big {
width: 48px;
height: 48px;
background: rgba(0, 0, 0, 0.35);
}
.mini-error {
font-size: 13px;
font-weight: 600;
color: #f2c4c3;
}
.mini-caption {
position: absolute;
left: 12px;
right: 12px;
bottom: 12px;
display: flex;
flex-direction: column;
gap: 1px;
pointer-events: none;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.mini-caption b,
.mini-caption span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mini-caption b {
font-size: 13px;
}
.mini-caption span {
font-size: 11px;
color: #d3d9db;
}
.mini-progress {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 3px;
border-radius: 0 0 10px 10px;
overflow: hidden;
background: rgba(255, 255, 255, 0.2);
}
.mini-progress i {
display: block;
height: 100%;
background: #f1f4f3;
}