:root {
    --accent: #d7d7d7;
    --text: #f7f7f5;
    --muted: rgba(255, 255, 255, .62);
    --line: rgba(255, 255, 255, .14)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    background: #09090b;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden
}

button,
input {
    font: inherit
}

button {
    color: inherit
}

.app-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    padding: 22px clamp(18px, 4vw, 64px) 54px
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #09090b
}

.ambient__cover-wrap {
    position: absolute;
    inset: -8%
}

.ambient__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
    filter: blur(48px) saturate(1.18) brightness(.62);
    transform: scale(1.13);
    transition: opacity .42s ease, filter .42s ease
}

.ambient__cover-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .08), transparent 34%), linear-gradient(180deg, rgba(6, 6, 8, .18) 0%, rgba(7, 7, 10, .72) 70%, rgba(7, 7, 10, .93) 100%)
}

.ambient__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .24;
    animation: drift 14s ease-in-out infinite alternate
}

.ambient__glow--a {
    width: 42vw;
    height: 42vw;
    left: -12vw;
    top: 10vh;
    background: var(--accent)
}

.ambient__glow--b {
    width: 36vw;
    height: 36vw;
    right: -11vw;
    bottom: 0;
    background: #8f3b17;
    animation-delay: -5s
}

.ambient__grain {
    position: absolute;
    inset: 0;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E")
}

@keyframes drift {
    to {
        transform: translate3d(5vw, 3vh, 0) scale(1.08)
    }
}

.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-top: 8px
}

.top-actions {
    display: flex;
    align-items: center
}

.catalog-status {
    font-size: 11px;
    color: rgba(255, 255, 255, .48);
    white-space: nowrap
}

.nav-links {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
    backdrop-filter: blur(16px)
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -.035em
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .11);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px rgba(255, 255, 255, .16)
}

.nav-links {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
    backdrop-filter: blur(16px)
}

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: .22s ease
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, .1);
    color: #fff
}

.top-actions {
    justify-self: end;
    display: flex;
    gap: 10px;
    align-items: center
}

.catalog-status {
    font-size: 11px;
    color: rgba(255, 255, 255, .48);
    white-space: nowrap
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .055);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .22s ease;
    backdrop-filter: blur(16px)
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .1)
}

.icon-btn svg,
.transport-btn svg,
.carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hero {
    width: min(1180px, 100%);
    margin: 6vh auto 0
}

.hero-copy {
    max-width: 760px;
    margin: 0 auto 16px;
    text-align: center
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .24em;
    font-weight: 900;
    color: rgba(255, 255, 255, .52)
}

.hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .96;
    letter-spacing: -.06em
}

.hero h1 span {
    color: rgba(255, 255, 255, .58)
}

.hero p {
    margin: 0 auto;
    max-width: 700px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 13.5px
}

.carousel-stage {
    position: relative;
    min-height: 410px;
    display: grid;
    place-items: center;
    perspective: 1500px
}

.carousel {
    position: relative;
    width: min(840px, 94vw);
    height: 375px;
    touch-action: pan-y;
    user-select: none
}

.loading-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, .22);
    color: var(--muted);
    backdrop-filter: blur(18px);
    font-size: 13px
}

.album-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(190px, 21vw, 270px);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    transform-origin: 50% 100%;
    transition: transform .62s cubic-bezier(.2, .8, .2, 1), opacity .45s ease, filter .45s ease;
    cursor: pointer;
    will-change: transform
}

.album-card__cover {
    aspect-ratio: 1/1;
    width: 100%;
    object-fit: cover;
    display: block;
    background: #17171a
}

.album-card__meta {
    padding: 14px 15px 15px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .045), rgba(0, 0, 0, .25))
}

.album-card__meta strong {
    display: block;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.album-card__meta span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.album-card.is-active {
    box-shadow: 0 36px 95px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 255, 255, .12) inset
}

.carousel-arrow {
    position: absolute;
    z-index: 20;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(0, 0, 0, .24);
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(18px)
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, .1)
}

.carousel-arrow--left {
    left: 4px
}

.carousel-arrow--right {
    right: 4px
}

.player-wrap {
    width: min(1100px, 100%);
    margin: 4px auto 0
}

.player-panel {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(18, 18, 21, .42);
    border-radius: 26px;
    backdrop-filter: blur(28px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .1)
}

