:root {
    --bg-main: #050814;
    --accent: #45e6ff;
    --accent-soft: rgba(69, 230, 255, 0.4);
    --accent-strong: rgba(69, 230, 255, 0.8);
    --accent-secondary: #ff4dff;
    --text-main: #f5f7ff;
    --text-muted: #a6accf;
    --glass-bg: rgba(9, 14, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);
    --radius-xl: 22px;
    --transition-fast: 0.2s ease-out;
    --transition-med: 0.35s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    overflow-y: auto; /* allow scrolling */
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background: radial-gradient(circle at 10% 20%, #231942 0%, #050814 55%, #000000 100%);
    background-attachment: fixed;   /* keep background fixed */
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--text-main);

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
}

/* Light neon theme */
body.theme-light {
    background: radial-gradient(circle at 0 0, #e4f7ff 0%, #151827 55%, #050814 100%);
}

body.theme-light .player-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.32),
        rgba(18, 30, 80, 0.9)
    );
}

body.theme-light .logo-text {
    text-shadow:
        0 0 8px rgba(69, 230, 255, 0.9),
        0 0 18px rgba(0, 0, 0, 0.7);
}

body.theme-light .theme-toggle {
    background: rgba(240, 248, 255, 0.9);
    color: #222;
}

body.theme-light .playlist-item {
    background: rgba(15, 28, 70, 0.8);
}

body.theme-light .playlist-item.active {
    background: radial-gradient(circle at 0 0, rgba(120, 240, 255, 0.45), rgba(12, 22, 58, 1));
}

/* Neon background glow blobs */
.bg-decor {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.bg-decor-1 {
    background: radial-gradient(circle, #45e6ff 0%, transparent 60%);
    top: -80px;
    left: -60px;
}

.bg-decor-2 {
    background: radial-gradient(circle, #ff4dff 0%, transparent 60%);
    bottom: -80px;
    right: -60px;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
    max-width: 900px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Player container */
.player-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(11, 22, 60, 0.85)
    );
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(69, 230, 255, 0.25),
        0 0 90px rgba(255, 77, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 26px 30px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Logo + LIVE + now playing */
.player-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 6px;
}

.player-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    position: relative;
    text-align: center;
    padding: 18px 40px;
    display: inline-block;
    border-radius: 999px;
    background: rgba(5, 14, 35, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* initial glow (animated below) */
    box-shadow:
        0 0 18px rgba(69, 230, 255, 0.7),
        0 0 38px rgba(255, 77, 255, 0.45),
        inset 0 0 18px rgba(69, 230, 255, 0.25);

    animation: logoGlow 14s linear infinite;
}

.brand-logo .logo-main {
    font-family: "Orbitron", sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #fff;
    text-shadow:
        0 0 12px rgba(69, 230, 255, 0.9),
        0 0 26px rgba(255, 77, 255, 0.6);
    display: block;
    line-height: 1;
}

.brand-logo .logo-sub {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-top: 4px;
    opacity: 0.8;
}

@keyframes logoGlow {
    0% {
        box-shadow:
            0 0 18px rgba(69, 230, 255, 0.9),
            0 0 40px rgba(0, 120, 255, 0.55),
            inset 0 0 18px rgba(69, 230, 255, 0.35);
    }
    25% {
        box-shadow:
            0 0 18px rgba(255, 0, 180, 0.9),
            0 0 40px rgba(255, 120, 255, 0.6),
            inset 0 0 18px rgba(255, 0, 180, 0.35);
    }
    50% {
        box-shadow:
            0 0 18px rgba(255, 180, 0, 0.95),
            0 0 40px rgba(255, 200, 80, 0.6),
            inset 0 0 18px rgba(255, 180, 0, 0.35);
    }
    75% {
        box-shadow:
            0 0 18px rgba(80, 255, 120, 0.9),
            0 0 40px rgba(120, 255, 180, 0.55),
            inset 0 0 18px rgba(80, 255, 120, 0.35);
    }
    100% {
        box-shadow:
            0 0 18px rgba(69, 230, 255, 0.9),
            0 0 40px rgba(0, 120, 255, 0.55),
            inset 0 0 18px rgba(69, 230, 255, 0.35);
    }
}

.logo-text {
    font-family: "Orbitron", system-ui, sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(69, 230, 255, 0.6),
        0 0 18px rgba(255, 77, 255, 0.7);
    color: #ffffff;
}

.theme-toggle {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(5, 10, 28, 0.85);
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(17, 26, 60, 0.95);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(69, 230, 255, 0.5);
}

.share-btn {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(9, 18, 45, 0.85);
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.share-btn:hover {
    background: rgba(25, 38, 80, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.share-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.listeners-badge {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(4, 10, 28, 0.8);
    color: var(--text-muted);
}

.vu-meter {
    margin-top: 6px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 14px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.vu-meter.active {
    opacity: 1;
}

.spectrum-wrapper {
    display: none;
}

.vu-bar {
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, rgba(69, 230, 255, 0.2), rgba(69, 230, 255, 0.9));
    box-shadow:
        0 0 6px rgba(69, 230, 255, 0.7),
        0 0 12px rgba(255, 77, 255, 0.5);
    animation: vuPulse 0.6s ease-in-out infinite;
    animation-play-state: paused;
}

.vu-bar:nth-child(1) { height: 30%; animation-duration: 0.55s; }
.vu-bar:nth-child(2) { height: 60%; animation-duration: 0.7s; }
.vu-bar:nth-child(3) { height: 100%; animation-duration: 0.5s; }
.vu-bar:nth-child(4) { height: 70%; animation-duration: 0.8s; }
.vu-bar:nth-child(5) { height: 40%; animation-duration: 0.65s; }

.vu-meter.active .vu-bar {
    animation-play-state: running;
}

@keyframes vuPulse {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.6;
    }
    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

.spectrum-wrapper {
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at 0 0, rgba(69, 230, 255, 0.15), rgba(5, 10, 30, 0.95));
}

#spectrumCanvas {
    display: block;
    width: 100%;
    height: 80px;
}

/* LIVE badge */
.live-badge {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 12, 32, 0.8);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 0 rgba(255, 77, 77, 0);
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
    white-space: nowrap;
}

.live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.live-badge.live-on {
    background: radial-gradient(circle at 0 0, rgba(255, 77, 77, 0.9), rgba(14, 8, 20, 0.9));
    color: #fff;
    border-color: rgba(255, 120, 120, 0.9);
    box-shadow:
        0 0 10px rgba(255, 77, 77, 0.9),
        0 0 20px rgba(255, 160, 160, 0.7);
}

.live-badge.live-on::before {
    background: #ffebeb;
}

/* Now playing + marquee */
.now-playing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.np-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle at 20% 0%, rgba(69, 230, 255, 0.35), transparent 60%);
    padding: 4px 10px;
}

.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    padding-right: 30px;
    animation: marqueeScroll 16s linear infinite;
    font-size: 0.95rem;
}

