.player-frame {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Eigene, einheitliche Player-Steuerung: ein Overlay statt Browser- plus Zusatzleiste. */
.player-frame.has-custom-controls {position:relative;background:#000;isolation:isolate}
.player-frame.has-custom-controls .player {width:100%;cursor:pointer}
.player-controls-overlay[hidden],
.player-toolbar[hidden],
.player-toolbar-legacy[hidden],
.player-icon-button[hidden],
.player-center-play[hidden] {display:none!important}
.player-controls-overlay {
  position:absolute;
  z-index:8;
  right:0;
  bottom:0;
  left:0;
  padding-top:4.5rem;
  color:#fff;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.18) 28%,rgba(0,0,0,.9));
  opacity:0;
  transform:translateY(7px);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
.player-frame.is-controls-visible .player-controls-overlay {
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.player-frame.has-custom-controls:has(:focus-visible) .player-controls-overlay {
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.player-frame.has-custom-controls:not(.is-controls-visible) {cursor:none}
.player-frame.has-custom-controls:not(.is-controls-visible) .player {cursor:none}
.player-timeline-shell {
  padding:.35rem 1rem 0;
  border:0;
  background:transparent;
}
.player-timeline-meta {display:none}
.player-timeline {height:22px}
.player-timeline::before,
.player-timeline-buffered span,
.player-timeline-played {top:9px;height:4px}
.player-timeline-buffered span {background:rgba(255,255,255,.58)}
.player-timeline-thumb {top:5px;opacity:0;transition:opacity .15s ease,transform .12s ease}
.player-timeline:hover .player-timeline-thumb,
.player-timeline:focus-visible .player-timeline-thumb,
.player-timeline.is-scrubbing .player-timeline-thumb {opacity:1}
.player-controlbar {
  display:flex;
  align-items:center;
  gap:.2rem;
  min-height:48px;
  padding:0 .65rem .45rem;
}
.player-icon-button,
.player-center-play,
.player-skip-overlay {
  display:grid;
  place-items:center;
  border:0;
  color:#fff;
  background:transparent;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.player-icon-button {width:42px;height:42px;padding:9px;border-radius:50%}
.player-icon-button:hover,
.player-icon-button:focus-visible,
.player-icon-button.is-active {background:rgba(255,255,255,.17);outline:none}
.player-icon-button:focus-visible,
.player-center-play:focus-visible,
.player-skip-overlay:focus-visible {box-shadow:0 0 0 2px #fff}
.player-icon-button svg {width:23px;height:23px;fill:currentColor}
.player-icon-button .icon-pause,
.player-icon-button .icon-muted,
.player-icon-button .icon-compress {display:none}
.player-frame.is-playing .icon-play,
.player-frame.is-muted .icon-volume,
.player-frame.is-fullscreen .icon-expand {display:none}
.player-frame.is-playing .icon-pause,
.player-frame.is-muted .icon-muted,
.player-frame.is-fullscreen .icon-compress {display:block}
.player-center-play {
  position:absolute;
  z-index:9;
  top:50%;
  left:50%;
  width:72px;
  height:72px;
  border-radius:50%;
  background:rgba(0,0,0,.64);
  box-shadow:0 8px 28px rgba(0,0,0,.38);
  transform:translate(-50%,-50%);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.player-center-play svg {width:34px;height:34px;margin-left:4px;fill:currentColor}
.player-frame.is-controls-visible:not(.is-playing) .player-center-play {opacity:1;pointer-events:auto}
.player-frame.is-controls-visible:not(.is-playing) .player-center-play:hover {transform:translate(-50%,-50%) scale(1.06)}
.player-skip-overlay {
  position:absolute;
  z-index:9;
  top:50%;
  width:58px;
  height:58px;
  border-radius:50%;
  background:rgba(0,0,0,.58);
  opacity:0;
  pointer-events:none;
  transform:translateY(-50%) scale(.92);
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}
.player-skip-overlay.is-back {left:clamp(.65rem,3vw,2rem)}
.player-skip-overlay.is-forward {right:clamp(.65rem,3vw,2rem)}
.player-skip-overlay svg {width:34px;height:34px;fill:currentColor}
.player-skip-overlay text {fill:#fff;font:700 6px system-ui,sans-serif}
.player-frame.is-controls-visible .player-skip-overlay {opacity:1;pointer-events:auto;transform:translateY(-50%) scale(1)}
.player-skip-overlay:hover {background:rgba(0,0,0,.78);transform:translateY(-50%) scale(1.07)!important}
.player-frame.has-custom-controls :where(.player-center-play,.player-skip-overlay,.player-icon-button) {
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
}
.player-time {padding:0 .35rem;color:#fff;font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 1px 3px #000}
.player-control-spacer {flex:1}
.player-volume {display:flex;align-items:center}
.player-volume input[type="range"] {
  width:0;
  height:4px;
  margin:0;
  padding:0;
  accent-color:#fff;
  opacity:0;
  overflow:hidden;
  transition:width .18s ease,opacity .18s ease,margin .18s ease;
}
.player-volume:hover input[type="range"],
.player-volume:focus-within input[type="range"] {width:82px;margin-right:.45rem;opacity:1}
.player-menu-anchor {position:relative}
.player-toolbar {
  position:absolute;
  right:0;
  bottom:calc(100% + .65rem);
  display:grid;
  width:min(310px,calc(100vw - 2rem));
  gap:.75rem;
  padding:1rem;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(15,16,20,.97);
  box-shadow:0 18px 50px rgba(0,0,0,.5);
  backdrop-filter:blur(16px);
}
.player-toolbar>strong {font-size:.8rem;letter-spacing:.09em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.player-toolbar label {display:grid;grid-template-columns:1fr minmax(130px,auto);align-items:center;gap:.8rem;font-size:.86rem}
.player-toolbar select {width:100%;min-height:38px;padding:.4rem 2rem .4rem .6rem;border-color:rgba(255,255,255,.16);background:#24262d;color:#fff}
.player-status {
  position:absolute;
  right:1rem;
  bottom:76px;
  left:1rem;
  z-index:2;
  width:max-content;
  max-width:calc(100% - 2rem);
  margin:auto;
  padding:.5rem .75rem;
  border-radius:8px;
  background:rgba(0,0,0,.72);
  color:#fff;
  font-size:.8rem;
  text-align:center;
  pointer-events:none;
}
.player-status:empty {display:none}
.player-next-episode {
  position: absolute;
  z-index: 10;
  right: clamp(.8rem, 2.5vw, 1.5rem);
  bottom: 1.25rem;
  display: grid;
  grid-template-columns: 86px minmax(150px, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: min(520px, calc(100% - 2rem));
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: rgba(13,14,18,.94);
  color: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.58);
  backdrop-filter: blur(18px);
  transition: bottom .2s ease, opacity .2s ease, transform .2s ease;
}
.player-next-episode[hidden] {display:none}
.player-frame.is-controls-visible .player-next-episode {bottom: 5.35rem}
.player-next-episode img {
  width: 86px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
}
.player-next-episode > div {display:grid;min-width:0;gap:.12rem}
.player-next-episode.no-poster {grid-template-columns:minmax(150px,1fr) auto}
.player-next-episode small {
  color: rgba(255,255,255,.64);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.player-next-episode strong {
  overflow: hidden;
  font-size: .9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-next-episode span {color:rgba(255,255,255,.72);font-size:.7rem}
.player-next-episode .button {margin:0;white-space:nowrap}
.player-next-cancel {
  grid-column: 2 / -1;
  justify-self: end;
  padding: .1rem .15rem;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font: inherit;
  font-size: .7rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.player-next-cancel:hover,
.player-next-cancel:focus-visible {color:#fff}
.player-end-screen {
  position:absolute;
  z-index:11;
  inset:0;
  display:grid;
  place-items:center;
  padding:clamp(1rem,4vw,3rem);
  background:linear-gradient(135deg,rgba(4,5,8,.92),rgba(12,14,20,.82));
  color:#fff;
  backdrop-filter:blur(10px);
}
.player-end-screen[hidden] {display:none}
.player-end-card {
  display:grid;
  grid-template-columns:minmax(120px,190px) minmax(0,430px);
  align-items:center;
  gap:clamp(1rem,3vw,2rem);
  width:min(720px,100%);
  padding:clamp(1rem,3vw,1.65rem);
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  background:rgba(15,17,23,.9);
  box-shadow:0 25px 80px rgba(0,0,0,.58);
}
.player-end-card.no-poster {grid-template-columns:minmax(0,560px);justify-content:center}
.player-end-card img {width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:13px;background:#20222a}
.player-end-copy {display:grid;gap:.55rem;min-width:0}
.player-end-copy small {color:rgba(255,255,255,.62);font-size:.68rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.player-end-copy strong {font-size:clamp(1.2rem,3vw,2rem);line-height:1.05}
.player-end-copy p {margin:0;color:rgba(255,255,255,.75);font-size:.86rem;line-height:1.5}
.player-end-auto {display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.48rem .62rem;border-radius:9px;background:rgba(255,255,255,.07);color:rgba(255,255,255,.75);font-size:.72rem}
.player-end-auto b {color:#fff;font-variant-numeric:tabular-nums}
.player-end-auto button {padding:.15rem;border:0;background:transparent;color:#fff;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.player-end-auto button:disabled {color:rgba(255,255,255,.45);cursor:default;text-decoration:none}
.player-end-actions {display:flex;flex-wrap:wrap;gap:.65rem;margin-top:.35rem}
.player-end-actions .button {margin:0}
.player-frame.is-ended .player-controls-overlay,
.player-frame.is-ended .player-center-play,
.player-frame.is-ended .player-skip-overlay {opacity:0!important;pointer-events:none!important}
.player-frame:fullscreen,
.player-frame.is-fullscreen {width:100vw;height:100vh;border:0;border-radius:0;background:#000}
.player-frame:fullscreen .player,
.player-frame.is-fullscreen .player {width:100%;height:100%;object-fit:contain}

@media (max-width: 640px) {
  .player-controls-overlay {padding-top:3.5rem}
  .player-controlbar {padding-inline:.35rem;gap:0}
  .player-icon-button {width:39px;height:39px;padding:9px}
  .player-time {font-size:.7rem;padding-inline:.15rem}
  .player-volume input[type="range"] {display:none}
  .player-skip-overlay {width:50px;height:50px}
  .player-skip-overlay svg {width:30px;height:30px}
  .player-center-play {width:62px;height:62px}
  .player-toolbar {position:fixed;right:.65rem;bottom:4rem;left:.65rem;width:auto}
  .player-next-episode {
    right: .65rem;
    bottom: .65rem;
    grid-template-columns: 64px minmax(0, 1fr);
    width: calc(100% - 1.3rem);
  }
  .player-frame.is-controls-visible .player-next-episode {bottom: 4.7rem}
  .player-next-episode img {width:64px}
  .player-next-episode .button {grid-column:1 / -1;width:100%}
  .player-next-cancel {grid-column:1 / -1}
  .player-end-screen {padding:.65rem}
  .player-end-card {grid-template-columns:82px minmax(0,1fr);gap:.8rem;padding:.85rem;border-radius:15px}
  .player-end-copy {gap:.35rem}
  .player-end-copy strong {font-size:1.05rem}
  .player-end-copy p {font-size:.74rem;line-height:1.35}
  .player-end-actions {grid-column:1 / -1;display:grid;grid-template-columns:1fr;margin-top:.2rem}
  .player-end-actions .button {width:100%}
}

.player-frame .player {
  display: block;
  border-radius: 0;
}

.audio-player-art {
  display: grid;
  grid-template-columns: minmax(140px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  min-height: clamp(280px, 48vw, 560px);
  padding: clamp(1.25rem, 5vw, 4rem);
  background: radial-gradient(circle at 25% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 42%), linear-gradient(135deg, #11131a, #050609);
}

.audio-player-art img,
.audio-player-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.audio-player-placeholder {
  color: var(--accent-2);
  font-size: clamp(4rem, 14vw, 9rem);
}

.audio-player-art>div:last-child {
  display: grid;
  gap: .65rem;
}

.audio-player-art>div:last-child strong {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.is-audio-player .player {
  width: 100%;
  min-height: 54px;
  max-height: 64px;
  background: #090a0e;
}

.player-timeline-shell {
  padding: .65rem .9rem .5rem;
  border-top: 1px solid #ffffff17;
  background: linear-gradient(180deg, #08090c, #101217);
  color: #fff;
}

.player-timeline-meta {
  display: grid;
  grid-template-columns: minmax(56px, auto) 1fr minmax(56px, auto);
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
  color: #ffffffb8;
  font-size: .73rem;
  font-variant-numeric: tabular-nums;
}

.player-timeline-meta span:nth-child(2) {text-align: center;color: #ffffff8f}
.player-timeline-meta span:last-child {text-align: right}

.player-timeline {
  position: relative;
  height: 20px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.player-timeline::before,
.player-timeline-buffered span,
.player-timeline-played {
  position: absolute;
  top: 8px;
  height: 4px;
  border-radius: 999px;
}

.player-timeline::before {
  content: "";
  inset-inline: 0;
  background: #ffffff20;
}

.player-timeline-buffered {position: absolute;inset: 0}
.player-timeline-buffered span {background: #ffffff70}
.player-timeline-played {left: 0;width: 0;background: var(--accent);box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 60%, transparent)}
.player-timeline-thumb {position:absolute;z-index:2;top:4px;left:0;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:var(--accent);box-shadow:0 2px 8px #0009;transform:translateX(-50%);transition:transform .12s ease}
.player-timeline:hover .player-timeline-thumb,
.player-timeline:focus-visible .player-timeline-thumb,
.player-timeline.is-scrubbing .player-timeline-thumb {transform:translateX(-50%) scale(1.25)}
.player-timeline:focus-visible {border-radius:6px;box-shadow:0 0 0 2px #ffffffb8}
.player-timeline.is-disabled {cursor:not-allowed;opacity:.55}

.player-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
  padding: .8rem;
  background: var(--surface);
  border-top: 1px solid #ffffff12;
}

.player-toolbar label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
}

.player-toolbar select {
  width: auto;
  min-height: 38px;
  padding: .45rem 2rem .45rem .65rem;
}

.player-skip-controls {
  display: flex;
  gap: .5rem;
}

.player-tool {
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.player-tool:hover,
.player-tool:focus-visible {
  border-color: var(--accent-2);
}

.player-status {
  margin-left: auto;
  padding-bottom: .55rem;
  font-size: .85rem;
}

.episode.active {
  background: var(--surface-2);
  box-shadow: inset 3px 0 var(--accent);
}

.player-frame.is-unavailable {
  background: linear-gradient(135deg, #11141b, #07080c);
}

.player-unavailable {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  min-height: clamp(280px, 50vw, 560px);
  padding: clamp(1.5rem, 6vw, 5rem);
}

.player-unavailable h2 {
  max-width: 22ch;
  margin: .3rem 0 .8rem;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.05;
}

.player-unavailable p:last-child {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.6;
}

.player-unavailable-icon {
  display: grid;
  place-items: center;
  width: clamp(72px, 12vw, 120px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: clamp(1.8rem, 4vw, 3rem);
  opacity: .7;
}

.download-page {max-width: 820px}
.download-options {display:grid;gap:.8rem;margin:1.5rem 0}
.download-option {display:flex;align-items:center;justify-content:space-between;gap:1.25rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--bg)}
.download-option h2 {margin:.55rem 0 .25rem;font-size:1.15rem}
.download-option p {margin:0}
.button.is-disabled {cursor:not-allowed;opacity:.58}
.download-icon{display:inline-block;width:1.05em;height:1.05em;flex:0 0 auto;vertical-align:-.14em;fill:currentColor}.button .download-icon{width:1.08rem;height:1.08rem;color:#fff}.badge .download-icon,.right-chip .download-icon{margin-right:.12rem}.button small{font:inherit;opacity:.72}.download-series-page{max-width:1040px}.download-batch-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem 1.5rem;align-items:center;margin:1.5rem 0;padding:1.1rem;border:1px solid color-mix(in srgb,var(--good) 38%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--good) 7%,var(--bg))}.download-batch-panel p{margin:.35rem 0 0}.download-batch-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.55rem}.download-batch-panel progress{grid-column:1/-1;width:100%;height:12px;accent-color:var(--good)}.download-batch-status{grid-column:1/-1;margin:0!important}.download-content-group{display:grid;gap:.7rem;padding:1rem;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.018)}.download-content-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.download-content-heading>div{display:flex;align-items:center;gap:.75rem}.download-content-heading h2{margin:0;font-size:1.1rem}.download-content-group .download-option{margin:0}

.account-card-actions{display:flex;flex-wrap:wrap;gap:.5rem}

@media (max-width: 720px) {
  .player-timeline-shell {padding-inline:.7rem}
  .player-timeline-meta {font-size:.68rem}
  .player-unavailable {grid-template-columns:1fr;text-align:center}
  .player-unavailable-icon {margin:auto}
  .download-option {align-items:stretch;flex-direction:column}
  .download-batch-panel{grid-template-columns:1fr}.download-batch-actions{justify-content:stretch}.download-batch-actions .button{width:100%}.download-content-heading{align-items:flex-start;flex-direction:column}
  .audio-player-art {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .audio-player-art img,
  .audio-player-placeholder {
    width: min(72vw, 320px);
    margin: auto;
  }

  .player-toolbar {
    align-items: stretch;
  }

  .player-toolbar label {
    flex: 1 1 140px;
    justify-content: space-between;
  }

  .player-skip-controls,
  .player-skip-controls .player-tool {
    flex: 1;
  }

  .player-status {
    flex-basis: 100%;
    margin-left: 0;
  }
}
.download-queue-inline{margin:.65rem 0 0;max-width:34rem;font-size:.9rem}.download-option .button[aria-disabled="true"]{opacity:.65;cursor:wait}.download-batch-status{font-weight:650}
.download-center{position:fixed;z-index:80;right:clamp(.75rem,2vw,1.5rem);bottom:clamp(.75rem,2vw,1.5rem);width:min(430px,calc(100vw - 1.5rem));max-height:min(70vh,620px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--surface) 96%,#000);box-shadow:0 22px 70px #000a;overflow:hidden}.download-center>header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.1rem;border-bottom:1px solid var(--line)}.download-center>header div{display:grid;gap:.12rem}.download-center>header span{font-size:.66rem;font-weight:850;letter-spacing:.16em;color:var(--accent-2)}.download-center>header strong{font-size:1.05rem}.download-center-toggle,.download-center-cancel{border:1px solid var(--line);background:var(--surface-2);color:var(--text);cursor:pointer}.download-center-toggle{width:34px;height:34px;border-radius:50%;font-size:1.2rem}.download-center-list{display:grid;align-content:start;gap:.55rem;padding:.7rem;overflow:auto}.download-center-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;padding:.8rem;border:1px solid var(--line);border-radius:13px;background:var(--bg)}.download-center-item>div{display:grid;gap:.25rem;min-width:0}.download-center-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-center-item span{font-size:.86rem;font-weight:800}.download-center-item small{color:var(--muted);line-height:1.35}.download-center-item progress{width:100%;height:7px;margin-top:.2rem;accent-color:var(--good)}.download-center-item.is-waiting span{color:#f4ce62}.download-center-item.is-started span{color:var(--good)}.download-center-item.is-failed span{color:var(--bad)}.download-center-cancel{align-self:start;border-radius:999px;padding:.38rem .65rem;font-size:.75rem;font-weight:750}.download-center-note{margin:0;padding:.75rem 1rem;border-top:1px solid var(--line);color:var(--muted);font-size:.72rem}.download-center.is-collapsed{display:block;max-height:none}.download-center.is-collapsed .download-center-list,.download-center.is-collapsed .download-center-note{display:none}.download-center.is-collapsed>header{border:0}.download-center-item progress:not([value]){animation:download-queue-pulse 1.2s ease-in-out infinite}@keyframes download-queue-pulse{50%{opacity:.42}}
@media(max-width:540px){.download-center{right:.5rem;bottom:.5rem;width:calc(100vw - 1rem);max-height:62vh}.download-center-item{grid-template-columns:1fr}.download-center-cancel{justify-self:start}}

.player-frame.is-capacity-waiting::after{content:"";position:absolute;z-index:3;top:calc(50% - 52px);left:calc(50% - 18px);width:36px;height:36px;border:3px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:player-capacity-spin .85s linear infinite;pointer-events:none}.player-frame.is-capacity-waiting .player-status,.player-frame.has-custom-controls.is-capacity-waiting .player-status{z-index:4;right:1rem;bottom:auto;left:1rem;top:50%;width:min(540px,calc(100% - 2rem));max-width:none;padding:1rem 1.2rem;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(10,11,15,.9);box-shadow:0 18px 55px rgba(0,0,0,.48);font-size:clamp(.82rem,2vw,1rem);line-height:1.45;backdrop-filter:blur(14px)}@keyframes player-capacity-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.player-frame.is-capacity-waiting::after,.download-center-item progress:not([value]){animation:none}}

.download-center-header-actions {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: .45rem !important;
}

.download-center-abort-all,
.download-center-retry {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.download-center-abort-all {
  min-height: 34px;
  padding: .4rem .65rem;
  border-color: color-mix(in srgb,var(--bad) 45%,var(--line));
  border-radius: 999px;
  color: color-mix(in srgb,var(--bad) 82%,#fff);
  font-size: .7rem;
  font-weight: 800;
}

.download-center-item-actions {
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: .4rem;
}

.download-center-retry {
  border-color: color-mix(in srgb,var(--accent-2) 40%,var(--line));
  border-radius: 999px;
  padding: .38rem .65rem;
  color: var(--accent-2);
  font-size: .75rem;
  font-weight: 750;
}

.download-center-abort-all:hover,
.download-center-retry:hover,
.download-center-cancel:hover {
  filter: brightness(1.12);
}

.download-cancel-dialog {
  width: min(480px,calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}

.download-cancel-dialog::backdrop {
  background: rgba(2,4,8,.72);
  backdrop-filter: blur(5px);
}

.download-cancel-dialog form {
  position: relative;
  display: grid;
  gap: .85rem;
  padding: 1.5rem;
}

.download-cancel-dialog h2,
.download-cancel-dialog p {
  margin: 0;
}

.download-cancel-dialog p {
  color: var(--muted);
  line-height: 1.55;
}

.download-dialog-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.download-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .6rem;
  margin-top: .35rem;
}

.download-dialog-actions .button {
  width: 100%;
}

.download-dialog-actions .button.danger {
  border-color: color-mix(in srgb,var(--bad) 60%,var(--line));
  background: color-mix(in srgb,var(--bad) 78%,#151821);
  color: #fff;
}

@media(max-width:540px){
  .download-center-header-actions{grid-auto-flow:row;justify-items:end}
  .download-center-abort-all{min-height:30px;padding:.3rem .5rem;font-size:.64rem}
  .download-center-item-actions{flex-direction:row}
  .download-dialog-actions{grid-template-columns:1fr}
}

.player::cue {
  color:#fff;
  background:rgba(0,0,0,.76);
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(1.1rem,2.15vw,2.35rem);
  font-weight:650;
  line-height:1.32;
  text-shadow:0 2px 3px #000,0 0 8px rgba(0,0,0,.95);
}

/* Muss nach den bisherigen Player-Regeln stehen, damit das Overlay eindeutig gewinnt. */
.player-frame.has-custom-controls .player-timeline-shell {padding:.35rem 1rem 0;border:0;background:transparent}
.player-frame.has-custom-controls .player-timeline-meta {display:none}
.player-frame.has-custom-controls .player-timeline {height:22px}
.player-frame.has-custom-controls .player-timeline::before,
.player-frame.has-custom-controls .player-timeline-buffered span,
.player-frame.has-custom-controls .player-timeline-played {top:9px;height:4px}
.player-frame.has-custom-controls .player-timeline-buffered span {background:rgba(255,255,255,.58)}
.player-frame.has-custom-controls .player-timeline-thumb {top:5px;opacity:0;transition:opacity .15s ease,transform .12s ease}
.player-frame.has-custom-controls .player-timeline:hover .player-timeline-thumb,
.player-frame.has-custom-controls .player-timeline:focus-visible .player-timeline-thumb,
.player-frame.has-custom-controls .player-timeline.is-scrubbing .player-timeline-thumb {opacity:1}
.player-frame.has-custom-controls .player-toolbar {
  position:absolute;
  right:0;
  bottom:calc(100% + .65rem);
  display:grid;
  width:min(310px,calc(100vw - 2rem));
  gap:.75rem;
  padding:1rem;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(15,16,20,.97);
  box-shadow:0 18px 50px rgba(0,0,0,.5);
  backdrop-filter:blur(16px);
}
.player-frame.has-custom-controls .player-toolbar label {display:grid;grid-template-columns:1fr minmax(130px,auto);align-items:center;gap:.8rem;font-size:.86rem}
.player-frame.has-custom-controls .player-toolbar select {width:100%;min-height:38px;padding:.4rem 2rem .4rem .6rem;border-color:rgba(255,255,255,.16);background:#24262d;color:#fff}
.player-frame.has-custom-controls .player-status {position:absolute;right:1rem;bottom:76px;left:1rem;width:max-content;max-width:calc(100% - 2rem);margin:auto;padding:.5rem .75rem}

@media (max-width:640px) {
  .player-frame.has-custom-controls .player-toolbar {position:fixed;right:.65rem;bottom:4rem;left:.65rem;width:auto}
}
