* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #4cc9f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #a5b4fc;
    font-weight: 300;
}

.player-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    padding: 30px;
    align-items: center;
}

.radio-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, #2d2d44 0%, #1a1a2e 70%);
    border: 8px solid #4cc9f0;
    position: relative;
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.3);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.radio-needle {
    position: absolute;
    width: 4px;
    height: 100px;
    background: #f72585;
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -50%) rotate(30deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 2px;
    z-index: 2;
}

/* Классы для анимации иглы */
.radio-needle.needle-playing {
    transform: translate(-50%, -50%) rotate(0deg) !important;
}

.radio-needle.needle-paused {
    transform: translate(-50%, -50%) rotate(30deg) !important;
}

/* Пульсация круга */
.radio-circle.circle-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 30px rgba(76, 201, 240, 0.3); }
    50% { box-shadow: 0 0 50px rgba(76, 201, 240, 0.6); }
    100% { box-shadow: 0 0 30px rgba(76, 201, 240, 0.3); }
}

.radio-center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f72585;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.frequency-display {
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 25px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #72efdd;
    border: 2px solid #4cc9f0;
    transition: all 0.3s ease;
}

.player-controls {
    flex: 2;
    min-width: 300px;
}

.track-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    color: #a5b4fc;
    margin-bottom: 25px;
    font-size: 1.1rem;
    min-height: 1.5rem;
}

.progress-container {
    margin: 30px 0;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f72585, #4cc9f0);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a5b4fc;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(76, 201, 240, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(76, 201, 240, 0.4);
    transform: scale(1.1);
}

.control-btn.active {
    background: #4cc9f0;
    color: #1a1a2e;
}

.control-btn.play {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    background: #f72585;
}

.control-btn.play:hover {
    background: #ff4da6;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
}

.volume-icon {
    font-size: 1.2rem;
    color: #4cc9f0;
}

#volume-slider {
    flex-grow: 1;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4cc9f0;
    cursor: pointer;
}

#volume-value {
    min-width: 40px;
    text-align: right;
    color: #a5b4fc;
}

.playlist-info {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: #a5b4fc;
    font-size: 0.9rem;
}

.playlist-container {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
}

.playlist-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4cc9f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

#playlist {
    list-style-type: none;
}

#playlist li {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

#playlist li:hover {
    background: rgba(76, 201, 240, 0.1);
    border-radius: 8px;
}

#playlist li.playing {
    background: rgba(76, 201, 240, 0.2);
    border-radius: 8px;
    color: #4cc9f0;
    font-weight: 600;
}

#playlist li i {
    color: #f72585;
}

.instructions {
    background: rgba(30, 30, 46, 0.8);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
}

.instructions h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #72efdd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions p {
    margin-bottom: 15px;
    color: #a5b4fc;
}

.instructions ol {
    margin-left: 20px;
    margin-bottom: 25px;
    color: #a5b4fc;
}

.instructions li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
    font-size: 0.9rem;
}

.footer-info {
    margin-top: 10px;
    color: #4cc9f0;
}

/* Полоса прокрутки */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: #4cc9f0;
    border-radius: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
    }
    .radio-circle {
        width: 200px;
        height: 200px;
    }
    header h1 {
        font-size: 2.2rem;
    }
    .control-buttons {
        gap: 10px;
    }
    .control-btn {
        width: 50px;
        height: 50px;
    }
    .control-btn.play {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .track-info h2 {
        font-size: 1.4rem;
    }
}