.marquee-inner.paused {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Controls block */
.player-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.buttons {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    position: relative;
    border: none;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    background: transparent;
    color: var(--text-main);
    overflow: hidden;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast);
}

.neon-btn {
    background: radial-gradient(circle at 0% 0%, rgba(69, 230, 255, 0.35), rgba(9, 14, 40, 0.95));
    border: 1px solid rgba(69, 230, 255, 0.7);
    box-shadow:
        0 0 8px rgba(69, 230, 255, 0.7),
        0 0 16px rgba(255, 77, 255, 0.6);
}

.neon-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.neon-btn:hover::before {
    opacity: 1;
}

.neon-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
        0 0 14px rgba(69, 230, 255, 0.9),
        0 0 26px rgba(255, 77, 255, 0.85);
}

.neon-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 0 6px rgba(69, 230, 255, 0.6),
        0 0 10px rgba(255, 77, 255, 0.6);
}

/* Volume */
.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    justify-content: flex-end;
}

.volume-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* Volume slider */
#volumeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-secondary));
    outline: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 8px rgba(69, 230, 255, 0.4);
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    box-shadow:
        0 0 6px rgba(69, 230, 255, 0.9),
        0 0 12px rgba(255, 77, 255, 0.9);
}

#volumeSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    box-shadow:
        0 0 6px rgba(69, 230, 255, 0.9),
        0 0 12px rgba(255, 77, 255, 0.9);
}

/* Playlist */
.playlist-section {
    margin-top: 6px;
}

.playlist-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.playlist {
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Playlist status */
.playlist-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Custom scrollbar (WebKit) */
.playlist::-webkit-scrollbar {
    width: 6px;
}
.playlist::-webkit-scrollbar-track {
    background: transparent;
}
.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.playlist-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 6px;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.playlist-item:first-child {
    margin-top: 10px;
}

.playlist-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    box-shadow: none;
    transition:
        border var(--transition-fast),
        box-shadow var(--transition-fast);
}

/* Hover: soft glow */
.playlist-item:hover {
    background: rgba(14, 25, 60, 0.75);
    transform: translateY(-1px);
}

.playlist-item:hover::before {
    border-color: rgba(69, 230, 255, 0.45);
    box-shadow: 0 0 10px rgba(69, 230, 255, 0.45);
}

/* Active: neon outline */
.playlist-item.active {
    background: radial-gradient(circle at 0% 0%, rgba(69, 230, 255, 0.3), rgba(10, 20, 40, 0.9));
    box-shadow: none;
}

.playlist-item.active::before {
    border-color: rgba(69, 230, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(69, 230, 255, 0.7),
        0 0 18px rgba(69, 230, 255, 0.6);
}

.track-name {
    font-size: 0.95rem;
}

.track-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Footer */
.player-footer {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .player-container {
        padding: 20px 16px 14px;
    }

    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 0.12em;
    }

    .player-header-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .volume-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    #volumeSlider {
        width: 120px;
    }
}

