/* ============================================================
   Musikbewertung.de – Stylesheet (Dark / Gold)
   ============================================================ */

/* ============================================================
   Schriftart „Inter“ – lokal selbst gehostet (DSGVO, kein Google-CDN).
   Inter v20 wird als variable Schrift ausgeliefert: eine WOFF2-Datei je
   Unicode-Subset deckt den gesamten Gewichtsbereich 400–800 ab.
   Bezugsquelle der woff2-Dateien: https://fonts.google.com/specimen/Inter
   Dateien liegen unter assets/fonts/.
   ============================================================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: local('Inter'), local('Inter-Regular'),
         url('../fonts/inter-latin.woff2') format('woff2');
    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: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: local('Inter'), local('Inter-Regular'),
         url('../fonts/inter-latin-ext.woff2') format('woff2');
    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 {
    --bg:            #0c0c0f;
    --bg-2:          #121216;
    --panel:         #16161b;
    --panel-2:       #1c1c22;
    --panel-hover:   #212129;
    --border:        #26262e;
    --text:          #e9e9ee;
    --text-dim:      #9a9aa6;
    --text-mute:     #6b6b76;
    --gold:          #e0b04a;
    --gold-2:        #d49b34;
    --gold-soft:     rgba(224, 176, 74, .14);
    /* Stimmungs-Chips (bewusst anderer Akzent als Gold-Genre) */
    --mood:          #a78bfa;
    --mood-soft:     rgba(167, 139, 250, .14);
    --mood-border:   rgba(167, 139, 250, .38);
    --green:         #1db954;
    --red:           #e23b3b;
    --radius:        12px;
    --shadow:        0 8px 28px rgba(0, 0, 0, .38);
    --maxw:          1280px;
}

/* ============================================================
   LIGHT MODE – vollständige helle Palette (Umschalter, Cookie "theme")
   Überschreibt alle :root-Variablen; Gold bleibt durchgehender Akzent.
   ============================================================ */
