/* Music-first home */
.home-page .track-cover {
    background:
        linear-gradient(180deg, rgba(4, 8, 18, 0.02), rgba(4, 8, 18, 0.34)),
        var(--track-cover-image, url("../../images/no-album-art.svg")) center / cover;
}

.home-page .panel {
    border-color: rgba(184, 205, 236, 0.14);
    background:
        linear-gradient(180deg, rgba(9, 14, 28, 0.56), rgba(6, 10, 22, 0.68)),
        rgba(5, 8, 18, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 22px 70px rgba(0, 0, 0, 0.34);
}

.music-hero-grid {
    isolation: isolate;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 410px);
    gap: clamp(20px, 4vw, 72px);
    min-height: min(820px, calc(100vh - 104px));
    padding: clamp(34px, 6vw, 86px) clamp(18px, 4vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(184, 205, 236, 0.2);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(3, 6, 14, 0.52), rgba(5, 8, 18, 0.06) 44%, rgba(3, 6, 14, 0.28)),
        linear-gradient(180deg, rgba(3, 6, 14, 0.05), rgba(3, 6, 14, 0.22) 58%, rgba(3, 6, 14, 0.34)),
        var(--scene-image) center / cover;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.055),
        inset 0 0 44px rgba(188, 218, 255, 0.04),
        inset 0 -120px 180px rgba(0, 0, 0, 0.42),
        0 30px 90px rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
}

.music-hero-grid::before {
    inset: 13px;
    width: auto;
    height: auto;
    border: 1px solid rgba(184, 205, 236, 0.22);
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px calc(50% - 1px), rgba(255, 255, 255, 0.14) 50%, transparent calc(50% + 1px), transparent 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px calc(100% - 1px), rgba(255, 255, 255, 0.08) 100%),
        repeating-linear-gradient(96deg, rgba(190, 224, 255, 0.032) 0 1px, transparent 1px 18px);
    opacity: calc(var(--scene-glass-opacity) + 0.18 + var(--time-glass-boost));
    transform: none;
    box-shadow: inset 0 0 70px rgba(181, 214, 255, 0.05);
}

.music-hero-grid::after {
    inset: 0;
    width: auto;
    height: auto;
    background:
        radial-gradient(circle at 58% 28%, rgb(var(--neon-primary-rgb) / var(--time-hero-neon-opacity)), transparent 32%),
        radial-gradient(circle at 88% 54%, rgb(var(--neon-secondary-rgb) / var(--time-hero-neon-opacity)), transparent 30%),
        radial-gradient(circle at 16% 82%, var(--scene-warmth), transparent 20%),
        radial-gradient(circle at 74% 30%, var(--scene-glow), transparent 34%),
        linear-gradient(180deg, rgba(3, 5, 12, 0), rgba(3, 5, 12, 0.2));
    filter: none;
    opacity: 1;
}

.home-beta-notice {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    width: min(100%, 910px);
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 1px solid rgb(var(--neon-primary-rgb) / 0.38);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgb(var(--neon-primary-rgb) / 0.2), rgb(var(--neon-secondary-rgb) / 0.12)),
        rgba(5, 9, 20, 0.56);
    color: rgba(248, 250, 255, 0.9);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 780;
    line-height: 1.45;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 18px 46px rgb(var(--neon-primary-rgb) / 0.14);
    backdrop-filter: blur(12px) saturate(1.08);
}

.home-beta-notice-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgb(var(--neon-primary-rgb) / 0.36);
    border-radius: 999px;
    background: rgb(var(--neon-primary-rgb) / 0.14);
    color: rgba(255, 214, 234, 0.96);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-beta-notice-text {
    min-width: 0;
}

.music-hero-grid > .hero-copy {
    grid-column: 1;
    grid-row: 2;
}

.latest-release-card {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-self: end;
    justify-self: end;
    width: min(100%, 390px);
    padding: 14px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(6, 10, 22, 0.42), rgba(7, 12, 27, 0.26)),
        radial-gradient(circle at 18% 18%, rgb(var(--neon-primary-rgb) / 0.1), transparent 34%),
        radial-gradient(circle at 84% 90%, var(--scene-warmth), transparent 38%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 46px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px) saturate(1.04);
}

.latest-release-cover,
.album-card-art,
.ranked-track-art {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 184, 218, 0.18);
    background: rgba(255, 255, 255, 0.045);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 48px rgba(0, 0, 0, 0.32);
}

