/**
 * Radio Player Styles - Markansaya Radio
 * Estilos para el reproductor de radio individual
 */

/* PLAYER PRINCIPAL - LO PRIMERO QUE SE VE */
.main-player-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 30px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.main-player-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.player-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.station-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-red);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.5);
    animation: pulse 2s infinite;
}

.station-badge.offline {
    background: #757575;
    animation: none;
}

.station-badge i {
    animation: blink 1.5s infinite;
}

.station-badge.offline i {
    animation: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.station-name-large {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-weight: 800;
}

.station-frequency {
    font-size: 1.3rem;
    color: var(--primary-yellow);
    font-weight: 600;
}

/* PLAYER VISUAL */
.player-visual {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.album-cover {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.4);
    position: relative;
    overflow: hidden;
}

.album-cover.playing {
    animation: rotate-album 20s linear infinite;
}

@keyframes rotate-album {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.album-cover i {
    font-size: 5rem;
    color: white;
}

.now-playing-info {
    min-width: 0;
}

.now-playing-tag {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: var(--primary-yellow);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Programa Actual Banner */
.programa-actual-banner {
    display: flex;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-left: 4px solid var(--primary-yellow);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    align-items: center;
}

.programa-icon {
    font-size: 2rem;
    color: var(--primary-yellow);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.programa-details {
    flex: 1;
}

.programa-nombre {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.3rem;
}

.programa-conductor {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.programa-conductor i {
    color: var(--primary-yellow);
    margin-right: 0.3rem;
}

.programa-horario {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.programa-horario i {
    color: var(--primary-yellow);
    margin-right: 0.3rem;
}

.song-title-huge {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.song-artist-huge {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    font-weight: 500;
    margin-bottom: 1rem;
}

.song-meta {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.song-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CONTROLES */
.player-main-controls {
    text-align: center;
}

.play-btn-huge {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-orange) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.6);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.play-btn-huge:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 60px rgba(255, 193, 7, 0.8);
}

.play-btn-huge:active {
    transform: scale(0.95);
}

.play-btn-huge:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(135deg, #666 0%, #444 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 200px;
}

.volume-slider-custom {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider-custom::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-yellow);
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(255, 193, 7, 0.6);
}

.volume-slider-custom::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-yellow);
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 15px rgba(255, 193, 7, 0.6);
}

.volume-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* HISTORIAL DE CANCIONES */
.song-history {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.history-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 1px;
}

.history-header i {
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s;
}

.history-item:hover {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateX(10px);
}

.history-number {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.history-item:hover .history-number {
    background: white;
    color: var(--primary-dark);
}

.history-song-info {
    flex: 1;
    min-width: 0;
}

.history-song-title {
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-song-artist {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item:hover .history-song-artist {
    color: rgba(255, 255, 255, 0.9);
}

.history-time {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

.history-item:hover .history-time {
    color: rgba(255, 255, 255, 0.8);
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .player-visual {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .album-cover {
        margin: 0 auto;
    }

    .song-meta {
        justify-content: center;
    }

    .volume-section {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .station-name-large {
        font-size: 2.2rem;
    }

    .song-title-huge {
        font-size: 1.8rem;
    }

    .song-artist-huge {
        font-size: 1.2rem;
    }

    .album-cover {
        width: 140px;
        height: 140px;
    }

    .play-btn-huge {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }

    .main-player-section {
        padding: 2rem 1.5rem;
    }

    .programa-actual-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .programa-icon {
        font-size: 1.5rem;
    }

    .programa-nombre {
        font-size: 1.1rem;
    }

    .programa-conductor,
    .programa-horario {
        font-size: 0.85rem;
    }
}