html[data-theme="light"] {
    --bg:            #f6f6f8;
    --bg-2:          #ffffff;
    --panel:         #ffffff;
    --panel-2:       #f2f2f5;
    --panel-hover:   #ececef;
    --border:        #e2e2e8;
    --text:          #1a1a1f;
    --text-dim:      #55555f;
    --text-mute:     #8a8a94;
    --gold:          #b8860b;
    --gold-2:        #9c6f08;
    --gold-soft:     rgba(184, 134, 11, .12);
    --mood:          #6d28d9;
    --mood-soft:     rgba(109, 40, 217, .10);
    --mood-border:   rgba(109, 40, 217, .32);
    --green:         #128a3e;
    --red:           #cf2f2f;
    --shadow:        0 8px 24px rgba(20, 20, 30, .12);
}
/* Heller Seitenhintergrund (statt dunklem Radial-Glow) */
html[data-theme="light"] body {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(184,134,11,.07), transparent 60%),
        var(--bg);
}
/* Header transluzent hell halten */
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, .9); }
/* Hero: heller Verlauf, dunkler lesbarer Text */
html[data-theme="light"] .hero {
    background:
        linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.72) 45%, rgba(255,255,255,.2) 100%),
        radial-gradient(120% 120% at 85% 20%, #c9b3f0, #efe9fb 60%);
}
html[data-theme="light"] .hero h1 { color: #1a1a1f; }
html[data-theme="light"] .hero p  { color: #44444d; }
/* Leere Sterne auf hellem Grund sichtbarer */
html[data-theme="light"] .stars-empty { color: #c9c9d2; }
/* Nur leere Sterne grau – .on muss Gold behalten (höhere Spezifität sonst überschreibt). */
html[data-theme="light"] .rate-stars .rstar:not(.on),
html[data-theme="light"] .pl-rate-stars .rstar:not(.on) { color: #c9c9d2; }
/* Plattform-Pills: kräftigerer Text-Kontrast auf Weiß */
html[data-theme="light"] .pill.brand-pill.spotify { background: #1DB954; }
html[data-theme="light"] .pill.brand-pill.apple   { background: #FA243C; }
html[data-theme="light"] .pill.brand-pill.youtube { background: #FF0000; }
html[data-theme="light"] .pill.brand-pill.tiktok  { background: #111111; }
/* Flash-Meldungen im Light-Mode klar lesbar */
html[data-theme="light"] .flash-success { color: #0e6b30; }
html[data-theme="light"] .flash-error   { color: #b02525; }
/* Cover-Platzhalterflächen etwas heller */
html[data-theme="light"] .cover,
html[data-theme="light"] .card-cover,
html[data-theme="light"] .sotd-cover,
html[data-theme="light"] .detail-cover,
html[data-theme="light"] .table-cover { background: linear-gradient(135deg,#e7e2f5,#f2f0fa); }
html[data-theme="light"] .card-cover .cover-fallback,
html[data-theme="light"] .cover .cover-fallback,
html[data-theme="light"] .sotd-cover .cover-fallback,
html[data-theme="light"] .detail-cover .cover-fallback { color: rgba(60,50,90,.4); }
/* Google-Button: heller Rand sichtbar halten */
html[data-theme="light"] .btn-google { border-color: #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

/* Accessibility: Skip-Link, Fokus, Screenreader-only */
.skip-link {
    position: absolute; left: 12px; top: 0; z-index: 10000;
    transform: translateY(-120%);
    background: var(--gold); color: #111; font-weight: 700;
    padding: 10px 14px; border-radius: 0 0 8px 8px;
    transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 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;
}
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(224,176,74,.06), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(12, 12, 15, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { color: var(--gold); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand-name b { color: var(--gold); font-weight: 800; }
.brand-tag { font-size: 9px; letter-spacing: 2.5px; color: var(--text-mute); margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 8px;
    color: var(--text-dim); font-weight: 500; font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--panel); }
.nav-link.active { color: var(--gold); border-bottom-color: var(--gold); border-radius: 8px 8px 0 0; }
.nav-ico { font-size: 13px; }

/* Hamburger-Umschalter: nur auf schmalen Screens sichtbar (siehe Media-Query) */
.nav-toggle {
    display: none; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 12px; flex: 0 0 auto;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text); border-radius: 10px; cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
}
.nav-toggle:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.nav-toggle .nav-toggle-ico { display: flex; }
.nav-toggle-label { font-size: 12px; font-weight: 600; letter-spacing: .3px; line-height: 1; }

.search-box { position: relative; margin-left: auto; }
.search-box input {
    width: 260px; max-width: 34vw;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 40px 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.search-box > button[type="submit"] {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    padding: 6px; display: flex;
    z-index: 2;
}
.search-box > button[type="submit"]:hover { color: var(--gold); }

/* Header-Suche: Autocomplete */
.search-ac {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 6px);
    z-index: 80;
    margin: 0; padding: 6px 0;
    list-style: none;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    max-height: min(70vh, 420px);
    overflow-y: auto;
}
.search-ac[hidden] { display: none !important; }
.search-ac-group {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.search-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.search-ac-item:hover,
.search-ac-item.is-active {
    background: var(--gold-soft);
}
.search-ac-cover {
    width: 34px; height: 34px;
    border-radius: 7px;
    object-fit: cover;
    background: var(--panel-2);
    border: 1px solid var(--border);
    flex: 0 0 auto;
}
.search-ac-cover.is-empty {
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-mute);
}
.search-ac-ico {
    width: 34px; height: 34px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-2);
    border: 1px solid var(--border);
    flex: 0 0 auto;
    font-size: 15px;
}
.search-ac-text { min-width: 0; flex: 1; }
.search-ac-title {
    display: block;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-ac-sub {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-ac-empty,
.search-ac-more {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-dim);
}
.search-ac-more {
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.search-ac-more-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--gold);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.search-ac-more-btn:hover,
.search-ac-more-btn.is-active { background: var(--gold-soft); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.user-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); padding: 5px 10px; border-radius: 8px; transition: all .15s; text-decoration: none; }
.user-chip:hover { color: var(--gold); background: var(--panel); }
.user-chip-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--panel-2); flex: 0 0 auto; }
.user-chip-ico { font-size: 15px; line-height: 1; }
/* Admin + Logout optisch identisch (auch als <button>) */
.header-admin-btn,
.header-logout-btn {
    box-sizing: border-box;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 12px !important;
    min-height: 32px;
    letter-spacing: 0;
}

/* ---------------- Theme-Umschalter ---------------- */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 auto;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text-dim); border-radius: 10px; cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.theme-toggle .theme-ico { display: block; }
/* Dark (Default): Sonne sichtbar (= "zu Hell wechseln"), Mond aus */
.theme-ico-moon { display: none; }
html[data-theme="light"] .theme-ico-sun  { display: none; }
html[data-theme="light"] .theme-ico-moon { display: block; }

/* Profil-Umschalter (zwei Optionen) */
.theme-switch { display: inline-flex; gap: 6px; background: var(--panel-2);
    border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.theme-switch .theme-opt {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border-radius: 7px; cursor: pointer;
    background: transparent; border: none; color: var(--text-dim);
    font-size: 13px; font-weight: 600; font-family: inherit;
    transition: color .15s, background .15s;
}
.theme-switch .theme-opt:hover { color: var(--text); }
/* Aktive Option je Theme markieren */
.theme-switch .theme-opt-dark  { color: var(--gold); background: var(--gold-soft); }
.theme-switch .theme-opt-light { color: var(--text-dim); background: transparent; }
html[data-theme="light"] .theme-switch .theme-opt-dark  { color: var(--text-dim); background: transparent; }
html[data-theme="light"] .theme-switch .theme-opt-light { color: var(--gold); background: var(--gold-soft); }

.badge {
    display: inline-block; min-width: 18px; text-align: center;
    background: var(--red); color: #fff; border-radius: 10px;
    font-size: 11px; padding: 1px 6px; margin-left: 2px;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 8px;
    font-weight: 600; font-size: 13px; cursor: pointer;
    border: 1px solid transparent; transition: all .15s; white-space: nowrap;
}
.btn-gold    { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1205; }
.btn-gold:hover { filter: brightness(1.07); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost   { background: var(--panel); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--panel-hover); }
.btn-block   { width: 100%; justify-content: center; }
.btn-sm      { padding: 6px 12px; font-size: 12px; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-green   { background: var(--green); color: #fff; }

/* ---------------- Flash ---------------- */
.flash-wrap { max-width: var(--maxw); margin: 16px auto 0; padding: 0 20px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.flash-success { background: rgba(29,185,84,.12); border-color: var(--green); color: #7be0a0; }
.flash-error   { background: rgba(226,59,59,.12); border-color: var(--red); color: #f0a0a0; }
.flash-info    { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* ---------------- Layout ---------------- */
.site-main { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 60px; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative; overflow: hidden;
    border-radius: 24px; margin-bottom: 24px;
    min-height: 230px; display: flex; align-items: center;
    border: 1px solid var(--border);
    background:
        linear-gradient(90deg, rgba(10,10,12,.96) 0%, rgba(10,10,12,.7) 45%, rgba(10,10,12,.15) 100%),
        radial-gradient(120% 120% at 85% 20%, #3a1e6b, #10101a 60%);
}
.hero-content { padding: 40px 44px; max-width: 560px; }
.hero h1 { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: .5px; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero p { color: var(--text-dim); margin: 14px 0 22px; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { border-radius: 999px; padding-left: 18px; padding-right: 18px; }

.layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

/* Startseite: Filter-Panel (mobil einklappbar) */
.home-filters-toggle {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.home-filters-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: default;
    margin-bottom: 14px;
}
.home-filters-summary .panel-title { margin-bottom: 0; }
.home-filters-chevron {
    display: none;
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1;
    transition: transform .15s ease;
}
.home-filters-body { display: block; }
.home-filters-mobile-head { display: none; }
/* Mobil-Leiste unter dem Zähler – Desktop ausgeblendet */
.home-filters-bar { display: none; }

/* ---------------- Panels ---------------- */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.panel + .panel { margin-top: 18px; }
.panel-title {
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-mute); margin-bottom: 14px; font-weight: 600;
}

/* Sidebar filter */
.filter-group { margin-bottom: 20px; }
.filter-label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.filter-hub-link {
    display: inline-block; margin-top: 8px;
    font-size: 12px; font-weight: 600; color: var(--gold);
}
.filter-hub-link:hover { text-decoration: underline; }
.sort-list { display: flex; flex-direction: column; gap: 2px; }
.sort-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 8px;
    color: var(--text-dim); font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
.sort-item:hover { background: var(--panel-2); color: var(--text); }
.sort-item.active { background: var(--gold-soft); color: var(--gold); }
.sort-item .ico { width: 16px; text-align: center; }

.select {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px; border-radius: 8px; font-size: 14px;
    appearance: none; cursor: pointer;
}
.select:focus { outline: none; border-color: var(--gold); }

/* ---------------- Section header ---------------- */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}
.section-head h2 {
    display: flex; align-items: center; gap: 9px;
    font-size: 17px; letter-spacing: .3px;
}
.section-head h2 .ico { color: var(--gold); }
.section-head-meta {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.home-filter-jump { display: none; }
.home-discover-jump { display: none; }
.link-all { font-size: 12px; color: var(--text-dim); border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 20px; }
.link-all:hover { color: var(--gold); border-color: var(--gold); }

/* ---------------- Song list rows ---------------- */
.song-list { display: flex; flex-direction: column; gap: 10px; }
.song-row {
    display: grid;
    /* Cover | Info+Links | Bewertung | Aktionen
       Links sitzen bewusst unter Titel/Artist (Spalte 2), damit Pills nichts überdecken. */
    grid-template-columns: 64px minmax(0, 1fr) 136px auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 6px;
    min-height: 104px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: background .15s, border-color .15s;
}
.song-row:hover { background: var(--panel-hover); border-color: #34343e; }
.song-row > .cover-cell {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
}
.song-row > .song-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}
.song-row > .song-links {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
}
.song-row > .song-rating {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
}
.song-row > .row-actions {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
}

.cover-cell { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.cover {
    position: relative; width: 64px; height: 64px;
    border-radius: 8px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, #2a2340, #171720);
    display: flex; align-items: center; justify-content: center;
}
.cover-cell .cover { width: 100%; height: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .cover-fallback { font-size: 20px; font-weight: 800; color: rgba(255,255,255,.5); }
.cover .play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.35); opacity: 0; transition: opacity .15s; color: #fff;
}
.cover:hover .play { opacity: 1; }
.cover-play-btn {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    margin: 0; padding: 0; border: 0; border-radius: 8px;
    background: rgba(0,0,0,.28); color: #fff; cursor: pointer;
    opacity: 0; transition: opacity .15s, background .15s;
}
.cover-cell:hover .cover-play-btn,
.cover-play-btn:focus-visible,
.cover-play-btn.is-active,
.song-row.is-listening .cover-play-btn { opacity: 1; }
.cover-play-btn:hover,
.cover-play-btn.is-active { background: rgba(0,0,0,.45); }
.play-badge {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gold); color: #1a1205; display: flex; align-items: center;
    justify-content: center; font-size: 12px; font-weight: 700;
}
/* Mobil: kein Play auf dem Cover – „Anhören“-Pill reicht */
@media (max-width: 760px) {
    .song-row .cover-play-btn,
    .feed-song .cover-play-btn {
        display: none;
    }
}

.song-info { min-width: 0; }
.song-title {
    font-size: 16px; font-weight: 700; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.song-title a:hover { color: var(--gold); }
.song-artist { font-size: 13px; color: var(--gold); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.verified { color: #3ea6ff; }
.song-meta { font-size: 12px; color: var(--text-mute); margin-top: 3px; }

/* Feste Spaltenbreite kommt aus dem Grid (152px) → Sterne stehen sauber untereinander. */
.song-rating { text-align: center; min-width: 0; }
.stars { position: relative; display: inline-block; font-size: 16px; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.stars-empty { display: block; color: #3a3a44; white-space: nowrap; }
.stars-full { position: absolute; left: 0; top: 0; color: var(--gold); overflow: hidden; white-space: nowrap; }
.score { font-size: 18px; font-weight: 800; margin-top: 4px; }
.score small { color: var(--text-mute); font-weight: 600; font-size: 12px; }
.rating-count { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

.song-links {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    min-width: 0;
}
.song-row > .song-links .pill {
    flex: 0 0 auto;
}
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text-dim);
    background: transparent; font: inherit; cursor: pointer; text-decoration: none;
    line-height: 1.2; white-space: nowrap;
}
a.pill { cursor: pointer; }

/* Runde Marken-Icons (Spotify / Apple Music / YouTube) */
.pill.brand-pill {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.pill.brand-pill:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.brand-pill-ico {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
    /* Simple Icons sind schwarz → weiß auf farbigem Kreis */
    filter: brightness(0) invert(1);
}
.pill.brand-pill.spotify { background: #1DB954; }
.pill.brand-pill.apple   { background: #FA243C; }
.pill.brand-pill.youtube { background: #FF0000; }
.pill.brand-pill.tiktok  { background: #010101; }

/* TikTok-Player als Modal (9:16) */
body.tiktok-modal-open { overflow: hidden; }
.tiktok-modal {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tiktok-modal[hidden] { display: none !important; }
.tiktok-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.tiktok-modal-panel {
    position: relative;
    width: min(420px, 100%);
    max-height: min(92vh, 860px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 16px 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.tiktok-modal-x {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.tiktok-modal-panel h3 {
    margin: 0 28px 6px 0;
    font-size: 1.1rem;
}
.tiktok-modal-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.4;
}
.tiktok-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.tiktok-modal-frame {
    margin-top: 8px;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: min(72vh, 640px);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.tiktok-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
@media (max-width: 560px) {
    .tiktok-modal { padding: 10px; align-items: flex-end; }
    .tiktok-modal-panel {
        width: 100%;
        border-radius: 16px 16px 10px 10px;
        max-height: 94vh;
    }
}

.pill.listen {
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
    background: linear-gradient(180deg, rgba(224, 176, 74, .2), rgba(224, 176, 74, .1));
    color: var(--gold);
    border-color: rgba(224, 176, 74, .55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.pill.listen.is-active,
.pill.listen[aria-expanded="true"] {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1205;
    box-shadow: 0 2px 8px rgba(224, 176, 74, .28);
}
.pill.listen:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1205;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(224, 176, 74, .28);
    filter: none;
}
html[data-theme="light"] .pill.listen {
    background: #fff;
    border-color: rgba(184, 134, 11, .45);
    color: var(--gold-2);
    box-shadow: 0 1px 3px rgba(20, 20, 30, .06);
}
html[data-theme="light"] .pill.listen:hover,
html[data-theme="light"] .pill.listen.is-active,
html[data-theme="light"] .pill.listen[aria-expanded="true"] {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1205;
}

@media (min-width: 761px) {
    .song-row > .song-links {
        flex-wrap: nowrap;
        gap: 6px;
    }
    .song-row > .song-links .pill.brand-pill {
        width: 34px;
        height: 34px;
    }
    .song-row > .song-links .brand-pill-ico {
        width: 16px;
        height: 16px;
    }
}

/* Inline-Hörprobe unter der Song-Zeile (Zwei-Klick Spotify/YouTube) */
.song-listen {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    margin: 4px -2px 0;
    padding-top: 12px;
}
.song-listen-bar { display: block; }
.song-listen-consent {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(36,29,58,.65), rgba(20,20,27,.9));
    border: 1px solid var(--border);
    border-radius: 12px;
}
html[data-theme="light"] .song-listen-consent {
    background: linear-gradient(135deg, rgba(201,179,240,.18), rgba(255,255,255,.95));
}
.song-listen-ico { font-size: 20px; flex-shrink: 0; line-height: 1; }
.song-listen-txt { font-size: 13px; line-height: 1.35; flex: 1; min-width: 160px; color: var(--text-dim); }
.song-listen-txt small { display: block; color: var(--text-mute); margin-top: 2px; }
.song-listen-player { position: relative; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); background: #000; }
.song-listen-player iframe { display: block; width: 100%; border: 0; }
.song-listen-player.is-native {
    padding: 10px 12px 8px;
    background: rgba(255,255,255,.04);
}
.song-listen-player.is-native audio { display: block; width: 100%; margin-top: 28px; }
html[data-theme="light"] .song-listen-player.is-native {
    background: rgba(0,0,0,.03);
}
.song-listen-close-floating {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: rgba(20,20,27,.88) !important;
    backdrop-filter: blur(4px);
}
html[data-theme="light"] .song-listen-close-floating {
    background: rgba(255,255,255,.92) !important;
}
.song-row.is-listening { border-color: rgba(224,176,74,.45); }

.row-menu { color: var(--text-mute); font-size: 20px; padding: 4px 8px; line-height: 1; }
.row-admin-del { margin: 0; }
.row-del-btn { background: none; border: none; color: var(--text-mute); font-size: 17px;
    cursor: pointer; padding: 4px 8px; line-height: 1; border-radius: 6px; transition: all .15s; }
.row-del-btn:hover { color: var(--red); background: rgba(226,59,59,.12); }

/* ---------------- Row-Aktionen (Favorit / Bearbeiten / Löschen) ---------------- */
/* justify-self:end + padding-right sorgen dafür, dass Herz/⋮ nie am Rand abgeschnitten werden. */
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px;
    justify-self: end; padding-right: 2px; }
.row-edit-btn { color: var(--text-mute); font-size: 15px; padding: 4px 6px; line-height: 1;
    border-radius: 6px; text-decoration: none; transition: all .15s; }
.row-edit-btn:hover { color: var(--gold); background: var(--gold-soft); }

/* ---------------- Inline-Rating (Zeilen & Karten) ---------------- */
.logout-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    border: 0;
    background: none;
}

.inline-rate { display: flex; gap: 1px; margin-top: 6px; font-size: 15px; line-height: 1;
    justify-content: center; cursor: pointer; white-space: nowrap; }
.inline-rate .irstar,
.rate-stars .rstar,
.pl-rate-stars .rstar {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: 1;
    color: inherit;
    cursor: pointer;
}
.inline-rate .irstar { color: #3a3a44; transition: color .1s, transform .1s; }
.inline-rate .irstar:hover { transform: scale(1.18); }
.inline-rate .irstar.on { color: var(--gold); }
.inline-rate .irstar:focus-visible,
.rate-stars .rstar:focus-visible,
.pl-rate-stars .rstar:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 2px;
}
html[data-theme="light"] .inline-rate .irstar:not(.on) { color: #c9c9d2; }
.card-rate { margin-top: 8px; display: flex; justify-content: center; }

/* ---------------- Favoriten-Herz ---------------- */
.fav-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
    cursor: pointer; color: var(--text-mute); padding: 4px 6px; border-radius: 6px;
    line-height: 0; transition: color .15s, background .15s, border-color .15s, transform .1s; }
.fav-btn .fav-ico { fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn:hover { color: var(--red); background: rgba(226,59,59,.10); }
.fav-btn.is-fav { color: var(--red); }
.fav-btn.is-fav .fav-ico { fill: currentColor; stroke: currentColor; }
.fav-btn .fav-label { font-size: 13px; font-weight: 600; line-height: 1; }
/* Herz als Overlay auf dem Karten-Cover */
.fav-card { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(0,0,0,.5); color: #fff;
    padding: 5px; border-radius: 50%; }
.fav-card:hover { background: rgba(0,0,0,.68); color: #fff; }
.fav-card.is-fav { color: var(--red); background: rgba(0,0,0,.58); }
/* Detailseite: Herz mit Text als Button-Optik */
.fav-detail { border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; color: var(--text); }
.fav-detail:hover { color: var(--red); border-color: var(--red); background: rgba(226,59,59,.08); }
.fav-detail.is-fav { color: var(--red); border-color: var(--red); background: rgba(226,59,59,.10); }

/* ---------------- Anklickbarer Künstlername ---------------- */
.artist-link { color: inherit; cursor: pointer; text-decoration: none; }
.artist-link:hover { text-decoration: underline; }

/* ---------------- Song grid (newest) ---------------- */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.song-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, border-color .15s;
}
.song-card:hover { transform: translateY(-3px); border-color: #34343e; }
.card-cover { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg,#2a2340,#171720); }
.card-cover-link { display: block; position: absolute; inset: 0; z-index: 0; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover .cover-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800; color: rgba(255,255,255,.4);
}
.card-cover .genre-tag {
    position: absolute; top: 8px; left: 8px; z-index: 1;
    background: rgba(0,0,0,.6); color: var(--gold);
    font-size: 10px; padding: 3px 8px; border-radius: 20px; font-weight: 600;
}
.card-body { padding: 12px; }
.card-title { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title:hover { color: var(--gold); }
.card-artist { font-size: 12px; color: var(--gold); margin-top: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-score { font-weight: 800; font-size: 14px; }
.card-score small { color: var(--text-mute); font-weight: 600; }

/* ---------------- Right sidebar ---------------- */
.stat-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }

/* Kompakte Stats-Leiste (nur mobil sichtbar) */
.home-stats-strip { display: none; }
.stat-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--gold-soft);
    color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.stat-num { font-size: 18px; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: 12px; color: var(--text-mute); }

.sotd-hint {
    margin: -6px 0 12px;
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.35;
}
.sotd-count {
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 2px;
}
.sotd-cover { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10;
    background: linear-gradient(135deg,#2a2340,#171720); margin-bottom: 12px; }
.sotd-cover img { width: 100%; height: 100%; object-fit: cover; }
.sotd-cover .cover-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-size: 40px; font-weight: 800; color: rgba(255,255,255,.35); }
.sotd-title { font-size: 16px; font-weight: 700; }
.sotd-artist { font-size: 13px; color: var(--gold); margin: 2px 0 8px; }
.sotd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; flex-wrap: wrap; }
.sotd-foot .btn { border-radius: 999px; flex-shrink: 0; }

/* „Für dich“-Teaser auf der Startseite */
.foryou-teaser {
    margin: 0 0 22px;
    padding: 14px 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--gold-soft), transparent 70%);
}
.foryou-teaser .section-head { margin-bottom: 4px; }
.foryou-teaser-grid {
    margin-top: 12px;
}
@media (max-width: 720px) {
    .foryou-teaser { padding: 10px; border-radius: 14px; margin-bottom: 14px; }
    .foryou-teaser .sort-hint { margin: 0; font-size: 12px; }
    .foryou-teaser .foryou-teaser-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 8px;
    }
    .foryou-teaser .genre-tag,
    .foryou-teaser .fav-card,
    .foryou-teaser .mood-tags,
    .foryou-teaser .card-rate { display: none; }
    .foryou-teaser .card-body { padding: 7px 8px 8px; }
    .foryou-teaser .card-title { font-size: 12px; }
    .foryou-teaser .card-artist { font-size: 11px; }
    .foryou-teaser .card-foot { margin-top: 6px; }
    .foryou-teaser .card-score { font-size: 12px; }
    .foryou-teaser .stars { font-size: 11px; letter-spacing: 0; }
}

/* ---------------- Empty state ---------------- */
.empty {
    text-align: center; padding: 46px 20px; color: var(--text-mute);
    border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty h3 { color: var(--text-dim); margin-bottom: 6px; }

/* ---------------- Auth / forms ---------------- */
.auth-wrap { max-width: 420px; margin: 30px auto; }
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
    padding: 30px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 22px; margin-bottom: 6px; }
.form-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text); padding: 11px 13px; border-radius: 9px; font-size: 14px; outline: none;
    font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 5px; }
.form-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.form-foot a { color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* "Mit Google"-Button + Trenner */
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 16px; margin-bottom: 4px;
    background: #fff; color: #3c4043; font-weight: 600; font-size: 14px;
    border: 1px solid #dadce0; border-radius: 10px; text-decoration: none;
    transition: box-shadow .15s ease, background .15s ease;
}
.btn-google:hover { background: #f7f8fa; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.btn-google svg { flex: 0 0 auto; }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0; color: var(--text-dim); font-size: 12px; text-transform: uppercase;
    letter-spacing: .5px;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--border);
}

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--text-dim); margin-top: 6px; }

/* ---------------- Profil ---------------- */
.profile-hero {
    position: relative;
    margin: -22px -20px 18px;
    padding: 28px 20px 22px;
    color: #f4f4f7;
    overflow: visible;
    isolation: isolate;
}
.profile-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: #0c0c12;
    background-image:
        linear-gradient(180deg, rgba(8, 8, 12, .28) 0%, rgba(8, 8, 12, .55) 45%, rgba(8, 8, 12, .92) 100%),
        url('../img/profile-hero-dark.png');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    overflow: hidden;
}
html[data-theme="light"] .profile-hero-bg {
    background-color: #f6f6f8;
    background-image:
        linear-gradient(180deg, rgba(10, 10, 14, .42) 0%, rgba(10, 10, 14, .22) 42%, rgba(246, 246, 248, .55) 72%, rgba(246, 246, 248, .96) 100%),
        url('../img/profile-hero-light.png');
    background-position: center 30%;
}
.profile-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 920px;
}
.profile-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.profile-hero .profile-avatar {
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    background: #222;
}
.profile-hero .profile-avatar-fallback {
    color: var(--gold);
    background: #1a1a22;
    font-size: 28px;
}
.profile-hero .profile-identity-text { min-width: 0; }
.profile-hero h1 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.2;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.profile-hero .profile-handle {
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.profile-hero .profile-follow-meta {
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.profile-hero .profile-follow-meta strong {
    color: #fff;
}
.profile-hero a.profile-follow-link:hover,
.profile-hero a.profile-follow-link.is-active {
    color: var(--gold);
}
.profile-hero .tourn-trophy-badge {
    background: rgba(12, 12, 16, .72);
    border-color: rgba(224, 176, 74, .45);
    color: #fff;
}
.profile-hero .profile-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 420px;
}
.profile-hero .profile-head-actions > .follow-form {
    display: flex;
    min-width: 0;
}
.profile-hero .profile-head-actions > .follow-form .btn {
    width: 100%;
}
.profile-hero .profile-btn-follow,
.profile-hero .profile-btn-msg,
.profile-hero .profile-btn-spacer {
    min-height: 44px;
    width: 100%;
}
.profile-hero .profile-btn-follow,
.profile-hero .profile-btn-msg {
    justify-content: center;
    font-weight: 700;
}
.profile-hero .profile-btn-follow.is-following {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a1205;
}
.profile-hero .profile-btn-msg {
    background: #fff;
    border-color: #fff;
    color: #1a1a1f;
}
.profile-hero .profile-btn-msg:hover {
    background: #f2f2f5;
    border-color: #f2f2f5;
    color: #1a1a1f;
}
.profile-hero .profile-btn-spacer { visibility: hidden; pointer-events: none; }
.profile-hero .profile-btn-edit {
    grid-column: 1 / 3;
    justify-content: center;
    min-height: 44px;
    font-weight: 700;
}
.profile-more {
    position: relative;
    flex: 0 0 auto;
    z-index: 5;
}
.profile-hero .profile-btn-more {
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    padding: 0;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
    border-radius: 12px;
}
.profile-hero .profile-btn-more:hover,
.profile-hero .profile-btn-more[aria-expanded="true"] {
    background: rgba(255, 255, 255, .24);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}
.profile-more-panel {
    right: 0;
    left: auto;
    min-width: 200px;
    z-index: 40;
}
html[data-theme="light"] .profile-hero .profile-btn-msg {
    background: #fff;
    border-color: #e2e2e8;
    color: #1a1a1f;
    box-shadow: 0 2px 10px rgba(20, 20, 30, .08);
}
html[data-theme="light"] .profile-hero .profile-btn-more {
    background: #fff;
    border-color: #e2e2e8;
    color: #1a1a1f;
    box-shadow: 0 2px 10px rgba(20, 20, 30, .08);
}
html[data-theme="light"] .profile-hero .profile-btn-more:hover,
html[data-theme="light"] .profile-hero .profile-btn-more[aria-expanded="true"] {
    background: #f2f2f5;
    border-color: #d0d0d8;
    color: #1a1a1f;
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.profile-member-since {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 4px;
    font-size: 13px;
    color: var(--text-dim);
}
.profile-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.profile-card-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
}
.profile-card .profile-bio {
    margin: 0;
    max-width: none;
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
}
.profile-card .profile-links {
    margin-top: 0;
}
.profile-stats-card { padding: 0; overflow: hidden; }
.profile-stats-card .profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
}
.profile-stats-card .pstat {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--border);
    padding: 18px 12px;
    text-align: center;
}
.profile-stats-card .pstat:last-child { border-right: 0; }
.pstat-ico {
    display: block;
    font-size: 18px;
    line-height: 1;
    margin-bottom: 6px;
}
.pstat-num { display: block; font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; }
.pstat-num small { font-size: 13px; color: var(--text-mute); }
.pstat-lbl { display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px; font-weight: 600; }

.btn-share { flex: 0 0 auto; }

/* Profil-Identität (Legacy-/Fallback) */
.profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-identity h1 { margin: 0; }
.profile-identity-text { min-width: 0; }
.profile-handle {
    display: inline-block;
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 14px;
}
.profile-follow-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.3;
}
.profile-follow-meta strong {
    color: var(--text);
    font-weight: 700;
}
.profile-follow-sep { color: var(--text-mute); }
a.profile-follow-link {
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
}
a.profile-follow-link:hover,
a.profile-follow-link.is-active {
    color: var(--gold);
}
a.profile-follow-link:hover strong,
a.profile-follow-link.is-active strong {
    color: var(--gold);
}
.profile-network {
    margin: 8px 0 28px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.profile-network .section-head { margin-top: 0; }
.profile-network-hint {
    margin: -4px 0 12px;
    font-size: 13px;
    color: var(--text-mute);
}
.follow-net-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.follow-net-item {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
}
.follow-net-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.follow-net-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
}
.follow-net-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.follow-net-name {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.follow-net-handle {
    font-size: 12px;
    color: var(--text-mute);
}
.follow-net-user:hover .follow-net-name { color: var(--gold); }
.sort-hint {
    margin: -6px 0 14px;
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.4;
}
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border); background: var(--panel-2); flex: 0 0 auto; }
.profile-avatar-fallback { display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 26px; color: var(--gold); }
.profile-avatar-sm { width: 56px; height: 56px; }
.avatar-edit-current { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.avatar-remove { font-size: 13px; }
@media (max-width: 720px) {
    .profile-stats-card .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profile-stats-card .pstat {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .profile-stats-card .pstat:nth-child(odd) {
        border-right: 1px solid var(--border);
    }
    .profile-stats-card .pstat:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}
@media (max-width: 560px) {
    .profile-hero {
        margin: -14px -12px 14px;
        padding: 22px 14px 18px;
        border-radius: 0 0 18px 18px;
    }
    .profile-hero .profile-avatar {
        width: 88px;
        height: 88px;
    }
    .profile-hero .profile-avatar-fallback { font-size: 24px; }
    .profile-hero h1 { font-size: 1.4rem; }
    .profile-hero .profile-head-actions {
        max-width: none;
        gap: 8px;
    }
    .profile-hero .profile-btn-follow,
    .profile-hero .profile-btn-msg {
        padding: 10px 12px;
        font-size: 13px;
    }
    .profile-card .profile-links {
        flex-direction: column;
        gap: 8px;
    }
    .profile-card .link-pill {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 14px;
    }
    .profile-avatar-sm { width: 56px; height: 56px; }
}
@media (min-width: 721px) {
    .profile-hero {
        border-radius: 0 0 24px 24px;
        padding: 36px 24px 28px;
        min-height: 210px;
    }
    .profile-hero-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
    }
    .profile-hero .profile-head-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: auto;
        max-width: none;
        margin-left: auto;
        grid-template-columns: unset;
    }
    .profile-hero .profile-btn-edit {
        grid-column: auto;
        width: auto;
        min-width: 0;
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .14);
        border-color: rgba(255, 255, 255, .35);
        color: #fff;
    }
    .profile-hero .profile-btn-edit:hover {
        background: rgba(255, 255, 255, .24);
        border-color: rgba(255, 255, 255, .5);
        color: #fff;
    }
    html[data-theme="light"] .profile-hero .profile-btn-edit {
        background: #fff;
        border-color: #e2e2e8;
        color: #1a1a1f;
        box-shadow: 0 2px 10px rgba(20, 20, 30, .08);
    }
    html[data-theme="light"] .profile-hero .profile-btn-edit:hover {
        background: #f2f2f5;
        border-color: #d0d0d8;
        color: #1a1a1f;
    }
    .profile-hero .profile-btn-follow,
    .profile-hero .profile-btn-msg {
        width: auto;
        min-width: 120px;
        border-radius: 999px;
    }
    .profile-hero .profile-btn-more {
        border-radius: 999px;
    }
    .profile-body {
        gap: 16px;
        max-width: 920px;
    }
}
.btn-share .share-ico { display: inline-flex; align-items: center; }
.btn-share.copied { background: var(--gold-soft); }

/* Toast-Bestätigung (z. B. "Link kopiert!") */
.mb-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px);
    background: var(--panel-2); color: var(--text); border: 1px solid var(--gold);
    padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5); z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.mb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mb-toast.mb-toast-error { border-color: var(--red); }

/* Bestätigungs- / Prompt-Dialog (ersetzt alert/confirm/prompt) */
body.mb-dialog-open { overflow: hidden; }
.mb-dialog {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.mb-dialog[hidden] { display: none !important; }
.mb-dialog-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
}
.mb-dialog-panel {
    position: relative; width: min(420px, 100%);
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    padding: 22px 20px 16px; box-shadow: var(--shadow);
}
.mb-dialog-panel h3 { margin: 0 0 8px; font-size: 1.1rem; }
.mb-dialog-msg { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.mb-dialog-input {
    width: 100%; margin: 0 0 14px; background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text); padding: 10px 12px; border-radius: 9px; font: inherit; outline: none;
}
.mb-dialog-input:focus { border-color: var(--gold); }
.mb-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.mb-dialog-actions .btn { min-height: 40px; }

/* Onboarding-Banner */
.onboard {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, var(--gold-soft), transparent 70%);
}
.onboard-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 14px 18px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.onboard-text { flex: 1 1 280px; min-width: 0; }
.onboard-text strong { display: block; margin-bottom: 8px; font-size: 15px; }
.onboard-progress { color: var(--gold); font-weight: 700; }
.onboard-steps {
    list-style: none; margin: 0 0 12px; padding: 0;
    color: var(--text-dim); font-size: 14px; line-height: 1.45;
    display: flex; flex-direction: column; gap: 6px;
}
.onboard-steps li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
}
.onboard-steps li.is-done { opacity: .72; }
.onboard-check {
    display: inline-flex; width: 1.1em; justify-content: center;
    color: var(--gold); font-weight: 700;
}
.onboard-steps li.is-done .onboard-check { color: var(--green, #1db954); }
.onboard-steps a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.onboard-done-label { font-weight: 600; color: var(--text-dim); }
.onboard-hint { font-size: 12px; color: var(--text-mute); }
.onboard-cta { margin-top: 2px; }
.empty .empty-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Song-Launch-Kit (nach Einreichen) */
.launch-kit {
    margin: 0 0 22px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(165deg, var(--gold-soft), var(--panel) 55%);
}
.launch-kit--compact { margin-top: 8px; }
.launch-kit-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 14px;
}
.launch-kit-title { font-size: 1.2rem; margin: 0 0 6px; letter-spacing: .2px; }
.launch-kit-lead { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.launch-kit-song { margin: 10px 0 0; font-size: 14px; }
.launch-kit-badge {
    display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 700; color: var(--gold);
    border: 1px solid rgba(224, 176, 74, .4); background: var(--panel);
}
.launch-progress { margin: 0 0 14px; }
.launch-progress-meta {
    display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px;
}
.launch-progress-bar {
    height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden;
    border: 1px solid var(--border);
}
.launch-progress-bar > span {
    display: block; height: 100%; background: var(--gold); border-radius: 999px;
    transition: width .25s ease;
}
.launch-progress-done { color: var(--green, #1db954) !important; font-weight: 600; }
.launch-link-row {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px;
}
.launch-link-input {
    flex: 1 1 180px; min-width: 0;
    background: var(--panel); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font-size: 13px;
}
.launch-texts { margin-bottom: 14px; }
.launch-text-tabs {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px;
}
.launch-text-tab {
    font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    padding: 6px 10px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--panel); color: var(--text-dim);
}
.launch-text-tab.is-active {
    color: var(--gold); border-color: rgba(224, 176, 74, .5); background: var(--gold-soft);
}
.launch-text-panel { display: none; }
.launch-text-panel.is-active { display: block; }
.launch-text-area {
    width: 100%; resize: vertical; min-height: 88px;
    background: var(--panel); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; line-height: 1.45;
    margin-bottom: 8px;
}
.launch-checklist { margin-bottom: 14px; }
.launch-checks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.launch-checks label {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-dim); cursor: pointer;
}
.launch-checks input { margin-top: 3px; }
.launch-checks a { color: var(--gold); font-weight: 600; }
.launch-kit-actions {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px;
}
.push-soft {
    margin-top: 14px; padding: 12px 14px; border-radius: 12px;
    border: 1px dashed rgba(224, 176, 74, .45); background: var(--panel);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.push-soft-text { flex: 1 1 200px; min-width: 0; }
.push-soft-text strong { display: block; font-size: 14px; }
.push-soft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.push-soft[hidden] { display: none !important; }
@media (max-width: 560px) {
    .launch-kit { padding: 14px; border-radius: 14px; }
    .launch-link-row .btn { flex: 1 1 auto; }
}

/* Bio + Profil bearbeiten */
.profile-bio { margin-top: 12px; color: var(--text-dim); max-width: 640px; line-height: 1.5; }
.profile-edit { margin: 6px 0 22px; background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px; }
.profile-edit > summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.profile-edit > summary::-webkit-details-marker { display: none; }
.profile-edit textarea { min-height: 90px; }
.profile-edit-form { margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.profile-edit-block {
    padding: 14px 14px 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    /* Außen grau, Eingaben heller (hell: weiß auf Grau) */
    background: var(--panel-2);
}
.profile-edit-block .field input,
.profile-edit-block .field textarea,
.profile-edit-block .field select {
    background: var(--panel);
}
/* Dark: Inputs etwas aufgehellt statt dunkler als der Block */
html:not([data-theme="light"]) .profile-edit-block .field input,
html:not([data-theme="light"]) .profile-edit-block .field textarea,
html:not([data-theme="light"]) .profile-edit-block .field select {
    background: var(--panel-hover);
}
.profile-edit-block-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.profile-edit-block-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.4;
}
.profile-edit-sublabel {
    margin: 6px 0 8px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
}
.profile-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Kompakte Listen (Playlists, ausstehende, Bewertungen) */
.profile-list { display: flex; flex-direction: column; gap: 8px; }
.profile-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; color: var(--text); text-decoration: none; }
a.profile-list-item:hover { border-color: var(--gold); }
.pli-title { font-weight: 600; }
.pli-sub, .pli-meta { color: var(--text-dim); font-weight: 400; font-size: 13px; }
.status-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.status-pending { background: var(--gold-soft); color: var(--gold); }
.status-rejected { background: rgba(220,80,80,.15); color: #e06a6a; }

/* Verlinkte Chips (Genre / Einreicher) */
.chip-link { text-decoration: none; transition: border-color .15s, color .15s; }
.chip-link:hover { border-color: var(--gold); color: var(--gold); }

/* Künstler-Links im Profil – farbige Marken-Buttons */
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.link-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 22px;
    font-size: 13px; font-weight: 600; letter-spacing: .2px;
    text-decoration: none; color: #fff; border: 1px solid transparent;
    line-height: 1; white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.link-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .4); filter: brightness(1.08); }

/* Echtes Marken-Icon (Simple Icons, monochrom schwarz) */
.link-ico {
    width: 16px; height: 16px; display: block; flex: 0 0 auto;
    /* Standard: weißes Icon auf farbigem Button */
    filter: brightness(0) invert(1);
}

.link-sp  { background: #1DB954; }
.link-ap  { background: #fa2d48; }
.link-am  { background: #25D1DA; color: #04263a; }
.link-yt  { background: #ff0000; }
.link-sc  { background: #ff5500; }
.link-ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.link-tt  { background: #010101; border-color: #383842; }
.link-fb  { background: #1877F2; }
.link-web { background: var(--gold); color: #1a1200; }

/* Helle Buttons mit dunklem Text -> dunkles (schwarzes) Icon */
.link-am .link-ico,
.link-web .link-ico { filter: brightness(0); }

.link-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
@media (max-width: 560px) { .link-fields { grid-template-columns: 1fr; } }

/* Paginierung */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; justify-content: center; }
.page-btn { min-width: 40px; text-align: center; padding: 9px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--panel); color: var(--text);
    text-decoration: none; font-size: 14px; }
a.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1205; border-color: transparent; font-weight: 700; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-dots { color: var(--text-dim); padding: 0 2px; }

/* ---------------- Song detail ---------------- */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.detail-side { min-width: 0; }
.embed-box {
    margin-top: 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.embed-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    user-select: none;
}
.embed-summary::-webkit-details-marker { display: none; }
.embed-summary:hover { color: var(--text); background: var(--panel-2, rgba(255,255,255,.03)); }
.embed-box[open] .embed-summary {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.embed-chevron {
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
    opacity: .7;
}
.embed-box[open] .embed-chevron { transform: rotate(-135deg); margin-top: 4px; }
.embed-body { padding: 12px 14px 14px; }
.embed-sub { margin: 0 0 12px; font-size: 13px; color: var(--text-mute); line-height: 1.4; }
.embed-preview { margin-bottom: 12px; min-height: 104px; }
.embed-label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.embed-snippet {
    width: 100%;
    min-height: 72px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    line-height: 1.4;
    resize: vertical;
    margin-bottom: 10px;
    color: var(--text-dim);
}
.detail-cover { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1;
    background: linear-gradient(135deg,#2a2340,#171720); position: relative; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-links { margin-top: 14px; }
.detail-fav { margin-top: 12px; }
.detail-side .song-listen {
    margin-top: 12px;
    border-top: none;
    padding-top: 0;
    grid-column: auto;
}
.detail-side.is-listening {
    outline: 1px solid rgba(224,176,74,.35);
    outline-offset: 6px;
    border-radius: 14px;
}
.detail-cover .cover-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-size: 70px; font-weight:800; color: rgba(255,255,255,.35); }
.detail h1 { font-size: 30px; }
.detail-artist { font-size: 16px; color: var(--gold); margin: 6px 0 14px; display:flex; align-items:center; gap:6px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-size: 12px; padding: 5px 12px; border-radius: 20px; background: var(--panel-2);
    border: 1px solid var(--border); color: var(--text-dim); }

/* ---------------- Stimmungs-Chips (mood) ---------------- */
/* Dezente Tags, farblich klar vom goldenen Genre unterschieden. */
.mood-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mood-tag {
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 600; line-height: 1;
    padding: 4px 9px; border-radius: 20px;
    color: var(--mood); background: var(--mood-soft);
    border: 1px solid var(--mood-border); text-decoration: none;
    white-space: nowrap;
}
a.mood-tag:hover { filter: brightness(1.12); }
/* In Listen-Zeilen: eigene Zeile über volle Breite (unter dem Titel), sauberer Umbruch statt Abschneiden. */
.song-row > .mood-tags {
    grid-column: 2 / -1;
    grid-row: 3;
    margin-top: 2px;
}
.song-row > .song-listen {
    grid-row: 4;
}
/* Auf der Detailseite etwas mehr Luft zur Meta-Zeile. */
.detail-meta + .mood-tags { margin-top: -6px; margin-bottom: 18px; }

/* ---------------- Stimmungs-Checkboxen (Formulare) ---------------- */
.mood-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.mood-check {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 7px 14px; border-radius: 20px; font-size: 13px;
    color: var(--text-dim); background: var(--panel-2);
    border: 1px solid var(--border);
    transition: border-color .15s, color .15s, background .15s;
    user-select: none;
}
.mood-check input { width: 15px; height: 15px; margin: 0; flex: 0 0 auto; accent-color: var(--mood); cursor: pointer; }
.mood-check:hover { border-color: var(--mood-border); }
.mood-check.is-checked { color: var(--mood); background: var(--mood-soft); border-color: var(--mood-border); }
.mood-check.disabled { opacity: .45; cursor: not-allowed; }
.mood-check.disabled input { cursor: not-allowed; }
.big-score {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 22px; margin-bottom: 20px;
}
.big-score-main { display: flex; align-items: center; gap: 18px; }
.big-score .num { font-size: 42px; font-weight: 800; color: var(--gold); line-height: 1; }
.big-score .num small { font-size: 16px; color: var(--text-mute); }
.big-score .stars { font-size: 24px; }

/* Ausklappbare Sterne-Verteilung unter dem Durchschnitt */
.score-details { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 6px; }
.score-details-summary {
    display: inline-flex; align-items: center; gap: 8px;
    list-style: none; cursor: pointer; user-select: none;
    color: var(--text-dim); font-size: 13px; font-weight: 600;
    padding: 6px 2px; border-radius: 6px;
}
.score-details-summary::-webkit-details-marker { display: none; }
.score-details-summary::marker { content: ''; }
.score-details-summary:hover { color: var(--gold); }
.score-details-summary:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px;
}
.score-details-chevron {
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-top: -3px;
}
.score-details[open] .score-details-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}
.score-details-body { padding: 4px 0 2px; }
.score-dist-caption {
    margin: 0 0 10px; font-size: 12px; color: var(--text-mute); font-weight: 600;
    letter-spacing: .02em; text-transform: uppercase;
}
.score-dist {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 5px;
}
.score-dist-row {
    display: grid;
    grid-template-columns: 22px 1fr 28px 36px;
    align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-dim);
}
.score-dist-row.is-empty { opacity: .45; }
.score-dist-row.is-mine .score-dist-star { color: var(--gold); font-weight: 800; }
.score-dist-row.is-mine .score-dist-bar { background: var(--gold); }
.score-dist-star {
    font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
    color: var(--text);
}
.score-dist-track {
    display: block; height: 8px; border-radius: 999px;
    background: var(--panel-2, rgba(127,127,127,.12));
    overflow: hidden;
}
.score-dist-bar {
    display: block; height: 100%; width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #c9a14a, var(--gold));
    transition: width .25s ease;
}
.score-dist-count,
.score-dist-pct {
    font-variant-numeric: tabular-nums; font-size: 12px;
    text-align: right; color: var(--text-mute);
}
.score-dist-pct { color: var(--text-dim); }
.score-dist-note {
    margin: 10px 0 0; font-size: 12px; color: var(--text-mute); line-height: 1.4;
}

/* Interactive rating */
.rate-box { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.rate-box h3 { font-size: 15px; margin-bottom: 4px; }
.rate-box .rate-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.rate-stars { display: flex; gap: 4px; font-size: 30px; cursor: pointer; }
.rate-stars .rstar { color: #3a3a44; transition: color .1s, transform .1s; line-height: 1; }
.rate-stars .rstar:hover { transform: scale(1.15); }
.rate-stars .rstar.on { color: var(--gold); }
.rate-value { margin-top: 10px; font-weight: 700; }
.rate-value b { color: var(--gold); font-size: 20px; }

/* ---------------- Admin ---------------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 16px; border-radius: 8px; background: var(--panel);
    border: 1px solid var(--border); color: var(--text-dim); font-weight: 600; font-size: 13px; }
.admin-tabs a.active { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); }
.table { width: 100%; border-collapse: collapse; background: var(--panel);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { color: var(--text-mute); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--panel-2); }
.status-tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.status-pending  { background: rgba(224,176,74,.15); color: var(--gold); }
.status-approved { background: rgba(29,185,84,.15); color: #56d98a; }
.status-rejected { background: rgba(226,59,59,.15); color: #f07070; }
.table-cover { width: 46px; height: 46px; border-radius: 6px; object-fit: cover;
    background: linear-gradient(135deg,#2a2340,#171720); }
.actions-cell { display: flex; gap: 6px; }
.admin-links { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- Checkbox ---------------- */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; color: var(--text-dim); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); }

/* ---------------- Playlists ---------------- */
.privacy-note {
    background: var(--gold-soft); border: 1px solid rgba(224,176,74,.35);
    color: var(--text-dim); border-radius: 10px; padding: 12px 16px;
    font-size: 13px; margin-bottom: 20px;
}
.privacy-note a { color: var(--gold); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.pl-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pl-head h3 { font-size: 16px; }
.pl-desc { color: var(--text-dim); font-size: 13px; margin: 0 0 12px; }
.pl-embed {
    border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, #241d3a, #14141b);
    border: 1px solid var(--border);
}
.pl-embed iframe { display: block; width: 100%; border: 0; }
.pl-consent {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; color: var(--text-dim);
}
.pl-consent-ico { font-size: 22px; flex-shrink: 0; }
.pl-consent-txt { font-size: 13px; line-height: 1.3; flex: 1; min-width: 0; }
.pl-consent-txt small { color: var(--text-mute); display: block; }
.pl-consent .btn { flex-shrink: 0; }
.pl-rating-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pl-score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-score .score { font-size: 15px; font-weight: 800; }
.pl-score .rating-count { font-size: 11px; color: var(--text-mute); }
.pl-rate-stars { display: flex; gap: 2px; font-size: 22px; cursor: pointer; }
.pl-rate-stars .rstar { color: #3a3a44; transition: color .1s, transform .1s; line-height: 1; }
.pl-rate-stars .rstar:hover { transform: scale(1.15); }
.pl-rate-stars .rstar.on { color: var(--gold); }
.pl-rate-label { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pl-foot-right { display: flex; align-items: center; gap: 8px; }
.pl-by { font-size: 12px; color: var(--text-mute); }

/* ---------------- Legal pages ---------------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 28px; margin-bottom: 18px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; color: var(--gold); }
.legal p { color: var(--text-dim); margin: 0 0 12px; line-height: 1.7; }
.legal a { color: var(--gold); }
.legal-updated { color: var(--text-mute); font-size: 13px; margin-top: 24px; }

/* ---------------- So funktioniert’s ---------------- */
.howto {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 20px;
}
.howto-hero { margin-bottom: 36px; }
.howto-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold);
}
.howto-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: .02em;
}
.howto-lead {
    margin: 0 0 20px;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 38em;
}
.howto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.howto-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}
.howto-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.howto-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-soft, rgba(212, 168, 67, .14));
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.howto-body h2 {
    margin: 4px 0 8px;
    font-size: 1.2rem;
    line-height: 1.3;
}
.howto-body p {
    margin: 0 0 12px;
    color: var(--text-dim);
    line-height: 1.65;
}
.howto-body p:last-child { margin-bottom: 0; }
.howto-link {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.howto-link:hover { text-decoration: underline; }
.howto-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}
.howto-tips {
    margin-top: 36px;
    padding-top: 8px;
}
.howto-tips h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}
.howto-tips ul {
    margin: 0;
    padding-left: 1.2em;
    color: var(--text-dim);
    line-height: 1.7;
}
.howto-tips li { margin-bottom: 8px; }
.howto-tips li:last-child { margin-bottom: 0; }
.howto-cta {
    margin-top: 40px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.howto-cta h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}
.howto-cta p {
    margin: 0 0 18px;
    color: var(--text-dim);
}
.howto-cta .howto-actions { justify-content: center; }

@media (max-width: 560px) {
    .howto-step {
        grid-template-columns: 40px 1fr;
        gap: 12px 12px;
        padding: 22px 0;
    }
    .howto-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .howto-body h2 { font-size: 1.1rem; }
}

/* Anker unter dem sticky Header sichtbar halten */
#favorites { scroll-margin-top: 90px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px 20px;
    display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { max-width: 420px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-brand .brand-name b { color: var(--gold); }
.footer-brand p { color: var(--text-mute); font-size: 13px; margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; color: var(--text-mute); font-size: 12px;
    padding: 16px; border-top: 1px solid var(--border); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    .layout { grid-template-columns: 220px minmax(0,1fr); }
    .right-col { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .right-col .panel { margin-top: 0; }
}

/* Tablet / kleiner Desktop */
@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    /* Navigation bleibt sichtbar: kompakte, horizontal scrollbare Leiste */
    .main-nav {
        order: 2; width: 100%; margin-left: 0; gap: 6px;
        overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
        padding-bottom: 2px;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .nav-link { flex: 0 0 auto; padding: 7px 11px; font-size: 13px; border-bottom: none; }
    .nav-link.active { background: var(--gold-soft); color: var(--gold); border-radius: 8px; }
    .nav-ico { font-size: 15px; }
    .search-box { order: 3; margin-left: 0; width: 100%; }
    .search-box input { width: 100%; max-width: none; }
    .search-ac { max-height: min(60vh, 360px); }
    .header-actions { margin-left: auto; }
    .header-inner--guest .header-actions--guest {
        margin-left: 0;
        margin-right: auto;
    }
    /* Eingeloggt bei schmalerem Desktop: eine kompakte Aktionszeile */
    .header-inner:not(.header-inner--guest) .header-actions {
        gap: 8px;
    }
    .header-inner:not(.header-inner--guest) .user-chip-name {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .layout { grid-template-columns: 1fr; gap: 16px; }
    .left-col { order: 1; }
    .center-col { order: 2; }
    .right-col { order: 3; grid-template-columns: 1fr 1fr; }

    /*
     * Startseite mobil: Zähler → Filtern-Leiste → Filter-Panel → Songs → Rechts
     * (center-col mit display:contents, damit die Reihenfolge greift)
     */
    .layout--home {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .layout--home .center-col { display: contents; }
    .layout--home .home-stats-strip { order: 1; }
    .layout--foryou .home-stats-strip,
    .layout--foryou .home-discover-jump { display: none; }
    .layout--foryou { gap: 12px; }
    .layout--foryou .center-main .section-head { margin-top: 0; }
    .layout--foryou .sort-hint { margin: 0 0 10px; font-size: 12px; }
    .layout--foryou .empty { padding: 22px 14px; }
    .layout--home .home-filters-bar { order: 2; }
    .layout--home .home-discover-jump { order: 2; }
    .layout--home .left-col { order: 3; width: 100%; }
    .layout--home .center-main { order: 4; width: 100%; min-width: 0; }
    .layout--home .right-col {
        order: 5;
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .layout--home .right-col .panel { min-width: 0; }
    .detail { grid-template-columns: 1fr; }
    .detail-cover { max-width: 280px; margin: 0 auto; }
    .hero { min-height: 0; margin-bottom: 14px; }
    .hero-content { padding: 20px 18px; }
    .hero h1 { font-size: 24px; }
    .hero p { display: none; } /* weniger Text vor den Songs */

    /* Startseite: Filter-Panel nur wenn aufgeklappt */
    .layout--home .home-filters-summary { display: none !important; }
    .layout--home .left-col:not(.is-open):not(:has(.home-filters-toggle:checked)) { display: none; }
    .layout--home .home-filters-body { display: none; }
    .layout--home .home-filters-toggle:checked ~ .home-filters-body,
    .layout--home .left-col.is-open .home-filters-body { display: block; }
    .layout--home .home-filters-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
    }
    .layout--home .home-filters-mobile-head .panel-title { margin-bottom: 0; }
    .layout--home .home-filters-close {
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-dim);
        background: var(--panel-2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 6px 10px;
        cursor: pointer;
    }

    /* Sichtbare Aufklapp-Leiste unter dem Zähler */
    .layout--home .home-filters-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        margin: 0;
        padding: 12px 14px;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        color: var(--text);
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 12px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        text-align: left;
    }
    .layout--home .home-filters-bar:hover,
    .layout--home .home-filters-bar[aria-expanded="true"] {
        border-color: rgba(224, 176, 74, .55);
        background: linear-gradient(180deg, var(--gold-soft), var(--panel));
    }
    .home-filters-bar-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .home-filters-bar-ico { font-size: 15px; line-height: 1; }
    .home-filters-bar-chevron {
        color: var(--text-mute);
        font-size: 14px;
        line-height: 1;
        transition: transform .15s ease;
    }
    .layout--home .home-filters-bar[aria-expanded="true"] .home-filters-bar-chevron {
        transform: rotate(180deg);
        color: var(--gold);
    }

    /* Sidebar-Statistik ausblenden – kompakte Leiste über den Songs */
    .home-stats-panel { display: none; }
    .home-stats-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin: 0;
        padding: 8px;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 12px;
    }
    .home-stats-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        padding: 6px 2px;
        border-radius: 8px;
        background: var(--panel-2);
        text-align: center;
    }
    .home-stats-num {
        font-size: 14px;
        font-weight: 800;
        line-height: 1.15;
        color: var(--text);
        font-variant-numeric: tabular-nums;
    }
    .home-stats-lbl {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .02em;
        color: var(--text-mute);
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    /* Doppelte „Neueste Songs“-Sektion mobil sparen */
    .home-newest { display: none; }
    /* Kleiner Zusatz-Button entfällt – Leiste unter dem Zähler reicht */
    .layout--home .home-filter-jump { display: none !important; }

    /* Sprung zu Song des Tages / Top der Woche – direkt unter der Filter-Leiste */
    .layout--home .home-discover-jump {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        min-width: 0;
        margin: 0;
    }
    .home-discover-jump a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        color: var(--text);
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }
    .home-discover-jump a:only-child {
        grid-column: 1 / -1;
    }
    .home-discover-jump a:hover,
    .home-discover-jump a:focus-visible {
        color: var(--gold);
        border-color: rgba(224, 176, 74, .55);
        background: linear-gradient(180deg, var(--gold-soft), var(--panel));
    }
}

/* Anker-Ziele unter sticky Header (Onboarding, Filter, Songs) */
#songs,
#genres,
#song-des-tages,
#top-der-woche,
#profil-bearbeiten {
    scroll-margin-top: 84px;
}

/* Mobile: Hamburger-Navigation + gestapelte Song-Zeilen */
@media (max-width: 760px) {
    /* Menü-Button sichtbar; horizontale Nav wird zum aufklappbaren Panel */
    .nav-toggle { display: inline-flex; }
    .main-nav {
        /* order:2 (aus 860er-Query) => Panel erscheint direkt unter der Topbar, über der Suche */
        width: 100%; margin-left: 0; margin-top: 2px;
        flex-direction: column; align-items: stretch; gap: 4px;
        overflow: visible;
        padding: 8px;
        background: var(--panel-2);
        border: 1px solid var(--border);
        border-radius: 12px;
    }
    .main-nav:not(.is-open) { display: none; }
    .nav-link {
        width: 100%; padding: 12px 14px; font-size: 15px;
        border-radius: 8px; border-bottom: none;
    }
    .nav-link.active { background: var(--gold-soft); color: var(--gold); border-radius: 8px; }

    /* Gäste: Theme + Login links neben dem Logo, Menü rechts */
    .header-inner--guest .brand { order: 1; }
    .header-inner--guest .header-actions--guest {
        order: 2;
        margin-left: 0;
        margin-right: auto;
        gap: 8px;
    }
    .header-inner--guest .nav-toggle {
        order: 3;
        margin-left: auto;
    }
    .header-inner--guest .main-nav { order: 4; }
    .header-inner--guest .search-box { order: 5; }

    /*
     * Eingeloggt mobil:
     * 1) Logo + Menü
     * 2) volle Aktionszeile: Icons links | Admin + Avatar + Logout rechts
     * 3) Nav / Suche
     */
    .header-inner:not(.header-inner--guest) .brand { order: 1; }
    .header-inner:not(.header-inner--guest) .nav-toggle {
        order: 2;
        margin-left: auto;
    }
    .header-inner:not(.header-inner--guest) .header-actions {
        order: 3;
        width: 100%;
        max-width: none;
        margin-left: 0;
        padding: 2px 0;
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    .header-inner:not(.header-inner--guest) .header-tools {
        gap: 6px;
        min-width: 0;
    }
    .header-inner:not(.header-inner--guest) .user-menu {
        gap: 6px;
        margin-left: auto;
    }
    .header-inner:not(.header-inner--guest) .user-chip {
        padding: 3px;
    }
    .header-inner:not(.header-inner--guest) .user-chip-name {
        display: none; /* Avatar reicht mobil */
    }
    .header-inner:not(.header-inner--guest) .header-admin-btn,
    .header-inner:not(.header-inner--guest) .header-logout-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-height: 34px;
    }
    .header-inner:not(.header-inner--guest) .theme-toggle,
    .header-inner:not(.header-inner--guest) .msg-nav {
        width: 36px;
        height: 36px;
    }
    .header-inner:not(.header-inner--guest) .main-nav { order: 4; }
    .header-inner:not(.header-inner--guest) .search-box { order: 5; }

    /* Song-Zeilen flexibel stapeln (statt starrem Grid) */
    .song-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; min-height: 0; }
    .cover-cell { order: 1; width: 54px; height: 54px; }
    .cover { width: 54px; height: 54px; }
    .song-info { order: 2; flex: 1; min-width: 0; }
    .song-title { font-size: 15px; }
    .row-actions { order: 3; margin-left: auto; justify-self: auto; padding-right: 0; }
    .song-rating { order: 4; width: auto; text-align: left; min-width: 0; }
    .song-rating .score { display: inline-block; margin: 0 8px 0 0; }
    .song-rating .rating-count { display: inline-block; }
    .song-links { order: 5; display: flex; width: 100%; gap: 8px; flex-wrap: wrap; align-items: center; }
    .song-links .pill.listen { flex: 1 1 auto; justify-content: center; min-width: 110px; }
    .song-links .pill.brand-pill { flex: 0 0 auto; min-width: 36px; width: 38px; height: 38px; }
    .song-row > .mood-tags { order: 6; flex-basis: 100%; margin-top: 0; }
    .song-listen { order: 7; flex-basis: 100%; width: 100%; margin-top: 2px; }

    /* Angenehm große Touch-Targets für die Aktionen */
    .row-actions .fav-btn, .row-menu, .row-del-btn, .row-edit-btn {
        min-width: 40px; min-height: 40px;
        display: inline-flex; align-items: center; justify-content: center;
    }
}

/* Handy */
@media (max-width: 560px) {
    .site-main { padding: 14px 12px 40px; }
    .header-inner { padding: 10px 12px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 16px; }

    .right-col { grid-template-columns: 1fr; }

    /* (Song-Zeilen-Stapelung wird im 760px-Block behandelt) */

    /* Community-Compose: "Song anhängen" mobil voll sichtbar & bedienbar
       (Desktop-Layout flex:1 + min-width:180px bricht auf schmalen Screens; hier gestapelt). */
    .feed-compose-song { gap: 8px; }
    .song-attach-input { font-size: 16px; }
    .pcomment-form { flex-wrap: wrap; }
    .pcomment-form .btn { width: 100%; min-height: 44px; }
    .pcomment-input-wrap { width: 100%; flex: 1 1 100%; }
    .mention-ac { max-width: calc(100vw - 16px); }

    /* Neueste-Grid: 2 Spalten */
    .song-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Playlists: 1 Spalte */
    .pl-grid { grid-template-columns: 1fr; }

    /* Bewertungssterne kompakter */
    .rate-stars { font-size: 26px; }
    .pl-rate-stars { font-size: 20px; }
    .pl-rating-row { gap: 10px; }
    .pl-rate-label { margin-left: 0; width: 100%; }

    /* Hero */
    .hero h1 { font-size: 21px; }
    .hero p { font-size: 14px; }
    .hero-actions { gap: 8px; }
    .hero-actions .btn { flex: 1; justify-content: center; }

    /* Tabellen horizontal scrollbar machen */
    .table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Song-Detail Sterne */
    .big-score { padding: 14px 16px; }
    .big-score-main { flex-wrap: wrap; gap: 10px; }
    .big-score .num { font-size: 34px; }
    .score-dist-row { grid-template-columns: 20px 1fr 24px 32px; gap: 6px; }
    .score-dist-pct { font-size: 11px; }

    .page-head h1 { font-size: 22px; }
}

/* Sehr schmale Geräte */
@media (max-width: 380px) {
    .song-grid { grid-template-columns: 1fr; }
    .rate-stars { font-size: 22px; gap: 2px; }
}

/* ============================================================
 *  Hinweise "eigener Song/Playlist" (Selbstbewertung deaktiviert)
 * ============================================================ */
.rate-own-note,
.pl-own-note {
    color: var(--text-mute);
    font-size: 13px;
    background: var(--panel-2);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 6px;
}

/* ============================================================
 *  Rezensionen (Text-Reviews)
 * ============================================================ */
.review-form-wrap { margin-bottom: 22px; }

.review-form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.review-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.review-form textarea {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
    min-height: 90px;
}
.review-form textarea:focus { outline: none; border-color: var(--gold); }
.review-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.review-form-foot .hint { color: var(--text-mute); font-size: 12px; }

.review-login-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-dim);
}

.review-empty { color: var(--text-mute); padding: 8px 2px; }

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.review-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    border: 1px solid var(--border);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-avatar-fallback {
    font-weight: 800;
    font-size: 15px;
    color: var(--gold);
}
.review-body { flex: 1 1 auto; min-width: 0; }
.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.review-name { font-weight: 700; color: var(--text); }
.review-name:hover { color: var(--gold); }
.review-rating { display: inline-flex; align-items: center; gap: 6px; }
.review-rating .stars { font-size: 15px; }
.review-score { color: var(--gold); font-size: 12px; font-weight: 700; }
.review-date { color: var(--text-mute); font-size: 12px; margin-left: auto; }
.review-text { color: var(--text-dim); line-height: 1.5; word-wrap: break-word; }

.review-del { margin: 0; flex: 0 0 auto; }
.review-del-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-mute);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.review-del-btn:hover { color: #ff6b6b; border-color: #ff6b6b; }

@media (max-width: 640px) {
    .review-date { margin-left: 0; width: 100%; }
    .review-card { padding: 12px; }
}

/* ============================================================
 *  Benachrichtigungs-Einstellungen (Profil-Formular)
 * ============================================================ */
.notif-prefs {
    display: grid;
    gap: 8px;
}
.notif-pref-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1.35;
}
.notif-pref-item input {
    margin-top: 3px;
    accent-color: var(--gold);
}

/* ============================================================
 *  Statistiken (aufklappbar, eigenes Profil)
 * ============================================================ */
.artist-stats {
    margin: 6px 0 28px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.artist-stats-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .15s ease;
}
.artist-stats-summary::-webkit-details-marker { display: none; }
.artist-stats-summary:hover { background: var(--panel-2, rgba(255,255,255,.03)); }
.artist-stats-summary-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
}
.artist-stats-ico { font-size: 18px; line-height: 1; }
.artist-stats-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}
.artist-stats-teaser {
    font-size: 13px;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.artist-stats-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-mute);
    border-bottom: 2px solid var(--text-mute);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-right: 4px;
}
.artist-stats[open] .artist-stats-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.artist-stats-body {
    padding: 0 16px 18px;
    border-top: 1px solid var(--border);
    animation: artistStatsIn .22s ease;
}
@keyframes artistStatsIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.artist-stats-intro {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.45;
}
.dash-block { margin-top: 18px; }
.dash-block-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 10px;
}
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.dash-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-stat {
    background: var(--panel-2, rgba(255,255,255,.03));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}
.dash-stat-accent {
    background: linear-gradient(180deg, var(--gold-soft), transparent 120%);
    border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
}
.dash-stat-ico {
    font-size: 16px;
    line-height: 1;
    margin-bottom: 6px;
    opacity: .9;
}
.dash-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.dash-stat-lbl {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-mute);
}
.dash-stat-sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-dim);
}
.dash-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border));
    background: linear-gradient(135deg, var(--gold-soft), transparent 70%);
}
.dash-highlight-ico { font-size: 22px; line-height: 1; }
.dash-highlight-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.dash-highlight-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}
.dash-highlight-meta {
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-dim);
}
.dash-songs {
    display: grid;
    gap: 10px;
}
.dash-song {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--panel-2, rgba(255,255,255,.03));
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
}
.dash-song:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
}
.dash-song-cover {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dash-song-cover .cover-fallback {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}
.dash-song-body { flex: 1 1 auto; min-width: 0; }
.dash-song-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-song-meta {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 2px;
}
.dash-song-avg { color: var(--gold); font-weight: 700; }
.dash-dist {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 28px;
    margin-top: 8px;
}
.dash-dist-lg {
    height: auto;
    align-items: stretch;
    gap: 4px;
    padding: 10px 8px 8px;
    background: var(--panel-2, rgba(255,255,255,.03));
    border: 1px solid var(--border);
    border-radius: 12px;
}
.dash-dist-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.dash-dist-track {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 48px;
}
.dash-dist-bar {
    display: block;
    width: 100%;
    max-width: 16px;
    height: var(--h, 0%);
    min-height: 2px;
    background: var(--gold);
    opacity: .55;
    border-radius: 3px 3px 0 0;
}
.dash-dist:not(.dash-dist-lg) .dash-dist-bar {
    flex: 1 1 0;
    max-width: none;
    align-self: flex-end;
}
.dash-dist-lg .dash-dist-col:nth-child(n+8) .dash-dist-bar,
.dash-dist:not(.dash-dist-lg) .dash-dist-bar:nth-child(n+8) { opacity: .95; }
.dash-dist-label {
    font-size: 10px;
    color: var(--text-mute);
    line-height: 1;
}
.dash-dist-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
    min-height: 12px;
}
.dash-review {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.35;
}
.dash-review span {
    font-style: normal;
    color: var(--text-mute);
}
@media (max-width: 900px) {
    .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-stats-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .artist-stats-teaser { display: none; }
    .dash-stat-num { font-size: 18px; }
    .dash-dist-count { display: none; }
}

