/* ===== Vinyl Vault – Designsystem ===== */
:root {
  --bg: #0c0c0d; --side: #101011; --surface: #151516; --surface2: #1b1b1d; --surface3: #252527; --line: #2a2a2d; --line2: #3a3a3e;
  --text: #f4ead8; --muted: #9b9488; --faint: #6f6a62;
  --accent: #e8a05a; --accent2: #c9773a; --accent-ink: #1b1209; --danger: #d4674f;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --sans: 'Inter', system-ui, sans-serif; --display: 'Outfit', 'Inter', system-ui, sans-serif; --cond: 'Oswald', 'Outfit', sans-serif;
  --side-w: 256px; --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
html[data-theme=light] {
  --bg: #f3eee5; --side: #ece6da; --surface: #fbf8f2; --surface2: #f1ebdf; --surface3: #e4dccc; --line: #ddd4c2; --line2: #c9bea8;
  --text: #211b13; --muted: #6f6759; --faint: #968c7a; --accent: #c9773a; --accent2: #a85f27; --accent-ink: #fff8ec;
  --shadow: 0 10px 28px rgba(60,40,10,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -.01em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--line2); }
.modal-box ::-webkit-scrollbar-thumb { border-color: var(--surface); }

/* ===== Layout ===== */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; z-index: 5; }
.col { min-width: 0; }
main { padding: 8px 32px 56px; max-width: 1480px; margin: 0 auto; }

/* Logo */
.logo { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 20px 24px; }
.logo-disc { position: relative; display: block; width: 76px; height: 76px; border-radius: 50%; flex: none;
  background: conic-gradient(from 20deg, transparent 0 20%, rgba(255,255,255,.14) 25%, transparent 30% 70%, rgba(255,255,255,.1) 75%, transparent 80%),
              repeating-radial-gradient(circle, #19191b 0 1.5px, #0a0a0b 1.5px 3px);
  box-shadow: 0 0 0 1px var(--line2), 0 8px 22px rgba(0,0,0,.45); }
.logo-disc::before { content: ''; position: absolute; inset: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent), var(--accent2)); }
.logo-disc::after { content: ''; position: absolute; inset: 35px; border-radius: 50%; background: var(--side); }
.logo-text { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.lt-main { font: 500 24px/1 var(--cond); letter-spacing: .3em; margin-right: -.3em; color: var(--text); }
.lt-top { display: flex; align-items: center; gap: 9px; width: 100%; font: 400 11px/1 var(--cond); letter-spacing: .5em; color: var(--muted); }
.lt-top::after { margin-left: -.5em; }
.lt-top::before, .lt-top::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-logo { display: none; }

/* Navigation */
.nav { display: flex; flex-direction: column; gap: 4px; padding: 6px 16px; }
.nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.nav a span { white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface2); }
.nav a.active::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a.active svg { color: var(--accent); }
.nav a svg .fill { fill: currentColor; }
.nav em { margin-left: auto; font: 500 11px var(--sans); font-style: normal; color: var(--faint); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; min-width: 22px; text-align: center; }
.nav a.active em { color: var(--accent); }

