/* =========================================================
   Design tokens — Apple Music–inspired app shell
   ========================================================= */
:root {
    --bg: #ffffff;
    --surface: #f5f5f7;
    --surface-2: #ebebee;
    --border: #e2e2e5;
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --text-faint: #767676;
    --accent: #0a84ff;
    --accent-press: #006edb;
    --accent-solid-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.12);
    --blur-bg: rgba(255, 255, 255, 0.78);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    color-scheme: light;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --surface: #1c1c1e;
        --surface-2: #2c2c2e;
        --border: #313134;
        --text: #f5f5f7;
        --text-muted: #98989d;
        --text-faint: #7a7a7e;
        --accent: #0a84ff;
        --accent-press: #409cff;
        --accent-solid-text: #041b33;
        --shadow: rgba(0, 0, 0, 0.5);
        --blur-bg: rgba(0, 0, 0, 0.72);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }

body {
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.has-player { padding-bottom: 84px; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* =========================================================
   Shell
   ========================================================= */
.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: clamp(18px, 4vw, 40px);
}

.site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
    background: var(--blur-bg);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-block: 14px;
    flex-wrap: wrap;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
    flex: none;
}

.wordmark .icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(155deg, var(--accent), #7dc4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wordmark .icon svg { width: 15px; height: 15px; }

.site-nav {
    display: flex;
    gap: 4px;
    font-size: 0.86rem;
    font-weight: 600;
}

.site-nav a {
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.is-active { color: var(--text); background: var(--surface-2); }

.lang-switch {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--accent);
    color: var(--accent-press) !important;
    padding: 6px 12px !important;
    margin-left: 4px;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.lang-switch:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border-radius: 999px;
    padding: 8px 14px;
    flex: 1 1 200px;
    max-width: 260px;
    margin-left: auto;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within { box-shadow: 0 0 0 2px var(--accent); }

.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.86rem;
    outline: none;
}

.search-form input::placeholder { color: var(--text-faint); }

.search-form button {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    padding: 0;
    color: var(--text-muted);
    cursor: pointer;
}

.search-form button:hover { color: var(--text); }

.search-form svg {
    flex: none;
    width: 15px;
    height: 15px;
    pointer-events: none;
}

main { padding-block: clamp(24px, 4vw, 44px) 64px; }

.breadcrumb { margin-bottom: 20px; }

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    color: var(--text-faint);
}

.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--text-faint); opacity: 0.5; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 500; }

.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 24px;
    margin-top: 40px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    justify-content: space-between;
}

.site-footer p {
    margin: 0;
    color: var(--text-faint);
    font-size: 0.78rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-decoration: none;
}

.footer-nav a:hover { color: var(--accent); }

/* =========================================================
   FAQ page
   ========================================================= */
.faq-page { max-width: 720px; margin: 0 auto; padding-block: 8px 40px; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================================
   Section headings
   ========================================================= */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head .titles { display: flex; flex-direction: column; gap: 8px; }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    text-wrap: balance;
}

.see-all {
    flex: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-press);
    transition: opacity 0.2s ease;
}

.see-all:hover { opacity: 0.7; }

section.block { margin-bottom: clamp(36px, 5vw, 56px); }

section.related {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid var(--border);
}

.intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(36px, 6vw, 56px); max-width: 680px; }

.intro h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.08;
    text-wrap: balance;
}

.intro p { margin: 0; color: var(--text-muted); font-size: 1rem; max-width: 52ch; }

/* =========================================================
   Card grid
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.card { display: flex; flex-direction: column; gap: 8px; }

.card .art {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 1px 3px var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover .art { box-shadow: 0 12px 24px -8px var(--shadow); transform: translateY(-2px); }

.card .art img { width: 100%; height: 100%; object-fit: cover; }

.card .play-overlay {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card:hover .play-overlay,
.card.is-playing .play-overlay { opacity: 1; transform: translateY(0); }
.card.is-playing .play-overlay { background: var(--accent); color: #fff; }
.play-overlay svg { width: 14px; height: 14px; }

.card .meta { display: flex; flex-direction: column; gap: 2px; }

.card .kind { font-size: 0.68rem; font-weight: 600; color: var(--text-faint); }

.card .title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Artist grid */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.artist-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.artist-card .photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 1px 3px var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.artist-card a:hover .photo { box-shadow: 0 12px 24px -8px var(--shadow); transform: translateY(-2px); }

.artist-card .photo img { width: 100%; height: 100%; object-fit: cover; }

.artist-card .name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}

.artist-card .count {
    font-size: 0.72rem;
    color: var(--text-faint);
}

/* List rows (song list, Apple-Music-playlist style) */
.row-list { list-style: none; margin: 0; padding: 0; }

.row-item {
    display: grid;
    grid-template-columns: 40px 1fr auto 30px;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.row-item:hover { background: var(--surface); }

.row-item .art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-2);
    flex: none;
}

.row-item .art img { width: 100%; height: 100%; object-fit: cover; }

.row-item .title-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.row-item .kind { font-size: 0.68rem; font-weight: 600; color: var(--text-faint); }

