:root {
    --bg: #f5efe2;
    --panel: rgba(255, 250, 240, 0.88);
    --panel-strong: #fffaf0;
    --ink: #1f2937;
    --muted: #5f6b7a;
    --accent: #b45309;
    --accent-strong: #7c2d12;
    --line: rgba(180, 83, 9, 0.18);
    --shadow: 0 18px 40px rgba(124, 45, 18, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.35), transparent 28%),
        radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.18), transparent 24%),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
    min-height: 100vh;
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--accent-strong);
}

h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.95;
}

.lead {
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-card,
.status-card,
.search-form,
.track-card,
.empty-state {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 22px;
}

.metric {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(180, 83, 9, 0.1);
}

.metric-label,
.status-card span,
.track-meta {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.metric strong,
.status-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.1rem;
}

.toolbar {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 20px;
    margin-top: 26px;
}

.search-form,
.status-card,
.empty-state {
    padding: 22px;
}

.search-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    background: var(--panel-strong);
    font: inherit;
}

.search-row button {
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.status-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.5;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.track-card {
    overflow: hidden;
}

.track-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #d6d3d1;
}

.track-copy {
    padding: 18px;
}

.track-title,
.track-artist {
    margin: 0;
}

.track-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.track-artist {
    margin-top: 6px;
    color: var(--accent-strong);
    font-size: 1rem;
}

.track-meta {
    margin-top: 12px;
    line-height: 1.5;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
}

code {
    font-family: Consolas, 'Courier New', monospace;
}

@media (max-width: 860px) {
    .hero,
    .toolbar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 20px, 1200px);
        padding-top: 20px;
    }

    .hero-card,
    .search-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .search-row button {
        width: 100%;
    }
}