:root {
    --active-station-color: #7300ff;
    --active-station-color-secondary: #a855f7;
    --active-station-glow: rgba(115, 0, 255, 0.6);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: url('https://radio-gaming.stream/Images/Radio-Gaming-Background.webp') fixed;
    background-size: cover;
    color: #333;
    text-align: center;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7300ff, #a855f7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

a:hover {
    color: #a855f7;
    text-shadow: 0 0 20px rgba(115, 0, 255, 0.5);
}

a:hover::after {
    width: 100%;
}

h1 {
    color: #ffffff;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInUp 0.5s ease-out forwards;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================
   AUDIO PLAYER REDESIGN
   ======================== */

.audio-player {
    width: 420px;
    height: 240px;
    background: linear-gradient(165deg, rgba(20, 15, 35, 0.95) 0%, rgba(10, 8, 20, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, var(--player-border-opacity, 0.12)),
        inset 0 1px 0 rgba(255, 255, 255, var(--player-inset-opacity, 0.1)),
        0 0 calc(var(--player-glow2, 40) * 1px) var(--active-station-color),
        0 0 calc(var(--player-glow, 80) * 1px) var(--active-station-glow);
    padding: 24px 24px 22px;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform: translateY(-8px) scale(1.01);
    justify-content: space-between;
    will-change: transform, box-shadow;
}

/* Animated gradient border effect */
.audio-player::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            var(--active-station-color) 0%,
            transparent 30%,
            transparent 70%,
            var(--active-station-color-secondary) 100%);
    border-radius: 34px;
    z-index: -1;
    opacity: var(--border-glow-opacity, 0.5);
    transition: opacity 0.1s ease-out;
    animation: borderGlow 4s ease-in-out infinite alternate;
    will-change: opacity;
}

/* Inner glow effect */
.audio-player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}



audio {
    display: none;
}

/* Vertical layout with centered album art */
.album-cover-and-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Floating album cover with vinyl effect */
.album-cover {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--active-station-color);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 calc(var(--vis-border-glow, 6) * 1px) var(--active-station-color),
        0 0 calc(var(--vis-border-glow, 6) * 1.5px) var(--active-station-color),
        0 0 calc(var(--vis-glow-size, 30) * 1px) rgba(var(--active-station-glow-rgb), var(--vis-intensity, 0.35));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-property: border, opacity;
    /* Don't transition transform/filter/shadow for performance */
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    opacity: 0.8;
    filter: saturate(1.05) brightness(var(--vis-brightness, 0.92));
    animation: floatAlbumCentered 8s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, filter, box-shadow;
}

@keyframes floatAlbumCentered {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateZ(0deg) scale(var(--vis-scale, 1));
        /* transform: translate(-50%, -50%) rotateZ(0deg) scale(1);*/
    }

    50% {
        transform: translate(-50%, -54%) rotateZ(2deg) scale(calc(var(--vis-scale, 1)));
        /*transform: translate(-50%, -54%) rotateZ(2deg) scale(1.05);*/
    }
}

@keyframes floatAlbum {

    0%,
    100% {
        transform: translateY(0) rotateZ(0deg);
    }

    50% {
        transform: translateY(-8px) rotateZ(1deg);
    }
}

/* Removed local hover as it's absolute now */

/* Dynamic song title with text stroke */
#streamTitle {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 1px var(--active-station-color);
    text-shadow: 0 0 10px var(--active-station-glow);
    line-height: 1.3;
    text-align: center;
    width: 100%;
    padding: 8px 16px;
    border-radius: 16px;
    transition: all 0.4s ease;
    margin-top: 120px;
    z-index: 11;
    /* Prevent title from overlapping controls */
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Sleek player controls bar */
.player-controls {
    width: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 100%);
    border-radius: 20px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 12;
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.player-controls::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--active-station-color) 0%,
            var(--active-station-color-secondary) 50%,
            var(--active-station-color) 100%);
    opacity: 0.8;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.player-controls:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Prominent play/pause button */
#playPauseIcon {
    font-size: 15px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: linear-gradient(135deg,
            var(--active-station-color) 0%,
            var(--active-station-color-secondary) 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px var(--active-station-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

#playPauseIcon.loading i {
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
}

#playPauseIcon.loading .lds-ripple-small {
    display: block;
}

#playPauseIcon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--active-station-color) 0%,
            transparent 50%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#playPauseIcon:hover {
    background: linear-gradient(135deg,
            var(--active-station-color-secondary) 0%,
            var(--active-station-color) 100%);
    transform: scale(1.1);
    box-shadow:
        0 12px 35px var(--active-station-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#playPauseIcon:hover::after {
    opacity: 0.5;
    animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

#playPauseIcon:active {
    transform: scale(0.95);
}

#volume-down,
#volume-up,
.share-discord-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    font-size: 14px;
}

#volume-down:hover,
#volume-up:hover,
.share-discord-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--active-station-color-secondary);
}

.share-discord-icon {
    font-size: 18px;
    color: #5865F2;
    /* Discord Blurple */
}

.share-discord-icon:hover {
    color: #fff;
    filter: drop-shadow(0 0 8px #5865F2);
}

.favorite-icon {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.6;
    font-size: 18px;
    color: #fff;
}

.favorite-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    color: var(--active-station-color-secondary);
}

.favorite-icon.favorited {
    opacity: 1;
    color: var(--active-station-color) !important;
    filter: drop-shadow(0 0 10px var(--active-station-glow));
}

.favorite-icon.favorited:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--active-station-glow));
}

.controls-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
}

/* Time display with accent styling */
#timeDisplay {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 6px;
}

#currentTime {
    color: rgba(255, 255, 255, 0.6);
}

#liveIndicator {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.5px;
    animation: livePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    background: linear-gradient(135deg,
            var(--active-station-color) 0%,
            var(--active-station-color-secondary) 100%);
    padding: 4px 10px;
    border-radius: 20px;
    text-shadow: none;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 15px var(--active-station-glow);
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        box-shadow: 0 0 30px var(--active-station-glow);
        transform: scale(1.05);
    }
}

/* Elegant volume control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.volume-icon {
    font-size: 14px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.25);
    height: 6px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    cursor: pointer;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 15px var(--active-station-glow);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 25px var(--active-station-glow);
}

.volume-slider::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    cursor: pointer;
    border: none;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 15px var(--active-station-glow);
}

audio::-webkit-media-controls-panel {
    height: 0;
}

audio::-webkit-media-controls {
    display: none !important;
}

footer {
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 16px 24px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 100;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(115, 0, 255, 0.5), transparent);
}

header {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 8px 0;
    width: 100%;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7300ff, transparent);
    opacity: 0.5;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    color: white;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(115, 0, 255, 0.5));
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-radius: 8px;
}

nav ul li a i {
    font-size: 16px;
}

nav ul li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vis-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
}

.vis-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--active-station-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--active-station-glow);
}

.vis-toggle-btn i {
    font-size: 14px;
    color: var(--active-station-color);
}

.vis-toggle-btn.disabled {
    opacity: 0.6;
}

.vis-toggle-btn.disabled i {
    color: #ff4d4d;
}

@media (max-width: 600px) {
    .vis-toggle-btn span {
        display: none;
    }

    .vis-toggle-btn {
        padding: 8px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        justify-content: center;
    }
}

.status-badge {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Online State */
.status-badge.online {
    color: #00ff8c;
    border-color: #00ff8c;
    background: rgba(0, 255, 140, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.2), inset 0 0 10px rgba(0, 255, 140, 0.1);
    text-shadow: 0 0 12px rgba(0, 255, 140, 0.8);
    animation: onlineStatusPulse 2s infinite alternate;
}

.status-badge.online .dot {
    background: #00ff8c;
    box-shadow: 0 0 15px #00ff8c, 0 0 30px rgba(0, 255, 140, 0.8), 0 0 45px rgba(0, 255, 140, 0.4);
}

