.radio-card {
    min-height: 240px;
}

.radio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.radio-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Equalizer Animation */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 14px;
    height: 12px;
}
.equalizer span {
    width: 3px;
    height: 100%;
    background: var(--accent);
    animation: bounce 0.8s ease-in-out infinite alternate;
}
.equalizer span:nth-child(2) { animation-delay: 0.2s; }
.equalizer span:nth-child(3) { animation-delay: 0.4s; }

.radio-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.radio-main-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
    flex-shrink: 0;
}

.radio-main-btn:hover:not(:disabled) {
    background: var(--accent);
    transform: scale(1.05);
}

.radio-main-btn:disabled {
    background: rgba(0,0,0,0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.radio-volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    max-width: 120px;
}

.radio-volume-container input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-station-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0 0 0;
    max-height: 110px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
}

.radio-station-grid::-webkit-scrollbar {
    width: 4px;
}
.radio-station-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.radio-station-btn {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    height: 48px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    line-height: 1.2;
}

.radio-station-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.15);
}

.radio-station-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 59, 130, 246), 0.3);
}

@keyframes radio-pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.radio-station-btn.active.is-playing {
    animation: radio-pulse 1.8s infinite;
}

@keyframes wiggle-radio {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}
.radio-station-btn.is-wiggling {
    animation: wiggle-radio 0.3s infinite;
    border: 1px dashed var(--primary);
}

.btn-station-action {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 2px;
    display: none;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

.radio-station-btn:hover .btn-station-action {
    display: inline-flex;
}

.radio-station-btn.active .btn-station-action {
    color: rgba(255, 255, 255, 0.8);
}
.radio-station-btn.active .btn-station-action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.radio-station-btn:not(.active) .btn-station-action {
    color: var(--text-muted);
}
.radio-station-btn:not(.active) .btn-station-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--danger);
}

@media (max-width: 500px) {
    .radio-station-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
