* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

html {
    background-color: #034403;
}

body {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    height: auto;
    background-color: #034403;
    color: #e5fa6e;
    line-height: 1.2;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 480px) {
    body {
        padding: 9px;
    }
}

header {
    text-align: center;
    margin-bottom: 16px;
    padding: 6px 0;
    border-bottom: 1px solid #e5fa6e;
}

h2 {
    font-size: 2rem;
    margin: 4px 0 5px;
    color: #ffffff;
    text-align: center;
}

.radio-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.radio-button {
    background-color: #0c6b0c;
    color: #ffffff;
    border: none;
    padding: 10px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: left;
}

.station-icon {
    font-size: 1.9rem;
    width: 2.0rem;
    text-align: center;
    flex-shrink: 0;
    margin-right: 2px;
}

.station-text {
    flex: 1;
    text-align: center;
    font-weight: 500;
    line-height: 1.8;
}

.radio-button.active.playing {
    animation: pulse-glow 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, #0f7f0f, #1e9e1e);
    box-shadow: 0 0 12px rgba(229, 250, 110, 0.6);
}

@keyframes pulse-glow {
    0% {
        background: linear-gradient(135deg, #0f7f0f, #1e9e1e);
        box-shadow: 0 0 5px rgba(229, 250, 110, 0.4);
    }
    50% {
        background: linear-gradient(135deg, #1e9e1e, #2cb52c);
        box-shadow: 0 0 18px rgba(229, 250, 110, 0.9);
    }
    100% {
        background: linear-gradient(135deg, #0f7f0f, #1e9e1e);
        box-shadow: 0 0 5px rgba(229, 250, 110, 0.4);
    }
}

.radio-button:hover {
    transform: scale(0.98);
    background-color: #0f7f0f;
}

.radio-button:active {
    background-color: #0a5a0a;
}

#radioPlayer {
    display: none;
}

.controls-panel {
    background-color: #0a550a;
    border-radius: 20px;
    padding: 12px 10px;
    margin: 5px 0 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.volume-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #034403;
    padding: 6px 12px;
    border-radius: 12px;
    gap: 10px;
    flex-wrap: nowrap;
}

.volume-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.volume-control label {
    font-size: 0.85rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #e5fa6e;
    border-radius: 5px;
    outline: none;
    min-width: 80px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-value {
    min-width: 45px;
    font-size: 0.75rem;
    background: #0a550a;
    padding: 2px 6px;
    border-radius: 20px;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Стильная кнопка "Информация о потоках" */
.stream-info-btn {
    display: block;
    width: fit-content;
    margin: 1.2rem auto;
    background-color: #0c6b0c;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.9rem;
}

.stream-info-btn:hover {
    background-color: #0f7f0f;
    transform: scale(0.98);
    color: #ffffff;
}

footer {
    margin-top: 0px;
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid #e5fa6e;
    padding-top: 20px;
    line-height: 1.4;
}

a:link, a:visited {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    color: #ffd966;
}

.status-bar {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    text-align: center;
    min-height: 42px;
    transition: background-color 0.2s;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-bar.loading {
    background-color: #fff3cd;
    color: #856404;
}

.status-bar.error {
    background-color: #f8d7da;
    color: #721c24;
}

.status-bar.success {
    background-color: #d4edda;
    color: #155724;
}

@media (max-width: 500px) {
    .volume-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .volume-control {
        width: 100%;
        min-width: auto;
    }
    .status-bar {
        font-size: 12px;
        padding: 6px 10px;
    }
    .stream-info-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}