/* ============================================================
 *  Konto & Datenschutz (DSGVO-Selfservice im Profil)
 * ============================================================ */
.account-privacy {
    display: grid;
    gap: 14px;
}
.ap-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}
.ap-row.ap-danger { border-color: rgba(226, 59, 59, .4); }
.ap-text { flex: 1 1 260px; min-width: 220px; }
.ap-text h3 { font-size: 16px; margin-bottom: 4px; color: var(--text); }
.ap-text p { color: var(--text-dim); font-size: 13px; margin: 0; }

.ap-delete { flex: 0 0 auto; }
.ap-delete > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.ap-delete > summary::-webkit-details-marker { display: none; }
.ap-delete-form {
    margin-top: 14px;
    background: var(--panel-2);
    border: 1px solid rgba(226, 59, 59, .35);
    border-radius: 10px;
    padding: 14px;
    min-width: min(320px, 100%);
}
.ap-delete-form .field { margin-bottom: 6px; }
.ap-delete-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.ap-delete-form input[type="password"],
.ap-delete-form input[type="text"] {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}
.ap-delete-form input:focus { outline: none; border-color: var(--gold); }
.ap-delete-form .check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Danger-Button (Konto löschen) – konsistent mit btn-danger anderswo */
.btn-danger {
    background: var(--red);
    border: 1px solid var(--red);
    color: #fff;
}
.btn-danger:hover { filter: brightness(1.06); }