.player-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 18px
}

.transport {
    display: flex;
    align-items: center;
    gap: 3px
}

.transport-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, .86)
}

.transport-btn:hover {
    background: rgba(255, 255, 255, .08)
}

.transport-btn--primary {
    width: 48px;
    height: 48px;
    background: #f5f4ef;
    color: #141416
}

.transport-btn--primary:hover {
    background: #fff
}

.transport-btn--primary:disabled {
    opacity: .42;
    cursor: not-allowed
}

.now-playing {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    background: rgba(0, 0, 0, .24);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 17px;
    padding: 8px 12px 8px 8px
}

.now-playing img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #18181b
}

.now-playing__meta {
    min-width: 0
}

.now-playing__meta strong,
.now-playing__meta span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis
}

.now-playing__meta strong {
    font-size: 13px
}

.now-playing__meta span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px
}

.progress-track {
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    overflow: hidden
}

.progress-fill {
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, .9);
    border-radius: inherit
}

.time {
    font-size: 10px;
    color: rgba(255, 255, 255, .52);
    font-variant-numeric: tabular-nums
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 5px
}

.icon-btn.small {
    width: 38px;
    height: 38px;
    background: transparent;
    border-color: transparent
}

.icon-btn.small:hover {
    background: rgba(255, 255, 255, .08)
}

.icon-btn.is-liked svg {
    fill: currentColor
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px
}

.volume-control input {
    accent-color: #fff;
    width: 72px
}

.apple-link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap
}

.apple-link:hover {
    background: rgba(255, 255, 255, .12)
}

.preview-note {
    margin: 9px 10px 0;
    text-align: center;
    color: rgba(255, 255, 255, .36);
    font-size: 10px;
    line-height: 1.5
}

.hidden {
    display: none !important
}

.catalog-section {
    width: min(1180px, 100%);
    margin: 72px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 20px
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -.045em
}

.song-count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px
}

.catalog-item {
    border: 0;
    padding: 0;
    text-align: left;
    background: transparent;
    cursor: pointer;
    min-width: 0
}

.catalog-item__cover-wrap {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 18px;
    overflow: hidden;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .2)
}

.catalog-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease
}

.catalog-item:hover img {
    transform: scale(1.035);
    filter: brightness(.82)
}

.catalog-item__play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(245, 244, 239, .95);
    color: #151517;
    font-size: 13px;
    opacity: 0;
    transform: translateY(4px);
    transition: .25s ease
}

.catalog-item:hover .catalog-item__play {
    opacity: 1;
    transform: none
}

.catalog-item strong {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.catalog-item span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.mobile-dock {
    display: none
}

.search-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none
}

.search-sheet.is-open {
    display: block
}

.search-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(8px)
}

.search-sheet__panel {
    position: relative;
    width: min(620px, calc(100% - 28px));
    margin: 9vh auto 0;
    max-height: 76vh;
    overflow: auto;
    padding: 14px;
    border-radius: 24px;
    background: rgba(20, 20, 23, .94);
    border: 1px solid var(--line);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .5)
}

.search-sheet__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px
}

.search-sheet input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .065);
    color: #fff;
    border-radius: 16px;
    padding: 13px 14px;
    outline: none
}

.search-sheet input:focus {
    border-color: rgba(255, 255, 255, .28)
}

.text-btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    cursor: pointer
}

.search-results {
    display: grid;
    gap: 8px;
    padding-top: 12px
}

.search-result {
    width: 100%;
    border: 0;
    text-align: left;
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 9px;
    border-radius: 16px;
    background: transparent;
    cursor: pointer
}

.search-result:hover {
    background: rgba(255, 255, 255, .07)
}

.search-result img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover
}

.search-result strong,
.search-result span {
    display: block
}

.search-result span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px
}

.search-result small {
    color: rgba(255, 255, 255, .5)
}

@media(max-width:980px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .catalog-status {
        display: none
    }
}

