
/* =========================================================
   SONGS – GRUNDLAGEN UND FARBEN
   ========================================================= */

.songs-page {

    --songs-panel: #666666;
    --songs-panel-soft: #303030;
    --songs-line: #555555;
    --songs-text: #f4f4f4;
    --songs-muted: #c5c5c5;
    --songs-accent: #d94b61;
}

.album-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;

    border: 1px solid #666666;
    box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
}


/* =========================================================
   HAUPTBEREICH
   ========================================================= */

.songs-content {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    margin: 55px auto 0;
    padding: clamp(22px, 4vw, 40px);

    background: var(--songs-panel);
    color: var(--songs-text);
    border: none;

    position: relative;
    isolation: isolate;
}

.songs-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);

    background: var(--songs-panel);
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}



/* =========================================================
   SEITENÜBERSCHRIFT
   ========================================================= */

.songs-heading {
    margin: 0 0 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--songs-line);
}

.songs-eyebrow,
.album-kicker {
    margin: 0 0 8px;

    color: var(--songs-muted);
    font: 700 11px/1.4 Verdana, Arial, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.songs-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.songs-heading > p:last-child {
    max-width: 680px;
    margin: 0;

    color: var(--songs-muted);
    line-height: 1.7;
}


/* =========================================================
   ALBUM-GRID
   ========================================================= */

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.album-section {
    min-width: 0;
    margin: 0;
    scroll-margin-top: 28px;
}


/* =========================================================
   ALBUMKARTEN
   ========================================================= */

.album-card {
    padding: 16px;

    background: #202020;
    border: 1px solid #4f4f4f;
    border-radius: 8px;
}

.album-header {
    display: block;
    margin: 8px 0 16px;
}

.album-header h2 {
    margin: 0;

    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.album-subtitle {
    margin: 7px 0 0;

    color: var(--songs-muted);
    font-size: 13px;
}


/* =========================================================
   AUFKLAPPBARE ALBEN
   ========================================================= */

.album-details {
    min-width: 0;
}

.album-summary {
    display: block;
    cursor: pointer;
    list-style: none;
}

.album-summary::-webkit-details-marker {
    display: none;
}

.album-summary:focus-visible {
    outline: 2px solid #c7c7c7;
    outline-offset: 4px;
    border-radius: 4px;
}


/* =========================================================
   ALBUMCOVER UND PLATZHALTER
   ========================================================= */

.album-artwork {
    min-width: 0;
}

.legacy-artwork {
    background:
        radial-gradient(
            ellipse at 50% 30%,
            #654b52 0,
            #29242b 40%,
            #101013 80%
        );
}


/* =========================================================
   HINWEIS ZUM ÖFFNEN DER TRACKLISTE
   ========================================================= */

.album-open-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;

    margin-top: 12px;

    color: var(--songs-muted);
    font-size: 12px;
}

.album-open-hint::after {
    content: '+';

    color: var(--songs-accent);
    font-size: 20px;
    line-height: 1;
}

.album-details[open] .album-open-hint::after {
    content: '-';
}


/* =========================================================
   TRACKLISTE
   ========================================================= */

.track-list {
    min-width: 0;
    margin-top: 14px;
    border-top: 1px solid var(--songs-line);
}

.track {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;

    width: 100%;
    min-height: 48px;
    padding: 10px 3px;

    color: var(--songs-text);
    background: transparent;

    border: 0;
    border-bottom: 1px solid var(--songs-line);

    text-align: left;
    font: inherit;
    cursor: pointer;
}

.track:hover,
.track:focus-visible {
    background: var(--songs-panel-soft);
    outline: none;
}

.track:focus-visible {
    box-shadow: inset 0 0 0 2px #c7c7c7;
}

.track-play {
    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    color: var(--songs-accent);
    font-size: 13px;
}

.track-title {
    min-width: 0;

    line-height: 1.45;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.track-duration {
    color: var(--songs-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.track.is-playing {
    background: #3a3033;
}

.track.is-playing .track-play {
    color: #ffffff;
}


/* =========================================================
   YOUTUBE-PLAYER
   ========================================================= */

.player-area {
    grid-column: 1 / -1;

    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid var(--songs-line);
}

.player-area[hidden] {
    display: none;
}

.player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 14px;
}

.player-heading h3 {
    margin: 0;
    font-size: 18px;
}

.close-player {
    padding: 7px 10px;

    color: var(--songs-muted);
    background: transparent;

    border: 1px solid var(--songs-line);
    border-radius: 4px;

    cursor: pointer;
}

.close-player:hover,
.close-player:focus-visible {
    color: var(--songs-text);
    background: var(--songs-panel-soft);
}

.video-frame {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    background: #000000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   RESPONSIVE – TABLET
   ========================================================= */

@media (max-width: 980px) {
    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}


/* =========================================================
   RESPONSIVE – SMARTPHONE
   ========================================================= */

@media (max-width: 620px) {
    .songs-content {
        width: calc(100% - 20px);
        margin-top: 28px;
        padding: 20px 14px;
    }

    .album-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .album-card {
        padding: 14px;
    }

    .album-header h2 {
        font-size: 21px;
    }

    .album-artwork {
        width: min(100%, 300px);
        margin: 0 auto;
    }
}