@media (max-width: 640px) {
    .ap-row { flex-direction: column; }
    .ap-delete, .ap-row form { width: 100%; }
    .ap-delete > summary, .ap-row .btn { width: 100%; text-align: center; }
}

/* ============================================================
 *  Melden / Moderation (Report-Funktion)
 * ============================================================ */
.report-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-mute);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    line-height: 1;
}
.report-link:hover { color: var(--red); text-decoration: underline; }
.report-link.reported { color: var(--green); cursor: default; text-decoration: none; }
.report-link .report-ico { font-size: 13px; line-height: 1; }

.song-report-row { margin-top: 14px; }
.review-foot { margin-top: 8px; }
.review-foot .report-link { margin-left: -4px; }

/* Admin: Report-Liste */
.report-reason {
    color: var(--text-dim);
    font-size: 13px;
    max-width: 320px;
    word-wrap: break-word;
}
.report-target-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gold);
    background: var(--gold-soft);
    border-radius: 6px;
    padding: 2px 7px;
}

/* ============================================================
 *  Nachrichten-Symbol in der Navigation (mit Ungelesen-Badge)
 * ============================================================ */
.msg-nav {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 auto;
    background: var(--panel); border: 1px solid var(--border);
    color: var(--text-dim); border-radius: 10px;
    transition: color .15s, background .15s, border-color .15s;
}
.msg-nav:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); }
.msg-nav-ico { display: flex; }
.msg-nav-badge {
    position: absolute; top: -6px; right: -6px;
    margin: 0; min-width: 16px; padding: 0 5px;
    font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px var(--bg);
}
.msg-nav-badge[hidden] { display: none; }

