:root {
    color-scheme: dark;
    --background: #11100f;
    --panel: #1a1816;
    --panel-soft: #211e1b;
    --text: #f5f0e8;
    --muted: #b7aea2;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #d7b26d;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Raleway", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.site-head {
    border-bottom: 1px solid var(--line);
    background: rgba(17, 16, 15, .92);
}

.brand-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
}

.tagline,
.meta {
    color: var(--muted);
    font-size: .86rem;
}

.album-page {
    padding-block: 56px 150px;
}

.album-hero {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    gap: clamp(36px, 7vw, 86px);
    align-items: end;
}

.album-art-wrap {
    aspect-ratio: 1;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.album-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .92;
}

.album-description {
    max-width: 620px;
    margin-bottom: 18px;
    color: #ddd5ca;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.album-credits {
    max-width: 650px;
    color: var(--muted);
    font-size: .9rem;
}

.toolbar,
.song-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar {
    margin-top: 28px;
}

.btn,
.iconbtn,
.panel-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.btn {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
}

.btn.small {
    min-height: 36px;
    padding: 0 13px;
    font-size: .8rem;
}

.btn.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #1a140c;
}

.track-section {
    margin-top: 70px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 1.7rem;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.song-card {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
    transition: transform .18s ease, border-color .18s ease;
}

.song-card:hover,
.song-card.active {
    transform: translateY(-2px);
    border-color: rgba(215, 178, 109, .65);
}

.panel-button {
    min-height: 190px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
}

.song-panel {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-card-copy {
    position: relative;
    padding: 22px;
    align-self: center;
}

.song-card-copy h3 {
    margin-bottom: 6px;
    font-size: 1.35rem;
    line-height: 1.15;
}

.track-number {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.song-actions {
    margin-top: 18px;
}

.player {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid var(--line);
    background: rgba(22, 20, 18, .96);
    backdrop-filter: blur(18px);
}

.player-inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1.4fr);
    gap: 24px;
    align-items: center;
}

.now {
    min-width: 0;
}

.now strong,
.now small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.controls {
    display: flex;
    gap: 8px;
}

.iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.timeline {
    display: grid;
    grid-template-columns: 42px minmax(100px, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.timeline input {
    width: 100%;
}

.time {
    color: var(--muted);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

.modal {
    width: min(960px, calc(100% - 32px));
    max-height: 88vh;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
}

.modal::backdrop {
    background: rgba(0, 0, 0, .78);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.song-dialog-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}

.dialog-media {
    align-self: start;
    width: 100%;
}

.dialog-graphic {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #0e0d0c;
}

.dialog-play {
    display: block;
    width: 100%;
    height: clamp(50px, 6vw, 66px);
    margin: 0;
    border: 1px solid var(--accent);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--accent);
    color: #1a140c;
    font-weight: 800;
    cursor: pointer;
}

.detail-meta {
    margin-bottom: 24px;
    color: var(--muted);
}

.prose {
    margin-bottom: 28px;
    white-space: pre-wrap;
}

.notice {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
}

@media (max-width: 900px) {
    .song-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tagline {
        display: none;
    }

    .album-page {
        padding-top: 30px;
    }

    .album-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .album-art-wrap {
        max-width: 460px;
    }

    .player-inner {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding-block: 10px;
    }

    .timeline {
        grid-column: 1/-1;
    }

    .song-dialog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .wrap {
        width: min(var(--max-width), calc(100% - 24px));
    }

    .song-card {
        grid-template-columns: 1fr;
    }

    .panel-button {
        min-height: 0;
        aspect-ratio: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .song-panel {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .song-dialog-grid {
        padding: 16px;
        gap: 22px;
    }

    .dialog-graphic {
        max-height: none;
        height: auto;
    }

    .dialog-play {
        height: clamp(50px, 14vw, 64px);
    }
}


/* Version 1.5: multi-album presentation */
.album-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}

.album-tile {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .7rem;
    border: 1px solid var(--line);
    background: var(--panel);
    color: inherit;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
}

.album-tile img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.album-tile span {
    display: grid;
    gap: .25rem;
}

.album-tile small {
    color: var(--muted);
}

.album-tile.active {
    outline: 2px solid currentColor;
}

.human-lyrics {
    font-weight: 600;
    letter-spacing: .02em;
}

.coming-soon {
    min-height: 180px;
    display: grid;
    place-content: center;
    text-align: center;
}
/* Version 1.8: swipeable albums + collapsible liner notes */
.album-selector {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 12px;
    margin: 0 0 2rem;
}
.album-tile {
    flex: 0 0 clamp(220px, 30vw, 300px);
    scroll-snap-align: start;
}
.notes-accordion {
    margin: 18px 0 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    overflow: hidden;
}
.notes-accordion summary {
    padding: 13px 16px;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}
.notes-accordion[open] summary { border-bottom: 1px solid var(--line); }
.notes-accordion .prose { margin: 0; padding: 16px; }
.album-notes { max-width: 650px; }
@media (max-width: 540px) {
    .album-tile { flex-basis: 82%; }
}

/* Version 1.9 refinements */
.album-play { width: 100%; }
.dialog-player {
    position: sticky;
    z-index: 4;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: rgba(22, 20, 18, .97);
    backdrop-filter: blur(18px);
}
.dialog-now { min-width: 0; }
.dialog-now strong, .dialog-now small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 620px) {
    .dialog-player { padding: 10px 12px; gap: 10px; }
    .dialog-player .iconbtn { width: 38px; height: 38px; }
}


/* Version 1.10 refinements */
.modal-head-actions { display:flex; align-items:center; gap:8px; }
.site-version { margin: 28px 0 112px; text-align:center; color:var(--muted); font-size:.68rem; letter-spacing:.08em; opacity:.7; }
@media (max-width: 760px) { .site-version { margin-bottom: 126px; } }