.latest-release-cover {
    width: 104px;
    justify-self: start;
    aspect-ratio: 1;
    border-radius: 10px;
}

.latest-release-cover img,
.album-card-art img,
.ranked-track-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-release-copy {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
}

.latest-release-copy h2 {
    margin: 0;
    font-size: clamp(1.16rem, 1.8vw, 1.62rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.latest-release-copy p:last-child {
    margin: 0;
    font-size: 0.86rem;
}

.latest-release-card .button {
    grid-column: 1 / -1;
    min-height: 44px;
}

.music-hero-grid .signal {
    background: rgba(5, 9, 19, 0.42);
    color: rgba(224, 232, 247, 0.72);
    margin-bottom: clamp(18px, 1.8vw, 28px);
}

.music-hero-grid h1 {
    max-width: min(820px, 100%);
    margin-bottom: clamp(24px, 2vw, 34px);
    font-size: clamp(2.7rem, 5.05vw, 5.32rem);
    line-height: 1.08;
    overflow-wrap: normal;
    text-wrap: balance;
}

.music-hero-grid .hero-lede {
    max-width: 720px;
    color: rgba(224, 232, 247, 0.78);
    line-height: 1.8;
    overflow-wrap: normal;
    word-break: normal;
}

.music-hero-grid .button {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 16px 40px rgba(45, 120, 255, 0.18);
}

.music-hero-grid .button-muted {
    background: rgba(7, 12, 26, 0.34);
}

.music-hero-grid .live-stat,
.music-hero-grid .home-library-stat {
    padding: 12px;
    background:
        linear-gradient(135deg, rgba(7, 12, 26, 0.32), rgba(7, 12, 26, 0.18)),
        rgba(5, 8, 18, 0.14);
    backdrop-filter: blur(8px);
    opacity: 0.82;
}

.music-hero-grid .live-stat {
    width: min(100%, 560px);
}

.music-hero-grid .home-library-stat {
    width: min(100%, 260px);
}

.music-hero-grid .library-stat {
    min-height: 76px;
    background: rgba(255, 255, 255, 0.018);
}

@media (min-width: 981px) {
    .latest-release-card {
        transform: none;
    }
}

.home-landing-hero {
    display: grid;
    gap: 14px;
    width: min(100%, 1760px);
    margin-inline: auto;
}

.home-landing-hero .home-beta-notice {
    width: min(100%, 760px);
    min-height: 44px;
    padding: 9px 12px;
    background:
        linear-gradient(135deg, rgb(var(--neon-primary-rgb) / 0.16), rgb(var(--neon-secondary-rgb) / 0.08)),
        rgba(5, 9, 20, 0.74);
    font-size: 0.9rem;
}

.home-stage-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(390px, 1.08fr) minmax(270px, 0.7fr);
    gap: 14px;
    align-items: start;
}

.home-stage-feature,
.home-stage-copy,
.home-stage-side {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(184, 205, 236, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
        rgba(5, 9, 20, 0.66);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 20px 58px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px) saturate(1.06);
}

.home-stage-feature {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 10px;
    color: var(--text);
    cursor: pointer;
}

.home-stage-feature.is-locked {
    border-color: rgba(255, 190, 125, 0.36);
}

.home-stage-cover,
.home-stage-row-art {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(184, 205, 236, 0.15);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.055);
}

.home-stage-cover {
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
}

.home-stage-cover img,
.home-stage-row-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-stage-feature-copy {
    display: grid;
    gap: 5px;
    padding: 0 2px 4px;
    min-width: 0;
}

.home-stage-feature-copy strong,
.home-stage-feature-copy small {
    display: block;
}

.home-stage-feature-copy strong {
    color: #f8fbff;
    font-size: 1.55rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.home-stage-feature-copy small {
    overflow: hidden;
    color: rgba(224, 232, 247, 0.68);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-stage-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(5, 9, 20, 0.82), rgba(7, 13, 27, 0.5)),
        radial-gradient(circle at 12% 18%, rgb(var(--neon-primary-rgb) / 0.14), transparent 32%),
        rgba(5, 9, 20, 0.7);
}

.home-stage-copy .signal,
.home-stage-copy h1,
.home-stage-copy p,
.home-stage-copy .hero-actions {
    margin: 0;
}

.home-stage-copy h1 {
    color: #f8fbff;
    font-size: 4rem;
    line-height: 0.95;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
}

.home-stage-tagline {
    max-width: 520px;
    color: rgba(232, 240, 255, 0.78);
    font-size: 1.16rem;
    line-height: 1.62;
}

