/* HitRadar – Clubnacht: tiefe Tinte, zwei glühende Bühnenlichter (Orange → Pink), breite Festival-Schrift.
   Mobile first: große Tippflächen, 16px-Eingaben (kein iOS-Zoom), Aktionen am unteren Rand. */
:root {
  --bg: #09080e;
  --panel: rgba(22, 19, 30, .82);
  --panel-solid: #15131c;
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f6f3fb;
  --muted: #a39cb4;
  --dim: #6f6880;
  --hot: #ff7a1a;
  --pink: #ff2e7e;
  --grad: linear-gradient(115deg, var(--hot) 0%, var(--pink) 100%);
  --ink: #170610;
  --live: #3ef0a0;
  --danger: #ff5470;
  --gold: #ffc93d;
  --radius: 20px;
  --f-display: "Unbounded", "Archivo Black", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 var(--f-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
/* Bühnenlicht im Hintergrund */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 85% 0%, rgba(255, 46, 126, 0.22), transparent 60%),
    radial-gradient(45vmax 45vmax at 0% 15%, rgba(255, 122, 26, 0.18), transparent 60%),
    radial-gradient(50vmax 40vmax at 50% 110%, rgba(255, 46, 126, 0.10), transparent 60%);
}
a { color: var(--hot); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label { font: 700 11px/1.2 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; flex-wrap: wrap; }
.brand { font: 800 18px var(--f-display); color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(255, 46, 126, .35); }
.brand-mark svg { width: 16px; height: 16px; }

.btn {
  font: 700 15px/1 var(--f-body); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--fg);
  min-height: 46px; padding: 0 18px; border-radius: 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform .1s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease, opacity .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .tile:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 30px -8px rgba(255, 46, 126, .65); }
.btn.primary:hover { box-shadow: 0 14px 36px -8px rgba(255, 46, 126, .85); }
.btn.gold { background: var(--gold); color: #1d1500; border: 0; box-shadow: 0 10px 30px -10px rgba(255, 201, 61, .7); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.xl { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.card { background: rgba(22, 19, 30, .82); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
svg { width: 1em; height: 1em; flex: none; }
.pill svg { width: 13px; height: 13px; }
:where([data-icon]) { display: inline-flex; align-items: center; gap: 6px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 700; }
input, textarea, select {
  width: 100%; font: 16px/1.4 var(--f-body); color: var(--fg); background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px; min-height: 50px;
  transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { border-color: var(--hot); background: rgba(0,0,0,.5); outline: none; }
textarea { resize: vertical; min-height: 84px; }
input[type="range"] { padding: 0; min-height: 0; accent-color: var(--hot); background: none; border: 0; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--hot); flex: none; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 40px; }

.pill { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 var(--f-body); padding: 7px 11px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.pill.live { color: var(--live); background: rgba(62, 240, 160, .1); border-color: rgba(62, 240, 160, .25); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: pulse 1.4s infinite; }
.pill.off { color: var(--danger); background: rgba(255, 84, 112, .1); border-color: rgba(255, 84, 112, .25); }
.pill.gold { color: var(--gold); background: rgba(255, 201, 61, .1); border-color: rgba(255, 201, 61, .3); }
@keyframes pulse { 50% { opacity: .35; } }

/* Equalizer-Balken */
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.eq i { width: 4px; border-radius: 2px; background: var(--grad); animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qitem { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.qitem.skipped { border-color: rgba(255, 201, 61, .35); background: linear-gradient(90deg, rgba(255, 201, 61, .08), rgba(255,255,255,.03)); }
.qitem.mine { border-color: rgba(255, 46, 126, .5); box-shadow: 0 0 0 1px rgba(255, 46, 126, .25), 0 8px 30px -12px rgba(255, 46, 126, .6); }
.qpos { font: 800 16px var(--f-display); color: var(--dim); text-align: center; }
.qitem.skipped .qpos { color: var(--gold); }
.qmain { min-width: 0; }
.qtitle { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qsub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.qsub svg { width: 13px; height: 13px; flex: none; opacity: .8; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; font-size: 15px; }

.toast-box { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top, 0px)); display: grid; gap: 8px; z-index: 60; width: min(420px, calc(100vw - 32px)); }
.toast { background: rgba(24, 21, 32, .96); border: 1px solid var(--line-2); padding: 13px 16px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: drop .25s cubic-bezier(.2,1.3,.4,1); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.toast.err::before { background: var(--danger); }
@keyframes drop { from { transform: translateY(-10px) scale(.97); opacity: 0; } }

.modal-bg { position: fixed; inset: 0; background: rgba(5, 4, 8, .75); display: grid; place-items: end center; z-index: 50; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(6px); }
.modal { width: min(440px, 100%); background: var(--panel-solid); animation: drop .3s cubic-bezier(.2,1.3,.4,1); }
@media (min-width: 700px) { .modal-bg { place-items: center; } }

.legal { display: flex; gap: 18px; justify-content: center; padding-block: 8px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 13px; }
.legal a, footer a { color: var(--dim); }
.notice { background: rgba(255, 201, 61, .08); border: 1px solid rgba(255, 201, 61, .25); color: #ffe6a6; padding: 11px 14px; border-radius: 14px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