.mini-player {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 15, 40, 0.92);
    border: 1px solid rgba(69, 230, 255, 0.6);
    box-shadow:
        0 0 16px rgba(69, 230, 255, 0.85),
        0 0 26px rgba(255, 77, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 50;
    width: min(540px, 90%);
}

.mini-player.visible {
    display: flex;
}

.mini-main {
    overflow: hidden;
}

.mini-title {
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.mini-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-btn {
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    cursor: pointer;
    background: radial-gradient(circle at 0 0, rgba(69, 230, 255, 0.5), rgba(10, 15, 40, 1));
    color: #fff;
    box-shadow:
        0 0 8px rgba(69, 230, 255, 0.8),
        0 0 14px rgba(255, 77, 255, 0.7);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.mini-btn:hover {
    transform: translateY(-1px) scale(1.05);
}

.mini-btn:active {
    transform: translateY(1px) scale(0.97);
}

/* Track cover */
.cover-art-wrapper {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
}

.cover-art-img {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0 18px rgba(69, 230, 255, 0.6),
        0 0 26px rgba(255, 77, 255, 0.6);
    background: radial-gradient(circle at 30% 0, rgba(69,230,255,0.25), rgba(5, 10, 30, 1));
}

/* Track history */
.history-section {
    margin-top: 16px;
}

.history-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.history-list {
    list-style: none;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
    font-size: 0.8rem;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}
.history-list::-webkit-scrollbar-track {
    background: transparent;
}
.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.history-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(8, 14, 32, 0.8);
    margin-bottom: 4px;
}

.history-time {
    color: var(--text-muted);
    white-space: nowrap;
}

.history-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-listeners {
    text-align: right;
    color: var(--text-muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .player-header-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Mobile layout */
@media (max-width: 640px) {
    body {
        display: block;
        padding: 0;
    }

    .page-wrapper {
        max-width: 100%;
        padding: 12px 12px 24px;
        margin: 0 auto;
        align-items: stretch;
    }

    .player-container {
        width: 100%;
        margin: 0 auto;
        padding: 20px 16px 16px;
        border-radius: 18px;
        box-shadow:
            0 0 24px rgba(0, 0, 0, 0.7),
            0 0 40px rgba(69, 230, 255, 0.25),
            0 0 60px rgba(255, 77, 255, 0.2);
    }

    .brand-logo .logo-main {
        font-size: 1.6rem;
        letter-spacing: 0.14em;
    }

    .brand-logo .logo-sub {
        font-size: 0.8rem;
        letter-spacing: 0.28em;
    }

    .player-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .volume-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    #volumeSlider {
        width: 60%;
    }

    .cover-art-img {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }
}

/* Small SEO text block at the bottom */
.seo-block {
    width: 100%;
    max-width: 860px;
    margin: 20px auto 0 auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #8489a5;
}

.seo-title {
    font-family: "Orbitron", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 6px;
    color: #dfe4ff;
}

.seo-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 4px 0;
    color: #9ca3c7;
}

/* ===== ACCESSIBILITY: reduced motion (explicit targets + global override) ===== */
@media (prefers-reduced-motion: reduce) {
    /* Explicitly stop long-running animations some scanners flag */
    .brand-logo {
        animation: none !important;
    }

    .marquee-inner {
        animation: none !important;
        transform: none !important;
    }

    /* Global: minimize all motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ACCESSIBILITY: visible focus for keyboard users ===== */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.btn:focus-visible,
.share-btn:focus-visible,
.theme-toggle:focus-visible,
.mini-btn:focus-visible {
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.85),
        0 0 0 4px rgba(69, 230, 255, 0.9);
}

#volumeSlider:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}


/* ===== Compatibility fallback for browsers without backdrop-filter (older iOS) ===== */

/* Default (no blur support): make glass backgrounds more opaque */
.player-container,
.brand-logo,
.mini-player {
  background: rgba(10, 15, 40, 0.92);
}

/* If backdrop-filter is supported, enable blur + restore lighter glass */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .player-container {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08),
      rgba(11, 22, 60, 0.85)
    );
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }

  .brand-logo {
    background: rgba(5, 14, 35, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mini-player {
    background: rgba(10, 15, 40, 0.92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}


/* Keep the main card from expanding due to long text */
.player-container {
  width: 100%;
  max-width: 900px;
}

/* Prevent long text inside flex layouts from forcing container growth */
.player-header-top,
.now-playing,
.marquee {
  min-width: 0;
}

.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-inner {
  max-width: 100%;
  overflow: hidden;
}

/* ===== Fix: long Now Playing text must not expand layout ===== */
.player-controls,
.player-header-top,
.now-playing,
.marquee {
  min-width: 0;
}

.now-playing {
  width: 100%;
}

.marquee {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.marquee-inner {
  max-width: 100%;
}
