:root{
    --bg:#050607;
    --panel:#0b0d10;
    --panel-2:#111419;
    --line:#252a32;
    --text:#f4f6f8;
    --muted:#9ca3ad;
    --accent:#ff7417;
    --accent-2:#ff9a2e;
    --ok:#25c875;
    --shadow:0 18px 45px rgba(0,0,0,.22);
    --cover-size:120px;
    color-scheme:dark;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
:root[data-theme="light"]{
    --bg:#eef1f4;
    --panel:#ffffff;
    --panel-2:#f6f7f9;
    --line:#d6dbe1;
    --text:#16191e;
    --muted:#67707b;
    --shadow:0 16px 38px rgba(20,28,40,.10);
    color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
button,select{font:inherit}

/* ---------------------------------------------------------------
   Header: Logo oben, darunter nur Text-Buttons für die Genres.
   Keine Genre-Grafiken im Header.
   --------------------------------------------------------------- */
.site-header{
    position:sticky;
    top:0;
    z-index:30;
    background:color-mix(in srgb,var(--bg) 95%,transparent);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(12px);
}
.topbar{
    min-height:104px;
    padding:5px clamp(18px,3vw,38px) 4px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}
.brand-shell{
    display:flex;
    align-items:center;
    width:132px;
    height:98px;
    min-width:132px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:transparent;
    padding:0;
    overflow:visible;
}
.site-logo{
    display:block;
    width:122px;
    height:94px;
    max-width:none;
    object-fit:contain;
    object-position:center;
    /* Vom oberen Rand aus vergrößern:
       oben bleibt das Logo sichtbar, die Spitze wächst nach unten
       bis nahe an die untere Header-Trennlinie. */
    transform:translateY(2px) scale(1.60);
    transform-origin:center top;
}
.theme-toggle{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:7px;
    min-height:38px;
    padding:8px 12px;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--panel);
    color:var(--text);
    cursor:pointer;
    font-size:11px;
    font-weight:850;
}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent)}
.theme-icon{font-size:17px;line-height:1}

.genre-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    padding:8px clamp(12px,3vw,34px) 13px;
}
.genre-nav a{
    display:block;
    flex:0 0 auto;
    min-width:62px;
    padding:9px 13px;
    text-align:center;
    white-space:nowrap;
    border:1px solid #343943;
    border-radius:9px;
    background:var(--panel);
    color:var(--text);
    box-shadow:0 1px 0 rgba(255,255,255,.03) inset;
    font-size:11px;
    font-weight:900;
    letter-spacing:.01em;
    transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease;
}
.genre-nav a:hover{
    transform:translateY(-1px);
    border-color:var(--accent);
    color:var(--accent);
}
.genre-nav a.active{
    border-color:var(--accent);
    background:var(--accent);
    color:#131313;
}

/* --------------------------------------------------------------- */
.page{
    width:min(1500px,calc(100% - 28px));
    margin:27px auto 54px;
}
.hero{
    min-height:430px;
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(230px,.65fr);
    align-items:center;
    gap:clamp(24px,5vw,72px);
    padding:clamp(30px,7vw,82px);
    border:1px solid var(--line);
    border-radius:20px;
    background:
        radial-gradient(circle at 84% 47%,rgba(255,116,23,.22),transparent 31%),
        radial-gradient(circle at 95% 15%,rgba(255,154,46,.09),transparent 24%),
        var(--panel);
    box-shadow:var(--shadow);
    overflow:hidden;
}
.hero-copy{min-width:0}
.hero-logo-shell{
    min-height:260px;
    display:grid;
    place-items:center;
    position:relative;
}
.hero-logo-shell::before{
    content:"";
    position:absolute;
    width:min(310px,90%);
    aspect-ratio:1;
    border-radius:50%;
    background:radial-gradient(circle,rgba(255,116,23,.15),rgba(255,116,23,0) 68%);
    filter:blur(6px);
}
.hero-logo{
    position:relative;
    z-index:1;
    display:block;
    width:auto;
    height:min(310px,30vw);
    min-height:220px;
    max-width:100%;
    object-fit:contain;
    filter:drop-shadow(0 18px 28px rgba(0,0,0,.32));
}
.eyebrow{
    margin:0 0 10px;
    color:var(--accent);
    font:900 11px ui-monospace,SFMono-Regular,Consolas,monospace;
    letter-spacing:.16em;
}
.hero h1,.legal-card h1{margin:0;color:var(--text)}
.hero h1{font-size:clamp(42px,7vw,84px);line-height:.96}
.hero h1 span{color:var(--accent)}
.hero-copy>p:not(.eyebrow){max-width:680px;margin:22px 0 0;color:var(--muted);line-height:1.65}

/* ---------------------------------------------------------------
   Genre-Kachel: Die Logo-Spalte ist exakt so breit wie jedes Cover.
   --------------------------------------------------------------- */
