Kaleido-Desktop/src/styles/player.css
Elijah 0d423eb708 Move the stop button beside the forward controls
It follows Forward 10 seconds (or Next episode), with a matching spacer
on the other side so play/pause stays centred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:42:37 -07:00

1123 lines
23 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. */
html.os-macos:not(.window-fullscreen) .player-top {
padding-left: var(--traffic-lights);
}
.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-center {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.player-preparing {
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.player-preparing small {
font-size: 12px;
font-weight: 500;
color: #c3cacc;
}
.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 {
align-self: flex-start;
font-size: 14px;
font-weight: 600;
color: #eef0f0;
transition: color var(--t-fast);
}
.player-title-link {
align-self: flex-start;
border-radius: 6px;
transition: opacity var(--t-fast), transform var(--t-fast);
}
.player-title-link:hover {
opacity: 0.85;
}
.player-episode:hover {
color: #fff;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(255, 255, 255, 0.4);
}
.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: 5px;
border-radius: 4px;
/* A dark underlay keeps the three states apart over bright frames. */
background: linear-gradient(rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.13)), rgba(0, 0, 0, 0.45);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
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.24);
}
.timeline-played {
position: absolute;
inset: 0 auto 0 0;
background: #fff;
box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}
.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;
/* A fixed width: shrink-to-fit would narrow it against the bar's right edge. */
width: 220px;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
pointer-events: none;
}
.timeline-preview img {
width: 220px;
max-width: none;
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 */
/* Volume and time | playback, centred under the timeline | tracks and window. */
.player-controls {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 16px;
margin-top: 6px;
}
.player-controls-left,
.player-controls-center,
.player-controls-right {
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
}
.player-controls-right {
justify-content: flex-end;
}
.player-controls-center {
gap: 10px;
}
.player-icon-spacer {
width: 44px;
height: 44px;
}
.player-icon:disabled {
opacity: 0.32;
pointer-events: none;
}
.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: 54px;
height: 54px;
}
.player-time {
margin-left: 8px;
white-space: nowrap;
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;
/* Above the skip and post-play cards. */
z-index: 2;
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-subhead {
margin: 10px 12px 4px;
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 10.5px;
font-weight: 750;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #8a9396;
}
.player-panel.upscaling {
width: 380px;
}
.panel-compare {
width: calc(100% - 16px);
margin: 8px 8px 2px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 12px;
border-radius: 8px;
font-size: 12.5px;
font-weight: 600;
background: rgba(255, 255, 255, 0.08);
transition: background var(--t-fast);
}
.panel-compare:hover {
background: rgba(255, 255, 255, 0.14);
}
.panel-compare.on {
background: rgba(193, 222, 215, 0.18);
color: var(--accent-strong);
}
.panel-compare kbd {
font: inherit;
font-size: 11px;
padding: 1px 6px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.1);
color: #c3cacc;
}
.panel-stats b.warn {
color: var(--warning);
}
.panel-stats small {
color: #7f888b;
font-size: inherit;
}
.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:not(:disabled) {
background: rgba(255, 255, 255, 0.09);
}
.panel-option:disabled {
opacity: 0.45;
cursor: default;
}
.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;
}
/* The skip button sits above the bottom chrome. */
.skip-button {
z-index: 1;
}
.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;
}
/* An automatic skip fills the button as it counts down. */
.skip-button.counting {
overflow: hidden;
}
.skip-button.counting::before {
content: '';
position: absolute;
inset: 0 auto 0 0;
width: var(--p, 0%);
background: rgba(255, 255, 255, 0.18);
transition: width 260ms linear;
}
.skip-button.counting:hover::before {
background: rgba(0, 0, 0, 0.1);
}
.skip-button > * {
position: relative;
}
/* —— Up Next ————————————————————————————————————————————————————————
The credits keep playing in the top-left frame: the native video is drawn
into its rectangle and the scene has a matching hole (PostPlay.tsx). Only
the rows scroll, so the frame never moves. */
.up-next {
display: flex;
flex-direction: column;
--up-top: 64px;
--up-video-w: clamp(320px, 34vw, 640px);
}
.up-next-scene {
position: absolute;
inset: 0;
overflow: hidden;
isolation: isolate;
background: var(--bg);
pointer-events: none;
}
.up-next.placed .up-next-scene {
-webkit-mask-image: linear-gradient(#000 0 0), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Crect width='160' height='90' rx='2.4'/%3E%3C/svg%3E");
-webkit-mask-size: 100% 100%, var(--up-w) var(--up-h);
-webkit-mask-position: 0 0, var(--up-x) var(--up-y);
-webkit-mask-repeat: no-repeat;
-webkit-mask-composite: xor;
mask-composite: exclude;
}
.up-next-backdrop {
height: min(78vh, 860px);
bottom: auto;
}
.backdrop-tint.up-next-backdrop {
height: 100%;
}
/* The next episode's details sit over the artwork, so it stays dimmer here
than on a title page, with or without the colour wash. */
.up-next-backdrop .backdrop-scrim,
.up-next-backdrop.washed .backdrop-scrim {
background:
linear-gradient(90deg, rgba(9, 10, 12, 0.96) 0%, rgba(9, 10, 12, 0.9) 38%, rgba(9, 10, 12, 0.74) 62%, rgba(9, 10, 12, 0.55) 100%),
linear-gradient(0deg, var(--bg) 0%, rgba(9, 10, 12, 0.6) 22%, transparent 55%);
}
.up-next-top {
height: 60px;
z-index: 3;
}
.up-next-fullscreen {
margin-left: auto;
}
/* Beside the window's own buttons (Windows, outside full screen), it takes
their size and line so the four read as one group. */
.up-next-top:has(> .window-controls) .up-next-fullscreen {
align-self: flex-start;
width: 46px;
height: 34px;
margin-right: 110px;
border-radius: 0;
color: #e4e8e9;
}
.up-next-top:has(> .window-controls) .up-next-fullscreen svg {
width: 15px;
height: 15px;
}
.up-next-head {
position: relative;
z-index: 1;
flex: none;
display: flex;
align-items: flex-start;
gap: clamp(28px, 3vw, 48px);
padding: var(--up-top) var(--gutter) 30px;
animation: fade-in 320ms var(--ease);
}
.up-next-now {
flex: none;
width: var(--up-video-w);
}
.up-next-video {
display: block;
width: 100%;
aspect-ratio: 16 / 9;
border-radius: 8px;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
transition: box-shadow var(--t-fast);
}
.up-next-video:hover,
.up-next-video:focus-visible {
outline: none;
box-shadow: 0 0 0 2px #fff;
}
.up-next-progress {
margin-top: 12px;
}
.up-next-progress-text {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 12px;
color: var(--muted);
}
.up-next-progress-text span {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.up-next-progress-text small {
flex: none;
font-size: inherit;
color: var(--dim);
font-variant-numeric: tabular-nums;
}
.up-next-video:hover + .up-next-progress .up-next-progress-text span {
color: #fff;
}
.up-next-progress-bar {
height: 3px;
margin-top: 8px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.22);
overflow: hidden;
}
.up-next-progress-bar i {
display: block;
height: 100%;
background: var(--accent);
}
.up-next-info {
flex: 1;
min-width: 0;
max-width: 680px;
padding-top: 6px;
text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.up-next-info .micro {
display: block;
margin-bottom: 12px;
}
.up-next-info .up-next-logo {
margin-bottom: 14px;
}
.up-next-info .title-text {
font-size: clamp(26px, 2.4vw, 36px);
margin-bottom: 12px;
}
.up-next-info h1 {
margin: 0 0 10px;
font-size: clamp(20px, 1.7vw, 26px);
line-height: 1.2;
letter-spacing: -0.025em;
font-weight: 680;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.up-next-summary {
margin: 14px 0 0;
color: #e3e7e9;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 14px rgba(0, 0, 0, 0.55);
font-size: 14px;
line-height: 1.62;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* The countdown: a lighter fill sweeps across the button, without numbers. */
.up-next-play {
position: relative;
overflow: hidden;
isolation: isolate;
margin-top: 22px;
text-shadow: none;
}
.up-next-play.counting,
.up-next-play.counting:hover:not(:disabled) {
background: #a3a8a9;
}
.up-next-play-fill {
position: absolute;
inset: 0;
z-index: -1;
background: #f6f7f7;
transform: scaleX(0);
transform-origin: left;
will-change: transform;
}
.up-next-play:focus-visible {
outline: 2px solid #fff;
outline-offset: 3px;
}
.up-next-rows {
position: relative;
z-index: 1;
flex: 1;
min-height: 0;
overflow-x: hidden;
overflow-y: auto;
padding-bottom: 12px;
animation: fade-in 420ms var(--ease);
}
.up-next-shelf {
margin-bottom: 22px;
}
/* Cards are sized from the space below the header, so the season and related
rows fill it (--up-row: a row's height besides its artwork). In a short,
wide window they keep a sensible size and the related row runs off the
bottom, as on Android TV. */
.up-next-rows {
container-type: size;
--up-row: 128px;
}
.up-next-shelf .shelf .card.landscape {
width: clamp(15vw, calc((50cqh - var(--up-row)) * 16 / 9), 26vw);
}
@media (max-width: 1333px) {
.up-next-shelf .shelf .card.landscape {
width: clamp(200px, calc((50cqh - var(--up-row)) * 16 / 9), 26vw);
}
}
.up-next-shelf .card {
scroll-margin-left: 0;
}
@media (max-height: 760px) {
.up-next-head {
padding-bottom: 20px;
}
.up-next-info .micro {
margin-bottom: 8px;
}
.up-next-info .up-next-logo {
height: 44px !important;
margin-bottom: 10px;
}
.up-next-info .up-next-logo img {
max-height: 44px !important;
}
.up-next-summary {
-webkit-line-clamp: 2;
margin-top: 10px;
}
.up-next-play {
margin-top: 16px;
}
.up-next-shelf {
margin-bottom: 14px;
}
}
.up-next .card:focus-visible {
outline: none;
}
.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-x/-y: where it was dragged to, from the right and bottom (PlayerOverlay). */
.mini-player {
position: fixed;
right: var(--mini-x, var(--mini-gap));
bottom: var(--mini-y, 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;
}
.mini-player.dragging {
cursor: grabbing;
}
/* 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.dragging .mini-scrim,
.mini-player.dragging .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;
}