/* 3QB MUSIC
   Seite = Logo-Platte (#0d0d0d), Displays = Schwarz, Signal = Logo-Orange.
   Archivo Variable: schmal und schwer für Titel und Zeiten, normal für Text. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2-variations"), url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --plate: #0d0d0d;
  --screen: #000;
  --signal: #fc5a08;
  --signal-hi: #ff7631;
  --low: #2f5dff;
  --glow: #fff3e4;
  --text: #f4eee6;
  --muted: #918b85;
  --groove: #24211f;
  --groove-hi: #3a3633;
  --raise: #161514;
  --danger: #ff4d6d;
  --ok: #67d88a;
  --warn: #ffc14a;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --deck-h: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plate);
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; border-radius: var(--r-sm);
  background: var(--signal); color: var(--plate); font-weight: 650; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--plate); }

/* ------------------------------------------------------------ Kopfzeile */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1280px; margin: 0 auto; padding: 1rem var(--gutter);
}
.brand { display: block; border-radius: 12px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }
.topnav { display: flex; align-items: center; gap: .25rem; }
.topnav-form { margin: 0; }
.topnav-link {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 40px; padding: 0 .9rem; border: 0; border-radius: 999px;
  background: none; color: var(--muted); text-decoration: none;
  font-size: .9375rem; cursor: pointer;
}
.topnav-link:hover { color: var(--text); background: var(--raise); }

/* ------------------------------------------------------------ Knöpfe & Formulare */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.2rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 650; font-stretch: 92%; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--signal); color: var(--plate); }
.btn-primary:hover { background: var(--signal-hi); }
.btn-ghost { background: transparent; border-color: var(--groove-hi); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { background: transparent; border-color: rgb(255 77 109 / .45); color: var(--danger); }
.btn-danger:hover { background: rgb(255 77 109 / .1); }
.btn.is-confirming { background: var(--danger); border-color: var(--danger); color: var(--plate); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-wide { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 .75rem; font-size: .8125rem; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: none; color: var(--muted);
  text-decoration: none; cursor: pointer;
}
.icon-btn:hover { background: var(--raise); color: var(--text); }

.field { display: grid; gap: .4rem; }
.field > label { font-size: .875rem; font-weight: 600; }
.field-hint { color: var(--muted); font-size: .8125rem; }

input[type="text"], input[type="password"], input[type="file"] {
  width: 100%; min-height: 48px; padding: 0 .95rem;
  border: 1px solid var(--groove-hi); border-radius: var(--r-sm);
  background: var(--screen); color: var(--text); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="password"]:focus {
  outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgb(252 90 8 / .22);
}
input[type="file"] { padding: .55rem; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: .8rem; padding: .45rem .9rem; border: 0; border-radius: 6px;
  background: var(--groove-hi); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--signal); margin: 0; }
.field-check { display: flex; align-items: center; gap: .6rem; min-height: 48px; }
.field-check label { font-weight: 500; }

.reveal { position: relative; }
.reveal input { padding-right: 3.2rem; }
.reveal-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.reveal-btn:hover, .reveal-btn[aria-pressed="true"] { color: var(--text); }

.notes { display: grid; gap: .5rem; margin: 0 0 1.75rem; }
.note {
  padding: .75rem 1rem; border-left: 3px solid var(--muted); border-radius: var(--r-sm);
  background: var(--screen); font-size: .9375rem;
}
.note-success { border-color: var(--ok); }
.note-error, .note-danger { border-color: var(--danger); }
.note-warn { border-color: var(--warn); }
.note[hidden] { display: none; }

/* ------------------------------------------------------------ Lobby: Zugang & Login */

.page-lobby { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

.lobby {
  flex: 1; width: 100%; max-width: 31rem; margin: 0 auto;
  padding: clamp(2rem, 9vh, 6rem) 1.25rem 2.5rem;
}
.lobby-logo { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 2.25rem; }
.lobby-logo-link { display: inline-block; border-radius: 20px; }
.lobby-title {
  font-size: clamp(2.9rem, 10vw, 4.75rem); font-weight: 860; font-stretch: 62%;
  line-height: .93; letter-spacing: -.005em; text-wrap: balance;
}
.lobby-text { margin: 1.1rem 0 1.9rem; color: var(--muted); font-size: 1.0625rem; max-width: 36ch; }
.lobby .note { margin-bottom: 1.25rem; }
.lobby-form { display: grid; gap: 1.1rem; }
.lobby-hint { margin-top: 1.4rem; color: var(--muted); font-size: .9375rem; }
.lobby-hint a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.lobby-hint a:hover { color: var(--text); }
.cf-turnstile { min-height: 65px; }

/* Balken des Logos, auf Bildschirmbreite gezogen */
.bars {
  display: flex; align-items: center; gap: clamp(3px, .55vw, 9px);
  height: clamp(140px, 30vh, 300px); padding: 0 var(--gutter) clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
}
.bars span {
  flex: 1 1 0; min-width: 2px; height: calc(var(--h) * 100%);
  border-radius: 999px; background: var(--signal); transform-origin: 50% 50%;
}
.b1 { --h: .07; } .b2 { --h: .14; } .b3 { --h: .22; } .b4 { --h: .3; }
.b5 { --h: .38; } .b6 { --h: .46; } .b7 { --h: .54; } .b8 { --h: .62; }
.b9 { --h: .71; } .b10 { --h: .8; } .b11 { --h: .9; } .b12 { --h: 1; }
.page-login .bars span { opacity: .55; }

/* ------------------------------------------------------------ Übersicht */

.crate {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) calc(var(--deck-h) + 3rem);
}
.crate-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem;
  flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.crate-title {
  font-size: clamp(3.4rem, 11vw, 8.5rem); font-weight: 870; font-stretch: 62%;
  line-height: .84; letter-spacing: -.01em;
}
.crate-sum { margin-top: .9rem; color: var(--muted); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--groove); }