/* ============================================================
 *  Community-Feed (Pinnwand)
 * ============================================================ */
.feed-compose {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.feed-compose textarea {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
    resize: vertical;
    min-height: 72px;
}
.feed-compose textarea:focus { outline: none; border-color: var(--gold); }
.feed-compose .char-count {
    margin-top: 4px;
    margin-bottom: 2px;
    text-align: right;
    font-size: 12px;
    color: var(--text-mute);
}

/* Kompakte Werkzeugleiste: Bild · Song · Umfrage */
.feed-compose-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.compose-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s, border-color .15s, background .15s;
}
.compose-tool:hover {
    color: var(--gold);
    border-color: rgba(224, 176, 74, .45);
    background: var(--gold-soft);
}
.compose-tool.is-active,
.compose-tool[aria-expanded="true"] {
    color: var(--gold);
    border-color: rgba(224, 176, 74, .55);
    background: var(--gold-soft);
}
.compose-tool-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 15px;
    line-height: 1;
}
.compose-tool-label { line-height: 1; }
.compose-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.compose-image-block { margin-top: 10px; }
.compose-image-block:not(:has([data-post-image-preview]:not([hidden]))) {
    margin-top: 0;
}

.feed-compose-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 12px; flex-wrap: wrap;
}
.feed-compose-foot .hint { color: var(--text-mute); font-size: 12px; }

.post-image-preview {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.post-image-preview[hidden] { display: none !important; }
.post-image-preview img,
.post-edit-image-thumb {
    max-width: min(100%, 220px);
    max-height: 160px;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
    background: var(--panel-2);
}
.post-image {
    margin: 12px 0 4px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--panel-2);
}
.post-image-open {
    display: block;
    cursor: zoom-in;
}
.post-image img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

