/* InternetRadioPiraat - Professional Stylesheet */
/* ============================================== */
/* Inspired by Tukker.fm, RadioNL, Lomp.fm */

/* CSS Variables */
:root {
    --primary-color: #FF2D55;
    --secondary-color: #FF6B9D;
    --dark-bg: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --border-color: #2a2a2a;
    --success-color: #00ff00;
    --error-color: #ff0000;
    --gradient: linear-gradient(135deg, #FF2D55 0%, #FF6B9D 100%);
    --shadow: 0 4px 20px rgba(255, 45, 85, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fixed Background Image (not for admin, chat, dj-control) */
body:not(.admin-body):not(.chat-page):not(.dj-control-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-music-landscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    pointer-events: none;
}

/* Dark overlay for readability */
body:not(.admin-body):not(.chat-page):not(.dj-control-page)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.35);
    z-index: -1;
    pointer-events: none;
}

/* Mobile: Background scrolls with content (iOS fix) */
@media (max-width: 768px) {
    /* Op mobiel: geen achtergrond overlay voor beste compatibiliteit */
    body:not(.admin-body):not(.chat-page):not(.dj-control-page)::before,
    body:not(.admin-body):not(.chat-page):not(.dj-control-page)::after {
        display: none !important;
    }
    
    /* Zorg dat body een donkere achtergrond heeft */
    body:not(.admin-body):not(.chat-page):not(.dj-control-page) {
        background: #0f0f0f;
    }
    
    /* Alle klikbare elementen normaal werkend */
    button, a, input, textarea, select {
        pointer-events: auto;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.85);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(255, 45, 85, 0.1);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.nav-toggle:hover {
    color: var(--secondary-color);
}

/* Hamburger Icon Animation */
.nav-toggle i {
    transition: var(--transition);
}

.nav-toggle.active i {
    transform: rotate(90deg);
}
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.2) 0%, rgba(255, 107, 157, 0.1) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231a1a1a" width="1200" height="400"/></svg>');
    text-align: center;
    padding: 80px 20px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 45, 85, 0.2);
}

.hero-title .pulse {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-slogan {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.live-status {
    display: inline-flex;
    gap: 30px;
    align-items: center;
    background: rgba(255, 45, 85, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--primary-color);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--success-color);
}

.live-dot {
    width: 12px;
    height: 12px;
    background: var(--success-color);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.listener-count {
    color: var(--text-secondary);
}

/* Main Content Layout */
.main-content {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Cards */
.card {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(35, 35, 35, 0.7);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(255, 45, 85, 0.1);
}

.card-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

/* Player Card */
.player-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

.now-playing {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 45, 85, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 45, 85, 0.2);
}

.album-art {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.1);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.track-artist {
    font-size: 18px;
    color: var(--text-secondary);
}

.play-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    margin-bottom: 20px;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 45, 85, 0.15);
}