/* Dekoratives Vinyl-Element */
.side-deco { position: relative; flex: 1; min-height: 140px; margin-top: 12px; border-top: 1px solid var(--line); overflow: hidden; }
.deco-record { position: absolute; left: -92px; bottom: -118px; width: 360px; height: 360px; border-radius: 50%; cursor: grab; touch-action: none; user-select: none; will-change: transform;
  background: conic-gradient(from 20deg, transparent 0 10%, rgba(255,255,255,.1) 14%, transparent 20% 56%, rgba(255,255,255,.08) 60%, transparent 66%),
    repeating-radial-gradient(circle, #1b1b1c 0 2px, #0a0a0a 2px 5px);
  box-shadow: 0 0 0 2px #000, 0 20px 50px rgba(0,0,0,.6); }
.deco-record::before { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 5px #0a0a0a; }
.deco-record::after { content: ''; position: absolute; inset: 47%; border-radius: 50%; background: var(--side); }
html[data-theme=light] .deco-record { opacity: .92; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 14px; padding: 18px 32px 14px; max-width: 1480px; margin: 0 auto; background: linear-gradient(var(--bg) 70%, transparent); }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--accent); color: var(--accent); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 14px var(--sans); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.topbar #add { margin-left: auto; }
.iconbtn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: none; border: 1px solid transparent; color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; }
.iconbtn:hover, .iconbtn[aria-expanded=true] { background: var(--surface); border-color: var(--line); }
.dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.dot.num { top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; font: 700 10px/1 var(--sans); color: var(--accent-ink); }
.dot[hidden] { display: none; }
.pop { max-width: calc(100vw - 24px); }
.pop-row.new { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.pop-row.new b::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.pop-wrap { position: relative; }
.profile { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; height: 44px; border-radius: 999px; background: none; border: 1px solid transparent; cursor: pointer; color: var(--muted); }
.profile:hover, .profile[aria-expanded=true] { background: var(--surface); border-color: var(--line); }
.profile img, .avatar-fallback { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: var(--accent2); color: var(--accent-ink); font: 600 15px var(--display); }
.profile svg { width: 16px; height: 16px; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; animation: pop .16s ease-out; }
#authpop { width: 220px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.pop-title { padding: 8px 10px 6px; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pop-user { padding: 8px 10px 10px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-user span { color: var(--muted); font-size: 12px; }
.pop-link { display: block; padding: 9px 10px; border-radius: 8px; color: var(--muted); }
.pop-link:hover { background: var(--surface2); color: var(--text); }
.pop-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; background: none; border: 0; text-align: left; cursor: pointer; }
.pop-row:hover { background: var(--surface2); }
.pr-cover { width: 40px; height: 40px; border-radius: 8px; background: var(--surface3) center / cover no-repeat; flex: none; }
.pr-t { min-width: 0; }
.pr-t b, .pr-t i { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.pr-t b { font-weight: 500; }
.pr-t i { color: var(--muted); font-size: 12px; }

/* ===== Buttons (ein Stil) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 14px var(--sans); cursor: pointer; transition: transform .15s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; stroke-width: 2; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.light { background: var(--text); border-color: var(--text); color: #17120b; height: 50px; padding: 0 24px 0 18px; }
html[data-theme=light] .btn.light { background: #f4ead8; border-color: #f4ead8; }
.btn.light:hover { background: #fff; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.big { height: 52px; padding: 0 30px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.mini-disc { width: 18px; height: 18px; border-radius: 50%; background: #17120b; position: relative; }
.mini-disc::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #f4ead8; }
.icon { background: var(--surface2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; font: 600 13px var(--sans); transition: background .2s, border-color .2s; }
.icon:hover { background: var(--surface3); border-color: var(--line2); }

/* ===== Gemeinsame Bausteine ===== */
.view.enter { animation: view-in .35s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 0 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; }
.sub { margin: 4px 0 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; min-width: 0; }
.block { margin-top: 36px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-head h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.panel .block-head h2 { font-size: 17px; }
.more { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--text); font-size: 13px; cursor: pointer; transition: color .2s; }
.more svg { width: 15px; height: 15px; }
.more:hover { color: var(--accent); }
.dotc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.note { color: var(--muted); padding: 18px 0; text-align: center; margin: 0; }
.note.wide { grid-column: 1 / -1; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 340px; background: radial-gradient(900px 420px at 82% 40%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 70%), linear-gradient(135deg, #17120e, #0b0908); border: 1px solid var(--line); display: flex; align-items: center; isolation: isolate; color: #f4ead8; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10,8,7,.55) 0, rgba(10,8,7,.2) 40%, transparent 70%); }
.hero-copy { position: relative; z-index: 3; padding: 40px 44px; max-width: 640px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.02em; }
.lead { margin: 16px 0 26px; max-width: 420px; color: #d8cdb9; font-size: 16px; }


/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.stats.five { grid-template-columns: repeat(5, 1fr); margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s; }
.stat:hover { border-color: var(--line2); transform: translateY(-2px); }
.stat > svg { width: 30px; height: 30px; color: var(--accent); }
.stat b { display: block; font: 600 24px/1.1 var(--display); }
.stat span { color: var(--muted); font-size: 13px; }
.stat.solo { padding: 16px 20px; }

/* Albumkacheln (Home) */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.album { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.album-cover { display: block; aspect-ratio: 1; border-radius: 12px; background: var(--surface2) center / cover no-repeat; border: 1px solid var(--line); margin-bottom: 12px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.album-cover.nocover, .card.nocover .cover, .hl-cover:not([style]), .mini-cover:not([style]), .pr-cover:not([style]) { display: grid; place-items: center; color: var(--faint); }
.album-cover.nocover::after, .card.nocover .cover::after { content: '♪'; font-size: 40px; }
.album:hover .album-cover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line2); }
.album b { font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album span:not(.album-cover), .album i { color: var(--muted); font-size: 13px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album i { font-size: 12px; color: var(--faint); }

.trio { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 16px; margin-top: 36px; }

/* Donut + Legende */
.genre-box { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.donut circle { transition: stroke-dasharray .6s; }
.d-num { font: 600 24px var(--display); fill: var(--text); stroke: none; }
.d-lbl { font: 400 9px var(--sans); fill: var(--muted); stroke: none; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 130px; display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend span { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend b { font-weight: 500; }

/* Highlight */
.hl { display: flex; gap: 20px; align-items: center; }
.hl-cover { width: 44%; max-width: 190px; aspect-ratio: 1; flex: none; border-radius: 12px; background: var(--surface2) center / cover no-repeat; border: 1px solid var(--line); }
.hl-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hl-body em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 13px; }
.hl-body h3 { font-size: 21px; line-height: 1.2; }
.hl-body > span { color: var(--muted); margin-bottom: 12px; }

/* Wunschliste (Mini) */
.mini-list { display: grid; gap: 4px; }
.mini { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: 12px; background: none; border: 0; text-align: left; cursor: pointer; min-width: 0; transition: background .2s; }
.mini:hover { background: var(--surface2); }
.mini-cover { width: 48px; height: 48px; border-radius: 8px; background: var(--surface3) center / cover no-repeat; flex: none; }
.mini span:last-child { min-width: 0; }
.mini b, .mini i { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: normal; }
.mini b { font-weight: 600; font-size: 13.5px; }
.mini i { color: var(--muted); font-size: 12.5px; }

/* ===== Liste ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); border-radius: 999px; padding: 5px 14px; font: 500 13px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip.active { color: var(--accent-ink); background: var(--text); border-color: var(--text); }
.chip.none:not(.active) { opacity: .4; }
.chip.static { cursor: default; padding: 2px 9px; font-size: 11px; background: var(--surface2); border-color: transparent; }
.chip.static::before { width: 6px; height: 6px; }
.chip.static:hover { color: var(--muted); border-color: transparent; }
.filter-note { display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 18px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.filter-note b { color: var(--text); font-weight: 500; }
.filter-note button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--surface3); cursor: pointer; font-size: 11px; }
.filter-note button:hover { background: var(--accent); color: var(--accent-ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: var(--shadow); }
.card[data-drag] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.card[data-drag] img { -webkit-user-drag: none; pointer-events: none; }
body.no-select, body.no-select * { user-select: none !important; cursor: grabbing !important; }
.card.dragging { position: relative; z-index: 50; transition: none !important; opacity: .92; box-shadow: 0 22px 48px rgba(0,0,0,.5) !important; border-color: var(--accent) !important; }
.card.dropping { transition: box-shadow .25s, border-color .25s !important; }
.cover { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--surface2) center / cover no-repeat; overflow: hidden; }
.actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.card:hover .actions, .card:focus-within .actions { opacity: 1; transform: none; }
.icon.act { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: rgba(12,12,13,.82); color: #f4ead8; border-color: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.icon.act svg { width: 17px; height: 17px; pointer-events: none; }
.icon.act:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon.act.danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.info { padding: 12px 4px 4px; min-width: 0; }
.info h3 { font: 600 15px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .artist { color: var(--muted); margin: 1px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: wrap; gap: 0; color: var(--faint); font-size: 12px; margin-bottom: 10px; }
.meta span + span::before { content: '·'; margin: 0 7px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.empty { text-align: center; color: var(--muted); padding: 70px 0; font-size: 15px; }

/* Sortier-Menü */
.dd { position: relative; }
.dd-btn { min-width: 220px; text-align: left; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 0 40px 0 20px; height: 44px; font: 500 14px var(--sans); cursor: pointer; position: relative; transition: border-color .2s; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--line2); }
.dd-btn::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.dd.open .dd-btn::after { transform: translateY(-25%) rotate(225deg); }
.dd-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 100%; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.dd.open .dd-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.dd-list button { display: block; width: 100%; text-align: left; white-space: nowrap; background: none; border: 0; border-radius: 10px; padding: 9px 12px 9px 32px; cursor: pointer; position: relative; color: var(--muted); }
.dd-list button:hover, .dd-list button:focus-visible { background: var(--surface2); color: var(--text); outline: none; }
.dd-list button.sel { color: var(--text); }
.dd-list button.sel::before { content: '✓'; position: absolute; left: 11px; color: var(--accent); }

/* ===== Entdecken ===== */
.arcade-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.arcade { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; transition: transform .25s, border-color .25s; }
.arcade:hover { transform: translateY(-3px); border-color: var(--accent); }
.arcade b { font: 600 17px var(--display); }
.arcade > span:last-child { color: var(--muted); font-size: 13px; }
.a-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface2); color: var(--accent); margin-bottom: 12px; }

/* ===== Statistiken ===== */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 32px; align-items: center; gap: 14px; font-size: 13px; }
.bars li > span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars div { height: 8px; border-radius: 99px; background: var(--surface3); overflow: hidden; }
.bars i { display: block; height: 100%; border-radius: 99px; background: var(--accent); animation: grow .7s ease-out backwards; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bars b { text-align: right; font-weight: 500; }

/* ===== Einstellungen ===== */
.settings { display: grid; gap: 16px; max-width: 760px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.row b { display: block; font-weight: 600; }
.row span { color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.seg button.active { background: var(--accent); color: var(--accent-ink); }

/* ===== Fenster ===== */
.modal { position: fixed; inset: 0; background: rgba(5,5,6,.78); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; z-index: 50; }
.modal:not([hidden]) { animation: mfade .22s ease-out; }
.modal:not([hidden]) :is(.modal-box, .roll-box) { animation: mpop .35s cubic-bezier(.2,.85,.25,1); }
.modal.closing { animation: mfadeout .2s ease-in forwards; }
.modal.closing :is(.modal-box, .roll-box) { animation: mpopout .2s ease-in forwards; }
@keyframes mfade { from { opacity: 0; } }
@keyframes mpop { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes mfadeout { to { opacity: 0; } }
@keyframes mpopout { to { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-box { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); width: min(900px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.modal-head { display: flex; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.modal-head input { flex: 1; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font: 14px var(--sans); outline: 0; }
.modal-head input:focus { border-color: var(--accent); }
.modal-head .icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.results { overflow-y: auto; padding: 6px 16px 16px; }
.res { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res img, .res .ph { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--surface3); flex: none; }
.res .t { flex: 1; min-width: 0; }
.res .t b { display: block; font-weight: 600; font-size: 15px; }
.res .t span { color: var(--muted); font-size: 12.5px; }
.res .btns { display: flex; gap: 8px; flex: none; }
.dlink { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--accent); }
.dlink:hover { text-decoration: underline; }
.have { font-size: 12.5px; color: var(--accent); padding: 6px 4px; white-space: nowrap; }

/* Detailansicht */
.detail-box { position: relative; width: min(980px, 100%); }
.dclose { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.d-body { --s: 250px; display: grid; grid-template-columns: calc(var(--s) * 1.5) 1fr; gap: 32px; padding: 32px; overflow-y: auto; }
.d-visual { position: relative; width: calc(var(--s) * 1.5); height: var(--s); align-self: start; }
.sleeve { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); z-index: 2; background: var(--surface2) center / cover no-repeat; border-radius: 6px; box-shadow: 8px 8px 30px rgba(0,0,0,.5); }
.sleeve.nocover { display: grid; place-items: center; font-size: 60px; color: var(--faint); }
.sleeve.nocover::after { content: '♪'; }
.record-wrap { position: absolute; left: 0; top: 4px; width: calc(var(--s) - 8px); height: calc(var(--s) - 8px); z-index: 1; animation: slideout 1.1s .25s cubic-bezier(.3,.9,.3,1) forwards; }
@keyframes slideout { to { transform: translateX(calc(var(--s) * .5 + 8px)); } }
.record { width: 100%; height: 100%; border-radius: 50%; position: relative; animation: spin 3.2s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(255,255,255,.18) 12%, transparent 17% 58%, rgba(255,255,255,.12) 62%, transparent 67%), repeating-radial-gradient(circle, #1d1d1d 0 2px, #0a0a0a 2px 4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 0 1px #000; }
.rec-label { position: absolute; inset: 31%; border-radius: 50%; background: var(--accent2) center / cover no-repeat; }
.rec-label::after { content: ''; position: absolute; inset: 44%; border-radius: 50%; background: #0a0a0a; }
.d-info { min-width: 0; padding-right: 30px; }
.d-info h2 { font-size: 30px; line-height: 1.15; }
.d-artist { color: var(--accent); font-weight: 500; margin: 4px 0 20px; font-size: 16px; }
#facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 22px; }
#facts dt { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--faint); padding-top: 3px; }
#facts dd { margin: 0; }
#facts a { color: var(--accent); }
#facts small, .load { color: var(--faint); }
#facts .chip.static { margin-right: 4px; }
#tracks h4 { margin: 16px 0 6px; font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.trk { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.trk .pos, .trk .dur { color: var(--faint); }

/* ===== Spielhalle ===== */
.roll-box { position: relative; width: min(920px, 100%); max-height: 94vh; overflow-y: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 0 24px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.roll-title { margin: 0 0 18px; font-size: 28px; }
.roll-box .dclose { right: 14px; top: 14px; }
.modes { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 16px 20px; }
.modes button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.modes button:hover:not(.active) { color: var(--text); border-color: var(--line2); }
.modes button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stage { min-height: 290px; display: flex; flex-direction: column; justify-content: center; }
.roll-window { position: relative; overflow: hidden; height: 196px; background: var(--bg); border-block: 1px solid var(--line); contain: layout paint; width: 100%; }
.roll-window::before, .roll-window::after { content: ''; position: absolute; top: 0; bottom: 0; width: 18%; z-index: 2; pointer-events: none; }
.roll-window::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.roll-window::after { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.roll-marker { position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.roll-marker::before, .roll-marker::after { content: ''; position: absolute; left: -8px; border: 9px solid transparent; }
.roll-marker::before { top: 0; border-top-color: var(--accent); }
.roll-marker::after { bottom: 0; border-bottom-color: var(--accent); }
.roll-track { position: relative; display: flex; gap: 10px; padding: 10px 0; width: max-content; will-change: transform; }
.rcard { flex: none; width: 140px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: opacity .5s; }
.rcard .rc-cover { width: 140px; height: 140px; background: var(--surface3) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); font-size: 38px; }
.rcard .rc-cover:not([style])::after { content: '♪'; }
.rcard .rc-name { padding: 5px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rcard .rc-bar { height: 3px; background: var(--c, var(--accent)); }
.roll-track.done .rcard:not(.win) { opacity: .3; }
.rcard.win { animation: winpop .45s ease-out; transform: scale(1.06); box-shadow: 0 0 0 2px var(--accent), 0 0 26px color-mix(in srgb, var(--accent) 60%, transparent); }
@keyframes winpop { from { transform: scale(1); } 60% { transform: scale(1.14); } to { transform: scale(1.06); } }
.roll-result { min-height: 112px; padding: 22px 26px 0; }
.roll-result .res-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.roll-result h3 { margin: 4px 0 2px; font-size: 28px; line-height: 1.15; animation: mpop .5s cubic-bezier(.2,.85,.25,1) backwards; }
.roll-result .res-artist { color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.roll-result .btn + .btn { margin-left: 10px; }

/* Slot Maschine */
.slot { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0; }
.slot-body { background: var(--surface2); border: 1px solid var(--line2); border-radius: 18px; padding: 12px 16px 16px; }
.lamps { display: flex; justify-content: space-between; margin: 0 4px 10px; }
.lamps i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: lamp 1s steps(2) infinite; }
.lamps i:nth-child(even) { animation-delay: .5s; }
@keyframes lamp { 50% { opacity: .25; box-shadow: none; } }
.slot.jackpot .lamps i { animation-duration: .25s; }
.slot-reels { position: relative; display: flex; gap: 8px; background: var(--bg); padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.reel { position: relative; width: 150px; height: 232px; overflow: hidden; background: var(--surface); border-radius: 6px; contain: layout paint; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 30px; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.reel-strip { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px 0; will-change: transform; }
.reel .rcard { margin: 0 auto; }
.reel.stopped { box-shadow: inset 0 0 0 2px var(--accent); }
.payline { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: color-mix(in srgb, var(--accent) 65%, transparent); z-index: 3; pointer-events: none; }
.lever { position: relative; flex: none; width: 44px; height: 210px; background: none; border: 0; cursor: pointer; }
.lever-base { position: absolute; left: -10px; top: 84px; width: 34px; height: 52px; border-radius: 0 10px 10px 0; background: var(--surface3); border: 1px solid var(--line2); border-left: 0; }
.lever-arm { position: absolute; left: 14px; top: 20px; width: 10px; height: 86px; margin-left: -5px; border-radius: 6px; background: #8a8a8a; transform-origin: 50% calc(100% - 6px); transition: transform .7s cubic-bezier(.3,1.4,.5,1); }
.lever-ball { position: absolute; left: 50%; top: -26px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--accent); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.lever:hover .lever-ball { filter: brightness(1.12); }
.lever.pull .lever-arm { transform: rotate(158deg); transition: transform .32s ease-in; }

/* Münzwurf */
.coin-setup { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 0 12px; }
.coin-slot { width: 150px; background: var(--surface2); border: 1px dashed var(--line2); border-radius: 14px; padding: 12px; color: var(--text); cursor: pointer; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .2s; }
.coin-slot.filled { border-style: solid; border-color: var(--accent); }
.coin-slot:hover:not(:disabled) { border-color: var(--accent); }
.coin-slot:disabled { cursor: default; }
.cs-cover { width: 96px; height: 96px; border-radius: 50%; background: var(--surface3) center / cover no-repeat; display: grid; place-items: center; font-size: 34px; color: var(--faint); }
.cs-side { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.cs-name { max-width: 126px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-air-wrap { width: 170px; height: 170px; display: grid; place-items: center; perspective: 900px; position: relative; z-index: 4; }
.coin-air { will-change: transform; }
.coin { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; }
.coin-face { position: absolute; inset: 0; border-radius: 50%; border: 7px solid var(--accent); background: var(--surface3) center / cover no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.6); backface-visibility: hidden; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.coin-face.back { transform: rotateX(180deg); }
.coin-tag { margin-bottom: 8px; background: var(--accent); color: var(--accent-ink); font: 700 10px var(--sans); padding: 2px 9px; border-radius: 99px; letter-spacing: .08em; }
.coin.landed { filter: drop-shadow(0 0 16px var(--accent)); }
.coin-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.picker { padding: 0 22px; text-align: left; }
.picker-head { display: flex; gap: 10px; margin-bottom: 10px; }
.picker-head input { flex: 1; height: 34px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font: 14px var(--sans); outline: 0; }
.picker-head input:focus { border-color: var(--accent); }
.plist { max-height: 250px; overflow-y: auto; display: grid; gap: 6px; padding-right: 4px; }
.prow { display: flex; gap: 12px; align-items: center; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--text); cursor: pointer; text-align: left; }
.prow:hover:not(:disabled) { border-color: var(--accent); }
.prow:disabled { opacity: .35; cursor: not-allowed; }
.prow .pr-cover { width: 44px; height: 44px; }
.pr-t i { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .panel:nth-child(3) { grid-column: 1 / -1; }
  .stats.five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); z-index: 40; }
  .logo, .side-deco { display: none; }
  .nav { flex-direction: row; width: 100%; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 2px; justify-content: space-around; }
  .nav a { flex: 1; flex-direction: column; gap: 3px; padding: 8px 2px; font-size: 10.5px; text-align: center; }
  .nav a span { white-space: nowrap; }
  .nav em { display: none; }
  .nav a.active::before { left: 25%; right: 25%; top: -7px; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .mini-logo { display: block; }
  .mini-logo .logo-disc { width: 38px; height: 38px; }
  .mini-logo .logo-disc::before { inset: 12px; } .mini-logo .logo-disc::after { inset: 17px; }
  .topbar { padding: 12px 16px 10px; gap: 10px; }
  #add span { display: none; } #add { padding: 0; width: 44px; }
  main { padding: 4px 16px 100px; }
  .hero { min-height: 300px; align-items: flex-end; }
  .hero::before { background: linear-gradient(0deg, rgba(10,8,7,.97) 8%, rgba(10,8,7,.6) 60%, rgba(10,8,7,.25) 100%); }
  .crate { width: 100%; right: -10%; }
  .hero-copy { padding: 28px 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .d-body { --s: 190px; grid-template-columns: 1fr; padding: 22px 16px; }
  .d-visual { justify-self: center; }
  .d-info { padding-right: 0; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .actions { opacity: 1; transform: none; }
  .res { flex-wrap: wrap; } .res .btns { width: 100%; }
  .stats.five { grid-template-columns: repeat(2, 1fr); }
  .bars li { grid-template-columns: 80px 1fr 28px; }
  .slot { zoom: .62; } .coin-slot { width: 130px; }
  .roll-title, .roll-result h3 { font-size: 22px; }
  .dd, .dd-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .record-wrap { transform: translateX(calc(var(--s) * .5 + 8px)); }
}

/* ===== Preis, Vorbestellung, Formular ===== */
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 1; }
.price, .pre { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.3 var(--sans); backdrop-filter: blur(6px); }
.price { background: rgba(12,12,13,.85); color: #f4ead8; border: 1px solid rgba(255,255,255,.14); }
.pre { background: var(--accent); color: var(--accent-ink); font-size: 11px; letter-spacing: .02em; }
#facts .pre { padding: 2px 10px; }
.form-box { width: min(760px, 100%); }
.modal-head h2 { flex: 1; align-self: center; font-size: 19px; padding-left: 6px; }
.vform { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 22px; overflow-y: auto; }
.f-preview { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--surface2) center / cover no-repeat; border: 1px solid var(--line); color: var(--faint); font-size: 48px; }
.f-fields { display: grid; gap: 14px; min-width: 0; }
.f-row { display: grid; gap: 6px; min-width: 0; }
.f-row > .seg { justify-self: start; }
.f-row > label, .f-row > label small { font-size: 12px; font-weight: 500; color: var(--muted); }
.f-row small { color: var(--faint); }
.f-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.f-grid.f-price { grid-template-columns: 1fr auto 1fr; align-items: end; }
.vform input:not([type=checkbox]), .vform select { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font: 14px var(--sans); outline: 0; transition: border-color .2s; }
.vform input:focus, .vform select:focus { border-color: var(--accent); }
.vform input::placeholder { color: var(--faint); }
.check { display: flex; align-items: center; gap: 10px; height: 42px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.f-err { margin: 0; color: var(--danger); font-size: 13px; }
.f-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@media (max-width: 700px) {
  .vform { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .f-cover { max-width: 140px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid.f-price { grid-template-columns: 1fr 1fr; }
  .modal-head .btn { padding: 0 14px; }
}

.deco-record.grabbing { cursor: grabbing; }


.f-up { display: flex; gap: 8px; align-items: center; } .f-up input { flex: 1; min-width: 0; } .f-up .btn { flex: none; white-space: nowrap; }

/* ===== Design-Politur ===== */
/* Hero: Cover-Fächer mit Platte im Hintergrund */
.crate { position: absolute; z-index: 0; right: 0; top: 0; bottom: 0; width: 58%; pointer-events: none; }
.crate:empty { display: none; }
.fan { --s: clamp(130px, 16vw, 220px); position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.fan-c { position: absolute; width: var(--s); aspect-ratio: 1; left: calc(var(--s) / -2); top: calc(var(--s) / -2); border-radius: 10px; background: #222 center / cover no-repeat;
  transform: translateX(calc(var(--k) * var(--s) * .36)) translateY(calc(var(--k) * var(--k) * var(--s) * .02)) rotate(calc(var(--k) * 5deg));
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); animation: fanin .8s calc(var(--n) * 70ms) backwards cubic-bezier(.2,.8,.2,1); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.fan-c::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 40%); }
@keyframes fanin { from { opacity: 0; transform: translateX(0) rotate(0) scale(.8); } }
.hero-copy { padding: 48px 48px; }
.hero h1 { background: linear-gradient(180deg, #fff6e4, #e8cfa0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Kacheln & Karten weicher */
.stat { background: linear-gradient(180deg, var(--surface), var(--surface2)); border-radius: 18px; }
.stat > svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.card, .panel { border-radius: 18px; }
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.4); border-color: var(--line2); }
.card .cover, .album-cover { box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.btn:not(.ghost):not(.light) { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.side { background: linear-gradient(180deg, var(--side), color-mix(in srgb, var(--side) 85%, #000)); }
.side nav a.active, #nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
@media (max-width: 900px) { .crate { width: 100%; opacity: .55; } .hero-copy { padding: 32px 24px; } }

/* ===== Weihnachtsmodus ===== */
html[data-xmas] {
  --bg: #0a1812; --side: #0d1f17; --surface: #12281e; --surface2: #173225; --surface3: #1f4030; --line: #24493a; --line2: #34664f;
  --text: #fdf3e3; --muted: #a9c3b3; --faint: #76917f;
  --accent: #e0474c; --accent2: #b32a31; --accent-ink: #fff; --danger: #ff8a6b;
}
html[data-xmas][data-theme=light] {
  --bg: #f7f0e6; --side: #efe5d6; --surface: #fffaf2; --surface2: #f4ebdc; --surface3: #e8dcc6; --line: #e0d2ba; --line2: #cbb99a;
  --text: #1f2a22; --muted: #5c6d61; --faint: #8a998d;
  --accent: #c4262e; --accent2: #1f6b43; --accent-ink: #fff;
}
html[data-xmas] body { background: var(--bg) radial-gradient(ellipse at 50% -10%, rgba(224,71,76,.12), transparent 55%); }
html[data-xmas] h1, html[data-xmas] .lt-main { text-shadow: 0 0 18px rgba(224,71,76,.25); }
html[data-xmas] .nav a.active::before { left: 5px; top: 13px; bottom: 13px; width: 3px; border-radius: 3px; background: #e0474c; }
html[data-xmas] .nav a.active svg { color: #e0474c; }
html[data-xmas] .logo-disc::before { background: radial-gradient(circle at 35% 30%, #e0474c, #1f6b43); }
#xmas-btn[aria-pressed=true] { background: var(--surface); border-color: var(--line); }
#xmas-btn[aria-pressed=true] svg { color: #3fb36f; }

.xmas-snow, .xmas-lights { display: none; }
html[data-xmas] .xmas-snow { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.xmas-snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8);
  animation: xfall linear infinite, xsway ease-in-out infinite alternate; }
@keyframes xfall { to { transform: translateY(105vh); } }
@keyframes xsway { from { margin-left: -14px; } to { margin-left: 14px; } }

html[data-xmas] .xmas-lights { display: flex; position: fixed; top: 0; left: 0; right: 0; height: 22px; pointer-events: none; z-index: 61; overflow-x: clip; overflow-y: visible; justify-content: space-between; }
.xmas-lights::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: #1c3a2a; }
.xmas-lights i { position: relative; flex: none; width: 10px; height: 14px; margin-top: 3px; border-radius: 50% 50% 55% 55%; animation: xtwinkle 2s ease-in-out infinite; }
.xmas-lights i[data-c="0"] { background: #e0474c; box-shadow: 0 3px 14px 3px rgba(224,71,76,.55); }
.xmas-lights i[data-c="1"] { background: #f2c14e; box-shadow: 0 3px 14px 3px rgba(242,193,78,.55); }
.xmas-lights i[data-c="2"] { background: #3fb36f; box-shadow: 0 3px 14px 3px rgba(63,179,111,.55); }
.xmas-lights i[data-c="3"] { background: #4aa3ff; box-shadow: 0 3px 14px 3px rgba(74,163,255,.55); }
@keyframes xtwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.xmas-hat { display: none; }
html[data-xmas] .xmas-hat { display: block; position: absolute; z-index: 2; top: -22px; left: 6px; width: 54px; height: 40px; transform: rotate(-14deg); pointer-events: none;
  background: linear-gradient(#e0474c, #b32a31); clip-path: polygon(8% 100%, 92% 100%, 78% 45%, 62% 0, 40% 8%, 18% 55%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
html[data-xmas] .xmas-hat::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 11px; background: #fff; border-radius: 6px; }
html[data-xmas] .logo-disc { overflow: visible; }

@media (prefers-reduced-motion: reduce) { .xmas-snow i, .xmas-lights i { animation: none; } }
html[data-xmas] .side nav a.active, html[data-xmas] #nav a.active { box-shadow: none; }
.hero h1 { padding-bottom: .14em; margin-bottom: -.14em; }
html[data-xmas] .nav a.active em { color: #e0474c; border-color: rgba(224,71,76,.5); }
html[data-xmas] .nav a.active em { background: #e0474c; border-color: #e0474c; color: #fff; font-weight: 600; }

/* ===== Freunde & fremde Sammlungen ===== */
.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: none; background: var(--accent2); color: var(--accent-ink); font: 600 15px var(--display); }
.av.sm { width: 24px; height: 24px; font-size: 11px; }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

.follow-side { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 4px; max-height: 32vh; overflow: auto; border-top: 1px solid var(--line); margin-top: 8px; }
.follow-side[hidden] { display: none; }
.fs-title { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 4px 10px 6px; }
.fs-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.fs-row span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-row:hover, .fs-row.active { color: var(--text); background: var(--surface); }

.profilebar { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.profilebar[hidden] { display: none; }
.pb-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pb-t span { color: var(--muted); font-size: 12px; }
.pb-t b { font: 600 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.people-body { display: flex; flex-direction: column; gap: 18px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.person { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface2); }
.pc-foot { display: flex; align-items: center; gap: 10px; }
.pc-foot .btn { margin-left: auto; flex: none; white-space: nowrap; }
.pc-covers { display: flex; gap: 4px; min-height: 60px; }
.pc-covers i { flex: 1; aspect-ratio: 1; border-radius: 6px; background: var(--surface3) center / cover; }
.pc-covers i.empty { max-width: none; background: var(--surface3); aspect-ratio: auto; height: 72px; }
.pc-id { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pc-id > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pc-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-id em { font-style: normal; color: var(--muted); font-size: 12px; }
.search.sm { height: 38px; max-width: 260px; flex: 1; margin-left: auto; }

.denied { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 72px 20px; max-width: 520px; margin: 0 auto; }
.denied .logo-disc { width: 84px; height: 84px; margin-bottom: 8px; }
.denied p { margin: 0; color: var(--muted); }
.denied-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.denied-actions:empty { display: none; }

@media (max-width: 860px) {
  .follow-side { display: none; }
  .profilebar { flex-wrap: wrap; }
  .pb-actions { margin-left: 0; width: 100%; justify-content: flex-start; }
}

/* Name & Adresse ändern */
.name-form { flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.nf-fields { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; min-width: 0; }
.nf-fields label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.nf-fields b { font-size: 13px; }
.nf-fields input { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface2); color: var(--text); font: 14px var(--sans); outline: 0; width: 100%; }
.nf-fields input:focus { border-color: var(--accent); }
.nf-slug { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface2); padding-left: 14px; color: var(--muted); }
.nf-slug:focus-within { border-color: var(--accent); }
.nf-slug i { font-style: normal; font-family: ui-monospace, Consolas, monospace; }
.nf-slug input { border: 0; background: none; padding-left: 2px; }
.nf-msg { flex-basis: 100%; margin: 0; font-size: 13px; }
.nf-msg.ok { color: #3fb36f; } .nf-msg.err { color: var(--danger); }
.settings .row + .row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Admin */
.nav a.alert em { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.alist { display: flex; flex-direction: column; gap: 10px; }
.arow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface2); flex-wrap: wrap; }
.ar-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.ar-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-t span { color: var(--muted); font-size: 12px; word-break: break-all; }
.ar-act { display: flex; gap: 8px; }
.block-head h2 small { color: var(--faint); font: 500 13px var(--sans); margin-left: 6px; }

/* Gleiche Maße in Standard und Weihnachten (Seitenleiste, Zähler), nur auf großen Bildschirmen */
@media (min-width: 901px) {
  .nav a { padding-right: 18px; }
  .nav em { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; min-width: 28px; height: 22px; padding: 0; border-radius: 999px; line-height: 22px; font-size: 11px; font-variant-numeric: tabular-nums; overflow: hidden; flex: none; }
}