/* Community-Bild Lightbox */
body.post-lightbox-open { overflow: hidden; }
.post-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.post-lightbox[hidden] { display: none !important; }
.post-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
}
.post-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-lightbox-panel img {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
    background: #0c0c0f;
}
.post-lightbox-x {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 12, 15, .72);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.post-lightbox-x:hover { background: rgba(12, 12, 15, .92); }
.post-edit-image {
    margin: 10px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-edit-image-current {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.post-edit-image-remove {
    font-size: 13px;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.post-edit-image-label {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-list { display: flex; flex-direction: column; gap: 16px; }

.post-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.post-head { display: flex; align-items: center; gap: 12px; }
.post-avatar {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--border); font-weight: 700;
    color: var(--text-dim);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-head-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.post-name { font-weight: 700; color: var(--text); }
.post-name:hover { color: var(--gold); }
.post-time { font-size: 12px; color: var(--text-mute); }
.post-del { margin-left: auto; }
.post-del-btn, .pcomment-del-btn {
    background: none; border: none; cursor: pointer; color: var(--text-mute);
    font-size: 15px; padding: 4px; border-radius: 6px; line-height: 1;
}
.post-del-btn:hover, .pcomment-del-btn:hover { color: var(--red); background: var(--panel-2); }

/* Drei-Punkte-Menü an Beiträgen */
.post-menu {
    margin-left: auto;
    position: relative;
    flex: 0 0 auto;
}
.post-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-mute);
    cursor: pointer;
    transition: color .15s, background .15s;
}
.post-menu-btn:hover,
.post-menu-btn[aria-expanded="true"] {
    color: var(--text);
    background: var(--panel-2);
}
.post-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    min-width: 168px;
    padding: 6px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.post-menu-panel[hidden] { display: none !important; }
.post-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.post-menu-item:hover,
.post-menu-item:focus-visible {
    background: var(--panel-2);
    outline: none;
    color: var(--text);
}
.post-menu-item-danger { color: var(--red); }
.post-menu-item-danger:hover { background: rgba(220, 60, 60, .1); color: var(--red); }
.post-menu-ico {
    width: 1.1em;
    text-align: center;
    opacity: .85;
    font-weight: 700;
}
.post-menu-del { margin: 0; }

.post-body {
    margin: 12px 0;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.post-body br { display: none; } /* Altbestand mit nl2br nicht doppelt darstellen */

.post-actions {
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px;
}
/* Reaktionen: schlicht, ohne Rahmen */
.post-react {
    display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
    position: relative;
}
.post-react-summary {
    display: inline-flex; align-items: center; gap: 2px;
    background: transparent; border: 0;
    border-radius: 0; padding: 0 2px; min-height: 28px;
}
.post-react-chip {
    display: inline-flex; margin-left: -4px;
}
.post-react-chip:first-child { margin-left: 0; }
.post-react-ico {
    display: block; width: 18px; height: 18px;
    object-fit: contain; pointer-events: none;
}
.post-react-total {
    font-size: 12px; color: var(--text-dim); font-weight: 700;
    margin-left: 4px; font-variant-numeric: tabular-nums;
}
.post-react-control {
    position: relative; display: inline-flex;
    /* Unsichtbare Brücke nach oben, damit Hover zur Leiste nicht abbricht */
    padding-top: 12px; margin-top: -12px;
}
.post-react-trigger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0;
    background: transparent; border: 0;
    border-radius: 10px; cursor: pointer;
    transition: transform .15s, background .15s, color .15s;
    -webkit-touch-callout: none; user-select: none; touch-action: manipulation;
}
.post-react-trigger:hover { background: var(--panel-2); }
.post-react-trigger.is-active {
    background: var(--gold-soft);
}
.post-react-trigger-ico { width: 22px; height: 22px; }
.post-react-picker {
    position: absolute; left: 0; bottom: 100%;
    z-index: 40;
    display: flex; align-items: center; gap: 2px;
    padding: 6px 8px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    animation: reactPickerIn .16s ease;
    /* Hit-Area bis zum Trigger – kein Hover-Loch */
    margin-bottom: 0;
}
.post-react-picker[hidden] { display: none !important; }
@keyframes reactPickerIn {
    from { opacity: 0; transform: translateY(6px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.post-react-pick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer;
    transition: transform .12s ease;
}
.post-react-pick:hover,
.post-react-pick:focus-visible {
    transform: scale(1.28) translateY(-2px);
    outline: none;
}
.post-react-pick.is-active { background: var(--gold-soft); }
.post-react-pick .post-react-ico { width: 28px; height: 28px; }

.post-comment-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 38px; height: 38px; padding: 0 8px;
    background: transparent; border: 0;
    border-radius: 10px; cursor: pointer;
    color: var(--text-dim);
    transition: color .15s, background .15s;
}
.post-comment-toggle:hover,
.post-comment-toggle[aria-expanded="true"] {
    color: var(--text);
    background: var(--panel-2);
}
.post-comment-ico {
    width: 24px; height: 24px; display: block;
    flex: 0 0 auto;
}
.post-comment-count {
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
    color: inherit; min-width: .75em;
}
.post-quote-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 0;
    color: var(--text-dim); border-radius: 8px; padding: 6px 8px;
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: color .15s, background .15s;
    text-decoration: none; line-height: 1.2;
}
.post-quote-btn:hover { color: var(--text); background: var(--panel-2); }
.post-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--text-dim);
    cursor: pointer;
    transition: color .15s, background .15s;
}
.post-share-btn:hover,
.post-share-btn.copied {
    color: var(--text);
    background: var(--panel-2);
}
.post-share-ico {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 560px) {
    .post-react-picker {
        left: 50%;
        right: auto;
        transform: translateX(-30%);
        max-width: min(96vw, 420px);
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 18px;
        padding: 8px;
    }
    .post-react-picker[hidden] { transform: none; }
}
.post-report { margin-left: auto; }
.post-report .report-link { font-size: 13px; }

/* Zitierter Beitrag (Quote) */
.post-quote {
    display: block;
    margin: 10px 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 10px;
    background: var(--panel-2);
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, background .15s;
}
a.post-quote:hover { border-color: var(--gold); background: var(--panel-hover); }
.post-quote-label {
    font-size: 11px; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; color: var(--text-mute); margin-bottom: 6px;
}
.post-quote-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.post-quote-name { font-weight: 700; font-size: 13px; color: var(--text); }
.post-quote-time { font-size: 11px; color: var(--text-mute); }
.post-quote-body {
    font-size: 14px; color: var(--text-dim); line-height: 1.45;
    white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
}
.post-quote-more {
    display: inline-block; margin-top: 8px; font-size: 12px;
    font-weight: 600; color: var(--gold);
}
.post-quote-missing {
    margin: 10px 0 14px; padding: 10px 12px;
    border: 1px dashed var(--border); border-radius: 10px;
    color: var(--text-mute); font-size: 13px;
}

.compose-quote {
    margin-top: 12px; padding: 12px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--panel-2);
}
.compose-quote-label {
    font-size: 12px; font-weight: 700; color: var(--text-mute);
    text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px;
}
.compose-quote-card {
    padding: 10px 12px; border-radius: 10px;
    border-left: 3px solid var(--gold);
    background: var(--panel); border: 1px solid var(--border);
    border-left-width: 3px;
}
.compose-quote-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.compose-quote-time { font-size: 11px; color: var(--text-mute); }
.compose-quote-body {
    font-size: 14px; color: var(--text-dim); line-height: 1.4;
    white-space: pre-wrap; word-wrap: break-word;
}
.compose-quote-remove {
    display: inline-block; margin-top: 8px;
    font-size: 12px; font-weight: 600; color: var(--gold);
}

.post-comments { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.pcomment-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pcomment { display: flex; gap: 10px; align-items: flex-start; }
.pcomment-avatar {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--border);
    font-size: 12px; font-weight: 700; color: var(--text-dim);
}
.pcomment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcomment-main {
    flex: 1; min-width: 0;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px;
}
.pcomment-head { display: flex; align-items: baseline; gap: 8px; }
.pcomment-name { font-weight: 700; font-size: 13px; color: var(--text); }
.pcomment-name:hover { color: var(--gold); }
.pcomment-time { font-size: 11px; color: var(--text-mute); }
.pcomment-body { font-size: 14px; color: var(--text); margin-top: 2px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; line-height: 1.45; }
.pcomment-body br { display: none; }
.pcomment-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.pcomment-foot .report-link { font-size: 12px; }
.pcomment-del { margin-left: auto; }
.pcomment-reply-btn {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--text-mute); font: inherit; font-size: 12px; font-weight: 600;
}
.pcomment-reply-btn:hover { color: var(--gold); }
.pcomment-replies {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 10px; padding-left: 0;
}
.pcomment-reply { margin-top: 0; }
.pcomment-reply .pcomment-avatar { width: 26px; height: 26px; font-size: 11px; }
.pcomment-reply .pcomment-main {
    background: var(--panel); border-style: dashed;
}
.pcomment-reply-hint {
    flex: 1 1 100%;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-dim); margin-bottom: 2px;
}
.pcomment-reply-cancel {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--gold); font: inherit; font-size: 12px; font-weight: 600;
}

.pcomment-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.pcomment-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit;
    font-size: 16px;
}
.pcomment-form input[type="text"]:focus { outline: none; border-color: var(--gold); }
.pcomment-login { color: var(--text-mute); font-size: 13px; }
.pcomment-login a { color: var(--gold); }

/* -------- @Erwähnungen -------- */
.mention {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}
.mention:hover { text-decoration: underline; }

/* -------- "(bearbeitet)"-Hinweis -------- */
.edited-tag { color: var(--text-mute); font-style: italic; }

/* -------- Compose: Song anhängen (Suche) -------- */
.feed-compose-song {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.feed-compose-song[hidden] { display: none !important; }
.song-attach-hint { margin: 0; font-size: 12px; }
.song-attach-search { position: relative; }
.song-attach-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    font-size: 16px; /* verhindert iOS-Zoom */
}
.song-attach-input:focus { outline: none; border-color: var(--gold); }
.song-attach-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px;
    position: absolute;
    left: 0; right: 0;
    z-index: 40;
    max-height: 240px;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.song-attach-results[hidden] { display: none !important; }
.song-attach-opt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
}
.song-attach-opt:hover,
.song-attach-opt:focus { background: var(--gold-soft); outline: none; }
.song-attach-title { font-weight: 600; font-size: 14px; }
.song-attach-artist { font-size: 12px; color: var(--text-dim); }
.song-attach-empty {
    padding: 12px;
    color: var(--text-mute);
    font-size: 13px;
}
.song-attach-picked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: var(--gold-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.song-attach-picked[hidden] { display: none !important; }

/* Zeichenzähler */
.char-count {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-mute);
    text-align: right;
}
.char-count.is-warn { color: var(--gold); }
.char-count-inline { margin: 0; min-width: 4.5em; }

.pcomment-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Permalink / Link-Button */
.post-permalink {
    color: inherit;
    text-decoration: none;
}
.post-permalink:hover { color: var(--gold); text-decoration: underline; }

/* Share-Popup */
body.share-modal-open { overflow: hidden; }
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.share-modal[hidden] { display: none !important; }
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.share-modal-panel {
    position: relative;
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.share-modal-x {
    position: absolute;
    top: 8px; right: 10px;
    border: 0; background: transparent;
    color: var(--text-dim);
    font-size: 24px; line-height: 1;
    cursor: pointer; padding: 4px 8px;
}
.share-modal-x:hover { color: var(--text); }
.share-modal-panel h3 { margin: 0 28px 8px 0; font-size: 1.15rem; }
.share-modal-hint { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.share-modal-url {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    margin-bottom: 14px;
}
.share-modal-url:focus { outline: none; border-color: var(--gold); }
.share-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.share-modal-actions .btn { flex: 1 1 auto; min-height: 44px; justify-content: center; }

/* Umfragen */
.feed-compose-poll { margin-top: 0; }
.feed-compose-poll:has([data-poll-box]:not([hidden])) { margin-top: 10px; }
.poll-compose-box {
    margin-top: 0;
    padding: 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.poll-compose-box[hidden] { display: none !important; }
.poll-compose-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}
.poll-compose-options input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
}
.poll-compose-options input:focus { outline: none; border-color: var(--gold); }
.poll-compose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-poll {
    margin: 12px 0;
    padding: 12px 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.post-poll-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}
.post-poll-label { color: var(--text); }
.post-poll-total { margin-left: auto; color: var(--text-mute); font-weight: 500; }
.post-poll-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-poll-opt {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 0;
    font: inherit;
    cursor: pointer;
    overflow: hidden;
    min-height: 44px;
}
.post-poll-opt:hover { border-color: var(--gold); }
.post-poll-opt.is-mine { border-color: var(--gold); }
.post-poll-opt-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--gold-soft);
    transition: width .25s ease;
    pointer-events: none;
}
.post-poll-opt-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
}
.post-poll-opt-label { font-weight: 600; font-size: 14px; }
.post-poll-opt-pct { font-size: 13px; color: var(--text-dim); font-weight: 600; min-width: 2.5em; text-align: right; }
.post-poll-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-mute); }
.post-poll-hint a { color: var(--gold); }

@media (max-width: 560px) {
    .share-modal-panel { padding: 20px 16px 16px; }
    .poll-compose-actions .btn { flex: 1 1 100%; }
}

/* @Mention Autocomplete */
.mention-ac {
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.mention-ac[hidden] { display: none !important; }
.mention-ac-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}
.mention-ac-item.is-active,
.mention-ac-item:hover { background: var(--gold-soft); }
.mention-ac-user { font-weight: 600; color: var(--text); font-size: 14px; }
.mention-ac-sub { font-size: 12px; color: var(--text-dim); }

