/* Radyo Player - Modern Özel Tasarım */

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

body {
    margin: 0;
    padding: 0;
    background: #1b1b1b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Ana Player Container */
.radyo-player-container {
    max-width: 640px;
    max-height: 60px;
    width: 100%;
    height: 60px;
    background: rgba(26, 26, 26, 0.8);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ana Kontroller Alanı (%60) */
.player-main {
    height: 60%;
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 40px;
}

/* Sol Alan - Play + Equalizer */
.player-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* Orta Alan - Stream Bilgileri */
.player-center {
    flex: 1;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    min-width: 0; /* flex overflow fix */
    margin: 0;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

/* Spectrum Analyzer Container */
.spectrum-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.6s ease;
    border-radius: 0;
    overflow: hidden;
    min-height: 40px;
    
    /* Cam Efekti */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #000;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Dijital Ekran Efekti */
.spectrum-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(0, 255, 255, 0.03) 50%),
        linear-gradient(0deg, transparent 50%, rgba(0, 255, 255, 0.02) 50%);
    background-size: 4px 4px, 4px 4px;
    animation: scanlines 0.1s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.spectrum-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    animation: digitalGlow 2s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 3;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes digitalGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.spectrum-container.active {
    opacity: 0.4;
}

.spectrum-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* Fallback Visualizer */
.fallback-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    padding: 5px;
}

.fallback-bar {
    width: 3px;
    min-height: 2px;
    background: linear-gradient(to top, #0066ff, #00ccff, #66ffff);
    border-radius: 1px;
    animation: fallbackPulse 1.5s ease-in-out infinite alternate;
    margin: 0 1px;
}

.fallback-visualizer.active .fallback-bar {
    animation-play-state: running;
}

.fallback-visualizer:not(.active) .fallback-bar {
    animation-play-state: paused;
    height: 2px;
}

@keyframes fallbackPulse {
    0% { height: 5px; opacity: 0.5; }
    25% { height: 15px; opacity: 0.7; }
    50% { height: 25px; opacity: 0.9; }
    75% { height: 20px; opacity: 0.8; }
    100% { height: 8px; opacity: 0.6; }
}

/* Player Content Overlay */
.player-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

/* Ses duyarlı arka plan efekti */
.player-center.audio-active::before {
    opacity: 1;
}

/* Hafif glow efekti */
.player-center.audio-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.03);
    animation: glow 1s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Yazıların z-index'ini yükselt */
.current-show,
.current-song {
    position: relative;
    z-index: 2;
}

/* Sağ Alan - Volume + Close */
.player-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

/* Play/Stop Button */
.play-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-right: 1px solid #000;
    border-radius: 0;
    background: #1a1a1a;
    color: #00d4ff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    outline: none;
}

.play-btn:hover {
    background: rgba(68, 68, 68, 0.8);
}

.play-btn:active {
    background: rgba(34, 34, 34, 0.8);
}
/*
.play-btn.playing {
    background: linear-gradient(145deg, #00d4ff, #0099cc);
    color: #1a1a1a;
}
*/
/* Stream Bilgileri */
.current-show {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

.current-song {
    font-size: 11px;
    font-weight: 500;
    color: #00d4ff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-song.marquee {
    animation: songMarquee 15s linear infinite;
    padding-left: 100%;
}

@keyframes songMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.listener-count {
    font-size: 10px;
    color: #dbdbdb;
    font-weight: 400;
    margin-left: 8px;
}

.listener-count i {
    margin-right: 2px;
    color: #00d4ff;
}

/* Volume Control */
.volume-control {
    position: relative;
    height: 40px;
    width: 40px;
}

.volume-icon {
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 0 12px;
    border-left: 1px solid #000;
    border-radius: 0;
    transition: all 0.2s ease;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-right: none;
    border-top: none;
    border-bottom: none;
    outline: none !important;
}

.volume-icon:hover {
    color: #00d4ff;
    background: rgba(255, 255, 255, 0.05);
}

.volume-dropdown {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 80px;
    height: 40px;
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid #000;
    border-radius: 0;
    padding: 0 8px;
    opacity: 0;
    visibility: hidden;
    transform: translate(10px, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.volume-control:hover .volume-dropdown,
.volume-control.active .volume-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: rgba(68, 68, 68, 0.8);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    margin: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.4);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 212, 255, 0.6);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.4);
}

/* Close Button */
.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-left: 1px solid #000;
    border-radius: 0;
    background: transparent;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
}

.close-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* Marquee Alanı (%40) */
.player-marquee {
    height: 40%;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #000;
    display: flex;
    align-items: center;
    padding: 0 12px;
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    font-size: 13px;
    color: #aaa;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Responsive Design - Küçük Ekranlar */
@media (max-width: 480px) {
    .current-show {
        font-size: 10px;
    }
    
    .current-song {
        font-size: 9px;
    }
    
    .listener-count {
        font-size: 8px;
        margin-left: 6px;
    }
    
    .marquee {
        font-size: 11px;
    }
    
    .play-btn {
        font-size: 14px;
    }
    
    .volume-icon {
        font-size: 12px;
    }
    
    .close-btn {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .current-show {
        font-size: 9px;
    }
    
    .current-song {
        font-size: 9px;
    }
    
    .listener-count {
        font-size: 9px;
        margin-left: 4px;
    }
    
    .marquee {
        font-size: 10px;
    }
    
    .play-btn {
        font-size: 12px;
    }
    
    .volume-icon {
        font-size: 11px;
    }
    
    .close-btn {
        font-size: 9px;
    }
}



.error {
    background: rgba(45, 26, 26, 0.8) !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
}

.error .current-song {
    color: #ff6b6b !important;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.volume-slider:focus {
    outline: 2px solid #00d4ff;
}

/* jPlayer Container - Gizli */
#jplayer {
    display: none;
}