/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

/* Контейнер радио */
.radio-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(0, 242, 254, 0.1);
    text-align: center;
}

/* Шапка */
.radio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #00f2fe;
}

.logo b {
    color: #4facfe;
}

.status-badge {
    background: #ff0055;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    animation: pulse 2s infinite;
}

/* Обложка и Визуализация */
.cover-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #111;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(79, 172, 254, 0.3);
    transition: transform 0.5s ease;
}

.disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Анимация вращения при воспроизведении */
.disc.playing {
    animation: rotateDisc 12s linear infinite;
}

/* Информация о треке */
.track-info h1 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    color: #8a8a9e;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Управление звуком и кнопками */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 50px;
}

.control-btn {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.control-btn:hover {
    color: #00f2fe;
}

.play-btn {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

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

/* Ползунок громкости */
.volume-slider-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

#volume-slider {
    width: 100%;
    -webkit-appearance: none;
    background: #333;
    height: 6px;
    border-radius: 3px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00f2fe;
    cursor: pointer;
    box-shadow: 0 0 8px #00f2fe;
}

/* Анимации */
@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 0, 85, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 0, 85, 0.8); }
    100% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 0, 85, 0.4); }
}

/* Фейковый визуализатор (полоски) */
.wave-visualizer {
    position: absolute;
    bottom: -10px;
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
}

.disc.playing ~ .wave-visualizer {
    opacity: 1;
}

.wave-visualizer span {
    width: 4px;
    height: 15px;
    background: #00f2fe;
    border-radius: 2px;
}

.disc.playing ~ .wave-visualizer span {
    animation: bounce 0.8s ease infinite alternate;
}
.wave-visualizer span:nth-child(2) { animation-delay: 0.1s; }
.wave-visualizer span:nth-child(3) { animation-delay: 0.3s; }
.wave-visualizer span:nth-child(4) { animation-delay: 0.2s; }
.wave-visualizer span:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
    from { height: 5px; }
    to { height: 28px; background: #4facfe; }
}