/* Benachrichtigungen */
.notif-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 0 0 18px;
    max-width: 720px;
}
.notif-toolbar .feed-sort { margin-bottom: 0; }
.notif-toolbar-meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-mute);
}
.notif-toolbar-meta a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.notif-toolbar-meta a:hover { color: var(--gold); }
.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
}
.notif-day {
    list-style: none;
    margin: 10px 0 2px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.notif-day:first-child { margin-top: 0; }
.notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.notif-item.is-unread {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.notif-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 13px;
}
.notif-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notif-avatar-fallback { line-height: 1; }
.notif-main {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.notif-text { font-weight: 600; font-size: 14px; }
.notif-preview {
    margin-top: 4px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-time { margin-top: 6px; font-size: 12px; color: var(--text-mute); }
.notif-more {
    margin: 18px 0 8px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.notif-more[hidden] { display: none; }
.notif-more-hint { margin: 0; font-size: 12px; color: var(--text-mute); }
.notif-older-link {
    margin: 8px 0 0;
    max-width: 720px;
    font-size: 13px;
}
.notif-older-link a { color: var(--text-dim); }
.notif-older-link a:hover { color: var(--gold); }

/* Profil-Tabs */
.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 22px 0 18px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.profile-tabs.feed-sort { display: flex; }
.profile-tab-count {
    font-weight: 600;
    opacity: .75;
    font-size: 12px;
}
.profile-tabs .feed-sort-opt.active .profile-tab-count { opacity: .9; }
.profile-tab-panels { margin-top: 4px; }
.profile-posts-list { max-width: 720px; }

/* Folgen-Button im Profil */
.follow-form { display: inline-flex; }
.profile-head-actions .follow-form .btn { white-space: nowrap; }
.pcomment-loading { color: var(--text-mute); font-size: 13px; padding: 8px 0; }
.feed-list-single { max-width: 720px; }

/* -------- Sortier-Auswahl -------- */
.feed-sort {
    display: inline-flex; gap: 4px; margin-bottom: 16px;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 4px;
}
.feed-sort-opt {
    display: inline-block; padding: 6px 14px; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: var(--text-dim); text-decoration: none;
    transition: color .15s, background .15s;
}
.feed-sort-opt:hover { color: var(--text); }
.feed-sort-opt.active { background: var(--gold); color: #1a1205; }

/* -------- Eingebettete Song-Karte im Feed -------- */
.feed-song {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 12px; margin: 12px 0;
}
.feed-song-cover-wrap { flex: 0 0 auto; }
.feed-song-cover {
    position: relative;
    width: 56px; height: 56px; border-radius: 8px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--panel); border: 1px solid var(--border);
    font-weight: 700; color: var(--text-dim);
}
.feed-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.feed-song-cover .cover-play-btn { border-radius: 8px; }
.feed-song-cover-wrap:hover .cover-play-btn,
.feed-song.is-listening .cover-play-btn { opacity: 1; }
.feed-song-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-song-title { font-weight: 700; color: var(--text); text-decoration: none; }
.feed-song-title:hover { color: var(--gold); }
.feed-song-artist { font-size: 13px; }
.feed-song-artist .artist-link { color: var(--text-dim); cursor: pointer; }
.feed-song-artist .artist-link:hover { color: var(--gold); }
.feed-song-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mute); }
.feed-song-avg { font-weight: 700; color: var(--text-dim); }
.feed-song-actions {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.feed-song-rate { flex: 0 0 auto; }
.feed-song > .song-listen {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 2px;
}
@media (max-width: 560px) {
    .feed-song-actions { width: 100%; }
    .feed-song-actions .pill.listen { flex: 1 1 auto; justify-content: center; }
    .feed-song-actions .feed-song-rate { flex: 1 1 auto; text-align: center; }
}

/* -------- Inline-Bearbeiten (Beitrag/Kommentar) -------- */
.post-edit-form, .pcomment-edit-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
/* hidden-Attribut muss die display-Regel schlagen, sonst ist das Feld immer sichtbar. */
.post-edit-form[hidden], .pcomment-edit-form[hidden] { display: none; }
.post-edit-form textarea, .pcomment-edit-form textarea {
    width: 100%;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit;
    resize: vertical; min-height: 70px;
}
.post-edit-form textarea:focus, .pcomment-edit-form textarea:focus { outline: none; border-color: var(--gold); }
.post-edit-actions, .pcomment-edit-actions { display: flex; gap: 8px; }
.post-edit-btn, .pcomment-edit-btn {
    background: none; border: none; cursor: pointer; padding: 4px 6px;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--text-mute); border-radius: 6px;
}
.post-edit-btn:hover, .pcomment-edit-btn:hover { color: var(--gold); background: var(--panel-2); }

.pagination {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 24px 0 8px;
}
.pagination-info { color: var(--text-dim); font-size: 13px; }

/* ============================================================
 *  Messenger (Direktnachrichten)
 * ============================================================ */
.profile-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.messenger {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    min-height: 60vh;
}
.msg-sidebar {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.msg-sidebar-head {
    padding: 14px 16px; font-weight: 700; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.msg-empty-list { padding: 16px; color: var(--text-mute); font-size: 13px; }
.msg-conv-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.msg-conv {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.msg-conv:hover { background: var(--panel-2); }
.msg-conv.active { background: var(--gold-soft); }
.msg-conv-avatar {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--border);
    font-weight: 700; color: var(--text-dim); font-size: 13px;
}
.msg-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-conv-text { flex: 1; min-width: 0; }
.msg-conv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.msg-conv-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv.unread .msg-conv-name { font-weight: 800; }
.msg-conv-time { font-size: 11px; color: var(--text-mute); flex: 0 0 auto; }
.msg-conv-preview {
    display: block; font-size: 13px; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-conv.unread .msg-conv-preview { color: var(--text); }
.msg-conv-badge { flex: 0 0 auto; margin: 0; }
.msg-conv.blocked { opacity: .72; }
.msg-conv.blocked .msg-conv-preview { color: var(--text-mute); font-style: italic; }
.msg-conv-blocked-tag { flex: 0 0 auto; font-size: 14px; line-height: 1; }

.msg-main {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; flex-direction: column;
    min-height: 60vh;
}
.msg-placeholder {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: var(--text-mute); text-align: center; padding: 30px;
}
.msg-thread-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.msg-thread-partner { display: inline-flex; align-items: center; gap: 10px; }
.msg-thread-avatar {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    background: var(--panel-2); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--text-dim); font-size: 13px;
}
.msg-thread-name { font-weight: 700; color: var(--text); }
.msg-thread-partner:hover .msg-thread-name { color: var(--gold); }
.msg-thread-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.msg-thread {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    max-height: 56vh;
}
.msg-thread-empty { color: var(--text-mute); text-align: center; margin: auto; }
.msg-load-older {
    align-self: center;
    margin: 0 0 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.msg-load-older:hover { color: var(--gold); border-color: var(--gold); }
.msg-load-older:disabled { opacity: .6; cursor: wait; }

/* Nachrichten-Zeile: Bubble + Meta darunter (außerhalb der Farbe) */
.msg-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: min(78%, 420px);
    min-width: 0;
}
.msg-row.me { align-self: flex-end; align-items: flex-end; }
.msg-row.them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
    width: 100%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px; line-height: 1.4;
    word-wrap: break-word; overflow-wrap: anywhere;
    box-sizing: border-box;
}
.msg-bubble.has-voice { padding: 10px 12px; min-width: 220px; }
.msg-bubble .msg-bubble-body { white-space: pre-wrap; display: block; }
.msg-bubble.has-voice .msg-bubble-body { margin-top: 8px; }
.msg-row.them .msg-bubble {
    background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
    border-bottom-left-radius: 6px;
}
.msg-row.me .msg-bubble {
    background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1205;
    border-bottom-right-radius: 6px;
}
.msg-bubble-meta {
    display: flex; align-items: baseline; gap: 6px;
    padding: 0 4px;
    color: var(--text-mute);
}
.msg-row.me .msg-bubble-meta { justify-content: flex-end; }
.msg-row.them .msg-bubble-meta { justify-content: flex-start; }
.msg-bubble-time { font-size: 11px; }
.msg-bubble-status {
    font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--text-dim);
}

.msg-blocked-note {
    margin: 12px 16px; padding: 10px 12px;
    background: var(--panel-2); border: 1px dashed var(--border);
    border-radius: 8px; color: var(--text-mute); font-size: 13px;
}
.msg-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    overflow: hidden;
}
.msg-composer textarea {
    width: 100%; min-width: 0; resize: none;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); padding: 10px 12px; font: inherit;
    max-height: 140px;
    overflow-x: hidden;
    overflow-y: hidden;
    line-height: 1.35;
    box-sizing: border-box;
}
.msg-composer textarea:focus { outline: none; border-color: var(--gold); }
.msg-composer [data-msg-send] { white-space: nowrap; }

/* Sprachnachrichten */
.msg-voice {
    display: flex; align-items: center; gap: 10px;
    width: 100%; min-width: 0;
}
.msg-voice-expired {
    font-size: 12px; font-style: italic; opacity: .78; padding: 2px 0;
}
.msg-voice-play {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    border: none; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(26, 18, 5, .18); color: #1a1205;
    transition: transform .12s ease, background .15s ease;
}
.msg-row.them .msg-voice-play {
    background: var(--gold); color: #1a1205;
}
.msg-voice-play:hover { transform: scale(1.04); }
.msg-voice-play:active { transform: scale(.97); }
.msg-voice-ico-play {
    display: block; width: 0; height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent currentColor;
    margin-left: 3px;
}
.msg-voice-ico-pause {
    display: none; width: 11px; height: 12px;
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 3.5px 100% no-repeat,
        linear-gradient(currentColor, currentColor) 100% 0 / 3.5px 100% no-repeat;
}
.msg-voice.is-playing .msg-voice-ico-play { display: none; }
.msg-voice.is-playing .msg-voice-ico-pause { display: block; }

.msg-voice-main {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.msg-voice-wave {
    height: 26px;
    display: flex; align-items: center; gap: 2.5px;
}
.msg-voice-wave > i {
    flex: 1 1 0; min-width: 2px; max-width: 3px;
    height: var(--h, 40%);
    border-radius: 99px;
    background: rgba(26, 18, 5, .32);
}
.msg-row.them .msg-voice-wave > i { background: rgba(154, 154, 166, .65); }
.msg-voice-track {
    height: 3px; border-radius: 99px; overflow: hidden;
    background: rgba(26, 18, 5, .18);
}
.msg-row.them .msg-voice-track { background: var(--border); }
.msg-voice-fill {
    display: block; height: 100%; width: 0%;
    border-radius: inherit;
    background: rgba(26, 18, 5, .55);
    transition: width .1s linear;
}
.msg-row.them .msg-voice-fill { background: var(--gold); }
.msg-voice-dur {
    flex: 0 0 auto;
    font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
    opacity: .88; min-width: 2.8em; text-align: right;
}
.msg-voice audio { display: none; }

.msg-voice-rec-btn {
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--panel-2);
    color: var(--text); font-size: 18px; cursor: pointer; line-height: 1;
    padding: 0;
}
.msg-voice-rec-btn:hover { border-color: var(--gold); color: var(--gold); }
.msg-voice-rec-btn.is-recording {
    background: rgba(226, 59, 59, .12); border-color: var(--red); color: var(--red);
}
.msg-voice-rec-ui {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 8px;
    min-width: 0; padding: 2px 0;
}
.msg-voice-rec-ui[hidden] { display: none !important; }
.msg-voice-rec-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--red);
    animation: msg-voice-pulse 1s ease-in-out infinite;
}
@keyframes msg-voice-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.85); }
}
.msg-voice-rec-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); min-width: 3em; }
.msg-composer.is-recording textarea,
.msg-composer.is-recording [data-msg-send],
.msg-composer.is-recording [data-voice-rec] { display: none; }
.msg-voice-hint {
    margin: 0; padding: 0 16px 10px; font-size: 11px; color: var(--text-mute);
}

.dm-policy-select {
    width: 100%; background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); padding: 9px 12px; font: inherit;
}
.dm-policy-select:focus { outline: none; border-color: var(--gold); }

/* "Zurück"-Pfeil im Konversationskopf – nur auf schmalen Screens sichtbar. */
.msg-back {
    display: none;
    align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: 0 0 auto; margin-right: 4px;
    border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 18px; line-height: 1;
}
.msg-back:hover { color: var(--gold); border-color: var(--gold); }

/* Blockierte Konversation: Verlauf & Eingabe ausgeblendet. */
.msg-blocked-panel {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; text-align: center; padding: 30px 24px; color: var(--text-dim);
}
.msg-blocked-panel p { margin: 0; max-width: 380px; }

/* Verwaltung "Blockierte Nutzer" (Profil → Konto & Datenschutz) */
.blocked-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.blocked-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px;
}
.blocked-user { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.blocked-avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    background: var(--panel); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text-dim);
}
.blocked-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blocked-user:hover .blocked-name { color: var(--gold); }

@media (max-width: 720px) {
    /* Nur EINE Spalte: Liste ODER aktive Konversation (umschaltbar). */
    .messenger { grid-template-columns: 1fr; min-height: 0; }
    .messenger.has-active .msg-sidebar { display: none; }
    .msg-sidebar { max-height: none; }
    .msg-main { min-height: 72vh; }
    .msg-thread { max-height: none; min-height: 46vh; }
    .msg-back { display: inline-flex; }
    .msg-row { max-width: 88%; }
    .msg-bubble { font-size: 15px; }
    .msg-bubble.has-voice { min-width: 0; }

    /* Konversationskopf: Aktionen (Blockieren/Melden) sauber umbrechen. */
    .msg-thread-head { gap: 8px 10px; }
    .msg-thread-actions { width: 100%; justify-content: flex-end; }

    /* Eine Zeile: Mic | Text | Senden – ohne Wrap/Seiten-Scrollbar */
    .msg-composer {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        position: sticky; bottom: 0; z-index: 2;
        background: var(--panel); border-top: 1px solid var(--border);
        overflow: hidden;
    }
    .msg-composer textarea {
        min-height: 44px; max-height: 120px;
        padding: 11px 12px; font-size: 16px; /* 16px verhindert iOS-Auto-Zoom */
        border-radius: 12px;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    .msg-composer [data-msg-send] { padding: 11px 14px; }
    .msg-voice-rec-btn { width: 44px; height: 44px; }
    .msg-voice-hint { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}

/* Sehr schmale Geräte: Bubbles noch etwas breiter. */
@media (max-width: 400px) {
    .msg-row { max-width: 92%; }
    .msg-thread { padding: 12px; }
}

/* ============================================================
 *  Turniere (Bracket / Abstimmungen / Pokale)
 * ============================================================ */

.text-dim { color: var(--text-dim); }

.tourn-section { margin: 28px 0 36px; }

.tourn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.tourn-card {
    display: block;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.tourn-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.tourn-card-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 10px; font-size: 12px;
}
.tourn-card-meta { color: var(--text-dim); }
.tourn-card-title {
    margin: 0 0 6px; font-size: 1.15rem; line-height: 1.25; color: var(--text);
}
.tourn-card-genre, .tourn-card-desc, .tourn-card-winner {
    margin: 0; font-size: 13px; color: var(--text-dim);
}
.tourn-card-winner { color: var(--gold); font-weight: 600; }

.tourn-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text-dim);
}
.tourn-status-running {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-soft);
}
.tourn-status-finished {
    color: var(--text);
    border-color: var(--border);
}
.tourn-status-draft {
    color: var(--text-dim);
}

.tourn-detail-title-row {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
    margin-bottom: 6px;
}

.tourn-champion-banner {
    display: flex; align-items: center; gap: 16px;
    margin: 8px 0 28px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--gold-soft), var(--panel));
    border: 1px solid var(--gold);
    border-radius: 14px;
}
.tourn-champion-banner h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--gold); }
.tourn-champion-banner p { margin: 0; color: var(--text); }
.tourn-champion-banner a { color: var(--gold); font-weight: 700; }
.tourn-champion-cup { font-size: 2.4rem; line-height: 1; }

/* Zu gewinnender / vergebener Pokal auf der Turnierseite */
.tourn-prize {
    display: flex; align-items: center; gap: 18px;
    margin: 8px 0 28px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--gold-soft), var(--panel));
    border: 1px solid var(--gold);
    border-radius: 14px;
}
.tourn-prize-visual {
    flex: 0 0 auto; width: 88px; height: 88px;
    display: flex; align-items: center; justify-content: center;
}
.tourn-prize-visual img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.28));
}
.tourn-prize-text h2 { margin: 0 0 4px; font-size: 1.1rem; color: var(--gold); }
.tourn-prize-text p { margin: 0; color: var(--text); line-height: 1.4; }
.tourn-prize-text a { color: var(--gold); font-weight: 700; }
.tourn-trophy-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; line-height: 1;
}
.tourn-trophy-fallback-lg { font-size: 3rem; }

/* Admin: Pokal-Auswahl */
.tourn-trophy-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}
.tourn-trophy-option {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 8px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s;
}
.tourn-trophy-option:hover { border-color: var(--gold); transform: translateY(-1px); }
.tourn-trophy-option:has(input:checked),
.tourn-trophy-option.is-selected {
    border-color: var(--gold);
    background: var(--gold-soft);
    box-shadow: 0 0 0 1px rgba(224,176,74,.25);
}
.tourn-trophy-option input {
    position: absolute; opacity: 0; pointer-events: none;
}
.tourn-trophy-option-visual {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
}
.tourn-trophy-option-visual img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}
.tourn-trophy-option-label {
    font-size: 11px; font-weight: 600; text-align: center;
    color: var(--text-dim); line-height: 1.25;
}
.tourn-trophy-option:has(input:checked) .tourn-trophy-option-label,
.tourn-trophy-option.is-selected .tourn-trophy-option-label { color: var(--text); }

.tourn-matches-live { display: flex; flex-direction: column; gap: 18px; }

.tourn-match-live {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 16px 16px;
}
.tourn-match-live.is-tied { border-color: var(--gold); }
.tourn-match-live-meta {
    display: flex; flex-wrap: wrap; gap: 8px 12px;
    align-items: center; margin-bottom: 14px;
    font-size: 13px; color: var(--text-dim);
}
.tourn-match-live-meta strong { color: var(--text); }

.tourn-match-live-sides {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px 16px;
    align-items: start;
}

.tourn-side {
    text-align: center;
    padding: 8px;
    border-radius: 12px;
    transition: background .15s ease;
}
.tourn-side.is-voted { background: var(--gold-soft); }
.tourn-side.is-listening { outline: 1px solid rgba(224,176,74,.4); }
.tourn-side h3 { margin: 10px 0 2px; font-size: 1.05rem; }
.tourn-side-artist { margin: 0 0 10px; font-size: 13px; color: var(--gold); }
.tourn-side-listen {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    margin: 0 0 12px;
}
.tourn-side .song-listen {
    width: 100%;
    margin: 0 0 12px;
    border-top: 0;
    padding-top: 0;
    text-align: left;
}
.tourn-side .song-listen-consent {
    flex-direction: column;
    align-items: stretch;
}
.tourn-side .song-listen-consent .btn { width: 100%; }

.tourn-side-cover {
    display: block;
    width: min(160px, 100%);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel-2);
    border: 1px solid var(--border);
}
.tourn-side-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.tourn-side-cover .cover-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--text-dim); background: var(--panel-2);
}

.tourn-vs-big {
    align-self: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: .08em;
    padding-top: 40px;
}