.row-item .title {
    font-weight: 500;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-item.is-playing .title { color: var(--accent); }

.row-item .date {
    font-size: 0.76rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.row-item .row-play {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.row-item .row-play:hover { background: var(--accent); color: #fff; }
.row-item.is-playing .row-play { background: var(--accent); color: #fff; }
.row-item .row-play svg { width: 13px; height: 13px; }

/* =========================================================
   Pagination
   ========================================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(28px, 4vw, 40px);
    font-size: 0.84rem;
}

.pagination a {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination a:hover { background: var(--accent); color: #fff; }
.pagination span { color: var(--text-faint); }

/* =========================================================
   Artist profile header
   ========================================================= */
.artist-header {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
    margin-bottom: clamp(36px, 6vw, 56px);
    flex-wrap: wrap;
}

.artist-header-photo {
    width: clamp(96px, 14vw, 140px);
    height: clamp(96px, 14vw, 140px);
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 20px 40px -20px var(--shadow);
}

.artist-header-photo img { width: 100%; height: 100%; object-fit: cover; }

.artist-header-info h1 {
    margin: 8px 0 6px;
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    text-wrap: balance;
}

.artist-header-info .date { font-size: 0.85rem; color: var(--text-faint); }

/* =========================================================
   Detail pages (mp3 / album)
   ========================================================= */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

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

.detail .cover {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 20px 40px -20px var(--shadow);
}

.detail .cover img { width: 100%; height: 100%; object-fit: cover; }

.detail .info .eyebrow { margin-bottom: 8px; }

.detail .info h1 {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.12;
    text-wrap: balance;
}

.detail .info .date {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 22px;
}

.btn-play,
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.btn-play { background: var(--accent); color: #fff; margin-right: 10px; }
.btn-play:hover { background: var(--accent-press); }
.btn-play.is-playing { background: var(--text); }

.btn-download { background: var(--surface); color: var(--text); }
.btn-download:hover { background: var(--surface-2); }

.btn-play svg, .btn-download svg { width: 15px; height: 15px; }

.action-row { margin-bottom: 22px; }

.description { color: var(--text-muted); font-size: 0.94rem; max-width: 62ch; margin-top: 4px; }
.description :first-child { margin-top: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
}

.back-link:hover { opacity: 0.7; }

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.share-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 2px;
}

.share-buttons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.share-buttons a:hover { background: var(--accent); color: #fff; }
.share-buttons a svg { width: 15px; height: 15px; }

/* Tracklist — order is real (track sequence), numbering carries meaning */
.tracklist { margin: 28px 0 0; padding: 0; list-style: none; }

.track {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.track:hover { background: var(--surface); }
.track.is-playing { color: var(--accent); }

.track .num { font-size: 0.8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.track.is-playing .num { color: var(--accent); }
.track .t-title { font-size: 0.9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.track .row-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.track .row-play:hover,
.track.is-playing .row-play { background: var(--accent); color: #fff; }
.track .row-play svg { width: 12px; height: 12px; }

/* =========================================================
   Empty / 404
   ========================================================= */
.empty-state {
    text-align: center;
    padding-block: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.empty-state h1 { margin: 0; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.5rem, 4vw, 2rem); }

/* =========================================================
   Mini player — persistent bottom bar
   ========================================================= */
.mini-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--blur-bg);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mini-player .progress-track {
    height: 3px;
    background: var(--surface-2);
    cursor: pointer;
}

.mini-player .progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.08s linear;
}

.mini-player .bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px clamp(14px, 4vw, 32px);
    max-width: 1240px;
    margin: 0 auto;
}

.mini-player .art {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    flex: none;
}

.mini-player .art img { width: 100%; height: 100%; object-fit: cover; }

.mini-player .info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }

.mini-player .info .title {
    font-size: 0.86rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-player .info .time {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.mini-player .toggle {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mini-player .toggle svg { width: 15px; height: 15px; }

.mini-player .prev,
.mini-player .next {
    flex: none;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.mini-player .prev:hover,
.mini-player .next:hover { color: var(--text); }

.mini-player .prev svg,
.mini-player .next svg { width: 18px; height: 18px; }

.mini-player .prev:disabled,
.mini-player .next:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.mini-player .volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.mini-player .mute {
    flex: none;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mini-player .mute:hover { color: var(--text); }
.mini-player .mute svg { width: 18px; height: 18px; }

.volume-range {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    border-radius: 999px;
    background: var(--surface-2);
    cursor: pointer;
}

.volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

.volume-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

@media (max-width: 560px) {
    .volume-range { display: none; }
}

/* =========================================================
   Cookie banner (GDPR)
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 50;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 12px 28px -12px var(--shadow);
    transition: bottom 0.2s ease;
}

body.has-player .cookie-banner { bottom: 92px; }

.cookie-banner p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner button {
    border: none;
    background: var(--accent-press);
    color: var(--accent-solid-text);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cookie-banner button:hover { filter: brightness(0.9); }

.cookie-banner button.cookie-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.cookie-banner button.cookie-reject:hover {
    background: var(--surface-2);
    color: var(--text);
}

@media (max-width: 480px) {
    .cookie-banner { left: 12px; right: 12px; max-width: none; }
}

/* =========================================================
   Ajustes finos mobile/tablet
   ========================================================= */
@media (max-width: 520px) {
    /* Fecha ocupaba una columna fija y recortaba el título — la escondemos
       para darle todo el ancho disponible al título en pantallas chicas. */
    .row-item {
        grid-template-columns: 40px 1fr 30px;
    }
    .row-item .date { display: none; }

    .artist-card .name { font-size: 0.8rem; }
    .artist-card .count { font-size: 0.68rem; }

    .detail .cover { max-width: 320px; margin: 0 auto; }
    .artist-header { flex-direction: column; align-items: center; text-align: center; }
    .artist-header-info { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 400px) {
    .site-nav { gap: 2px; }
    .site-nav a { padding: 6px 9px; font-size: 0.8rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
