body[data-area="music"] {
    --music-bg: var(--bg-main, #0c0c0c);
    --music-header: var(--bg-header, #121212);
    --music-card: var(--bg-card, #121212);
    --music-card-soft: var(--bg-card-soft, #161616);
    --music-brand: var(--color-primary, #1e018f);
    --music-text: var(--text-main, #cdcdcd);
    --music-muted: var(--text-muted, #8f8f8f);
    --music-line: var(--border-color, rgba(255,255,255,0.08));
    background: var(--music-bg);
    color: var(--music-text);
}

[data-theme="light"] body[data-area="music"] {
    --music-bg: #f4f5f8;
    --music-header: #ffffff;
    --music-card: #ffffff;
    --music-card-soft: #f6f7fb;
    --music-text: #18181b;
    --music-muted: #666b76;
    --music-line: rgba(0,0,0,0.10);
}

.music-header { background: color-mix(in srgb, var(--music-header) 94%, transparent); backdrop-filter: blur(16px); }
.music-topbar { gap: clamp(18px, 3vw, 34px); }
.music-brand img { height: 46px; max-height: 54px; object-fit: contain; }

@media (max-width: 560px) {
    .music-brand img { height: 38px; max-height: 42px; }
}
.music-search { position: relative; max-width: 640px; }
.music-account { display: inline-flex; align-items: center; gap: 10px; margin-left: 0; }
.music-menubar { background: var(--bg-menu); }
.music-menu { gap: 8px; }

.music-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    gap: 6px;
    padding: 8px;
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0,0,0,.38);
}

.music-search-results[hidden] { display: none; }

.music-search-result {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    color: var(--music-text);
    border-radius: 6px;
}

.music-search-result:hover { background: var(--music-card-soft); }
.music-search-result img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.music-search-result strong, .music-search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-search-result span { color: var(--music-muted); font-size: 13px; }

.music-hero {
    min-height: 520px;
    display: grid;
    align-items: center;
    border-bottom: 1px solid var(--music-line);
    background:
        linear-gradient(120deg, rgba(12,12,12,.98) 0%, rgba(18,18,18,.86) 52%, rgba(30,1,143,.36) 100%),
        linear-gradient(180deg, #121212 0%, #0c0c0c 100%);
}

.music-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: 34px;
    padding: 42px 0;
}

.music-hero-copy h1 {
    max-width: 720px;
    margin: 0 0 14px;
    font-size: 60px;
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.music-hero-copy p { max-width: 640px; color: var(--music-muted); line-height: 1.65; }
.music-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.music-hero-track {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: 0 28px 60px rgba(0,0,0,.45);
}

.music-hero-track img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-hero-track::after,
.music-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.76));
}

.music-hero-track-info {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    padding: 20px;
}

.music-hero-track-info strong { font-size: 24px; line-height: 1.15; }
.music-hero-track-info em { color: rgba(255,255,255,.76); font-style: normal; }
.music-hero-track-info small { display: flex; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,.66); }

.music-section { padding-top: 34px; }
.music-grid { align-items: stretch; }

.music-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.music-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); background: var(--music-card-soft); }
.music-card-cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--music-card-soft); }
.music-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.music-card:hover .music-card-cover img { transform: scale(1.04); }
.music-card-badges { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.music-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    color: #fff;
    background: rgba(18,18,18,.78);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.music-badge.premium,
.music-badge.featured { background: var(--music-brand); border-color: transparent; }
.music-badge.free { color: var(--music-text); }

.music-card-body { display: grid; gap: 8px; padding: 14px; }
.music-card-title { color: var(--music-text); font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.music-card-body p { margin: 0; color: var(--music-muted); }
.music-card-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--music-muted); font-size: 12px; }
.music-card-meta span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.music-play-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    color: #fff;
    background: var(--music-brand);
    border: 1px solid var(--music-brand);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.music-rank-list { display: grid; gap: 8px; }
.music-rank-item {
    display: grid;
    grid-template-columns: 34px 58px minmax(0, 1fr) minmax(120px, .45fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    color: var(--music-text);
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
}

.music-rank-item:hover { background: var(--music-card-soft); border-color: rgba(255,255,255,.16); }
.music-rank-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; }
.music-rank-item span { color: var(--music-muted); font-weight: 900; text-align: center; }
.music-rank-item strong, .music-rank-item em, .music-rank-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-rank-item em, .music-rank-item small { color: var(--music-muted); font-style: normal; }

