* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background-color: #050405;
    background-image:
        radial-gradient(1300px 760px at 50% 14%, rgba(255, 40, 70, 0.22), rgba(0, 0, 0, 0) 58%),
        radial-gradient(920px 560px at 18% 72%, rgba(220, 25, 55, 0.14), rgba(0, 0, 0, 0) 62%),
        radial-gradient(900px 540px at 82% 76%, rgba(255, 60, 95, 0.10), rgba(0, 0, 0, 0) 64%),
        linear-gradient(165deg, #070507 0%, #050405 35%, #000000 100%);
    background-attachment: fixed;
}

body {
    min-height: 100%;
    font-family: "Space Grotesk", system-ui, sans-serif;
    background: transparent;
    color: rgba(255, 255, 255, 0.96);
    cursor: pointer;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(175deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.88) 55%, rgba(0, 0, 0, 0.95) 100%),
        radial-gradient(ellipse 100% 75% at 50% 15%, rgba(255, 40, 70, 0.20), transparent 70%),
        radial-gradient(ellipse 80% 60% at 28% 70%, rgba(255, 60, 95, 0.08), transparent 70%);
}

.page::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(700px 420px at 52% 25%, rgba(255, 55, 85, 0.26), rgba(0, 0, 0, 0) 60%),
        radial-gradient(520px 360px at 40% 38%, rgba(255, 35, 65, 0.18), rgba(0, 0, 0, 0) 62%),
        radial-gradient(560px 420px at 62% 48%, rgba(255, 80, 110, 0.10), rgba(0, 0, 0, 0) 70%);
    filter: blur(22px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.page {
    position: relative;
    z-index: 2;
}

.player-dock,
.player-dock * {
    cursor: default;
}

a {
    color: inherit;
}

.snow {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.flake {
    position: absolute;
    left: var(--x, 50vw);
    top: -24px;
    width: var(--size, 12px);
    height: var(--size, 12px);
    border-radius: 999px;
    opacity: var(--alpha, 0.2);
    filter: blur(var(--blur, 2px));
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.10) 55%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 65% 70%, rgba(210, 235, 255, 0.25), rgba(210, 235, 255, 0) 62%);
    box-shadow:
        0 0 24px rgba(255, 255, 255, 0.06),
        0 0 60px rgba(210, 235, 255, 0.04);
    animation: fall var(--fall, 12s) linear forwards;
    will-change: transform, opacity;
}

@keyframes fall {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(var(--drift, 0px), calc(100vh + 32px), 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .snow {
        display: none;
    }
}

.hero {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 90vw;
    padding: 0 1rem;
}

.center-text {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(2.55rem, 9.5vw, 4.4rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 0 66px rgba(255, 40, 70, 0.34),
        0 0 2px rgba(0, 0, 0, 1),
        0 10px 34px rgba(0, 0, 0, 0.88);
}

.player-dock {
    position: fixed;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

.player-inner {
    pointer-events: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 52rem;
}

.player {
    flex: 0 1 auto;
    width: 100%;
    max-width: 40rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    background: linear-gradient(145deg, rgba(12, 8, 10, 0.90) 0%, rgba(5, 4, 6, 0.96) 100%);
    border: 1px solid rgba(210, 30, 55, 0.28);
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(190, 20, 40, 0.10);
}

.cover {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.player-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.35rem 0.65rem;
}

.artist {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.track-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
}

.controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(225, 40, 70, 0.42);
    background: rgba(18, 8, 12, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 248, 250, 0.96);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.play-btn:hover {
    background: rgba(32, 10, 16, 0.94);
    border-color: rgba(255, 70, 100, 0.55);
}

.play-btn span {
    font-size: 0.85rem;
    line-height: 1;
}

.progress-container {
    flex: 1;
    min-width: 48px;
    height: 6px;
    background: rgba(18, 10, 12, 0.92);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 60, 95, 0.10);
}

.progress {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4b0a16, #a31228, #ff3a5b);
    box-shadow: 0 0 14px rgba(255, 60, 95, 0.20);
}

.time {
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.82);
    min-width: 2.25rem;
    text-align: center;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.volume-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    min-width: 2rem;
}

input[type="range"] {
    width: 72px;
    accent-color: #ff3a5b;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .hero {
        max-width: 92vw;
    }

    .player-dock {
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    }

    .player {
        max-width: 100%;
        padding: 0.65rem 0.75rem;
    }

    .cover {
        width: 52px;
        height: 52px;
    }

    .play-btn {
        width: 44px;
        height: 44px;
    }

    input[type="range"] {
        width: 64px;
    }

    .controls {
        flex-wrap: wrap;
    }

    .progress-container {
        order: 3;
        flex: 1 1 100%;
        min-width: 100%;
    }
}
