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

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Slider */
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    z-index: 1;
}

/* Main Container */
.main-container {
    max-width: 800px;
    padding: 20px 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 120px;
    z-index: 2;
    position: relative;
    min-height: 100vh;
}

/* Station Header */
.station-header {
    text-align: center;
    margin-bottom: 10px;
}

.station-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Now Playing Section */
.now-playing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.song-info {
    text-align: center;
    width: 100%;
}

/* Track Info Container with Play Button */
.track-info-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compact Play Button */
.play-btn-compact {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    /* Override all default button styling */
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    /* Extra aggressive mobile overrides */
    background-image: none !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.play-btn-compact:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
    box-shadow: none !important;
}

.play-btn-compact:active {
    transform: scale(0.95) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.play-btn-compact:focus {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.8) !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    background-image: none !important;
}

/* Extra aggressive mobile button overrides */
@media (max-width: 1024px) {
    .play-btn-compact,
    .play-btn-compact:hover,
    .play-btn-compact:active,
    .play-btn-compact:focus {
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        background-image: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50% !important;
    }
    
    .play-btn-compact:hover {
        background-color: rgba(0, 0, 0, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }
    
    .play-btn-compact:active {
        background-color: rgba(0, 0, 0, 0.9) !important;
    }
}

/* Ensure play/pause icons are perfectly centered */
.play-btn-compact span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: white !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix centering for play and pause icons */
.play-btn-compact span.play-icon,
.play-btn-compact span.pause-icon {
    padding-bottom: 1px !important;
}

/* Track Thumbnail */
.track-thumbnail {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Text Info */
.text-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.song-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* When no thumbnail, center the text */
.track-info-container:not(.has-thumbnail) .text-info {
    text-align: center;
}

/* Player Controls - Compact play button only (volume controls removed) */



/* Stream Status */
.stream-status {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: #4ecdc4;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.listener-count {
    font-size: 0.9rem;
    color: #ccc;
}

.direct-stream-btn {
    background: rgba(255, 107, 107, 0.8);
    color: white;
    border: 2px solid rgba(255, 107, 107, 1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
    margin-left: auto;
}

.direct-stream-btn:hover {
    background: rgba(255, 107, 107, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.direct-stream-btn:active {
    transform: translateY(0);
}

.direct-stream-btn.active {
    background: rgba(76, 205, 196, 0.8);
    border-color: rgba(76, 205, 196, 1);
}

.direct-stream-btn.active:hover {
    background: rgba(76, 205, 196, 1);
    box-shadow: 0 4px 15px rgba(76, 205, 196, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .station-header h1 {
        font-size: 2.5rem;
    }
    
    .track-info-container {
        gap: 12px;
        padding: 12px;
    }
    
    .play-btn-compact {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
        min-height: 45px !important;
        /* Ensure mobile override */
        -webkit-appearance: none !important;
        appearance: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .track-thumbnail {
        width: 70px;
        height: 70px;
        min-width: 70px;
        min-height: 70px;
    }
    
    .song-title {
        font-size: 1.2rem;
    }
    
    .album-name {
        font-size: 0.9rem;
    }
    
    .stream-status {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .station-header h1 {
        font-size: 2rem;
    }

    .main-container {
        padding: 15px;
        gap: 80px;
    }
    
    .track-info-container {
        gap: 10px;
        padding: 10px;
    }
    
    .play-btn-compact {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        /* Ensure mobile override */
        -webkit-appearance: none !important;
        appearance: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .track-thumbnail {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
    
    .song-title {
        font-size: 1.1rem;
    }
    
    .album-name {
        font-size: 0.8rem;
    }

    .player-controls {
        padding: 15px 30px;
        gap: 12px;
    }
}

/* Loading Animation */
.loading {
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Smooth Transitions */
.song-title, .album-name {
    transition: opacity 0.3s ease;
}

.song-image-container img {
    transition: opacity 0.3s ease;
}

.song-image-container img.loading {
    opacity: 0.7;
}

/* Copyright Footer */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    z-index: 10;
}

.copyright-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

 