.row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(8rem, 18rem) 4.75rem auto;
  grid-template-areas: "play main wave dur actions";
  align-items: center; gap: 0 1.25rem;
  padding: .85rem .75rem; margin: 0 -.75rem;
  border-bottom: 1px solid var(--groove); border-radius: 0;
}
.row:hover { background: var(--raise); }

.row-play {
  grid-area: play; display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1.5px solid var(--groove-hi); border-radius: 50%;
  background: var(--screen); color: var(--text); cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.row-play .i { width: 18px; height: 18px; }
.row-play:hover { border-color: var(--signal); color: var(--signal); }
.row .i-pause, .deck .i-pause { display: none; }
.row.is-current .row-play { background: var(--signal); border-color: var(--signal); color: var(--plate); }
.row.is-playing .i-play { display: none; }
.row.is-playing .i-pause { display: block; }

.row-main { grid-area: main; min-width: 0; cursor: pointer; }
.row-title {
  font-size: 1.4rem; font-weight: 740; font-stretch: 70%; line-height: 1.12;
  overflow-wrap: anywhere;
}
.row.is-current .row-title { color: var(--signal); }
.row-meta {
  display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-top: .2rem;
  color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums;
}
.row-dur-sm { display: none; }
.row-dur-sm:empty { display: none !important; }

.row-wave { grid-area: wave; width: 100%; height: 34px; cursor: pointer; }
.row-dur {
  grid-area: dur; text-align: right; color: var(--muted);
  font-size: .9375rem; font-stretch: 85%; font-variant-numeric: tabular-nums;
}
.row-actions { grid-area: actions; display: flex; gap: .1rem; }

.empty { padding: 3rem 0; border-top: 1px solid var(--groove); color: var(--muted); }
.empty-title { color: var(--text); font-size: 1.75rem; font-weight: 780; font-stretch: 68%; margin-bottom: .3rem; }

.pager { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: 1.75rem; }
.pager a {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .5rem;
  border-radius: 10px; color: var(--muted); text-decoration: none; font-variant-numeric: tabular-nums;
}
.pager a:hover { background: var(--raise); color: var(--text); }
.pager a[aria-current="page"] { background: var(--signal); color: var(--plate); font-weight: 650; }

/* ------------------------------------------------------------ Deck */

.deck { position: relative; background: var(--screen); color: var(--text); }
.deck--dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px 0 var(--groove);
}