.play-button.playing {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    /* Mobile touch optimization */
    touch-action: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    /* Mobile touch - larger touch target */
    -webkit-tap-highlight-color: rgba(255, 45, 85, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* VU Meters */
.vu-meters {
    margin-bottom: 25px;
}

.vu-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vu-meter label {
    font-weight: bold;
    width: 25px;
    color: var(--primary-color);
}

.vu-meter canvas {
    flex: 1;
    border-radius: 5px;
    background: rgba(0,0,0,0.5);
}

/* DJ Live Indicator */
.dj-live-indicator {
    position: absolute;
    top: -15px;
    right: 10px;
    background: linear-gradient(135deg, #FF2D55, #FF6B9D);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.2);
    animation: djBadgePulse 2s ease-in-out infinite;
    z-index: 10;
}

.dj-live-indicator i {
    font-size: 14px;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes djBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

/* Spectrum Analyzer */
.spectrum-analyzer {
    margin-top: 20px;
}

.spectrum-analyzer canvas {
    width: 100%;
    border-radius: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

/* Current DJ */
.current-dj {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 45, 85, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 45, 85, 0.2);
}

.dj-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
}

.dj-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dj-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.dj-info p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.dj-info small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Request Form */
.quick-request-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quick-request-form input {
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.quick-request-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 45, 85, 0.05);
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.15);
}

.btn-secondary {
    background: rgba(255, 45, 85, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(255, 45, 85, 0.2);
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Chat Card */
.chat-container {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.chat-container iframe {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

/* Top Users */
.top-users {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 45, 85, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 45, 85, 0.1);
    transition: var(--transition);
}

.top-user:hover {
    background: rgba(255, 45, 85, 0.1);
    border-color: var(--primary-color);
}

.top-user .rank {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    width: 30px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.vip-badge {
    color: gold;
    margin-left: 5px;
}

.points {
    font-weight: bold;
    color: var(--primary-color);
}

/* Events */
.upcoming-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 45, 85, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 45, 85, 0.1);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 10px;
    color: white;
}

.event-date .day {
    font-size: 24px;
    font-weight: bold;
}

.event-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-info strong {
    display: block;
    margin-bottom: 5px;
}

.event-info small {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: rgba(26, 26, 26, 0.80);
    border-top: 2px solid var(--primary-color);
    padding: 40px 0 20px;
    margin-top: 60px;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        max-height: calc(100vh - 70px);
        padding: 20px;
        transition: left 0.3s ease-in-out;
        border-top: 2px solid var(--primary-color);
        overflow-y: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 5px 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 10px;
        justify-content: flex-start;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255, 45, 85, 0.15);
        transform: translateX(5px);
    }
    
    .nav-toggle {
        display: block;
    }
    
    /* Lock body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Overlay when menu is open - clickable to close menu */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease-out;
        pointer-events: auto;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-slogan {
        font-size: 14px;
    }
    
    .live-status {
        gap: 15px;
        font-size: 13px;
    }
    
    .now-playing {
        flex-direction: column;
        text-align: center;
    }
    
    .track-title {
        font-size: 18px;
    }
    
    .track-artist {
        font-size: 14px;
    }
    
    /* Player controls spacing */
    .player-controls {
        gap: 20px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    /* Cards on mobile */
    .card {
        padding: 20px;
        position: relative;
        z-index: 10;
    }
    
    /* Player card specifiek */
    .player-card {
        position: relative;
        z-index: 10;
    }
    
    /* Play button op mobiel - extra groot touch target */
    .clean-play-button {
        min-height: 60px;
        font-size: 20px;
        padding: 20px;
        -webkit-tap-highlight-color: rgba(255, 45, 85, 0.5);
        touch-action: manipulation;
    }
    
    /* Volume slider op mobiel - groter touch target */
    .volume-slider {
        height: 8px;
        touch-action: pan-x;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
    
    /* Zorg dat alle player elementen klikbaar zijn */
    .clean-play-button, 
    .clean-volume-control input,
    .volume-slider {
        position: relative;
        z-index: 50;
        pointer-events: auto;
    }
    
    /* Main content boven achtergrond */
    .main-content {
        position: relative;
        z-index: 10;
    }
    
    /* Hero content klikbaar */
    .hero {
        position: relative;
        z-index: 10;
    }
    
    /* Popup on mobile */
    .popup-content {
        max-width: 98%;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .popup-body {
        padding: 20px 15px;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 45, 85, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 45, 85, 0.25);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

#liveDjBanner {
    animation: pulse 2s ease-in-out infinite;
}

/* Clean Player Styles */
.clean-now-playing {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 45, 85, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 45, 85, 0.2);
}

.clean-album-art {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 45, 85, 0.1);
}

.clean-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.clean-track-info {
    flex: 1;
    min-width: 0;
}

.clean-track-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clean-track-artist {
    font-size: 16px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clean-play-button {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.1);
    margin-bottom: 20px;
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: rgba(255, 45, 85, 0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.clean-play-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 45, 85, 0.2);
}

.clean-play-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 15px rgba(255, 45, 85, 0.3);
}

.clean-play-button.playing {
    background: linear-gradient(135deg, #00ff00, #00cc00);
}

.clean-play-button i {
    font-size: 20px;
}

.clean-volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.clean-volume-control i {
    color: var(--primary-color);
    font-size: 18px;
}

/* AzuraCast Embeds */
.azuracast-embed {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.azuracast-embed iframe {
    display: block;
    background: transparent;
}

.history-card .azuracast-embed {
    margin-top: 10px;
}

/* ========================================
   ADVANCED PLAYER WITH VISUALIZER
   ======================================== */

.advanced-player-card {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(255, 45, 85, 0.3);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Visualizer */
.visualizer-container {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

#visualizer {
    width: 100%;
    height: 250px;
    background: rgba(0, 0, 0, 0.6);
    display: block;
    box-shadow: inset 0 0 50px rgba(255, 45, 85, 0.2);
}

/* Now Playing Section */
.advanced-now-playing {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.15) 0%, rgba(255, 45, 85, 0.05) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #FF2D55;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.np-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.np-label {
    color: #FF2D55;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FF2D55;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.track-info {
    position: relative;
    z-index: 1;
    margin-left: 120px;
}

#artist {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

#title {
    font-size: 20px;
    color: #999;
    font-weight: 400;
    margin-bottom: 10px;
}

#duration {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* Cover Thumbnail (dynamisch toegevoegd via JS) */
#coverThumb {
    position: absolute;
    left: 15px;
    top: 60px;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 45, 85, 0.5);
    border: 2px solid rgba(255, 45, 85, 0.4);
    background: #111 center/cover no-repeat;
    transition: background-image 0.4s ease;
}