.music-genre-grid,
.music-artist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.music-genre-card,
.music-artist-card,
.music-playlist-band,
.music-player-panel,
.music-lock-card,
.music-description {
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
}

.music-genre-card {
    min-height: 148px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 16px;
    color: var(--music-text);
    background:
        linear-gradient(135deg, rgba(30,1,143,.28), rgba(22,22,22,.92)),
        var(--music-card);
}

.music-genre-card span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--music-brand);
    border-radius: 8px;
    font-weight: 900;
}

.music-genre-card small { color: var(--music-muted); line-height: 1.45; }
.music-artist-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
.music-artist-card img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; }
.music-artist-card div { min-width: 0; display: grid; gap: 3px; }
.music-artist-card strong, .music-artist-card span, .music-artist-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-artist-card span, .music-artist-card small { color: var(--music-muted); }

.music-playlist-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.music-playlist-band h2, .music-playlist-band p { margin: 0; }
.music-playlist-band p:not(.eyebrow) { max-width: 760px; color: var(--music-muted); line-height: 1.55; }

.music-detail {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 42px 0 22px;
}

.music-detail-cover {
    position: sticky;
    top: 128px;
    overflow: hidden;
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
}

.music-detail-cover img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; }
.music-detail-cover .music-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.music-detail-cover .music-badge + .music-badge { top: 42px; }
.music-detail-main h1 { margin: 0; font-size: 42px; line-height: 1.08; letter-spacing: 0; overflow-wrap: anywhere; }
.music-detail-artist { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.music-detail-artist small { color: var(--music-muted); }
.music-detail-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--music-muted); }
.music-detail-stats span { padding: 7px 10px; background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 999px; }