.deck-wave { position: relative; height: 80px; }
.deck.has-wave .deck-wave { cursor: pointer; }
.deck-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--groove-hi); }
.deck.has-wave .deck-line { display: none; }
.deck[data-state="loading"] .deck-line {
  display: block; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent) 0 0 / 40% 100% no-repeat var(--groove-hi);
  animation: sweep 1.3s ease-in-out infinite;
}
.deck[data-state="loading"] .deck-wave > :not(.deck-line) { opacity: 0; }

.deck-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
  grid-template-areas: "elapsed now transport modes volume remain";
  align-items: center; gap: 1.5rem;
  padding: .6rem clamp(1rem, 3vw, 2.25rem) .85rem;
}

.deck-time {
  font-size: 2.85rem; font-weight: 720; font-stretch: 62%; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: .005em; min-width: 4.6ch;
}
.deck-elapsed { grid-area: elapsed; }
.deck-remain { grid-area: remain; text-align: right; color: var(--signal); }

.deck-now { grid-area: now; min-width: 0; }
.deck-title {
  font-size: 1.15rem; font-weight: 720; font-stretch: 78%; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-sub {
  display: flex; align-items: center; gap: .6rem; margin-top: .1rem;
  color: var(--muted); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deck-chip {
  flex: none; padding: .1rem .55rem; border: 1px solid var(--groove-hi); border-radius: 999px;
  background: none; color: var(--text); font-size: .8125rem; cursor: pointer;
}
.deck-chip:hover { border-color: var(--signal); color: var(--signal); }
.deck[data-state="error"] .deck-sub { color: var(--danger); }

.deck-transport { grid-area: transport; display: flex; align-items: center; gap: .4rem; }
.deck-modes { grid-area: modes; display: flex; gap: .15rem; }
.deck-volume { grid-area: volume; display: flex; align-items: center; gap: .25rem; }

.deck-btn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer;
}
.deck-btn .i { width: 22px; height: 22px; }
.deck-btn:hover { background: #141414; }
.deck-toggle { color: var(--muted); }
.deck-toggle[aria-pressed="true"] { color: var(--signal); }
.deck-toggle[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--signal); box-shadow: 0 0 6px var(--signal);
}

.deck-play {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px;
  border: 2px solid var(--signal); border-radius: 50%;
  background: transparent; color: var(--signal); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.deck-play .i { width: 26px; height: 26px; }
.deck-play .i-play { transform: translateX(1px); }
.deck-play:hover { background: rgb(252 90 8 / .12); }
.deck[data-state="playing"] .deck-play { background: var(--signal); color: var(--screen); }
.deck[data-state="playing"] .deck-play .i-play { display: none; }
.deck[data-state="playing"] .deck-play .i-pause { display: block; }
.deck-play::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--signal); display: none;
  animation: spin .9s linear infinite;
}
.deck[data-state="loading"] .deck-play::before { display: block; }

.deck .i-vol-off { display: none; }
.deck.is-muted .i-vol { display: none; }
.deck.is-muted .i-vol-off { display: block; }

input[type="range"][data-volume] {
  -webkit-appearance: none; appearance: none; width: 96px; height: 24px; margin: 0;
  background: transparent; cursor: pointer;
}
input[type="range"][data-volume]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--signal) var(--fill, 100%), var(--groove-hi) var(--fill, 100%));
}
input[type="range"][data-volume]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--groove-hi); }
input[type="range"][data-volume]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--signal); }
input[type="range"][data-volume]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--text);
}
input[type="range"][data-volume]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--text); }

