/* ========================================
   RADIO PAGE STYLES
   BEM with .radio- prefix
   ======================================== */

/* Radio Player Component */
.radio-player {
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.radio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(45, 45, 45, 0.88) 100%);
    z-index: 1;
}

.radio-player > * {
    position: relative;
    z-index: 2;
}

/* When inside text-and-img container */
.text-and-img__image-container .radio-player {
    max-width: 100%;
}

.radio-player__current-song {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.radio-player__song-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.radio-player__song-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radio-player__song-details {
    flex-grow: 1;
    color: var(--white);
}

.radio-player__song-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.radio-player__song-details p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.radio-player__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.radio-player__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.radio-player__action-btn i {
    font-size: 0.9rem;
}

.radio-player__action-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.radio-player__action-btn:active {
    transform: translateY(0);
}

/* Hide letra button on single song pages */
.radio-player[data-hide-letra="true"] .radio-player__action-btn--letra {
    display: none;
}

.radio-player__audio-wrapper {
    margin-bottom: 1.5rem;
}

.radio-player__audio {
    display: none;
}

.radio-player__progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.radio-player__progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-pill);
    width: 0%;
    transition: width 0.1s linear;
}

.radio-player__time-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.radio-player__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-player__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
}

.radio-player__button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.radio-player__button--primary {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-color: var(--accent);
    font-size: 1.4rem;
}

.radio-player__button--primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Radio Song List */
.radio-song-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.radio-song-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.radio-song-item:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-2px);
}

.radio-song-item__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.radio-song-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radio-song-item__info {
    flex-grow: 1;
}

.radio-song-item__info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--txt);
}

.radio-song-item__genre {
    font-size: 0.95rem;
    color: rgba(70, 62, 55, 0.65);
    margin: 0;
}

.radio-song-item__actions {
    flex-shrink: 0;
}

/* Single Cancion Page Header */
.cancion-genre {
    font-size: 1.2rem;
    color: rgba(70, 62, 55, 0.65);
    font-weight: 600;
}

/* Radio Lyrics Section */
.radio-lyrics {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.radio-lyrics h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.radio-lyrics__content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.radio-lyrics__content p {
    margin-bottom: 1.5rem;
}

.radio-lyrics__content em {
    color: rgba(70, 62, 55, 0.65);
    font-style: italic;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .radio-player {
        padding: 1.5rem;
    }

    .radio-player__current-song {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .radio-player__song-image {
        width: 100px;
        height: 100px;
    }

    .radio-player__song-details h3 {
        font-size: 1.3rem;
    }

    .radio-player__actions {
        justify-content: center;
    }

    .radio-player__controls {
        gap: 0.75rem;
    }

    .radio-player__button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .radio-player__button--primary {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .radio-song-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .radio-song-item__image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .radio-lyrics {
        padding: 1.5rem 0;
    }

    .radio-lyrics h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .radio-lyrics__content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .radio-player__controls {
        gap: 0.5rem;
    }

    .radio-player__button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .radio-player__button--primary {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .radio-song-item__actions .button {
        width: 100%;
        justify-content: center;
    }
}
