:root {
    --primary-color: #4A4B54;
    --primary-hover: #09122E;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --card-bg: white;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Стили для тач-устройств */
body.touch-device button {
    min-width: 60px;
    min-height: 60px;
    padding: 15px;
    font-size: 1.1rem;
}

/* Стили для десктопов */
body.no-touch-device button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.radio-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--card-bg);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

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

.radio-header h1 {
    font-size: 2rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-art {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.track-info {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.track-info h2 {
    font-size: 1.4rem;
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    font-size: 1.1rem;
    color: #666;
    margin: 5px 0;
}

audio {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 60px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.95);
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .radio-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        padding: 15px;
    }
    .cover-art {
        width: 180px;
        height: 180px;
    }
    
    .controls {
        gap: 8px;
    }
    
    button {
        padding: 10px 15px;
        flex-grow: 1;
    }
}

@media (max-width: 480px) {
    .cover-art {
        width: 160px;
        height: 160px;
    }
    
    .track-info h2 {
        font-size: 1.2rem;
    }
    
    .track-info p {
        font-size: 1rem;
    }
    button {
        min-width: 55px;
        padding: 10px;
    }
}