@keyframes onlineStatusPulse {
    from {
        box-shadow: 0 0 15px rgba(0, 255, 140, 0.1), inset 0 0 5px rgba(0, 255, 140, 0.05);
        text-shadow: 0 0 8px rgba(0, 255, 140, 0.6);
    }

    to {
        box-shadow: 0 0 25px rgba(0, 255, 140, 0.4), inset 0 0 15px rgba(0, 255, 140, 0.2);
        text-shadow: 0 0 18px rgba(0, 255, 140, 1);
    }
}

/* Loading State */
.status-badge.loading {
    color: #ffb300;
    border-color: rgba(255, 179, 0, 0.3);
    background: rgba(255, 179, 0, 0.05);
}

.status-badge.loading .dot {
    background: #ffb300;
    box-shadow: 0 0 12px #ffb300;
    animation: loadingPulse 1s infinite alternate;
}

/* Paused State */
.status-badge.paused {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.status-badge.paused .dot {
    background: #6366f1;
    box-shadow: 0 0 12px #6366f1;
    animation: none;
}

/* Offline/Error State */
.status-badge.offline {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.3);
    background: rgba(255, 77, 77, 0.05);
}

.status-badge.offline .dot {
    background: #ff4d4d;
    box-shadow: 0 0 12px #ff4d4d;
    animation: pulseError 2s infinite;
}

.status-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

@keyframes loadingPulse {
    from {
        opacity: 0.4;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes pulseError {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

footer {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 40px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    font-size: 14px;
}

.footer-center {
    display: flex;
    gap: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: #7300ff;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(115, 0, 255, 0.3);
    border-color: #7300ff;
}

.footer-right {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px;
    /* Increased padding for header/footer */
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Fullscreen mode - main element gets min-height */
body.is-fullscreen main {
    min-height: calc(100vh - 220px) !important;
}

.section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #7300ff;
    margin-bottom: 20px;
    font-weight: 700;
}

.station-selector {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0);
}

.station-photo {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border: 2px solid transparent;
}

.station-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: inherit;
}

.station-photo:hover {
    transform: translateY(-10px) scale(1.1);
    background: rgba(115, 0, 255, 0.2);
    border-color: rgba(115, 0, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(115, 0, 255, 0.2);
}

:root {
    --active-station-color: #7300ff;
    --active-station-color-secondary: #a855f7;
    --active-station-glow: rgba(115, 0, 255, 0.6);
    --scrollbar-thumb-color: #7300ff;
}

.station-photo.active {
    background: linear-gradient(45deg, var(--active-station-color), var(--active-station-color-secondary));
    border-color: #fff !important;
    box-shadow: 0 0 30px var(--active-station-glow);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .header-content {
        padding: 0 20px;
    }

    nav ul {
        gap: 15px;
    }

    nav ul li a span {
        display: none;
        /* Hide text on smaller screens, keep icons */
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0 12px;
    }

    .header-content {
        height: 54px;
        justify-content: space-between;
        padding: 0;
    }

    nav ul {
        gap: 8px;
    }

    nav ul li a {
        padding: 8px 6px;
    }

    .header-right {
        gap: 8px;
    }

    .logo {
        display: none !important;
    }

    h1#StationNameInh1 {
        display: none !important;
    }

    .status-badge {
        padding: 4px 10px;
        font-size: 10px;
    }

    .station-selector {
        gap: 12px;
        padding: 10px;
        border-radius: 20px;
        flex-wrap: wrap;
    }

    .station-photo {
        width: 80px;
        height: 80px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Redesigned player mobile adjustments */
    .audio-player {
        width: 100%;
        max-width: 340px;
        padding: 24px 18px;
    }

    #playPauseIcon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .player-controls {
        padding: 10px 12px;
    }

    .controls-center {
        gap: 8px;
    }

    #timeDisplay {
        font-size: 12px;
        gap: 4px;
    }

    #liveIndicator {
        padding: 3px 8px;
        font-size: 10px;
    }

    .favorite-icon,
    .share-discord-icon {
        font-size: 16px;
    }

    .volume-control {
        padding: 6px 10px;
        gap: 8px;
    }

    .volume-slider {
        width: 60px;
    }

    #streamTitle {
        font-size: 14px;
        padding: 12px 16px;
    }





    main {
        padding-top: 80px;
    }

    .station-photo:hover .tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(50px) !important;
    }
}

body::-webkit-scrollbar {
    width: 1px;
}

body::-webkit-scrollbar-thumb {
    background-color: #7300ff;
    border-radius: 6px;
}

body::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* First station */
.station-photo:nth-child(1).active {
    animation: glow-first 1s infinite alternate;
}

@keyframes glow-first {
    from {
        box-shadow: 0 0 10px rgba(200, 117, 244, 0.8), 0 0 20px rgba(200, 117, 244, 0.6), 0 0 30px rgba(200, 117, 244, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(164, 0, 252, 0.8), 0 0 40px rgba(164, 0, 252, 0.6), 0 0 60px rgba(164, 0, 252, 0.4);
    }
}

/* Second station */
.station-photo:nth-child(2).active {
    animation: glow-second 1s infinite alternate;
}

@keyframes glow-second {
    from {
        box-shadow: 0 0 10px rgba(117, 151, 244, 0.8), 0 0 20px rgba(117, 151, 244, 0.6), 0 0 30px rgba(117, 151, 244, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 59, 252, 0.8), 0 0 40px rgba(0, 59, 252, 0.6), 0 0 60px rgba(0, 59, 252, 0.4);
    }
}

/* Third station */
.station-photo:nth-child(3).active {
    animation: glow-third 1s infinite alternate;
}

@keyframes glow-third {
    from {
        box-shadow: 0 0 10px rgba(128, 117, 244, 0.8), 0 0 20px rgba(128, 117, 244, 0.6), 0 0 30px rgba(128, 117, 244, 0.4);
    }

    to {
        box-shadow: 0 0 20px rgba(54, 37, 241, 0.8), 0 0 40px rgba(54, 37, 241, 0.6), 0 0 60px rgba(54, 37, 241, 0.4);
    }
}

#betaVersion {
    color: #ffffff;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.5s;
    /* Delay the animation */
}

#notificationPopup {
    position: fixed;
    bottom: 60px;
    left: 20px;
    background-color: rgba(99, 0, 132, 0.275);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.4;
    animation: fadeIn 0.5s ease forwards, fadeOut 0.5s ease forwards 5s;

    z-index: 9999;
    color: white;
    /* Changed text color to white */

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0f;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.5s ease;
    overflow: hidden;
}

.loading-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.glow-1,
.glow-2 {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    background: radial-gradient(circle, var(--active-station-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    animation: glowFloat 10s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10vh;
    left: -10vh;
}

.glow-2 {
    bottom: -10vh;
    right: -10vh;
    animation-delay: -5s;
}

@keyframes glowFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(10vw, 5vh) scale(1.1);
    }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 320px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: -10px;
    filter: drop-shadow(0 0 15px var(--active-station-glow));
    animation: pulse 2s infinite ease-in-out;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    text-align: center;
}

#loading-status {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 0 10px var(--active-station-glow);
    transition: opacity 0.3s ease;
}

#loading-percentage {
    font-size: 42px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-wrapper {
    width: 100%;
    position: relative;
    padding-top: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

#loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, #fff);
    background-color: var(--active-station-color);
    box-shadow: 0 0 20px var(--active-station-glow);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 10px;
}

/* Ripple Animation Generic */
.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

