/* Keep the film unobstructed. When controls are visible, group them by task. */
.player-dialog {
  --player-edge: clamp(12px, 3vw, 44px);
  --dock-floor: clamp(12px, 2vw, 26px);
  --dock-height: 122px;
}
.player-heading {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 20px var(--player-edge);
  gap: 14px;
}
.player-heading h2 {text-align:left;font-size:clamp(15px,1.7vw,21px);font-weight:650}
.player-heading .player-icon {
  border:1px solid #dfc8f33b;
  background:#1b1322bf;
  border-radius:12px;
}
.player-wordmark {color:#d1b8f3;opacity:.8}
.player-toolbar {
  inset:auto var(--player-edge) var(--dock-floor);
  padding:10px clamp(10px,1.5vw,20px) 8px;
  border:1px solid #dec7f333;
  border-radius:17px;
  background:#1b1322ed;
  box-shadow:0 13px 40px #0007;
}
.timeline-wrap {padding:11px 3px 12px}
.player-seek {
  background:linear-gradient(to right,#d2b5ff 0 var(--played,0%),
    #a78db37c var(--played,0%) var(--buffered,0%),
    #e3cbed32 var(--buffered,0%) 100%);
}
.player-transport {min-height:44px;gap:12px}
.transport-left,.transport-right {gap:6px}
.transport-left > #player-toggle {
  width:46px;height:42px;padding:10px;
  border-radius:11px;background:#e4d2ff;color:#211428;
}
.transport-left > #player-toggle:hover {background:#f4eaff}
.transport-right {
  padding-inline-start:10px;
  border-inline-start:1px solid #dec7f32c;
}
.transport-right .player-icon,.transport-left .seek-icon,.player-volume .player-icon {
  border-radius:10px;
}
.player-icon:hover {transform:none}
.player-icon:active {transform:scale(.96)}
.player-icon:focus-visible {outline:2px solid #f4eaff;outline-offset:2px}
.player-clock {color:#f1e5f4}
.quality-badge {
  border:1px solid #d5b6f133;border-radius:6px;
  padding:3px 7px;color:#e9d9f2;
}
.transport-right .remaining {display:none}
.player-bottom {
  min-height:0;padding:4px 3px 0;
  color:#cdbbd5;font-size:11px;
}
.player-settings,.source-sheet {
  right:var(--player-edge);
  bottom:calc(var(--dock-floor) + var(--dock-height));
  max-height:calc(100dvh - var(--dock-floor) - var(--dock-height) - 76px);
  background:#211624fa;
}
.player-settings-heading .overline {display:none}
.player-settings-heading h3 {margin-top:0}
@media(max-width:820px) {
  .transport-right {gap:4px}
  .transport-left {gap:3px}
  .player-volume input,.transport-right .quality-badge {display:none}
}
@media(max-width:560px) {
  .player-dialog {--dock-height:155px}
  .player-transport {flex-wrap:wrap;gap:7px}
  .transport-right {padding-inline-start:0;border-inline-start:0}
  .player-heading .player-wordmark {display:none}
  .player-heading {grid-template-columns:40px minmax(0,1fr)}
  .player-toolbar {border-radius:13px}
}
@media(max-height:480px) and (orientation:landscape) {
  .player-dialog {--dock-height:92px}
  .player-toolbar {padding-top:6px}
  .player-settings,.source-sheet {top:52px;max-height:none}
  .player-heading {padding-top:8px}
}
@media(prefers-reduced-motion:reduce) {
  .player-icon:active {transform:none}
}
html[data-reduced-motion=true] .player-icon:active {transform:none}

/* Immersive player controls: legible white utilities over a neutral picture scrim. */
.player-dialog {
  --dock-height:108px;
  --dock-floor:clamp(8px,1.4vw,20px);
}
.player-heading {
  background:linear-gradient(180deg,#000b 0%,#0006 62%,transparent 100%);
}
.player-heading .player-icon {
  border:1px solid #ffffff38;
  border-radius:50%;
  background:#08090ab8;
  color:#fff;
  backdrop-filter:blur(12px);
}
.player-heading .player-icon:hover {background:#ffffff20}
.player-wordmark {color:#ffffffb8;letter-spacing:2px}
.player-toolbar {
  inset:auto 0 0;
  padding:28px clamp(16px,3vw,42px) clamp(12px,2vw,25px);
  border:0;
  border-radius:0;
  background:linear-gradient(0deg,#000e 0%,#000a 48%,#0003 82%,transparent 100%);
  box-shadow:none;
}
.timeline-wrap {padding:9px 2px 11px}
.player-seek {
  height:4px;
  background:linear-gradient(to right,#f5f5f5 0 var(--played,0%),#ffffffa8 var(--played,0%) var(--buffered,0%),#ffffff4a var(--buffered,0%) 100%);
}
.player-seek::-webkit-slider-thumb {background:#fff;box-shadow:0 1px 6px #0009}
.player-seek::-moz-range-thumb {background:#fff;box-shadow:0 1px 6px #0009}
.player-transport {min-height:42px;gap:12px}
.transport-left,.transport-right {gap:7px}
.transport-left > #player-toggle {
  width:42px;height:42px;padding:10px;
  border-radius:50%;background:#f4f4f2;color:#161616;
}
.transport-left > #player-toggle:hover {background:#fff}
.transport-right {padding-inline-start:12px;border-inline-start:1px solid #ffffff38}
.transport-right .player-icon,.transport-left .seek-icon,.player-volume .player-icon {
  border-radius:50%;background:#08090a70;color:#fff;
}
.player-icon:hover {background:#ffffff20;color:#fff}
.player-icon:focus-visible {outline:2px solid #fff;outline-offset:3px}
.player-clock {color:#f4f4f2}
.quality-badge {border:1px solid #ffffff50;border-radius:20px;padding:4px 9px;color:#f4f4f2}
.player-bottom {color:#ffffffba;font-size:10px}
.player-bottom>span:last-child {color:#ffffff80}
.player-settings,.source-sheet {
  border:1px solid #ffffff24;
  border-radius:14px;
  background:#111214f5;
  box-shadow:0 18px 70px #000a;
  backdrop-filter:blur(22px);
}
.player-settings-heading h3 {color:#f6f6f5}
@media(max-width:820px) {
  .player-toolbar {padding-inline:18px;padding-bottom:16px}
}
@media(max-width:560px) {
  .player-dialog {--dock-height:145px}
  .player-toolbar {padding:22px 12px 13px}
  .player-transport {gap:6px}
  .transport-left,.transport-right {gap:2px}
  .transport-right {padding-inline-start:6px}
}
@media(max-height:480px) and (orientation:landscape) {
  .player-dialog {--dock-height:80px}
  .player-toolbar {padding-top:18px;padding-bottom:7px}
}