.catalog{width:100%}
.genre-header{
    width:100%;
    display:grid;
    grid-template-columns:var(--cover-size) minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    margin:0 0 10px;
    padding:9px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel);
    box-shadow:var(--shadow);
}
.genre-logo-box{
    width:var(--cover-size);
    height:var(--cover-size);
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:10px;
    background:#101216;
}
.genre-logo{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.genre-heading{min-width:0}
.genre-heading h1{
    margin:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:clamp(22px,3vw,31px);
    font-weight:950;
}
.genre-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}

.copy{
    flex:0 0 auto;
    min-height:36px;
    padding:8px 11px;
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--panel-2);
    color:var(--text);
    cursor:pointer;
    font-size:11px;
    font-weight:900;
}
.copy:hover{border-color:var(--accent);color:var(--accent)}
.copy.done{border-color:var(--ok);color:var(--ok)}

.song-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
}
.song-card{
    min-width:0;
    display:grid;
    grid-template-columns:var(--cover-size) minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    min-height:calc(var(--cover-size) + 18px);
    padding:9px;
    border:1px solid var(--line);
    border-radius:13px;
    background:var(--panel);
}
.song-cover-box{
    width:var(--cover-size);
    height:var(--cover-size);
    overflow:hidden;
    border-radius:9px;
    background:var(--panel-2);
}
.song-cover{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.song-info{min-width:0}
.song-title{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--text);
    font-size:17px;
    font-weight:950;
    line-height:1.25;
}
.song-meta{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    flex-wrap:nowrap;
    gap:3px;
    margin-top:8px;
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
}
.song-meta span{
    display:block;
}
.song-meta span+span::before{
    content:none;
    margin:0;
}

/* YouTube-Studio-artige Seitennavigation */
.pagination{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
    margin-top:15px;
    padding:9px 10px;
    border:1px solid var(--line);
    border-radius:11px;
    background:var(--panel);
    color:var(--muted);
    font-size:11px;
}
.pagination-label{color:var(--muted)}
.page-size{
    padding:6px 8px;
    border:1px solid var(--line);
    border-radius:7px;
    background:var(--panel-2);
    color:var(--text);
}
.page-status{min-width:92px;text-align:center}
.page-button{
    width:34px;
    height:31px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid var(--line);
    border-radius:7px;
    background:var(--panel-2);
    color:var(--text);
    cursor:pointer;
    font-size:20px;
    line-height:1;
}
.page-button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}
.page-button:disabled{opacity:.32;cursor:default}

.loading{
    padding:28px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel);
    color:var(--muted);
}
.genre-picker{
    padding:28px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--panel);
    text-align:center;
    color:var(--muted);
}
.genre-picker strong{display:block;margin-bottom:6px;color:var(--text);font-size:18px}

.legal-card{
    max-width:900px;
    margin:auto;
    padding:clamp(24px,5vw,48px);
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--panel);
    box-shadow:var(--shadow);
}
.legal-card h1{font-size:clamp(34px,5vw,50px)}
.legal-text{
    margin-top:24px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    color:var(--text);
    line-height:1.7;
}
.primary-button{
    display:inline-block;
    margin-top:22px;
    padding:10px 15px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    color:#111;
    font-size:12px;
    font-weight:950;
}
.footer{
    display:flex;
    justify-content:center;
    gap:9px;
    padding:18px 14px 28px;
    color:var(--muted);
    font-size:11px;
}
.footer a:hover{color:var(--accent)}

@media(min-width:760px){
    .song-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1220px){
    .song-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
    :root{--cover-size:92px}
    .site-header{position:relative}
    .topbar{min-height:78px;padding-top:3px;padding-bottom:3px}
    .brand-shell{
        width:90px;
        height:72px;
        min-width:90px;
        display:grid;
        place-items:center;
    }
    .site-logo{
        width:86px;
        height:70px;
        max-width:none;
        object-position:center;
        transform:translateY(1px) scale(1.12);
        transform-origin:center center;
    }
    .theme-toggle{padding:8px 9px}
    .theme-text{display:none}

    .hero{
        grid-template-columns:1fr;
        gap:12px;
        padding:34px 26px;
    }
    .hero-logo-shell{
        min-height:180px;
        order:-1;
    }
    .hero-logo{
        height:190px;
        min-height:0;
    }

    .genre-nav{
        justify-content:flex-start;
        flex-wrap:nowrap;
        overflow-x:auto;
        gap:8px;
        padding:7px 9px 10px;
        scrollbar-width:thin;
        scrollbar-color:#3c424c transparent;
    }
    .genre-nav a{min-width:auto;padding:8px 12px}

    .page{width:calc(100% - 18px);margin-top:17px}
    .genre-header{grid-template-columns:var(--cover-size) minmax(0,1fr)}
    .genre-header>.copy{grid-column:1 / -1;width:100%}

    .song-card{
        grid-template-columns:var(--cover-size) minmax(0,1fr) 36px;
        gap:9px;
    }
    .song-card>.copy{
        width:36px;
        height:36px;
        min-height:36px;
        overflow:hidden;
        padding:0;
        font-size:0;
    }
    .song-card>.copy::before{content:"⧉";font-size:17px}
    .song-card>.copy.done::before{content:"✓"}
    .pagination{justify-content:center}
}
