:root {
    --ink: #26221e;
    --muted: #746b63;
    --paper: #f6f0e7;
    --card: #fffdf9;
    --line: #ded3c5;
    --green: #497568;
    --green-dark: #2f564b;
    --rust: #a45536;
    --shadow: 0 14px 35px rgba(61, 46, 34, .12);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 80% 0, #fff8ec 0, transparent 34rem), var(--paper); }
a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255,253,249,.92); backdrop-filter: blur(12px); }
.header-inner, .page-shell, .site-footer { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: white; font-size: 25px; box-shadow: inset 0 0 0 9px rgba(255,255,255,.12); }
.brand strong { display: block; color: var(--green-dark); font: 700 22px Georgia, serif; }
.brand small { display: block; margin-top: 2px; color: var(--muted); }
.collection-count { color: var(--muted); font-weight: 650; white-space: nowrap; }
.page-shell { padding: 52px 0 70px; }
.mode-tabs { display: inline-flex; gap: 5px; padding: 5px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,253,249,.72); }
.mode-tabs a { min-width: 100px; padding: 9px 17px; border-radius: 7px; color: var(--muted); font-weight: 750; text-align: center; text-decoration: none; }
.mode-tabs a.active { background: var(--green); color: white; box-shadow: 0 4px 10px rgba(73,117,104,.22); }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.intro h1, .empty-state h2 { margin: 5px 0 0; color: var(--green-dark); font: 700 clamp(34px, 5vw, 62px)/1.04 Georgia, serif; }
.intro > p { color: var(--muted); font-weight: 700; }
.eyebrow { margin: 0; color: var(--rust); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filters { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(160px, .8fr) minmax(150px, .7fr) auto; gap: 12px; align-items: end; padding: 19px; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 7px 22px rgba(61,46,34,.07); }
.filters label { display: grid; gap: 7px; }
.filters label span { color: var(--muted); font-size: 12px; font-weight: 750; }
input, select, button { font: inherit; }
input, select { width: 100%; height: 44px; padding: 0 11px; border: 1px solid #cfc3b4; border-radius: 8px; background: white; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(73,117,104,.18); border-color: var(--green); }
.filter-actions { display: flex; gap: 9px; }
.button { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button-quiet { background: transparent; color: var(--green); }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.album-card { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 17px; min-height: 126px; align-items: center; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,249,.76); box-shadow: 0 7px 22px rgba(61,46,34,.07); }
.record-link { display: block; border-radius: 50%; }
.record { position: relative; width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: repeating-radial-gradient(circle, #292724 0 3px, #383532 4px 5px); box-shadow: 0 8px 18px rgba(38,34,30,.22); }
.record::before { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--green); }
.record span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); }
.album-card-body { min-width: 0; }
.album-card h2 { margin: 5px 0 6px; color: var(--green-dark); font: 700 20px/1.18 Georgia, serif; overflow-wrap: anywhere; }
.album-card h2 a { text-decoration: none; }
.album-card h2 a:hover { color: var(--rust); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.cd-badge { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #e0ece8; color: var(--green-dark); letter-spacing: .03em; }
.card-artist { margin: 0; color: var(--ink); font-weight: 650; }
.card-artist a { text-decoration-color: rgba(73,117,104,.35); text-underline-offset: 3px; }
.card-artist a:hover { color: var(--rust); }
.song-match { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 16px; }
.artist-card { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 22px 12px 20px; border: 1px solid transparent; border-radius: 14px; text-align: center; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.artist-card:hover { transform: translateY(-3px); border-color: var(--line); background: rgba(255,253,249,.72); }
.artist-avatar { width: 108px; height: 108px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--green) 0 31%, #35322f 32% 100%); color: white; font: 700 23px Georgia, serif; box-shadow: 0 10px 25px rgba(61,46,34,.18); }
.artist-name { margin-top: 14px; color: var(--green-dark); font: 700 18px/1.2 Georgia, serif; }
.artist-count { margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 55px; color: var(--muted); }
.pagination a { color: var(--green); font-weight: 750; text-decoration: none; }
.empty-state { padding: 70px 20px; border: 1px dashed #cbbdab; border-radius: 14px; background: rgba(255,255,255,.46); text-align: center; }
.empty-state h2 { font-size: 35px; }
.empty-state p { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--green); font-weight: 750; text-decoration: none; }
.album-detail { display: grid; grid-template-columns: minmax(250px, 380px) minmax(0, 760px); gap: clamp(36px, 7vw, 94px); align-items: start; }
.detail-record { position: sticky; top: 125px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: repeating-radial-gradient(circle, #282623 0 6px, #383532 7px 9px); box-shadow: 0 24px 55px rgba(38,34,30,.25); }
.detail-record::before { content: ""; width: 34%; height: 34%; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 9px rgba(255,255,255,.12); }
.detail-record span { position: absolute; width: 4%; height: 4%; border-radius: 50%; background: var(--paper); }
.detail-content h1 { margin: 8px 0 7px; color: var(--green-dark); font: 700 clamp(36px, 5vw, 62px)/1.04 Georgia, serif; }
.detail-artist { margin: 0; font-size: 22px; font-weight: 700; }
.detail-artist a { text-decoration-color: rgba(73,117,104,.35); text-underline-offset: 3px; }
.track-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 42px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.track-heading h2 { margin: 0; color: var(--green-dark); font: 700 26px Georgia, serif; }
.track-heading span { color: var(--muted); font-size: 13px; font-weight: 700; }
.track-list { margin: 0; padding: 0; list-style: none; }
.track-list li { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: baseline; padding: 13px 8px; border-bottom: 1px solid rgba(222,211,197,.7); }
.track-number { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.track-title { font-weight: 650; }
.track-duration { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.site-footer { padding: 24px 0 35px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 900px) {
    .filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .search-field { grid-column: 1 / -1; }
    .filter-actions { justify-content: flex-end; }
}
@media (max-width: 620px) {
    .header-inner, .page-shell, .site-footer { width: min(100% - 24px, 1440px); }
    .brand small, .collection-count { display: none; }
    .page-shell { padding-top: 32px; }
    .intro { align-items: start; flex-direction: column; gap: 8px; }
    .intro > p { margin: 0; }
    .filters { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .filter-actions { justify-content: stretch; }
    .filter-actions > * { flex: 1; }
    .album-grid { grid-template-columns: 1fr; }
    .album-detail { grid-template-columns: 1fr; }
    .detail-record { position: relative; top: auto; width: min(72vw, 330px); margin-inline: auto; }
    .artist-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 8px; }
    .artist-avatar { width: 94px; height: 94px; }
}
