/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.header p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Добавление станции */
.add-station {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 15px;
    align-items: center;
}

.input-group input {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.input-group button:hover {
    transform: translateY(-2px);
}

.input-group button:active {
    transform: translateY(0);
}

/* Плеер */
.player-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.current-station {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.station-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.station-info p {
    color: #666;
    font-size: 0.9rem;
    word-break: break-all;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

#playPauseBtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

#playPauseBtn:enabled:hover {
    transform: scale(1.1);
}

#playPauseBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control i {
    color: #667eea;
    font-size: 1.2rem;
}

#volumeSlider {
    width: 100px;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Список станций */
.stations-list {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stations-list h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.station-card {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.station-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.station-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.station-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.station-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    word-break: break-all;
}

.station-card.active p {
    color: rgba(255,255,255,0.9);
}

.station-actions {
    display: flex;
    gap: 10px;
}

.station-actions button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.station-actions button:hover {
    background: #f0f0f0;
}

.station-card.active .station-actions button {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.station-card.active .station-actions button:hover {
    background: rgba(255,255,255,0.3);
}

.delete-btn {
    background: #ff4757 !important;
    color: white !important;
    border-color: #ff4757 !important;
}

.delete-btn:hover {
    background: #ff3742 !important;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Подвал */
.footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 40px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    
    .current-station {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .add-station,
    .player-section,
    .stations-list {
        padding: 20px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
    }
} 