/* Small variation for the play button */
.lds-ripple-small {
    display: none;
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.lds-ripple-small div {
    position: absolute;
    border: 3px solid #fff;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple-small 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple-small div:nth-child(2) {
    animation-delay: -0.5s;
}

.loading-screen .lds-ripple {
    margin-bottom: -10px;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

@keyframes lds-ripple-small {
    0% {
        top: 17px;
        left: 17px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 17px;
        left: 17px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 17px;
        left: 17px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 34px;
        height: 34px;
        opacity: 0;
    }
}

.loading-screen {
    display: none;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
}

#notificationContainer {
    position: fixed;
    bottom: 140px;
    /* Raised to be well above the new footer */
    left: 30px;
    z-index: 1999999000;
    display: flex;
    flex-direction: column-reverse;
    /* Newest notifications at bottom */
    gap: 12px;
    pointer-events: none;
}

.notificationPopup {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 350px;
    border-left: 4px solid var(--active-station-color);
    transform: translateX(-120%);
    animation: slideInNotify 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        slideOutNotify 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards 5s;
    pointer-events: auto;
}

.notification-icon {
    width: 24px;
    height: 24px;
    background: var(--active-station-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--active-station-glow);
}

@keyframes slideInNotify {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutNotify {
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

/* Page Sections */
.page-section {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.page-section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Entering animation - slide up and fade in */
.page-section.entering {
    animation: sectionEnter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Exiting animation - fade out and slide down */
.page-section.exiting {
    display: flex;
    animation: sectionExit 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes sectionEnter {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sectionExit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}

/* Info Card Styling */
.info-card {
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 800px;
    margin-top: 20px;
    color: #ffffff;
}

.info-card h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #ffffff;
    opacity: 1;
    transform: none;
    animation: none;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.info-card strong {
    background: #ffffff;
    color: var(--active-station-color);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: var(--active-station-color);
    border-color: var(--active-station-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--active-station-glow);
}

/* Download Section Styling */
.hero-section {
    text-align: center;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: none;
    animation: none;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-top: 0px;
}

.download-card {
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: default;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.download-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--active-station-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--active-station-glow);
}

.download-card i {
    font-size: 2.5rem;
    color: #ffffff;
    /*var(--active-station-color);*/
    margin-bottom: 5px;
    text-shadow: 0 0 20px var(--active-station-glow);
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.download-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Responsive Download Grid */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 15px;
        max-height: 10%;
    }

    .download-card {
        padding: 25px 20px;

    }

    .download-card h3 {
        font-size: 1.3rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
}

.active-nav-link {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.active-nav-link::after {
    width: 100% !important;
}


.animation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}



.particle,
.particle:after {
    background: transparent;
    border-radius: 25px;
}

.particle:after {
    position: absolute;
    content: "";
    top: 2560px;
}

.particle-1 {
    -webkit-animation: animParticle 60s linear infinite;
    animation: animParticle 60s linear infinite;
    box-shadow: 0px 0px #fff, 1113px 406px #fff, 1156px 1486px #fff, 878px 1977px #fff, 2199px 662px #fff, 1547px 170px #fff, 183px 1043px #fff, 2136px 2323px #fff, 411px 1226px #fff, 1474px 824px #fff, 1707px 376px #fff, 2050px 1744px #fff, 1729px 1290px #fff, 440px 2071px #fff, 1200px 500px #fff, 300px 1800px #fff, 2100px 100px #fff, 500px 2400px #fff, 1800px 1200px #fff, 900px 300px #fff, 2500px 2000px #fff, 100px 1100px #fff, 1400px 2200px #fff, 600px 800px #fff, 2200px 1900px #fff, 350px 150px #fff, 1950px 2500px #fff, 750px 1350px #fff, 1650px 450px #fff, 1050px 1650px #fff, 2350px 850px #fff, 50px 2250px #fff, 1350px 150px #fff, 950px 1950px #fff, 450px 1250px #fff, 1850px 650px #fff, 2450px 2450px #fff, 1250px 1250px #fff, 850px 2150px #fff, 150px 550px #fff, 2050px 2150px #fff, 1150px 350px #fff, 550px 1650px #fff, 1750px 950px #fff, 950px 50px #fff, 2550px 1350px #fff, 150px 1850px #fff, 1250px 750px #fff, 850px 450px #fff, 2250px 1250px #fff, 100px 100px #fff, 400px 400px #fff, 700px 700px #fff, 1000px 1000px #fff, 1300px 1300px #fff, 1600px 1600px #fff, 1900px 1900px #fff, 2200px 2200px #fff, 2500px 2500px #fff, 200px 800px #fff, 500px 1100px #fff, 800px 1400px #fff, 1100px 1700px #fff, 1400px 2000px #fff, 1700px 2300px #fff, 2000px 2600px #fff, 2300px 300px #fff, 2600px 600px #fff, 300px 900px #fff, 600px 1200px #fff, 900px 1500px #fff, 1200px 1800px #fff, 1500px 2100px #fff, 1800px 2400px #fff, 2100px 100px #fff, 2400px 400px #fff, 100px 500px #fff, 400px 800px #fff, 700px 1100px #fff, 1000px 1400px #fff, 1300px 1700px #fff, 1600px 2000px #fff, 1900px 2300px #fff, 2200px 100px #fff, 2500px 400px #fff, 800px 700px #fff, 1100px 1000px #fff, 1400px 1300px #fff, 1700px 1600px #fff, 2000px 1900px #fff, 2300px 2200px #fff, 2600px 2500px #fff, 300px 200px #fff, 600px 500px #fff, 900px 800px #fff, 1200px 1100px #fff, 1500px 1400px #fff, 1800px 1700px #fff, 2100px 2000px #fff, 2400px 2300px #fff, 100px 1500px #fff, 400px 1800px #fff, 700px 2100px #fff, 1000px 2400px #fff, 1300px 100px #fff, 1600px 400px #fff, 1900px 700px #fff, 2200px 1000px #fff, 2500px 1300px #fff, 200px 200px #fff, 500px 500px #fff, 800px 800px #fff, 1100px 1100px #fff, 1400px 1400px #fff, 1700px 1700px #fff, 2000px 2000px #fff, 2300px 2300px #fff, 2600px 200px #fff, 100px 2600px #fff, 350px 1050px #fff, 1050px 350px #fff, 650px 1550px #fff, 1550px 650px #fff, 1850px 250px #fff, 250px 1850px #fff, 2150px 1150px #fff, 1150px 2150px #fff, 2450px 550px #fff, 550px 2450px #fff, 150px 1350px #fff, 1350px 150px #fff, 450px 2250px #fff, 2250px 450px #fff, 750px 1950px #fff, 1950px 750px #fff, 1250px 1650px #fff, 1650px 1250px #fff;
    height: 1px;
    width: 1px;
    transform: translate3d(0, 0, 0);
}

.particle-1:after {
    box-shadow: 0px 0px #fff, 1113px 406px #fff, 1156px 1486px #fff, 878px 1977px #fff, 2199px 662px #fff, 1547px 170px #fff, 183px 1043px #fff, 2136px 2323px #fff, 411px 1226px #fff, 1474px 824px #fff, 1707px 376px #fff, 2050px 1744px #fff, 1729px 1290px #fff, 440px 2071px #fff, 1200px 500px #fff, 300px 1800px #fff, 2100px 100px #fff, 500px 2400px #fff, 1800px 1200px #fff, 900px 300px #fff, 2500px 2000px #fff, 100px 1100px #fff, 1400px 2200px #fff, 600px 800px #fff, 2200px 1900px #fff, 350px 150px #fff, 1950px 2500px #fff, 750px 1350px #fff, 1650px 450px #fff, 1050px 1650px #fff, 2350px 850px #fff, 50px 2250px #fff, 1350px 150px #fff, 950px 1950px #fff, 450px 1250px #fff, 1850px 650px #fff, 2450px 2450px #fff, 1250px 1250px #fff, 850px 2150px #fff, 150px 550px #fff, 2050px 2150px #fff, 1150px 350px #fff, 550px 1650px #fff, 1750px 950px #fff, 950px 50px #fff, 2550px 1350px #fff, 150px 1850px #fff, 1250px 750px #fff, 850px 450px #fff, 2250px 1250px #fff, 100px 100px #fff, 400px 400px #fff, 700px 700px #fff, 1000px 1000px #fff, 1300px 1300px #fff, 1600px 1600px #fff, 1900px 1900px #fff, 2200px 2200px #fff, 2500px 2500px #fff, 200px 800px #fff, 500px 1100px #fff, 800px 1400px #fff, 1100px 1700px #fff, 1400px 2000px #fff, 1700px 2300px #fff, 2000px 2600px #fff, 2300px 300px #fff, 2600px 600px #fff, 300px 900px #fff, 600px 1200px #fff, 900px 1500px #fff, 1200px 1800px #fff, 1500px 2100px #fff, 1800px 2400px #fff, 2100px 100px #fff, 2400px 400px #fff, 100px 500px #fff, 400px 800px #fff, 700px 1100px #fff, 1000px 1400px #fff, 1300px 1700px #fff, 1600px 2000px #fff, 1900px 2300px #fff, 2200px 100px #fff, 2500px 400px #fff, 800px 700px #fff, 1100px 1000px #fff, 1400px 1300px #fff, 1700px 1600px #fff, 2000px 1900px #fff, 2300px 2200px #fff, 2600px 2500px #fff, 300px 200px #fff, 600px 500px #fff, 900px 800px #fff, 1200px 1100px #fff, 1500px 1400px #fff, 1800px 1700px #fff, 2100px 2000px #fff, 2400px 2300px #fff, 100px 1500px #fff, 400px 1800px #fff, 700px 2100px #fff, 1000px 2400px #fff, 1300px 100px #fff, 1600px 400px #fff, 1900px 700px #fff, 2200px 1000px #fff, 2500px 1300px #fff, 200px 200px #fff, 500px 500px #fff, 800px 800px #fff, 1100px 1100px #fff, 1400px 1400px #fff, 1700px 1700px #fff, 2000px 2000px #fff, 2300px 2300px #fff, 2600px 200px #fff, 100px 2600px #fff, 350px 1050px #fff, 1050px 350px #fff, 650px 1550px #fff, 1550px 650px #fff, 1850px 250px #fff, 250px 1850px #fff, 2150px 1150px #fff, 1150px 2150px #fff, 2450px 550px #fff, 550px 2450px #fff, 150px 1350px #fff, 1350px 150px #fff, 450px 2250px #fff, 2250px 450px #fff, 750px 1950px #fff, 1950px 750px #fff, 1250px 1650px #fff, 1650px 1250px #fff;
    height: 1px;
    width: 1px;
}

.particle-2 {
    -webkit-animation: animParticle 120s linear infinite;
    animation: animParticle 120s linear infinite;
    box-shadow: 0px 0px #fff, 1432px 2144px #fff, 1458px 338px #fff, 2166px 2210px #fff, 2348px 1266px #fff, 1050px 1815px #fff, 930px 2284px #fff, 713px 1635px #fff, 1978px 833px #fff, 1009px 360px #fff, 200px 1200px #fff, 1800px 400px #fff, 500px 2200px #fff, 1200px 100px #fff, 2500px 1500px #fff, 800px 2400px #fff, 1500px 900px #fff, 300px 1800px #fff, 2100px 700px #fff, 100px 1300px #fff, 1900px 2300px #fff, 600px 200px #fff, 1400px 1600px #fff, 400px 1000px #fff, 2200px 2500px #fff, 850px 550px #fff, 1750px 1950px #fff, 250px 850px #fff, 1350px 2250px #fff, 1150px 1250px #fff, 100px 500px #fff, 400px 900px #fff, 700px 1300px #fff, 1000px 1700px #fff, 1300px 2100px #fff, 1600px 2500px #fff, 1900px 300px #fff, 2200px 700px #fff, 2500px 1100px #fff, 200px 1500px #fff, 500px 1900px #fff, 800px 2300px #fff, 1100px 100px #fff, 1400px 500px #fff, 1700px 900px #fff, 2000px 1300px #fff, 2300px 1700px #fff, 2600px 2100px #fff, 350px 350px #fff, 950px 950px #fff, 1550px 1550px #fff, 2150px 2150px #fff, 650px 2350px #fff, 2350px 650px #fff, 1250px 50px #fff, 50px 1250px #fff, 1850px 1450px #fff, 1450px 1850px #fff;
    height: 2px;
    width: 2px;
    transform: translate3d(0, 0, 0);
}

.particle-2:after {
    box-shadow: 0px 0px #fff, 1432px 2144px #fff, 1458px 338px #fff, 2166px 2210px #fff, 2348px 1266px #fff, 1050px 1815px #fff, 930px 2284px #fff, 713px 1635px #fff, 1978px 833px #fff, 1009px 360px #fff, 200px 1200px #fff, 1800px 400px #fff, 500px 2200px #fff, 1200px 100px #fff, 2500px 1500px #fff, 800px 2400px #fff, 1500px 900px #fff, 300px 1800px #fff, 2100px 700px #fff, 100px 1300px #fff, 1900px 2300px #fff, 600px 200px #fff, 1400px 1600px #fff, 400px 1000px #fff, 2200px 2500px #fff, 850px 550px #fff, 1750px 1950px #fff, 250px 850px #fff, 1350px 2250px #fff, 1150px 1250px #fff, 100px 500px #fff, 400px 900px #fff, 700px 1300px #fff, 1000px 1700px #fff, 1300px 2100px #fff, 1600px 2500px #fff, 1900px 300px #fff, 2200px 700px #fff, 2500px 1100px #fff, 200px 1500px #fff, 500px 1900px #fff, 800px 2300px #fff, 1100px 100px #fff, 1400px 500px #fff, 1700px 900px #fff, 2000px 1300px #fff, 2300px 1700px #fff, 2600px 2100px #fff, 350px 350px #fff, 950px 950px #fff, 1550px 1550px #fff, 2150px 2150px #fff, 650px 2350px #fff, 2350px 650px #fff, 1250px 50px #fff, 50px 1250px #fff, 1850px 1450px #fff, 1450px 1850px #fff;
    height: 2px;
    width: 2px;
}

.particle-3 {
    -webkit-animation: animParticle 180s linear infinite;
    animation: animParticle 180s linear infinite;
    box-shadow: 0px 0px #fff, 32px 958px #fff, 2530px 328px #fff, 2237px 988px #fff, 1886px 2251px #fff, 1780px 292px #fff, 2062px 1949px #fff, 500px 500px #fff, 1500px 1500px #fff, 2000px 1000px #fff, 1000px 2000px #fff, 2500px 500px #fff, 300px 2300px #fff, 1200px 1200px #fff, 800px 800px #fff, 1800px 1800px #fff, 200px 400px #fff, 600px 1200px #fff, 1400px 2400px #fff, 2200px 1500px #fff, 1000px 500px #fff;
    height: 3px;
    width: 3px;
    transform: translate3d(0, 0, 0);
}

.particle-3:after {
    box-shadow: 0px 0px #fff, 32px 958px #fff, 2530px 328px #fff, 2237px 988px #fff, 1886px 2251px #fff, 1780px 292px #fff, 2062px 1949px #fff, 500px 500px #fff, 1500px 1500px #fff, 2000px 1000px #fff, 1000px 2000px #fff, 2500px 500px #fff, 300px 2300px #fff, 1200px 1200px #fff, 800px 800px #fff, 1800px 1800px #fff, 200px 400px #fff, 600px 1200px #fff, 1400px 2400px #fff, 2200px 1500px #fff, 1000px 500px #fff;
    height: 3px;
    width: 3px;
}

.particle-4 {
    -webkit-animation: animParticle 600s linear infinite;
    animation: animParticle 600s linear infinite;
    box-shadow: 0px 0px #fff, 1357px 2320px #fff, 1686px 1226px #fff, 1916px 1045px #fff, 1268px 171px #fff, 2548px 2497px #fff, 100px 100px #fff, 2400px 2400px #fff, 500px 2000px #fff, 2000px 500px #fff, 1500px 100px #fff, 100px 1500px #fff, 800px 400px #fff, 400px 800px #fff, 1200px 1800px #fff, 1800px 1200px #fff, 2200px 2200px #fff, 300px 300px #fff, 1100px 2500px #fff, 2500px 1100px #fff, 600px 1400px #fff, 1400px 600px #fff, 750px 750px #fff, 1650px 1650px #fff, 950px 250px #fff, 250px 950px #fff, 1350px 2150px #fff, 2150px 1350px #fff, 450px 1750px #fff, 1750px 450px #fff, 100px 2200px #fff, 2200px 100px #fff, 500px 300px #fff, 300px 500px #fff, 1500px 2500px #fff, 2500px 1500px #fff;
    height: 1px;
    width: 1px;
    transform: translate3d(0, 0, 0);
}

.particle-4:after {
    box-shadow: 0px 0px #fff, 1357px 2320px #fff, 1686px 1226px #fff, 1916px 1045px #fff, 1268px 171px #fff, 2548px 2497px #fff, 100px 100px #fff, 2400px 2400px #fff, 500px 2000px #fff, 2000px 500px #fff, 1500px 100px #fff, 100px 1500px #fff, 800px 400px #fff, 400px 800px #fff, 1200px 1800px #fff, 1800px 1200px #fff, 2200px 2200px #fff, 300px 300px #fff, 1100px 2500px #fff, 2500px 1100px #fff, 600px 1400px #fff, 1400px 600px #fff, 750px 750px #fff, 1650px 1650px #fff, 950px 250px #fff, 250px 950px #fff, 1350px 2150px #fff, 2150px 1350px #fff, 450px 1750px #fff, 1750px 450px #fff, 100px 2200px #fff, 2200px 100px #fff, 500px 300px #fff, 300px 500px #fff, 1500px 2500px #fff, 2500px 1500px #fff;
    height: 1px;
    width: 1px;
}

.particle-5 {
    -webkit-animation: animParticle 100s linear infinite;
    animation: animParticle 100s linear infinite;
    box-shadow: 0px 0px #fff, 1200px 1500px #fff, 800px 2200px #fff, 1900px 400px #fff, 2500px 1100px #fff, 150px 1350px #fff, 450px 250px #fff, 1750px 1650px #fff, 2350px 1950px #fff, 1050px 50px #fff, 2150px 850px #fff, 550px 1250px #fff, 1350px 2450px #fff, 950px 750px #fff, 1650px 2150px #fff, 2450px 650px #fff, 350px 1850px #fff, 1850px 150px #fff, 750px 1050px #fff;
    height: 1px;
    width: 1px;
    transform: translate3d(0, 0, 0);
    opacity: 0.6;
}

.particle-5:after {
    box-shadow: 0px 0px #fff, 1200px 1500px #fff, 800px 2200px #fff, 1900px 400px #fff, 2500px 1100px #fff, 150px 1350px #fff, 450px 250px #fff, 1750px 1650px #fff, 2350px 1950px #fff, 1050px 50px #fff, 2150px 850px #fff, 550px 1250px #fff, 1350px 2450px #fff, 950px 750px #fff, 1650px 2150px #fff, 2450px 650px #fff, 350px 1850px #fff, 1850px 150px #fff, 750px 1050px #fff;
    height: 1px;
    width: 1px;
}

.particle-6 {
    -webkit-animation: animParticle 250s linear infinite;
    animation: animParticle 250s linear infinite;
    box-shadow: 0px 0px #fff, 300px 1200px #fff, 1600px 200px #fff, 900px 2400px #fff, 2100px 800px #fff, 500px 1500px #fff, 1800px 2300px #fff, 100px 600px #fff, 1400px 1100px #fff, 2500px 1700px #fff, 700px 300px #fff, 2200px 1400px #fff, 1100px 2100px #fff, 400px 1900px #fff, 1900px 500px #fff, 1300px 400px #fff;
    height: 2px;
    width: 2px;
    transform: translate3d(0, 0, 0);
    opacity: 0.4;
}

.particle-6:after {
    box-shadow: 0px 0px #fff, 300px 1200px #fff, 1600px 200px #fff, 900px 2400px #fff, 2100px 800px #fff, 500px 1500px #fff, 1800px 2300px #fff, 100px 600px #fff, 1400px 1100px #fff, 2500px 1700px #fff, 700px 300px #fff, 2200px 1400px #fff, 1100px 2100px #fff, 400px 1900px #fff, 1900px 500px #fff, 1300px 400px #fff;
    height: 2px;
    width: 2px;
}

.particle-7 {
    -webkit-animation: animParticle 400s linear infinite;
    animation: animParticle 400s linear infinite;
    box-shadow: 0px 0px #fff, 1000px 1000px #fff, 2000px 2000px #fff, 500px 500px #fff, 1500px 1500px #fff, 2500px 2500px #fff, 1250px 1250px #fff, 750px 750px #fff, 1750px 1750px #fff, 2250px 2250px #fff, 250px 250px #fff, 1150px 1150px #fff;
    height: 4px;
    width: 4px;
    transform: translate3d(0, 0, 0);
    opacity: 0.2;
}

.particle-7:after {
    box-shadow: 0px 0px #fff, 1000px 1000px #fff, 2000px 2000px #fff, 500px 500px #fff, 1500px 1500px #fff, 2500px 2500px #fff, 1250px 1250px #fff, 750px 750px #fff, 1750px 1750px #fff, 2250px 2250px #fff, 250px 250px #fff, 1150px 1150px #fff;
    height: 4px;
    width: 4px;
}

@-webkit-keyframes animParticle {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, -2560px, 0);
    }
}

@keyframes animParticle {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(0, -2560px, 0);
    }
}

/* Tooltip Styling */
.tooltip {
    position: absolute;
    bottom: 108%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 160px;
    padding: 12px;
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9998;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(15, 15, 25, 0.85) transparent transparent transparent;
}

.station-photo:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(60px);
}

.tooltip-track {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tooltip-Online-Users {
    font-size: 11px;
    color: #ff4d4d;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tooltip-Online-Users::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ff4d4d;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4d4d;
}

/* For phones */
@media only screen and (max-width: 600px) {
    .tooltip {
        width: 140px;
        padding: 10px;
        bottom: 50%;
    }

    .tooltip-track {
        font-size: 11px;
    }

    .tooltip-Online-Users {
        font-size: 9px;
    }
}

.tooltip-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}



.tooltip img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: opacity 0.3s ease;
}


