/* ============================================================
   Musikbewertung.de – Stylesheet (Dark / Gold)
   ============================================================ */

: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);
    --green:         #1db954;
    --red:           #e23b3b;
    --radius:        12px;
    --shadow:        0 8px 28px rgba(0, 0, 0, .38);
    --maxw:          1280px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

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; }

.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: 22px;
    font-size: 13px;
    outline: none;
}
.search-box input:focus { border-color: var(--gold); }
.search-box button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    padding: 6px; display: flex;
}
.search-box button:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-chip { font-size: 13px; color: var(--text-dim); padding: 6px 10px; border-radius: 8px; transition: all .15s; }
.user-chip:hover { color: var(--gold); background: var(--panel); }

.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: 16px; 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; }

.layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

/* ---------------- 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; }
.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;
}
.section-head h2 {
    display: flex; align-items: center; gap: 9px;
    font-size: 17px; letter-spacing: .3px;
}
.section-head h2 .ico { color: var(--gold); }
.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;
    grid-template-columns: 64px 1fr auto auto auto;
    align-items: center; gap: 16px;
    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; }

.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 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; }
.play-badge {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--gold); color: #1a1205; display: flex; align-items: center; justify-content: center;
}

.song-info { min-width: 0; }
.song-title { font-size: 16px; font-weight: 700; }
.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; }

.song-rating { text-align: center; min-width: 120px; }
.stars { position: relative; display: inline-block; font-size: 16px; letter-spacing: 2px; line-height: 1; }
.stars-empty { color: #3a3a44; }
.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; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 7px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); color: var(--text-dim);
}
.pill.spotify { background: rgba(29,185,84,.14); color: #56d98a; border-color: rgba(29,185,84,.35); }
.pill.youtube { background: rgba(226,59,59,.14); color: #f07070; border-color: rgba(226,59,59,.35); }
.pill:hover { filter: brightness(1.15); }

.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); }

/* ---------------- 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 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;
    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 { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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; }
.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-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; }

/* ---------------- 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-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.pstat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; text-align: center; }
.pstat-num { display: block; font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; }
.pstat-num small { font-size: 14px; color: var(--text-mute); }
.pstat-lbl { display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px; }
@media (max-width: 720px) { .profile-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .profile-stats { grid-template-columns: 1fr; } }

/* 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; }

/* 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); }

/* 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-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-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); }
.big-score { display: flex; align-items: center; gap: 18px; background: var(--panel);
    border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; }
.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; }

/* 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; }

/* ---------------- 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; }

/* ---------------- 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) {
    .main-nav { display: none; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .search-box { order: 3; margin-left: 0; width: 100%; }
    .search-box input { width: 100%; max-width: none; }
    .header-actions { margin-left: auto; }
    .layout { grid-template-columns: 1fr; gap: 16px; }
    .right-col { grid-template-columns: 1fr 1fr; }
    .detail { grid-template-columns: 1fr; }
    .detail-cover { max-width: 280px; margin: 0 auto; }
    .hero { min-height: 0; }
    .hero-content { padding: 28px 22px; }
    .hero h1 { font-size: 24px; }
}

/* 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: flexibel stapeln */
    .song-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; }
    .cover { width: 54px; height: 54px; }
    .song-info { flex: 1; min-width: 0; }
    .song-title { font-size: 15px; }
    .song-rating { width: auto; text-align: left; order: 4; min-width: 0; }
    .song-rating .score { display: inline-block; margin: 0 8px 0 0; }
    .song-rating .rating-count { display: inline-block; }
    /* Spotify/YouTube-Buttons auf dem Handy anzeigen (eigene Zeile) */
    .song-links { display: flex; order: 5; width: 100%; gap: 8px; flex-wrap: wrap; }
    .song-links .pill { flex: 1; justify-content: center; min-width: 110px; }
    .row-menu, .row-admin-del { margin-left: auto; order: 3; }

    /* 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 { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
    .big-score .num { font-size: 34px; }

    .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; }
}