/* DJ Info */
.dj-info {
    display: none;
    background: rgba(255, 45, 85, 0.1);
    border: 2px solid rgba(255, 45, 85, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    margin-top: 15px;
}

.dj-info.active {
    display: block;
}

.dj-name {
    font-size: 16px;
    font-weight: 700;
    color: #FF2D55;
    margin-bottom: 5px;
}

.dj-show {
    font-size: 13px;
    color: #999;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.advanced-play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF2D55 0%, #FF6B9D 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 45, 85, 0.4);
    position: relative;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(255, 45, 85, 0.3);
    touch-action: manipulation;
}

.advanced-play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 60px rgba(255, 45, 85, 0.6);
}

.advanced-play-button:active {
    transform: scale(0.95);
}

.advanced-play-button.playing {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner.active {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.volume-icon-btn {
    background: none;
    border: none;
    color: #FF2D55;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.volume-icon-btn:hover {
    color: #FF6B9D;
}

.advanced-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    touch-action: pan-x;
}

.advanced-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 45, 85, 0.3);
}

.advanced-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--gradient);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-value {
    color: #999;
    font-size: 14px;
    font-weight: 600;
    min-width: 45px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 45, 85, 0.1);
    border: 2px solid rgba(255, 45, 85, 0.3);
    color: #FF2D55;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 45, 85, 0.2);
    transform: scale(1.1);
}

.action-btn.active i {
    color: #FF2D55;
}

.action-btn.active {
    background: rgba(255, 45, 85, 0.3);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 45, 85, 0.2);
}

.status-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.status-text.playing {
    color: #00ff88;
}

.status-text i {
    font-size: 10px;
}

/* Equalizer Animation */
.equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.equalizer span {
    width: 3px;
    background: linear-gradient(180deg, #FF2D55, #FF6B9D);
    border-radius: 3px;
    animation: equalize 0.8s ease-in-out infinite;
}

.equalizer span:nth-child(1) { animation-delay: 0s; height: 4px; }
.equalizer span:nth-child(2) { animation-delay: 0.2s; height: 8px; }
.equalizer span:nth-child(3) { animation-delay: 0.4s; height: 12px; }
.equalizer span:nth-child(4) { animation-delay: 0.6s; height: 6px; }

@keyframes equalize {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.bitrate-badge {
    background: rgba(255, 45, 85, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    color: #FF2D55;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #visualizer {
        height: 150px;
    }
    
    .advanced-now-playing {
        padding: 20px;
        min-height: 140px;
    }
    
    .track-info {
        margin-left: 0;
        margin-top: 120px;
    }
    
    #artist {
        font-size: 20px;
    }
    
    #title {
        font-size: 16px;
    }
    
    #coverThumb {
        left: 50%;
        top: 60px;
        transform: translateX(-50%);
    }
    
    .player-controls {
        justify-content: center;
    }
    
    .advanced-play-button {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .volume-control {
        width: 100%;
        order: 3;
    }
    
    .action-buttons {
        order: 2;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