/* Notification System */
#notificationContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notificationPopup {
    background: rgba(15, 10, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--active-station-color);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 250px;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--active-station-glow);
    animation: notificationEnter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    cursor: default;
    transition: all 0.3s ease;
}

.notificationPopup.simple {
    align-items: center;
}

.notificationPopup.simple .notification-message {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--active-station-color);
    text-shadow: 0 0 10px var(--active-station-glow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notificationPopup.exiting {
    animation: notificationExit 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.notificationPopup:hover {
    transform: translateX(-5px);
    background: rgba(25, 20, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--active-station-color);
}

.notification-icon {
    font-size: 20px;
    color: var(--active-station-color);
    text-shadow: 0 0 10px var(--active-station-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.notification-message {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.notification-close {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: -5px;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ff4d4d;
}

.notification-listeners-count {
    color: #00ff8c;
    font-weight: 700;
    margin-left: 4px;
}

@keyframes notificationEnter {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes notificationExit {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

/* Heartbeat Animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

/* ========================
   DISCORD AUTH STYLES
   ======================== */

.discord-auth {
    display: flex;
    align-items: center;
}

.hidden {
    display: none !important;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
    justify-content: center;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #7289DA 0%, #5865F2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
}

.discord-btn:active {
    transform: translateY(0);
}

.discord-btn.large {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 40px;
}

.discord-btn i {
    font-size: 16px;
}

.discord-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #5865F2;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.discord-avatar:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

#discord-user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-logout-btn {
    background: rgba(255, 70, 70, 0.2);
    border: none;
    color: #ff6b6b;
    padding: 6px 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-logout-btn:hover {
    background: rgba(255, 70, 70, 0.4);
    transform: scale(1.1);
}

/* ========================
   CHAT SECTION STYLES
   ======================== */

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    height: calc(100vh - 200px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(20, 15, 35, 0.92) 0%, rgba(10, 8, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px var(--active-station-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--active-station-color) 0%,
            var(--active-station-color-secondary) 50%,
            var(--active-station-color) 100%);
    opacity: 0.8;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.chat-header h2 i {
    color: var(--active-station-color);
}


.chat-station-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--active-station-color);
    box-shadow: 0 0 10px var(--active-station-color);
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-channel-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-station-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--active-station-glow-rgb), 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--active-station-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-station-indicator:hover {
    background: rgba(var(--active-station-glow-rgb), 0.25);
    transform: translateY(-1px);
}

.channel-chevron {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

#chat-current-station {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-online-badge {
    font-size: 11px;
    font-weight: 600;
    color: #00ff8c;
    background: rgba(0, 255, 140, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 255, 140, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-online-badge:hover {
    background: rgba(0, 255, 140, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.2);
}

.chat-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.channel-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 220px;
    background: rgba(15, 12, 28, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 10px;
    z-index: 2000;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(var(--active-station-glow-rgb), 0.2);
    animation: dropdownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: rgba(15, 12, 28, 0.98);
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.channel-option {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-option:hover {
    background: rgba(var(--active-station-glow-rgb), 0.1);
    color: white;
    padding-left: 22px;
}

.channel-option .chat-online-badge {
    margin-left: auto;
    pointer-events: none;
}

.channel-option::before {
    content: '\f086';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    opacity: 0.5;
    color: var(--active-station-color);
}

.chat-loading {
    padding: 60px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-style: italic;
    animation: loadingPulse 1.5s infinite;
}

.chat-error {
    padding: 60px 40px;
    text-align: center;
    color: #ff4d4d;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chat-error i {
    font-size: 24px;
    opacity: 0.8;
}


/* Auth Required Prompt */
.chat-auth-required {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-prompt-content {
    text-align: center;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-prompt-icon {
    font-size: 80px;
    color: #5865F2;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.auth-prompt-content h3 {
    font-size: 24px;
    color: white;
    margin: 0 0 12px;
}

.auth-prompt-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Chat Main Area */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--active-station-color) rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--active-station-color);
    border-radius: 3px;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.chat-welcome i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: var(--active-station-color);
    opacity: 0.5;
}

.chat-welcome p {
    font-size: 14px;
    margin: 0;
}

/* Individual Chat Message */
.chat-message {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(var(--active-station-glow-rgb), 0.3);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.chat-message-avatar:hover {
    transform: scale(1.1) rotate(-5deg);
    border-color: var(--active-station-color);
    box-shadow: 0 0 15px var(--active-station-glow);
}

.chat-message-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.chat-message-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.chat-message-username {
    font-weight: 700;
    font-size: 14px;
    color: var(--active-station-color-secondary);
}

.chat-message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.chat-message-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    word-break: break-word;
    text-align: left;
}

/* ========================================
   Discord-Style Emoji Reactions
   ======================================== */

/* Reaction add button (appears on hover) */
.chat-message {
    position: relative;
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-mention {
    background: rgba(255, 179, 0, 0.15);
    color: #ffb300;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(255, 179, 0, 0.3);
    transition: all 0.2s ease;
    cursor: default;
}

.chat-mention.me {
    background: rgba(115, 0, 255, 0.25);
    color: #a855f7;
    border-color: rgba(115, 0, 255, 0.4);
    box-shadow: 0 0 10px rgba(115, 0, 255, 0.2);
}

.chat-message.mentioned {
    background: rgba(255, 179, 0, 0.05) !important;
    border-left: 3px solid #ffb300;
}

.chat-message.mentioned-me {
    background: rgba(115, 0, 255, 0.08) !important;
    border-left: 3px solid var(--active-station-color);
}

.chat-reaction-add-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(30, 25, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9) translateX(5px);
    transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.chat-message:hover .chat-reaction-add-btn {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: all;
}

.chat-reaction-add-btn:hover {
    background: var(--active-station-color);
    color: white;
    border-color: white;
    transform: scale(1.1) rotate(5deg) !important;
}

/* Reactions container */
.chat-reactions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
}

.chat-reactions-bar:empty {
    display: none;
}

/* Individual reaction pill */
.chat-reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
    min-height: 28px;
}

.chat-reaction-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.chat-reaction-pill.active {
    background: rgba(var(--active-station-glow-rgb), 0.15);
    border-color: var(--active-station-color);
}

.chat-reaction-pill.active:hover {
    background: rgba(var(--active-station-glow-rgb), 0.25);
}

.chat-reaction-emoji {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-reaction-emoji img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.chat-reaction-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-width: 8px;
    text-align: center;
}

.chat-reaction-pill.active .chat-reaction-count {
    color: var(--active-station-color);
}

/* Custom Emoji Picker Grid */
.emoji-picker-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

.emoji-upload-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--active-station-glow-rgb), 0.1);
    border: 1px dashed rgba(var(--active-station-glow-rgb), 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--active-station-color);
    grid-column: span 1;
    aspect-ratio: 1;
}

.emoji-upload-item:hover {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    border-color: var(--active-station-color);
    transform: scale(1.05);
}

/* Add reaction button within the reactions bar */
.chat-reaction-add-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    opacity: 0;
}

.chat-message:hover .chat-reaction-add-inline {
    opacity: 1;
}

.chat-reaction-add-inline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-style: solid;
}

/* Emoji Picker Popup */
.chat-emoji-picker {
    position: absolute;
    bottom: 85px;
    right: 20px;
    width: 320px;
    background: rgba(15, 12, 28, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    z-index: 1500;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(var(--active-station-glow-rgb), 0.15);
    animation: emojiPickerIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    transform-origin: bottom right;
}

@keyframes emojiPickerIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.emoji-picker-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.emoji-picker-search {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.emoji-picker-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.emoji-picker-search:focus {
    border-color: var(--active-station-color);
    background: rgba(255, 255, 255, 0.08);
}

.emoji-picker-categories {
    display: flex;
    padding: 6px 8px;
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.emoji-picker-categories::-webkit-scrollbar {
    display: none;
}

.emoji-category-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.emoji-category-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.emoji-category-btn.active {
    background: rgba(var(--active-station-glow-rgb), 0.15);
    color: var(--active-station-color);
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.emoji-picker-grid::-webkit-scrollbar {
    width: 4px;
}

.emoji-picker-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.emoji-picker-item {
    font-size: 22px;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    transition: all 0.1s ease;
    border: none;
    background: none;
}

.emoji-picker-item:hover {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    transform: scale(1.2);
}

.emoji-category-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 4px 4px;
}

/* Reaction tooltip */
.chat-reaction-pill[title] {
    position: relative;
}

/* Chat Input Area */
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-user-badge {
    flex-shrink: 0;
}

.chat-user-badge .chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--active-station-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.chat-user-badge .chat-avatar:hover {
    transform: scale(1.15) rotate(8deg);
    border-color: #fff;
    box-shadow: 0 0 20px var(--active-station-glow);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 14px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
    border-color: var(--active-station-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(var(--active-station-glow-rgb), 0.2);
}

/* Mention Suggestions */
.chat-mention-suggestions {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(15, 12, 28, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    z-index: 2000;
    max-height: 240px;
    overflow-y: auto;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(var(--active-station-glow-rgb), 0.15);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: mentionsIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-mention-suggestions.hidden {
    display: none;
}

@keyframes mentionsIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mention-item:hover,
.mention-item.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.mention-item.selected {
    background: rgba(var(--active-station-glow-rgb), 0.15);
    border-color: var(--active-station-color);
}

.mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mention-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mention-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.mention-handle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.mention-item.special {
    background: rgba(var(--active-station-glow-rgb), 0.05);
}

.mention-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--active-station-color-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.mention-item.special .mention-name {
    color: var(--active-station-color-secondary);
}

/* Message Embed Support */
.song-embed {
    margin-top: 10px;
    background: rgba(var(--active-station-glow-rgb), 0.1);
    border: 1px solid rgba(var(--active-station-glow-rgb), 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 300px;
    animation: embedFadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.song-embed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--active-station-color);
}

@keyframes embedFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.song-embed-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.song-embed-info {
    flex: 1;
    min-width: 0;
}

.song-embed-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-embed-station {
    font-size: 11px;
    color: var(--active-station-color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Share Song Button */
.chat-share-song-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
}

.chat-share-song-btn:hover {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    color: white;
    border-color: var(--active-station-color);
    transform: translateY(-2px);
}

.chat-share-song-btn.active {
    background: var(--active-station-color);
    color: white;
    border-color: white;
    box-shadow: 0 0 15px var(--active-station-glow);
}

.chat-share-song-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #00ff8c;
    border-radius: 50%;
    border: 2px solid #000;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.chat-song-preview {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.preview-song-name {
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.remove-preview {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.remove-preview:hover {
    color: #ff4d4d;
}

/* Image Upload Button */
.chat-image-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-image-btn:hover {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    color: white;
    border-color: var(--active-station-color);
    transform: translateY(-2px);
}

/* Image Preview in Input */
.chat-image-preview {
    background: rgba(var(--active-station-glow-rgb), 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(var(--active-station-glow-rgb), 0.2);
}

.chat-image-preview img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.chat-image-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-image-size {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.chat-char-count {
    position: absolute;
    top: -18px;
    right: 15px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.chat-char-count.error {
    color: #ff4d4d;
    font-weight: 700;
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--active-station-color) 0%, var(--active-station-color-secondary) 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--active-station-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px var(--active-station-glow);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* System Messages in Chat */
.chat-system-message {
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.chat-system-message.join {
    color: #00ff8c;
}

.chat-system-message.leave {
    color: #ff6b6b;
}

/* GIF Picker Styles */
.chat-gif-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-gif-btn:hover {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    color: white;
    border-color: var(--active-station-color);
    transform: translateY(-2px);
}

.chat-gif-btn.active {
    background: var(--active-station-color);
    color: white;
    border-color: white;
    box-shadow: 0 0 15px var(--active-station-glow);
}

.chat-emoji-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-emoji-btn:hover {
    background: rgba(var(--active-station-glow-rgb), 0.2);
    color: white;
    border-color: var(--active-station-color);
    transform: translateY(-2px);
}

.chat-emoji-btn.active {
    background: var(--active-station-color);
    color: white;
    border-color: white;
    box-shadow: 0 0 15px var(--active-station-glow);
}

.chat-custom-emoji {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin: -3px 2px 2px;
}

.chat-gif-picker {
    position: absolute;
    bottom: 85px;
    left: 20px;
    right: 20px;
    height: 320px;
    background: rgba(15, 12, 28, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--active-station-glow-rgb), 0.15);
    animation: pickerSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pickerSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gif-picker-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gif-picker-header input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.gif-picker-header input:focus {
    border-color: var(--active-station-color);
    background: rgba(255, 255, 255, 0.08);
}

.gif-search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.gif-search-wrapper i {
    position: absolute;
    right: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    pointer-events: none;
}

.gif-picker-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.gif-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    padding: 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.gif-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.gif-tab.active {
    background: var(--active-station-color);
    color: white;
    border-color: var(--active-station-color);
    box-shadow: 0 4px 12px var(--active-station-glow);
}

.gif-results {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    scrollbar-width: thin;
}

.gif-results::-webkit-scrollbar {
    width: 4px;
}

.gif-results img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gif-results img:hover {
    transform: scale(1.03);
    border-color: var(--active-station-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chat-inline-gif {
    max-width: 280px;
    max-height: 200px;
    border-radius: 12px;
    display: block;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Uploaded Images Styling */
.chat-uploaded-image {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.chat-uploaded-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.chat-image-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.chat-media-fav-btn {
    position: absolute;
    top: 15px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-image-wrapper:hover .chat-media-fav-btn {
    opacity: 1;
    transform: scale(1);
}

.chat-media-fav-btn:hover {
    transform: scale(1.2) !important;
    background: var(--active-station-color);
}

.chat-media-fav-btn.active {
    opacity: 1 !important;
    transform: scale(1) !important;
    color: white;
    background: var(--active-station-color);
    box-shadow: 0 0 15px var(--active-station-glow);
}

.chat-media-fav-btn.active i {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Image Zoom Modal */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-zoom-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.zoom-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-zoom-overlay.active .zoom-content {
    transform: scale(1);
}

.zoom-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.zoom-close:hover {
    transform: scale(1.2);
    color: var(--active-station-color);
}


.chat-link {
    color: var(--active-station-color-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(var(--active-station-glow-rgb), 0.1);
    border-radius: 6px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: break-all;
    border: 1px solid rgba(var(--active-station-glow-rgb), 0.15);
    margin: 2px 0;
}

.chat-link:hover {
    background: rgba(var(--active-station-glow-rgb), 0.25);
    color: white;
    border-color: var(--active-station-color);
    box-shadow: 0 0 10px rgba(var(--active-station-glow-rgb), 0.2);
    transform: translateY(-1px);
}

.chat-link i {
    font-size: 10px;
    opacity: 0.8;
}

/* Responsive Chat Updates */
@media (max-width: 768px) {
    .chat-gif-picker {
        left: 10px;
        right: 10px;
    }
}

/* Responsive Chat */
@media (max-width: 768px) {
    .chat-container {
        border-radius: 0;
        height: calc(100dvh - 260px);
        margin: 0 0 140px 0;
        border-left: none;
        border-right: none;
    }

    main {
        padding-bottom: 120px !important;
    }

    .chat-header {
        padding: 16px;
    }

    .chat-header h2 {
        font-size: 16px;
    }

    .chat-messages {
        padding: 12px;
    }

    .chat-input-container {
        padding: 12px 16px;
    }

    .chat-user-badge {
        display: none;
    }
}

@media (max-width: 600px) {
    .discord-btn span {
        display: none;
    }

    .discord-btn {
        padding: 10px;
        border-radius: 50%;
    }

    #discord-user-name {
        display: none;
    }

    .discord-user {
        padding: 4px;
    }
}

/* ========================
   DISCORD SHARE MODAL
   ======================== */

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shareOverlayIn 0.25s ease-out;
}

.share-modal-overlay.hidden {
    display: none;
}

@keyframes shareOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.share-modal {
    background: linear-gradient(165deg, rgba(30, 25, 50, 0.98) 0%, rgba(15, 12, 30, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(88, 101, 242, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: shareModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shareModalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.share-modal-header i.fab {
    font-size: 24px;
    color: #5865F2;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5));
}

.share-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex: 1;
}

.share-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.share-modal-close:hover {
    background: rgba(255, 77, 77, 0.15);
    border-color: rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.share-modal-body {
    padding: 16px 24px 24px;
}

.share-section {
    margin-bottom: 8px;
}

.share-section-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.share-guild-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-guild-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.share-guild-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.share-guild-item:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.15);
}

.share-guild-item:hover::before {
    opacity: 1;
}

.share-guild-item:active {
    transform: translateX(2px) scale(0.98);
}

.share-guild-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(88, 101, 242, 0.3);
    flex-shrink: 0;
    z-index: 1;
}

.share-guild-icon.placeholder {
    background: linear-gradient(135deg, #5865F2, #7289da);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.share-guild-info {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.share-guild-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-guild-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.share-guild-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    transition: all 0.25s ease;
    z-index: 1;
}

.share-guild-item:hover .share-guild-arrow {
    color: #5865F2;
    transform: translateX(4px);
}

.share-guild-remove {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 2;
}

.share-guild-remove:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    transform: scale(1.1);
}

.share-guild-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.share-guild-item.disabled .share-guild-desc {
    color: #ff6b6b;
}

.share-guild-item.loading {
    pointer-events: none;
}

.share-guild-item.loading .share-guild-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.share-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.share-divider::before,
.share-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.share-divider span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-custom-webhook {
    display: flex;
    gap: 8px;
}

.share-webhook-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.25s ease;
}

.share-webhook-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.share-webhook-input:focus {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.share-webhook-btn {
    background: linear-gradient(135deg, #5865F2, #7289da);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-webhook-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.share-webhook-btn:active {
    transform: scale(0.95);
}

/* ========================
   HISTORY TOGGLE BUTTON
   ======================== */

/* ========================
   HISTORY TOGGLE BUTTON
   ======================== */

.history-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
}

.history-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--active-station-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--active-station-glow);
}

.history-toggle-btn i {
    font-size: 14px;
    color: var(--active-station-color);
}

/* ========================
   SONG HISTORY DRAWER
   ======================== */

.history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(3px);
}

.history-overlay.open {
    opacity: 1;
    visibility: visible;
}

.history-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: rgba(10, 8, 18, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9995;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}

.history-drawer.open {
    right: 0;
}

.history-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.history-header h3 i {
    color: var(--active-station-color);
    text-shadow: 0 0 12px var(--active-station-glow);
}

.history-close {
    position: absolute;
    top: 20px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.history-close:hover {
    background: rgba(255, 77, 77, 0.15);
    border-color: rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.history-tabs {
    display: flex;
    gap: 6px;
}

.history-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.history-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.history-tab.active {
    background: var(--active-station-color);
    border-color: var(--active-station-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--active-station-glow);
}

.history-tab i {
    font-size: 11px;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.3);
    gap: 12px;
    padding: 40px;
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
}

.history-drawer.immersive-mode .history-empty {
    min-height: 400px;
}

.history-empty i {
    font-size: 32px;
    opacity: 0.4;
}

.history-empty p {
    font-size: 13px;
    margin: 0;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    cursor: default;
    transition: all 0.3s ease;
    animation: historySlideIn 0.3s ease-out forwards;
}

@keyframes historySlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.history-item-cover {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.history-item-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.history-item-station {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.history-item-station::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--active-station-color);
    border-radius: 50%;
}

.history-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.history-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s ease;
}

.history-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.1);
}

.history-action-btn.favorited {
    color: var(--active-station-color);
    background: rgba(var(--active-station-glow-rgb), 0.15);
}

.history-action-btn.favorited:hover {
    background: rgba(var(--active-station-glow-rgb), 0.25);
}

.history-action-btn.spotify-btn:hover {
    color: #1DB954;
    background: rgba(29, 185, 84, 0.15);
}

.history-action-btn.youtube-btn:hover {
    color: #FF0000;
    background: rgba(255, 0, 0, 0.15);
}

.history-action-btn.chat-share-btn:hover {
    color: var(--active-station-color);
    background: var(--active-station-glow);
}

/* ========================
   RESPONSIVE ADJUSTMENTS
   ======================== */

@media (max-width: 768px) {
    .history-drawer {
        width: 100%;
        right: -100%;
    }

    .history-toggle-btn span {
        display: none;
    }

    .history-toggle-btn {
        padding: 8px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        justify-content: center;
    }
}

/* ========================
   DISCORD PROFILE MODAL
   ======================== */

.profile-modal {
    width: 340px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.profile-modal .share-modal-body {
    padding: 0 !important;
}

.profile-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    position: relative;
}

.profile-banner {
    height: 100px;
    background: var(--active-station-color);
    width: 100%;
    opacity: 0.8;
}

.profile-avatar-container {
    padding: 0 16px;
    margin-top: -45px;
    display: flex;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.profile-modal-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 5px solid #1a1631;
    background: #1a1631;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.285);
    cursor: pointer;
}

.profile-modal-avatar:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--active-station-color);
    box-shadow: 0 0 40px var(--active-station-glow);
}

.profile-content {
    padding: 16px;
    text-align: left;
}

.profile-modal-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.profile-modal-username {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.profile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 16px 0;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.profile-guild-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.membership-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    transition: all 0.3s ease;
}

.membership-badge.loading {
    color: rgba(255, 255, 255, 0.5);
}

.membership-badge.member {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    color: #5865F2;
    font-weight: 600;
}

.membership-badge.not-member {
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

.membership-badge i {
    font-size: 16px;
}

.membership-guild-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-guild-icon.grayscale {
    filter: grayscale(1) opacity(0.5);
}

.membership-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 1px;
}

.membership-guild-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.membership-status-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.profile-logout-btn {
    width: 100%;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin-top: 10px;
}

.profile-logout-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    transform: translateY(-2px);
}

/* Data Management Card (Refinements for 3rd column) */
.data-management-card i.main-icon {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 20px var(--active-station-glow);
    margin-bottom: 5px;
}

.data-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    width: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    justify-content: center;
    min-width: 80px;
}

.btn-secondary:hover {
    background: var(--active-station-color);
    border-color: var(--active-station-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--active-station-glow);
}

/* ========================
   NEW HISTORY & STATS UI
   ======================== */

.history-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-mode-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--active-station-color);
}

/* Immersive Mode (Spotify Style) */
.history-drawer.immersive-mode {
    width: 100%;
    right: -100%;
}

.history-drawer.immersive-mode.open {
    right: 0;
}

.history-drawer.immersive-mode .history-header {
    padding: 40px 60px 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    position: relative;
}

.history-drawer.immersive-mode .history-list {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
    justify-content: center;
    gap: 30px;
    padding: 40px 60px;
    align-content: start;
    box-sizing: border-box;
}

.history-drawer.immersive-mode .history-close {
    top: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.grid-cover-wrapper {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.grid-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover .grid-cover {
    transform: scale(1.1);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--active-station-color);
    border: none;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px var(--active-station-glow);
}

.grid-item:hover .grid-play-btn {
    transform: translateY(0);
}

.grid-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grid-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.grid-stats {
    font-size: 11px;
    color: var(--active-station-color);
    font-weight: 600;
    margin-top: 4px;
}

.grid-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
}

.grid-action-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: all 0.2s ease;
}

.grid-action-btn:hover {
    color: white;
    transform: scale(1.2);
}

.grid-action-btn.spotify-btn:hover {
    color: #1DB954;
}

.grid-action-btn.youtube-btn:hover {
    color: #FF0000;
}

.grid-action-btn.favorited {
    color: var(--active-station-color);
}

/* Stats View Styles */
.stats-view {
    padding: 24px !important;
}

.stats-container {
    width: 100%;
    margin: 0 auto;
    max-width: 900px;
}

.stats-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.stats-header-row .stats-subtitle {
    margin-bottom: 0;
    border-left: none;
    padding-left: 0;
}

.stats-export-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.stats-export-btn:hover {
    background: var(--active-station-color);
    border-color: var(--active-station-color);
    box-shadow: 0 0 15px var(--active-station-glow);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.stat-card.featured {
    background: linear-gradient(135deg, rgba(115, 0, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(115, 0, 255, 0.3);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stats-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
    border-left: 4px solid var(--active-station-color);
    padding-left: 12px;
}

.stats-songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-song-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInRight 0.5s ease-out forwards;
}

.stats-song-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
}

.stats-rank {
    font-size: 18px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    width: 30px;
}

.stats-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.stats-info {
    flex: 1;
    text-align: left;
}

.stats-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.stats-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Station Stats Section */
.station-stats-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.station-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    animation: fadeInRight 0.5s ease-out forwards;
    transition: all 0.3s ease;
}

.station-stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(6px);
}

.station-stat-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.station-stat-info {
    flex: 1;
    min-width: 0;
}

.station-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 8px;
}

.station-stat-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-stat-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--active-station-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.station-stat-pct {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.station-stat-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.station-stat-bar {
    height: 100%;
    background: var(--active-station-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--active-station-glow);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-stat-songs {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

@media (max-width: 600px) {
    .history-drawer.immersive-mode .history-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
        justify-content: center;
        padding: 15px;
        gap: 12px;
    }

    .grid-item {
        padding: 12px;
    }

    .grid-title {
        font-size: 12px;
    }

    .stat-value {
        font-size: 18px;
    }
}

.station-group-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
}

.station-group-header:first-child {
    margin-top: 0;
}

.station-group-header i {
    color: var(--active-station-color);
    font-size: 20px;
    text-shadow: 0 0 10px var(--active-station-glow);
}

.station-group-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--active-station-glow);
}

.station-group-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.station-group-header .song-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: auto;
}

/* List mode header adjustment */
.history-drawer:not(.immersive-mode) .station-group-header {
    margin: 20px 0 10px;
    padding: 0 10px 8px;
    grid-column: auto;
}

.history-drawer:not(.immersive-mode) .station-group-header h3 {
    font-size: 14px;
}