/* Deck im Fluss (Teilen-Seite) */
.deck--inline { margin: clamp(1.75rem, 4vw, 3rem) 0 1.5rem; border-radius: var(--r-lg); overflow: hidden; }
.deck--inline .deck-wave { height: clamp(110px, 20vw, 180px); }
.deck--inline .deck-bar {
  grid-template-columns: 1fr auto auto 1fr;
  grid-template-areas: "elapsed volume transport remain";
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
}
.deck--inline .deck-now { display: none; }
.deck--inline .deck-time { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.deck--inline .deck-play { width: 68px; height: 68px; }
.deck--inline .deck-play .i { width: 30px; height: 30px; }
.deck--inline input[type="range"][data-volume] { width: 80px; }

/* ------------------------------------------------------------ Teilen-Seite */

.single { max-width: 1040px; margin: 0 auto; padding: clamp(1.5rem, 6vw, 4.5rem) var(--gutter) 4rem; }
.single-by { margin-bottom: .9rem; color: var(--muted); font-size: 1.0625rem; }
.single-title {
  font-size: clamp(3.2rem, 11vw, 8.5rem); font-weight: 870; font-stretch: 62%;
  line-height: .95; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance;
}
.single-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------ Dialoge */

.sheet {
  width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--r-lg);
  background: var(--plate); color: var(--text);
  box-shadow: 0 0 0 1px var(--groove-hi), 0 30px 90px rgb(0 0 0 / .65);
}
.sheet::backdrop { background: rgb(0 0 0 / .72); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .22s cubic-bezier(.2, .9, .25, 1); }
.sheet-body { display: grid; gap: 1.25rem; padding: 1.5rem; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet-head h2 { font-size: 2rem; font-weight: 840; font-stretch: 64%; line-height: 1; }
.sheet-foot { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.sheet-form { display: grid; gap: .9rem; justify-items: start; }
.sheet-form .field { width: 100%; }
.sheet-section { padding-top: 1.25rem; border-top: 1px solid var(--groove); }
.sheet-section h3 { margin-bottom: .25rem; font-size: 1rem; font-weight: 650; }
.sheet-section p { margin-bottom: .8rem; color: var(--muted); font-size: .875rem; }
.upload-progress { display: grid; gap: .45rem; }
.upload-progress[hidden] { display: none; }
progress {
  width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden;
  -webkit-appearance: none; appearance: none; background: var(--groove-hi);
}
progress::-webkit-progress-bar { background: var(--groove-hi); }
progress::-webkit-progress-value { background: var(--signal); transition: width .2s; }
progress::-moz-progress-bar { background: var(--signal); }

/* ------------------------------------------------------------ Konto */

.account { max-width: 900px; margin: 0 auto; padding: .5rem var(--gutter) 5rem; }
.backlink {
  display: inline-flex; align-items: center; gap: .45rem; color: var(--muted);
  font-size: .9375rem; text-decoration: none;
}
.backlink:hover { color: var(--text); }
.page-title {
  margin-top: 1.25rem; font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 870; font-stretch: 62%;
  line-height: .86; letter-spacing: -.01em;
}
.page-lead { margin: .9rem 0 2.25rem; color: var(--muted); font-size: 1.0625rem; }
.page-lead strong { color: var(--text); font-weight: 650; }

.block { padding: 2rem 0 2.25rem; border-top: 1px solid var(--groove); }
.block-title { margin-bottom: 1.25rem; font-size: 1.6rem; font-weight: 800; font-stretch: 68%; }
.block-sub { margin: 2.25rem 0 1rem; font-size: 1.0625rem; font-weight: 650; }

.form-grid { display: grid; gap: 1rem; max-width: 27rem; }
.form-grid--inline { max-width: none; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: end; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.check {
  padding: .8rem 1rem; border-left: 3px solid var(--muted); border-radius: var(--r-sm);
  background: var(--screen); font-size: .9375rem;
}
.check-danger { border-color: var(--danger); }
.check-warn { border-color: var(--warn); }

.table-wrap { overflow-x: auto; margin: 0 -.5rem; padding-bottom: 7rem; margin-bottom: -7rem; }
.users { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.users th, .users td { padding: .7rem .5rem; border-bottom: 1px solid var(--groove); text-align: left; vertical-align: middle; }
.users thead th { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.users tbody th { font-weight: 650; white-space: nowrap; }
.users .num { font-variant-numeric: tabular-nums; }
.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.user-actions form { margin: 0; }
.tag {
  display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 99px;
  background: var(--raise); color: var(--muted); font-size: .75rem; font-weight: 500;
}
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop[open] > summary { border-color: var(--signal); }
.pop-body {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 5;
  display: flex; gap: .4rem; width: min(21rem, 80vw); padding: .6rem;
  border: 1px solid var(--groove-hi); border-radius: var(--r); background: var(--plate);
  box-shadow: 0 18px 50px rgb(0 0 0 / .6);
}
.pop-body input { min-height: 34px; font-size: .875rem; }

/* ------------------------------------------------------------ Hinweis-Toast */

.toast {
  position: fixed; left: 50%; bottom: calc(var(--deck-h) + 1rem); z-index: 60;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--text); color: var(--plate); font-size: .9375rem; font-weight: 650;
  opacity: 0; transform: translate(-50%, .75rem); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ Bewegung */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ Kleinere Bildschirme */

@media (max-width: 1000px) {
  .deck-bar { gap: 1rem; }
  .deck-volume { display: none; }
  .deck--inline .deck-volume { display: flex; }
  .row { grid-template-columns: 3rem minmax(0, 1fr) minmax(6rem, 11rem) 4.5rem auto; }
}

@media (max-width: 760px) {
  .topnav-link { padding: 0 .7rem; }
  .topnav-form .topnav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .row {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    grid-template-areas: "play main actions" ". wave wave";
    gap: .4rem .85rem; padding: .85rem .25rem; margin: 0 -.25rem;
  }
  .row-play { width: 2.75rem; height: 2.75rem; }
  .row-title { font-size: 1.2rem; }
  .row-wave { height: 26px; }
  .row-wave:not([data-peaks]) { display: none; }
  .row-dur { display: none; }
  .row-dur-sm { display: inline; }
  .row-actions .icon-btn { width: 36px; height: 36px; }

  .deck-wave { height: 54px; }
  .deck-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "now transport";
    gap: .75rem; padding: .55rem 1rem .7rem;
  }
  .deck--dock .deck-time {
    position: absolute; top: 5px; z-index: 2; min-width: 0; padding: .05rem .4rem;
    border-radius: 4px; background: rgb(0 0 0 / .72);
    font-size: .875rem; font-weight: 650; font-stretch: 80%; pointer-events: none;
  }
  .deck--dock .deck-elapsed { left: .5rem; }
  .deck--dock .deck-remain { right: .5rem; }
  .deck-modes { display: none; }
  .deck-play { width: 50px; height: 50px; }
  .deck-btn { width: 40px; height: 40px; }

  .deck--inline .deck-bar {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "elapsed transport remain";
  }
  .deck--inline .deck-volume { display: none; }

  .sheet {
    width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .sheet-body { padding: 1.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom)); }

  .users thead { display: none; }
  .users tr { display: grid; grid-template-columns: 1fr auto; padding: .6rem 0; border-bottom: 1px solid var(--groove); }
  .users th, .users td { border: 0; padding: .2rem .5rem; }
  .users td.num { display: none; }
  .users td:last-child { grid-column: 1 / -1; }
  .user-actions { justify-content: flex-start; }
}
