.genre-switcher {
    display: flex;
    justify-content: center;
    margin: 0 auto 18px;
}

.genre-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    font-size: 12px;
    transition: .25s ease;
}

.genre-chip::before { content: "←"; }

.genre-chip:hover,
.genre-chip.active {
    color: #DDD6FE;
    background: rgba(139,92,246,.09);
    border-color: rgba(167,139,250,.2);
}

.station-wrapper {
    position: relative;
    width: min(620px, 100%);
    min-height: 670px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.station-card {
    position: relative;
    width: 100%;
    min-height: 620px;
    padding: 54px 35px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 34px;
    background:
        radial-gradient(circle at 50% 31%, rgba(139,92,246,.12), transparent 29%),
        linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 35px 100px rgba(0,0,0,.42);
    backdrop-filter: blur(24px);
}

.station-card::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(109,40,217,.11);
    filter: blur(60px);
    z-index: -1;
}

.station-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.04), transparent 25%, transparent 75%, rgba(139,92,246,.035));
    z-index: -1;
}

.live-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #A7F3D0;
    background: rgba(52,211,153,.06);
    border: 1px solid rgba(52,211,153,.14);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    transition: .3s ease;
}

.live-badge.live-active {
    color: #D1FAE5;
    background: rgba(52,211,153,.1);
    border-color: rgba(52,211,153,.25);
    box-shadow: 0 0 24px rgba(52,211,153,.08);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 0 rgba(52,211,153,.45);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,.4); }
    70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.mute-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    color: var(--text-soft);
    background: rgba(255,255,255,.045);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.mute-btn:hover {
    transform: translateY(-2px);
    background: rgba(139,92,246,.1);
    border-color: rgba(167,139,250,.22);
}

.disc-wrapper {
    display: grid;
    place-items: center;
    margin: 22px 0 30px;
    perspective: 1000px;
}

.disc-3d {
    position: relative;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        repeating-radial-gradient(circle, rgba(255,255,255,.035) 0 2px, transparent 3px 7px),
        conic-gradient(from 0deg, #35146F, #9F67FF, #5B21B6, #B79CFF, #4C1D95, #35146F);
    border: 10px solid rgba(0,0,0,.18);
    box-shadow:
        0 30px 65px rgba(0,0,0,.5),
        0 0 55px rgba(109,40,217,.2),
        inset 0 0 0 1px rgba(255,255,255,.12);
    transform: rotateX(16deg);
    transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}

.disc-3d::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}

.disc-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(125deg, rgba(255,255,255,.22), transparent 20%, transparent 60%, rgba(255,255,255,.03));
    pointer-events: none;
}

.disc-3d.playing {
    animation: playerDiscSpin 9s linear infinite;
    box-shadow:
        0 30px 65px rgba(0,0,0,.5),
        0 0 75px rgba(109,40,217,.34),
        inset 0 0 0 1px rgba(255,255,255,.14);
}

@keyframes playerDiscSpin {
    to { transform: rotateX(16deg) rotateZ(360deg); }
}

.disc-groove {
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
}

.disc-center {
    position: relative;
    z-index: 2;
    width: 105px;
    height: 105px;
    overflow: hidden;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, #211A31, #0A0A0E 70%);
    border: 8px solid rgba(8,8,12,.75);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 25px rgba(0,0,0,.35);
}

#cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#coverFallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.track-title {
    max-width: 90%;
    margin-top: 4px;
    text-align: center;
    font-size: clamp(20px, 4vw, 27px);
    line-height: 1.5;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-sub {
    max-width: 85%;
    margin-top: 5px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    min-height: 22px;
}

.waveform {
    width: 160px;
    height: 42px;
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.waveform span {
    width: 4px;
    height: 12px;
    border-radius: 99px;
    background: rgba(167,139,250,.32);
    transition: height .25s ease, background .25s ease;
}

.waveform.active span {
    background: linear-gradient(180deg, #C4B5FD, #7C3AED);
    animation: wave 1s ease-in-out infinite alternate;
}

.waveform span:nth-child(1) { animation-delay: -.15s; }
.waveform span:nth-child(2) { animation-delay: -.35s; }
.waveform span:nth-child(3) { animation-delay: -.55s; }
.waveform span:nth-child(4) { animation-delay: -.25s; }
.waveform span:nth-child(5) { animation-delay: -.45s; }

@keyframes wave {
    from { height: 8px; }
    to { height: 31px; }
}

.tap-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-radius: 34px;
    background: rgba(5,5,8,.58);
    backdrop-filter: blur(10px);
    opacity: 1;
    visibility: visible;
    cursor: pointer;
    transition: opacity .35s ease, visibility .35s ease;
}

.tap-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tap-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(145deg, #7C3AED, #9F67FF);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 18px 45px rgba(124,58,237,.38);
    font-size: 30px;
    animation: tapFloat 2.5s ease-in-out infinite;
}

.tap-overlay p {
    color: #F3F0FA;
    font-size: 14px;
    font-weight: 600;
}

@keyframes tapFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 650px) {
    .station-wrapper { min-height: 580px; }
    .station-card {
        min-height: 550px;
        padding: 48px 20px 30px;
        border-radius: 27px;
    }
    .tap-overlay { border-radius: 27px; }
    .disc-3d { width: 210px; height: 210px; }
    .disc-center { width: 82px; height: 82px; }
    .disc-groove { inset: 20px; }
    .disc-wrapper { margin: 20px 0 24px; }
}

@media (max-width: 420px) {
    .station-card { min-height: 520px; }
    .station-wrapper { min-height: 550px; }
    .disc-3d { width: 175px; height: 175px; }
    .disc-center { width: 68px; height: 68px; border-width: 6px; }
    .disc-groove { inset: 16px; }
    .track-title { font-size: 19px; }
    .track-sub { font-size: 12px; }
    .live-badge { top: 16px; right: 16px; }
    .mute-btn { top: 16px; left: 16px; }
    .tap-icon { width: 64px; height: 64px; border-radius: 19px; }
}