.home-stage-copy .hero-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 10px;
}

.home-stage-copy .hero-actions .button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    justify-content: center;
}

.home-stage-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 6px;
}

.home-stage-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(184, 205, 236, 0.11);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.home-stage-stats strong {
    color: #f8fbff;
    font-size: 1.22rem;
    line-height: 1;
}

.home-stage-stats small {
    overflow: hidden;
    color: rgba(224, 232, 247, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-stage-side {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 12px;
}

.home-stage-side-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.home-stage-side-heading p {
    margin: 0;
}

.home-stage-side-heading a {
    flex: 0 0 auto;
    color: rgba(232, 240, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.home-stage-track-list {
    display: grid;
    gap: 8px;
}

.home-stage-track-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 74px;
    padding: 8px;
    border: 1px solid rgba(184, 205, 236, 0.1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    cursor: pointer;
}

.home-stage-track-row:hover,
.home-stage-track-row:focus-visible,
.home-stage-feature:hover,
.home-stage-feature:focus-visible {
    border-color: rgb(var(--neon-primary-rgb) / 0.42);
}

.home-stage-row-art {
    width: 58px;
    aspect-ratio: 1;
}

.home-stage-row-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-stage-row-copy strong,
.home-stage-row-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-stage-row-copy strong {
    color: #f7fbff;
    font-size: 0.98rem;
    line-height: 1.12;
}

.home-stage-row-copy small {
    color: rgba(224, 232, 247, 0.62);
    font-size: 0.8rem;
}

/* Rainy rooftop home */
.home-landing-hero {
    gap: var(--nf-page-gap);
}

.home-beta-notice,
.home-landing-hero .home-beta-notice {
    border-color: rgb(var(--nf-window-rgb) / 0.28);
    border-radius: var(--radius-md);
    background:
        linear-gradient(90deg, rgb(var(--nf-window-rgb) / 0.12), transparent 72%),
        rgba(8, 13, 23, 0.76);
    box-shadow: var(--nf-shadow-soft), var(--nf-glow-window);
}

.home-beta-notice-label {
    border-color: rgb(var(--nf-window-rgb) / 0.34);
    background: rgb(var(--nf-window-rgb) / 0.12);
    color: #f6d7a0;
}

.home-stage-feature,
.home-stage-copy,
.home-stage-side,
.home-stream-track-card,
.home-podcast-card,
.home-artist-pulse-card,
.home-section-shell {
    border-color: var(--nf-border);
    border-radius: var(--radius-md);
    background: var(--nf-surface-glass);
    box-shadow: var(--nf-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.home-stage-copy {
    background:
        linear-gradient(135deg, rgba(7, 12, 22, 0.88), rgba(9, 15, 26, 0.64)),
        linear-gradient(90deg, rgb(var(--nf-window-rgb) / 0.08), transparent 48%, rgb(var(--nf-rain-rgb) / 0.08)),
        rgba(5, 9, 18, 0.76);
}

.home-stage-copy h1 {
    color: #f7f9fb;
    font-size: clamp(3rem, 5vw, 4.6rem);
}

.home-stage-tagline {
    color: var(--nf-text-soft);
}

.home-stage-cover,
.home-stage-row-art,
.home-stream-track-art {
    border-color: rgb(var(--nf-rain-rgb) / 0.18);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.home-stage-track-row,
.home-stage-stats span,
.home-podcast-stat,
.home-section-mini-card {
    border-color: var(--nf-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
}

.home-stage-track-row:hover,
.home-stage-track-row:focus-visible,
.home-stage-feature:hover,
.home-stage-feature:focus-visible,
.home-stream-track-card:hover,
.home-podcast-card:hover {
    border-color: rgb(var(--nf-rain-rgb) / 0.42);
    box-shadow: var(--nf-shadow-lift), var(--nf-glow-rain);
}

.home-stage-stats strong,
.home-stage-feature-copy strong,
.home-stage-row-copy strong {
    color: #f7f9fb;
}

.home-stage-stats small,
.home-stage-feature-copy small,
.home-stage-row-copy small {
    color: var(--nf-text-muted);
}

@media (max-width: 980px) {
    .home-stage-grid {
        grid-template-columns: 1fr;
    }

    .home-stage-copy h1 {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .home-stage-copy {
        padding: 20px;
    }

    .home-stage-stats {
        grid-template-columns: 1fr;
    }
}