@media(max-width:860px) {
    .app-shell {
        padding-inline: 16px;
        padding-bottom: 106px
    }

    .topbar {
        display: none
    }

    .hero {
        margin-top: 2vh
    }

    .hero-copy {
        display: none
    }

    .carousel-stage {
        min-height: 345px
    }

    .carousel {
        height: 320px;
        width: 100%
    }

    .carousel-arrow {
        display: none
    }

    .player-main {
        grid-template-columns: minmax(0, 1fr) auto
    }

    .transport {
        display: none
    }

    .volume-control {
        display: none
    }

    .now-playing {
        grid-template-columns: 50px minmax(0, 1fr)
    }

    .now-playing img {
        width: 50px;
        height: 50px
    }

    .time {
        display: none
    }

    .player-panel {
        border-radius: 22px
    }

    .mobile-dock {
        position: fixed;
        z-index: 80;
        left: 50%;
        bottom: max(14px, env(safe-area-inset-bottom));
        transform: translateX(-50%);
        width: min(520px, calc(100% - 24px));
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, .14);
        background: rgba(20, 20, 23, .8);
        backdrop-filter: blur(24px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, .38)
    }

    .dock-item,
    .dock-play {
        border: 0;
        text-decoration: none;
        background: transparent;
        color: rgba(255, 255, 255, .58);
        display: grid;
        place-items: center;
        gap: 3px;
        cursor: pointer
    }

    .dock-item {
        flex: 1
    }

    .dock-item span {
        font-size: 18px
    }

    .dock-item small {
        font-size: 9px
    }

    .dock-item.is-active {
        color: #fff
    }

    .dock-play {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #f5f1e9;
        color: #17120e;
        font-size: 17px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
        flex: 0 0 auto
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:560px) {
    .app-shell {
        padding-top: 10px
    }

    .hero {
        margin-top: 1vh
    }

    .carousel-stage {
        min-height: 600px
    }

    .carousel {
        height: 304px
    }

    .album-card {
        width: min(67vw, 240px);
        border-radius: 22px
    }

    .album-card__meta {
        padding: 12px 13px 14px
    }

    .album-card__meta strong {
        font-size: 14px
    }

    .player-wrap {
        margin-top: -6px
    }

    .player-main {
        padding: 10px;
        gap: 8px
    }

    .player-actions {
        justify-self: end
    }

    .now-playing {
        border: 0;
        background: transparent;
        padding: 2px
    }

    .catalog-section {
        margin-top: 42px
    }

    .section-head {
        align-items: start
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .catalog-item__cover-wrap {
        border-radius: 16px
    }

    .catalog-item strong {
        font-size: 12px
    }

    .catalog-item span {
        font-size: 10px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

.youtube-source {
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background: rgba(12, 12, 15, .36);
    backdrop-filter: blur(24px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24)
}

.youtube-source__player {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #050507;
    border: 1px solid rgba(255, 255, 255, .12)
}

.youtube-source__player iframe {
    display: block;
    width: 100%;
    height: 100%
}

.youtube-source__copy {
    padding: 4px 8px 4px 2px
}

.youtube-source__copy strong {
    display: block;
    margin-top: 7px;
    font-size: 20px;
    letter-spacing: -.03em
}

.youtube-source__copy p {
    max-width: 650px;
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6
}

.autoplay-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 700
}

@media(max-width:700px) {
    .youtube-source {
        grid-template-columns: 1fr
    }

    .youtube-source__player {
        width: 100%;
        height: 220px
    }

    .youtube-source__copy {
        padding: 4px 3px 3px
    }

    .youtube-source__copy strong {
        font-size: 18px
    }
}

/* Continuous SPA navigation: views change without unloading YouTube player */
.app-view {
    display: none
}

.app-view.is-active {
    display: block
}

.nav-link[data-route],
.dock-item[data-route] {
    font-family: inherit
}

.playback-badges {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap
}

.autoplay-state.is-live {
    color: #d9ffe2;
    border-color: rgba(118, 255, 153, .2);
    background: rgba(79, 180, 103, .10)
}

.autoplay-state.is-warn {
    color: #ffe9b2;
    border-color: rgba(255, 204, 103, .22);
    background: rgba(196, 137, 33, .10)
}

@media(max-width:560px) {
    .playback-badges {
        gap: 5px
    }

    .autoplay-state {
        font-size: 9px;
        padding: 0 8px
    }
}

.youtube-engine {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none
}

.youtube-engine iframe {
    width: 1px !important;
    height: 1px !important;
    border: 0
}

.youtube-source {
    display: none !important
}