.tourn-bar-wrap {
    height: 8px;
    background: var(--panel-2);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 auto 6px;
    max-width: 180px;
}
.tourn-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    border-radius: 999px;
    transition: width .35s ease;
}
.tourn-bar-b {
    background: linear-gradient(90deg, #7a8aa0, #5a6a80);
}
html[data-theme="light"] .tourn-bar-b {
    background: linear-gradient(90deg, #6b7c90, #4a5a6e);
}

.tourn-vote-line {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-dim);
}
.tourn-login-hint {
    text-align: center;
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--text-dim);
}
.tourn-login-hint a { color: var(--gold); }

.tourn-tie-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
}

.tourn-entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.tourn-entry {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease;
}
.tourn-entry:hover { border-color: var(--gold); }
.tourn-entry-cover {
    width: 48px; height: 48px; flex: 0 0 auto;
    border-radius: 8px; overflow: hidden;
    background: var(--panel-2);
}
.tourn-entry-cover img,
.tourn-entry-cover .cover-fallback {
    width: 100%; height: 100%; object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--text-dim);
}
.tourn-entry-info {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    font-size: 13px; color: var(--text-dim);
}
.tourn-entry-info strong {
    color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tourn-seed { font-size: 11px; color: var(--gold); }
.tourn-flag {
    color: var(--gold);
    font-weight: 700;
}
.tourn-deadline { margin: 6px 0 0; font-size: 14px; color: var(--text-dim); }
.tourn-deadline.is-closed { color: var(--red); }
.tourn-anon-hint {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
}
.tourn-entry.is-anon {
    cursor: default;
    opacity: .92;
    border-style: dashed;
}
.tourn-entry.is-anon:hover { border-color: var(--border); }
.tourn-entry.is-mine { border-color: var(--gold); }
.tourn-reveal {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(224, 176, 74, .45);
    background: linear-gradient(90deg, var(--gold-soft), transparent 80%);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    animation: tourn-reveal-in .55s ease;
}
.tourn-reveal strong { color: var(--gold); margin-right: 6px; }
@keyframes tourn-reveal-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tourn-blind-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}
.tourn-side-cover.is-blind {
    display: flex;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel-2);
    border: 1px dashed var(--border);
}
.tourn-match-live.is-blind .tourn-side-cover.is-blind .cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-mute);
}
.tourn-card-flag {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}
.tourn-options-fieldset {
    margin: 16px 0 8px;
    padding: 14px 16px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
}
.tourn-options-fieldset legend {
    padding: 0 6px;
    font-weight: 700;
    color: var(--gold);
}
.tourn-options-fieldset .check { margin-bottom: 8px; }

/* Bracket */
.tourn-bracket-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.tourn-bracket {
    display: grid;
    grid-template-columns: repeat(var(--tourn-rounds, 4), minmax(180px, 1fr));
    gap: 16px;
    min-width: min(100%, calc(var(--tourn-rounds, 4) * 200px));
}
.tourn-bracket-round-title {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tourn-bracket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-around;
    min-height: 100%;
}
.tourn-bracket-match {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.tourn-bracket-match.tourn-bm-open { border-color: var(--gold); }
.tourn-bm-side {
    padding: 8px 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.tourn-bm-side:last-child { border-bottom: 0; }
.tourn-bm-side.is-winner {
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 700;
}
.tourn-bm-side.is-loser { opacity: .55; }
.tourn-bm-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Admin */
.tourn-admin-section { margin: 18px 0 28px; }
.tourn-admin-section h2, .tourn-admin-section h3 { margin: 0 0 12px; }
.tourn-progress {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}
.tourn-admin-match {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.tourn-admin-match.is-tied { border-color: var(--gold); }
.tourn-admin-match-meta {
    font-size: 13px; color: var(--text-dim); margin-bottom: 8px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tourn-admin-match-meta strong { color: var(--text); }
.tourn-admin-match-sides {
    display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
    margin-bottom: 10px;
}
.tourn-vs { color: var(--gold); font-weight: 800; }
.tourn-vote-n { color: var(--text-dim); font-size: 13px; margin-left: 4px; }
.tourn-admin-match-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.tourn-champion-note { margin-top: 12px; color: var(--gold); font-weight: 600; }
.tourn-champion-note a { color: var(--gold); }

/* Profil-Pokale */
.tourn-trophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
    padding: 1px 6px 1px 4px;
    vertical-align: middle;
    text-decoration: none;
    color: inherit;
    border-radius: 999px;
    background: var(--gold-soft);
    border: 1px solid rgba(224, 176, 74, .35);
    font-size: 14px;
    line-height: 1.2;
    position: relative;
    top: -1px;
}
.tourn-trophy-badge:hover { border-color: var(--gold); }
.tourn-trophy-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.profile-trophies {
    margin: 4px 0 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
}
.profile-trophies > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    font-weight: 650;
    color: var(--text);
    user-select: none;
}
.profile-trophies > summary::-webkit-details-marker { display: none; }
.profile-trophies > summary::after {
    content: '▾';
    color: var(--text-mute);
    font-size: 12px;
    transition: transform .15s ease;
}
.profile-trophies[open] > summary::after { transform: rotate(180deg); }
.profile-trophies > summary:hover { background: var(--panel-2); }
.profile-trophies-summary-main {
    display: inline-flex; align-items: center; gap: 8px;
}
.profile-trophies-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.4em; height: 1.4em; padding: 0 6px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px; font-weight: 800;
}
.profile-trophies-hint {
    font-size: 12px; font-weight: 500; color: var(--text-mute);
}
.profile-trophies[open] .profile-trophies-hint { display: none; }
.profile-trophies .tourn-trophy-shelf {
    margin: 0;
    padding: 0 12px 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.tourn-trophy-shelf {
    list-style: none; margin: 0 0 28px; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.tourn-trophy-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 10px 10px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .12s ease;
    min-height: 100%;
}
.tourn-trophy-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.tourn-trophy-card-visual {
    width: 84px; height: 84px;
    display: flex; align-items: center; justify-content: center;
}
.tourn-trophy-card-visual img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.22));
}
.tourn-trophy-card-meta {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-align: center; width: 100%;
}
.tourn-trophy-card-meta strong {
    font-size: 13px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tourn-trophy-card-date { font-size: 11px; color: var(--text-mute); }

/* Legacy-Listenstil (falls noch referenziert) */
.tourn-wins-list {
    list-style: none; margin: 0 0 24px; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.tourn-wins-list li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease;
}
.tourn-wins-list li a:hover { border-color: var(--gold); }
.tourn-win-cup { font-size: 1.25rem; }

@media (max-width: 720px) {
    .tourn-match-live-sides {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tourn-vs-big {
        padding: 4px 0;
        text-align: center;
    }
    .tourn-side-cover { width: min(200px, 70%); }
    .tourn-bracket {
        grid-template-columns: repeat(var(--tourn-rounds, 4), minmax(160px, 1fr));
    }
}

/* -------- Künstler-Bewerbung -------- */
.tourn-apply-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    max-width: 720px;
}
.tourn-apply-box.is-joined {
    border-color: var(--gold);
    background: var(--gold-soft, rgba(212, 168, 67, .08));
}
.tourn-apply-box.is-waitlist {
    border-color: var(--border);
    background: var(--panel-2);
}
.tourn-apply-box.is-waitlist h3 { color: var(--gold); }
.tourn-apply-box h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tourn-apply-box p { margin: 0 0 14px; color: var(--text-dim); line-height: 1.45; }
.tourn-apply-box p:last-child { margin-bottom: 0; }
.tourn-apply-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
}
.tourn-apply-field {
    flex: 1 1 320px;
    min-width: 0;
}
.tourn-apply-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}
/* Eigener Pfeil, damit das Feld in beiden Themes gleich aussieht. */
.tourn-select-wrap { position: relative; display: block; }
.tourn-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    pointer-events: none;
}
.tourn-apply-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 54px;
    background: var(--panel-2, var(--panel));
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 0 44px 0 16px;
    font-family: inherit;
    font-size: 16px;
    line-height: 54px;
    cursor: pointer;
}
.tourn-apply-form select:hover { border-color: var(--gold); }
.tourn-apply-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft, rgba(212, 168, 67, .18));
}
.tourn-apply-submit {
    height: 54px;
    padding: 0 22px;
    white-space: nowrap;
    flex: 0 0 auto;
}
@media (max-width: 560px) {
    .tourn-apply-field { flex: 1 1 100%; }
    .tourn-apply-submit { width: 100%; }
}

/* ============================================================
 *  Wochen-Charts (Seite + Sidebar-Widget)
 * ============================================================ */
.charts-side-link {
    margin-top: 14px;
    border: 1px solid rgba(224,176,74,.35);
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: 10px;
}
.charts-side-link:hover { filter: brightness(1.06); }
.charts-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.charts-head p { color: var(--text-dim); max-width: 640px; margin: 6px 0 0; }
.similar-hint {
    margin: -8px 0 16px; color: var(--text-mute); font-size: 13px;
}
.charts-list { display: flex; flex-direction: column; gap: 10px; }
.charts-row {
    display: grid;
    grid-template-columns: 52px 64px minmax(0, 1fr) 150px;
    gap: 14px; align-items: center;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 14px;
}
.charts-rank {
    font-size: 22px; font-weight: 800; color: var(--gold);
    text-align: center; letter-spacing: -0.5px;
}
.charts-cover {
    width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
    background: linear-gradient(135deg,#2a2340,#171720);
    display: flex; align-items: center; justify-content: center;
}
.charts-cover img { width: 100%; height: 100%; object-fit: cover; }
.charts-cover .cover-fallback { font-size: 18px; font-weight: 800; color: rgba(255,255,255,.45); }
.charts-title { font-size: 16px; font-weight: 700; }
.charts-title a:hover { color: var(--gold); }
.charts-artist { font-size: 13px; color: var(--gold); margin-top: 2px;
    display: flex; align-items: center; gap: 5px; }
.charts-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.charts-week { font-size: 12px; color: var(--text-mute); }
.charts-score { text-align: center; }
.charts-info .mood-tags { margin-top: 8px; }

.week-charts-empty { color: var(--text-mute); font-size: 13px; margin: 0 0 12px; line-height: 1.45; }
.week-charts-list { list-style: none; margin: 0 0 14px; padding: 0; }
.week-charts-item {
    display: grid; grid-template-columns: 22px 40px minmax(0, 1fr);
    gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--border);
}
.week-charts-item:last-child { border-bottom: none; }
.week-charts-rank { font-weight: 800; color: var(--gold); font-size: 14px; text-align: center; }
.week-charts-cover {
    width: 40px; height: 40px; border-radius: 7px; overflow: hidden;
    background: linear-gradient(135deg,#2a2340,#171720);
    display: flex; align-items: center; justify-content: center;
}
.week-charts-cover img { width: 100%; height: 100%; object-fit: cover; }
.week-charts-cover .cover-fallback { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.4); }
.week-charts-title {
    display: block; font-size: 13px; font-weight: 700; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.week-charts-title:hover { color: var(--gold); }
.week-charts-sub { font-size: 12px; color: var(--gold); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.week-charts-meta { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

@media (max-width: 760px) {
    .charts-row {
        grid-template-columns: 40px 54px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }
    .charts-score { grid-column: 1 / -1; text-align: left;
        display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .charts-score .score { margin: 0; }
}

/* ============================================================
 *  Share-Card Modal (Künstler-Grafik)
 * ============================================================ */
body.share-card-open { overflow: hidden; }
.share-card-modal {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.share-card-modal[hidden] { display: none !important; }
.share-card-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,.58);
}
.share-card-panel {
    position: relative; width: min(520px, 100%);
    max-height: min(92vh, 900px); overflow: auto;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px 18px 16px; box-shadow: var(--shadow);
}
.share-card-x {
    position: absolute; top: 10px; right: 12px;
    background: none; border: none; color: var(--text-mute);
    font-size: 26px; line-height: 1; cursor: pointer;
}
.share-card-x:hover { color: var(--text); }
.share-card-panel h3 { margin: 0 28px 6px 0; font-size: 1.15rem; }
.share-card-hint { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.share-card-formats { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.share-card-formats .btn { min-height: 36px; }
.share-card-formats .btn.is-active {
    background: var(--gold-soft); color: var(--gold); border-color: var(--gold);
}
.share-card-preview-wrap {
    display: flex; justify-content: center;
    background: var(--panel-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.share-card-preview-wrap canvas {
    max-width: 100%; height: auto; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.share-card-caption {
    width: 100%; min-height: 72px; resize: vertical;
    background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text); border-radius: 9px; padding: 10px 12px;
    font: inherit; font-size: 13px; margin-bottom: 12px;
}
.share-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.share-card-actions .btn { flex: 1 1 auto; min-height: 42px; justify-content: center; }

/* ============================================================
 *  Genre-Hubs (/genre/, /genre/viking-nordic)
 * ============================================================ */
.genre-hub-crumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-mute); margin: 8px 0 4px;
}
.genre-hub-crumb a { color: var(--text-dim); font-weight: 600; }
.genre-hub-crumb a:hover { color: var(--gold); }
.genre-hub-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.genre-hub-head h1 { margin: 0; }
.genre-hub-intro {
    color: var(--text-dim); max-width: 720px; margin: 8px 0 0;
    font-size: 15px; line-height: 1.5;
}
.genre-hub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.genre-hub-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px; margin-bottom: 28px;
}
.genre-hub-stat {
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 12px; text-align: center;
}
.genre-hub-stat-num {
    font-size: 1.35rem; font-weight: 800; color: var(--gold);
    font-variant-numeric: tabular-nums; line-height: 1.1;
}
.genre-hub-stat-lbl { font-size: 12px; color: var(--text-mute); margin-top: 4px; font-weight: 600; }
.genre-hub-section { margin-bottom: 34px; }
.genre-hub-hint {
    margin: -6px 0 12px; font-size: 13px; color: var(--text-mute); line-height: 1.4;
}
.genre-hub-cta {
    margin: 28px 0 10px; padding: 22px 20px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; text-align: center;
}
.genre-hub-cta h3 { margin: 0 0 6px; font-size: 1.1rem; }
.genre-hub-cta p { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; }

.genre-dir {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px; margin: 8px 0 24px;
}
.genre-dir-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 16px 16px 14px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; text-decoration: none; color: inherit;
    transition: border-color .15s, transform .15s, background .15s;
}
.genre-dir-card:hover {
    border-color: var(--gold); background: var(--panel-hover);
    transform: translateY(-2px);
}
.genre-dir-card.is-empty { opacity: .72; }
.genre-dir-name { font-weight: 800; font-size: 1.02rem; }
.genre-dir-count { font-size: 13px; color: var(--text-mute); font-weight: 600; }
.genre-dir-more { font-size: 12px; font-weight: 700; color: var(--gold); margin-top: 4px; }

@media (max-width: 760px) {
    .genre-hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .genre-hub-head { gap: 12px; }
}


/* -------- Community Kopf + People Discovery -------- */
.community-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 20px;
    flex-wrap: wrap;
}
.community-page-head-text { min-width: 0; flex: 1 1 220px; }
.community-page-head-text h1 { margin-bottom: 6px; }
.community-people-link { white-space: nowrap; margin-top: 4px; }

.people-search,
.community-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 16px;
    max-width: 640px;
}
.community-search { max-width: 720px; }
.people-search input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    font: inherit;
}
.people-search input[type="search"]:focus {
    outline: none;
    border-color: var(--gold);
}
.people-sort { margin-bottom: 10px; }
.people-result-meta {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-dim);
}
.people-result-meta-soft { color: var(--text-mute); }

.people-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.people-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.people-card-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.people-card-main:hover .people-name { color: var(--gold); }
.people-avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--panel-2);
    border: 1px solid var(--border);
}
.people-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-dim);
    font-size: 15px;
}
.people-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.people-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    transition: color .15s;
}
.people-handle {
    font-size: 12px;
    color: var(--text-mute);
}
.people-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}
.people-bio {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.people-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

@media (max-width: 560px) {
    .community-page-head { align-items: stretch; }
    .community-people-link { width: 100%; text-align: center; }
}
