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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.radio-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.radio-header {
    text-align: center;
    margin-bottom: 30px;
}

.radio-header h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mode Switch */
.mode-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border-color: white;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

/* Live Player */
.live-player {
    color: white;
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 30px;
    background: linear-gradient(135deg, rgb(102, 126, 234) 0%, rgb(118, 75, 162) 100%);
    padding: 25px;
    border-radius: 20px;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    border-image: initial;
}

.live-info {
    text-align: center;
    margin-bottom: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
    box-shadow: 0 0 10px #ff4757;
}

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

.live-text {
    font-weight: bold;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.live-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.live-metadata {
    font-size: 0.95em;
    opacity: 0.9;
    font-style: italic;
}

/* Visualizer */
.live-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.bar {
    width: 8px;
    background: linear-gradient(to top, #f093fb, #f5576c, white);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar:nth-child(1) { height: 20px; animation: visualizer 0.8s infinite; }
.bar:nth-child(2) { height: 30px; animation: visualizer 0.9s infinite 0.1s; }
.bar:nth-child(3) { height: 35px; animation: visualizer 1s infinite 0.2s; }
.bar:nth-child(4) { height: 25px; animation: visualizer 0.7s infinite 0.3s; }
.bar:nth-child(5) { height: 15px; animation: visualizer 0.6s infinite 0.4s; }

@keyframes visualizer {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.playing .live-visualizer .bar {
    animation-play-state: running;
}

.live-visualizer .bar {
    animation-play-state: paused;
}

.current-track {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    margin-bottom: 20px;
}

.track-info span {
    font-size: 1.1em;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    background: white;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.time-display {
    font-size: 0.9em;
    opacity: 0.9;
}

.radio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.control-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.control-btn.active {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.volume-control i {
    color: #667eea;
    font-size: 1.2em;
}

#volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    cursor: pointer;
}

.playlist {
    margin-bottom: 25px;
}

.playlist h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

#playlist-items {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
}

.playlist-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.playlist-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.playlist-item.playing {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.radio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.listeners, .status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.listeners i {
    color: #4caf50;
}

.embed-code {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.embed-code h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 0.9em;
}

#embed-textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.8em;
    resize: none;
    background: white;
}

.copy-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .radio-container {
        padding: 20px;
        margin: 10px;
    }
    
    .radio-controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }
    
    .main-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3em;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.playing .main-btn {
    animation: pulse 2s infinite;
}

/* Scrollbar */
#playlist-items::-webkit-scrollbar {
    width: 6px;
}

#playlist-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#playlist-items::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 3px;
}

#playlist-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}
