/**
 * Quality Radio Player - Estilos del reproductor
 * Diseño integrado con programa al aire
 */

/* ===== CONTENEDOR PRINCIPAL ===== */
.qrp-player-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qrp-header-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== SECCIÓN DEL PROGRAMA AL AIRE ===== */
.qrp-program-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.qrp-badge-live {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.qrp-badge-live i {
    color: #ff3333;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qrp-program-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.qrp-program-image {
    flex-shrink: 0;
}

.qrp-program-image img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qrp-program-details {
    flex: 1;
    color: #fff;
}

.qrp-program-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.qrp-program-schedule {
    font-size: 16px;
    margin: 5px 0;
    opacity: 0.9;
}

.qrp-time-highlight {
    color: #00ff88;
    font-weight: bold;
    font-size: 18px;
}

.qrp-program-host {
    font-size: 14px;
    margin: 5px 0;
    font-style: italic;
    opacity: 0.8;
}

/* ===== CONTROLES DEL REPRODUCTOR ===== */
.qrp-player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.qrp-btn-play {
    background: #fff;
    border: none;
    color: #000;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qrp-btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.qrp-btn-play:active {
    transform: scale(0.98);
}

.qrp-btn-play i {
    font-size: 20px;
}

.qrp-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    flex: 1;
    max-width: 300px;
}

.qrp-volume-control i {
    color: #fff;
    font-size: 20px;
}

.qrp-volume-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
}

.qrp-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.qrp-volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== SECCIÓN DE CANCIONES RECIENTES ===== */
.qrp-songs-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    color: #333;
}

.qrp-songs-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.qrp-songs-title i {
    color: #667eea;
}

.qrp-song-current {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.qrp-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23667eea" width="100" height="100"/><text x="50" y="50" text-anchor="middle" dy=".3em" fill="white" font-size="30">♪</text></svg>') center/cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.qrp-song-info {
    flex: 1;
    min-width: 0;
}

.qrp-song-title {
    font-weight: bold;
    font-size: 14px;
    margin: 0 0 5px 0;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qrp-song-artist {
    font-size: 12px;
    margin: 0;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qrp-song-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qrp-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.qrp-history-item:hover {
    background: #f8f9fa;
}

.qrp-history-cover {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23999" width="100" height="100"/><text x="50" y="50" text-anchor="middle" dy=".3em" fill="white" font-size="25">♪</text></svg>') center/cover;
    flex-shrink: 0;
}

.qrp-history-info {
    flex: 1;
    min-width: 0;
}

.qrp-history-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qrp-history-artist {
    font-size: 11px;
    margin: 0;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .qrp-header-container {
        grid-template-columns: 65% 35%;
    }
    
    .qrp-program-title {
        font-size: 24px;
    }
    
    .qrp-program-image img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 992px) {
    .qrp-header-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qrp-songs-section {
        max-height: 400px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .qrp-player-header {
        padding: 20px 15px;
    }
    
    .qrp-program-info {
        flex-direction: column;
        text-align: center;
    }
    
    .qrp-program-image img {
        width: 100px;
        height: 100px;
    }
    
    .qrp-program-title {
        font-size: 20px;
    }
    
    .qrp-player-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .qrp-btn-play {
        width: 100%;
        justify-content: center;
    }
    
    .qrp-volume-control {
        width: 100%;
        max-width: none;
    }
}

/* ===== ANIMACIONES ===== */
.qrp-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qrp-slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