.music-player-panel {
    position: sticky;
    bottom: 96px;
    z-index: 8;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(220px, .64fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(30,1,143,.22), color-mix(in srgb, var(--music-card) 96%, transparent)),
        var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.music-player-art { position: relative; width: 92px; height: 92px; grid-row: span 3; }
.music-player-cover { position: relative; z-index: 1; width: 92px; height: 92px; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.music-player-art-glow { position: absolute; inset: 14px; background: var(--music-brand); filter: blur(28px); opacity: .38; }
.music-player-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.music-player-controls { display: inline-flex; align-items: center; gap: 9px; }
.music-player-toggle,
.music-mini-toggle {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: var(--music-brand);
    border: 1px solid var(--music-brand);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(30,1,143,.32);
}
.music-player-skip,
.music-player-icon,
.music-mini-icon,
.music-mini-queue-button {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    color: var(--music-text);
    background: var(--music-card-soft);
    border: 1px solid var(--music-line);
    border-radius: 999px;
    cursor: pointer;
}
.music-player-icon.is-muted,
.music-mini-icon.is-muted { color: #fff; background: rgba(251,113,133,.86); border-color: transparent; }
.music-player-info { min-width: 0; display: grid; gap: 3px; }
.music-player-info strong { color: var(--music-text); font-size: 20px; line-height: 1.18; }
.music-player-info strong, .music-player-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-player-info span { color: var(--music-muted); }
.music-player-kicker { color: var(--music-brand) !important; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.music-player-timeline { grid-column: 2 / 4; display: grid; grid-template-columns: 48px 1fr 54px; align-items: center; gap: 10px; color: var(--music-muted); font-size: 13px; }
.music-player-timeline input, .music-player-volume input, .music-mini-actions input { width: 100%; accent-color: var(--music-brand); }
.music-player-volume { display: grid; grid-template-columns: auto minmax(120px, 220px); align-items: center; gap: 10px; color: var(--music-muted); }
.music-player-empty { grid-column: 2 / 4; padding: 12px; background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 8px; }
.music-player-empty p { margin: 4px 0 0; color: var(--music-muted); }
.music-player-inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.music-player-inline-actions .pill:disabled { opacity: .58; cursor: not-allowed; }
.music-external-links { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 8px; }
.music-external-links a { padding: 9px 11px; color: var(--music-text); background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 8px; }

.music-lock-card { display: flex; align-items: center; gap: 16px; padding: 18px; }
.music-lock-card h2, .music-lock-card p { margin: 0; }
.music-lock-card p:not(.eyebrow) { color: var(--music-muted); line-height: 1.55; }
.music-lock-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--music-brand); border-radius: 8px; font-weight: 900; }
.music-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.music-detail-actions .is-active { border-color: var(--music-brand); background: var(--music-brand); color: #fff; }
.music-description { padding: 18px; }
.music-description h2 { margin: 0 0 8px; font-size: 20px; }
.music-description p { margin: 0; color: var(--music-muted); line-height: 1.7; }
.music-detail-comments { padding-top: 10px; }

.music-premium-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(30,1,143,.32), rgba(18,18,18,.98)),
        var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
}
.music-premium-band h2, .music-premium-band p { margin: 0; }
.music-premium-band p:not(.eyebrow) { max-width: 760px; color: var(--music-muted); line-height: 1.55; }
.music-premium-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.artist-hero {
    padding: 42px 0 24px;
    background:
        linear-gradient(180deg, rgba(12,12,12,.08), rgba(12,12,12,.98)),
        var(--music-card);
    border-bottom: 1px solid var(--music-line);
}
.artist-cover {
    min-height: 260px;
    display: grid;
    align-items: end;
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(12,12,12,.04), rgba(12,12,12,.88)),
        linear-gradient(135deg, rgba(30,1,143,.7), rgba(18,18,18,.96));
    background-size: cover;
    background-position: center;
    border: 1px solid var(--music-line);
    border-radius: 30px;
}
.artist-identity { display: flex; align-items: flex-end; gap: 16px; min-width: 0; }
.artist-identity img, .artist-avatar-fallback { width: 112px; height: 112px; display: grid; place-items: center; flex: 0 0 auto; object-fit: cover; color: #fff; background: var(--music-brand); border: 5px solid #121212; border-radius: 26px; font-size: 38px; font-weight: 900; }
.artist-identity h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
.artist-identity p { max-width: 760px; margin: 8px 0 0; color: var(--music-muted); line-height: 1.55; }
.artist-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.music-genre-hero {
    padding: 54px 0 34px;
    background:
        linear-gradient(120deg, rgba(12,12,12,.96), rgba(30,1,143,.22)),
        #121212;
    border-bottom: 1px solid var(--music-line);
}

.music-genre-hero h1,
.music-search-head h1 { margin: 0; font-size: 42px; line-height: 1.1; letter-spacing: 0; overflow-wrap: anywhere; }
.music-genre-hero p:not(.eyebrow), .music-search-head p { max-width: 690px; color: var(--music-muted); line-height: 1.55; }
.music-sortbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.music-sortbar button,
.music-list-search select {
    min-height: 40px;
    color: var(--music-text);
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
}

.music-sortbar button.is-active { background: var(--music-brand); border-color: var(--music-brand); color: #fff; }
.music-search-page { padding: 42px 0; }
.music-search-head { margin-bottom: 22px; }
.music-list-search { position: relative; width: min(760px, 100%); }
.music-empty-state { min-height: 220px; display: grid; place-content: center; text-align: center; }

.music-mini-player {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 80;
    width: min(1040px, calc(100% - 28px));
    min-height: 78px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(180px, .9fr) auto minmax(220px, 1.2fr) minmax(230px, .9fr);
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--music-card) 94%, transparent);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}
.music-mini-player[hidden] { display: none; }
.music-mini-track { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; }
.music-mini-player img { width: 54px; height: 54px; object-fit: cover; border-radius: 7px; }
.music-mini-meta { min-width: 0; display: grid; gap: 2px; }
.music-mini-meta strong, .music-mini-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-mini-meta span { color: var(--music-muted); }
.music-mini-controls { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.music-mini-toggle { width: 50px; height: 50px; }
.music-mini-time { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 48px; align-items: center; gap: 9px; color: var(--music-muted); font-size: 12px; }
.music-mini-progress { height: 5px; overflow: hidden; background: var(--music-card-soft); border-radius: 999px; }
.music-mini-progress span { display: block; width: 0%; height: 100%; background: var(--music-brand); }
.music-mini-actions { min-width: 0; display: grid; grid-template-columns: auto auto auto minmax(74px, 120px) auto; align-items: center; justify-content: end; gap: 8px; }
.music-mini-icon, .music-mini-queue-button {
    min-width: 36px;
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.music-mini-queue-button { padding: 0 12px; }

.music-queue-panel {
    position: fixed;
    right: 18px;
    bottom: 108px;
    z-index: 82;
    width: min(380px, calc(100% - 36px));
    max-height: min(560px, calc(100vh - 150px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.music-queue-panel[hidden] { display: none; }
.music-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--music-line); }
.music-queue-head div { display: grid; gap: 2px; }
.music-queue-head span { color: var(--music-muted); font-size: 12px; }
.music-queue-head button { width: 34px; height: 34px; color: var(--music-text); background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 50%; cursor: pointer; }
.music-queue-list { display: grid; gap: 6px; padding: 10px; overflow: auto; }
.music-queue-empty { padding: 14px; color: var(--music-muted); text-align: center; }
.music-queue-item { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px; color: var(--music-text); background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 8px; cursor: pointer; text-align: left; }
.music-queue-item:hover { border-color: rgba(30,1,143,.42); }
.music-queue-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.music-queue-item span { min-width: 0; display: grid; gap: 2px; }
.music-queue-item strong, .music-queue-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-queue-item small { color: var(--music-muted); }
.music-queue-item em { color: var(--music-muted); font-size: 12px; font-style: normal; }
.music-queue-item.is-locked { opacity: .62; }
.music-queue-item.is-locked em { color: var(--warning); }

.music-mini-player {
    --music-card: var(--bg-card, #121212);
    --music-card-soft: var(--bg-card-soft, #161616);
    --music-text: var(--text-main, var(--text, #cdcdcd));
    --music-muted: var(--text-muted, var(--muted, #8f8f8f));
    --music-line: var(--border-color, var(--line, rgba(255,255,255,.08)));
    --music-brand: var(--color-primary, var(--brand, #1e018f));
    left: auto;
    right: 16px;
    bottom: 16px;
    width: min(330px, calc(100% - 32px));
    min-height: 64px;
    transform: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px;
    z-index: 70;
    transition: width .18s ease, min-height .18s ease, box-shadow .18s ease;
}

.music-mini-player .music-mini-track { grid-template-columns: 46px minmax(0, 1fr); }
.music-mini-player img { width: 46px; height: 46px; }
.music-mini-controls { justify-content: flex-end; }
.music-mini-controls [data-mini-prev],
.music-mini-controls [data-mini-next],
.music-mini-time,
.music-mini-actions {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.music-mini-player:hover,
.music-mini-player:focus-within {
    width: min(880px, calc(100% - 32px));
    min-height: 82px;
    grid-template-columns: minmax(190px, .9fr) auto minmax(220px, 1fr) minmax(220px, .9fr);
    box-shadow: 0 22px 54px rgba(0,0,0,.34);
}

.music-mini-player:hover .music-mini-controls [data-mini-prev],
.music-mini-player:hover .music-mini-controls [data-mini-next],
.music-mini-player:hover .music-mini-time,
.music-mini-player:hover .music-mini-actions,
.music-mini-player:focus-within .music-mini-controls [data-mini-prev],
.music-mini-player:focus-within .music-mini-controls [data-mini-next],
.music-mini-player:focus-within .music-mini-time,
.music-mini-player:focus-within .music-mini-actions {
    max-height: 90px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
}

.music-mini-stop {
    color: var(--danger);
    border-color: rgba(251,113,133,.34);
}

body.has-active-mini-player { padding-bottom: 86px; }
body[data-area="zpanel"].has-active-mini-player,
body[data-area="studio"].has-active-mini-player { padding-bottom: 96px; }
body[data-area="zpanel"] .music-mini-player,
body[data-area="studio"] .music-mini-player {
    right: 18px;
    bottom: 18px;
    width: min(330px, calc(100% - 36px));
    z-index: 58;
}
body[data-area="zpanel"] .music-mini-player:hover,
body[data-area="studio"] .music-mini-player:hover,
body[data-area="zpanel"] .music-mini-player:focus-within,
body[data-area="studio"] .music-mini-player:focus-within {
    width: min(560px, calc(100% - 36px));
    grid-template-columns: minmax(0, 1fr) auto;
}
body[data-area="zpanel"] .music-mini-player:hover .music-mini-time,
body[data-area="studio"] .music-mini-player:hover .music-mini-time,
body[data-area="zpanel"] .music-mini-player:hover .music-mini-actions,
body[data-area="studio"] .music-mini-player:hover .music-mini-actions,
body[data-area="zpanel"] .music-mini-player:focus-within .music-mini-time,
body[data-area="studio"] .music-mini-player:focus-within .music-mini-time,
body[data-area="zpanel"] .music-mini-player:focus-within .music-mini-actions,
body[data-area="studio"] .music-mini-player:focus-within .music-mini-actions {
    grid-column: 1 / -1;
}

[data-theme="light"] body[data-area="music"] .music-hero {
    background:
        linear-gradient(120deg, rgba(244,245,248,.98) 0%, rgba(255,255,255,.86) 54%, rgba(30,1,143,.12) 100%),
        linear-gradient(180deg, #ffffff 0%, #f4f5f8 100%);
}

[data-theme="light"] body[data-area="music"] .music-genre-hero,
[data-theme="light"] body[data-area="music"] .artist-hero {
    background:
        linear-gradient(120deg, rgba(255,255,255,.96), rgba(30,1,143,.10)),
        var(--music-card);
}

[data-theme="light"] body[data-area="music"] .music-premium-band,
[data-theme="light"] body[data-area="music"] .music-genre-card {
    background:
        linear-gradient(135deg, rgba(30,1,143,.10), rgba(255,255,255,.96)),
        var(--music-card);
}

@media (max-width: 980px) {
    .music-hero-grid,
    .music-detail { grid-template-columns: 1fr; }
    .music-hero-copy h1 { font-size: 46px; }
    .music-hero-track { min-height: 360px; }
    .music-detail-cover { position: static; max-width: 420px; }
    .music-genre-grid, .music-artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .music-rank-item { grid-template-columns: 30px 52px minmax(0, 1fr); }
    .music-rank-item em, .music-rank-item small { display: none; }
    .music-player-panel { grid-template-columns: 80px minmax(0, 1fr); bottom: 96px; }
    .music-player-art, .music-player-cover { width: 80px; height: 80px; }
    .music-player-timeline, .music-player-empty, .music-external-links { grid-column: 2 / 3; }
    .music-player-volume, .music-player-inline-actions { grid-column: 1 / -1; }
    .music-mini-player:hover,
    .music-mini-player:focus-within { grid-template-columns: minmax(170px, 1fr) auto minmax(180px, 1fr); }
    .music-mini-actions { grid-column: 1 / -1; justify-content: stretch; grid-template-columns: auto auto auto minmax(90px, 1fr) auto; }
}

@media (max-width: 760px) {
    .music-topbar { flex-wrap: wrap; }
    .music-account { order: 2; width: 100%; justify-content: space-between; }
    .music-account .guest-actions { flex: 1; }
    .music-search { order: 3; flex-basis: 100%; max-width: none; }
    .music-menu { gap: 6px; }
    .music-hero { min-height: auto; }
    .music-hero-grid { padding: 30px 0; }
    .music-hero-copy h1,
    .music-detail-main h1,
    .music-genre-hero h1,
    .music-search-head h1 { font-size: 34px; }
    .music-hero-track { min-height: 310px; }
    .music-playlist-band, .music-lock-card, .music-premium-band { align-items: flex-start; flex-direction: column; }
    .music-player-timeline { grid-template-columns: 42px 1fr 42px; }
    .music-player-volume { grid-template-columns: 36px 1fr; }
    .artist-identity { align-items: flex-start; flex-direction: column; }
    .music-mini-player { left: 0; right: 0; bottom: 0; width: 100%; transform: none; grid-template-columns: minmax(0, 1fr) auto; border-radius: 8px 8px 0 0; }
    .music-mini-track { grid-template-columns: 46px minmax(0, 1fr); }
    .music-mini-player img { width: 46px; height: 46px; }
    .music-mini-time { grid-column: 1 / -1; grid-template-columns: 40px minmax(0, 1fr) 46px; }
    .music-mini-actions { grid-column: 1 / -1; grid-template-columns: repeat(4, auto) minmax(92px, 1fr); justify-content: stretch; }
    .music-queue-panel { right: 12px; bottom: 112px; width: min(380px, calc(100% - 24px)); }
}

@media (max-width: 520px) {
    .music-genre-grid, .music-artist-grid { grid-template-columns: 1fr; }
    .music-detail { padding-top: 28px; }
    .music-detail-cover { max-width: none; }
    .music-player-panel { grid-template-columns: 58px minmax(0, 1fr); bottom: 92px; padding: 10px; }
    .music-player-art, .music-player-cover { width: 58px; height: 58px; }
    .music-player-main { grid-template-columns: 1fr; align-items: flex-start; gap: 10px; }
    .music-player-controls { justify-content: flex-start; }
    .music-player-toggle { width: 48px; height: 48px; }
    .music-player-inline-actions .pill, .music-external-links a { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; }
    .music-mini-player { gap: 8px; padding: 8px; }
    .music-mini-controls { gap: 5px; }
    .music-mini-icon { min-width: 34px; min-height: 34px; }
    .music-mini-toggle { width: 44px; height: 44px; }
    .music-mini-actions { grid-template-columns: repeat(3, auto) minmax(70px, 1fr); }
    .music-mini-actions [data-mini-share] { display: none; }
    .music-mini-queue-button { padding: 0 9px; }
}
