/* FONDO del panel */
.qrp-player-header {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 30px;
}

.qrp-header-container {
    display: grid;
    grid-template-columns: 70% 30%;
    max-width: 1428px;
    margin: 0 auto;
    background: transparent !important;
    gap: 20px;
}

.qrp-left-section {
    padding: 20px;
    padding-top: 30px;
}

.qrp-program-banner-img {
    width: 100%;
    max-width: 810px;
}

/* DERECHA */
.qrp-right-section {
    background: transparent !important;
    padding: 20px;
    padding-top: 30px;
    position: relative;
    padding-top: 120px;
}

/* PLAY Y VOLUMEN */
.qrp-controls-wrapper {
    position: absolute;
    top: 50px;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.qrp-play-button {
    background: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ICONOS */
.qrp-play-button i {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
}

.qrp-play-button.playing i::before {
    content: "❚❚";
}

.qrp-play-button:not(.playing) i::before {
    content: "▶";
}

.qrp-volume-icon {
    font-style: normal;
}

.qrp-volume-icon::before {
    content: "🔊";
    font-size: 18px;
}

.qrp-songs-header i {
    font-style: normal;
}

.qrp-songs-header i::before {
    content: "♪";
    font-size: 14px;
}

.qrp-volume-wrapper {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 220px;
}

.qrp-volume-icon {
    color: #fff;
    font-size: 18px;
}

/* SLIDER sin números */
.qrp-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    outline: none;
}

.qrp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
}

.qrp-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* SONANDO AHORA */
.qrp-now-playing-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    animation: qrp-blink 1.5s ease-in-out infinite;
}

@keyframes qrp-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* CANCIÓN ACTUAL */
.qrp-song-item.qrp-current {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: transparent !important;
    border-radius: 8px;
    margin-bottom: 20px;
}

.qrp-song-item.qrp-current .qrp-song-cover {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background: #444;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
}

.qrp-song-item.qrp-current .qrp-song-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.qrp-song-item.qrp-current .qrp-song-artist-name {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

/* CANCIONES ESCUCHADAS */
.qrp-songs-header {
    display: flex;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.qrp-songs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* HISTORIAL */
.qrp-song-item:not(.qrp-current) {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: transparent !important;
    border-radius: 6px;
}

.qrp-song-item:not(.qrp-current) .qrp-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #444;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
}

.qrp-song-item:not(.qrp-current) .qrp-song-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
}

.qrp-song-item:not(.qrp-current) .qrp-song-artist-name {
    font-size: 14px;
    color: #fff;
    margin: 0;
}

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

.qrp-song-name,
.qrp-song-artist-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* OCULTAR AUDIO */
#qrpAudioPlayer,
audio,
video,
.mejs-container,
.mejs-mediaelement,
.wp-playlist {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -99999px !important;
}

/* RESPONSIVE - controles bajan antes */
@media (max-width: 1100px) {
    .qrp-controls-wrapper {
        position: static;
        margin-bottom: 20px;
        justify-content: center;
    }
    .qrp-right-section {
        padding-top: 20px;
    }
}

@media (max-width: 768px) {
    .qrp-header-container {
        grid-template-columns: 1fr;
    }
    .qrp-player-header {
        padding-top: 20px;
    }
    .qrp-left-section {
        padding-top: 20px;
    }
}
