/* Radio Page Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Cairo';
}

.page-title {
    font-family: 'Cairo';
    color: #161b1f;
    margin-top: 30px;
    margin-bottom: 10px;
}

.page-desc {
    color: #555;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Radio Grid */
.radios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 100px;
    /* Space for fixed player */
}

.radio-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.radio-card.active {
    border-color: #161b1f;
    background-color: #f0fff4;
}

.radio-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #161b1f;
}

.radio-info {
    flex: 1;
}

.radio-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.radio-status {
    font-size: 0.85rem;
    color: #777;
}

.radio-card.active .radio-status {
    color: #161b1f;
    font-weight: bold;
}

/* Audio Player Bar */
.radio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #161b1f;
    color: white;
    padding: 15px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.radio-player-bar.active {
    transform: translateY(0);
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.current-radio-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-radio-img {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.current-radio-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.current-radio-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-player-btn {
    position: absolute;
    top: -15px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    transition: 0.2s;
    border: none;
    z-index: 1001;
}

.close-player-btn:hover {
    background: #e0404f;
    transform: scale(1.1);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: #161b1f;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* Animations */
@keyframes playingModule {
    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.6);
    }

    100% {
        transform: scaleY(1);
    }
}

.playing-indicator {
    display: flex;
    gap: 3px;
    height: 15px;
    align-items: flex-end;
}

.playing-indicator span {
    width: 3px;
    background-color: #161b1f;
    animation: playingModule 1s infinite ease-in-out;
}

.playing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.playing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}



/* Mobile Adjustments */
@media (max-width: 768px) {
    .player-content {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 20px;
        /* Safe area */
    }

    .volume-control {
        display: none;
    }

    .radios-grid {
        grid-template-columns: 1fr;
    }
}