/* 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 - más margen derecho */
.qrp-right-section {
    background: transparent !important;
    padding: 20px 40px 20px 20px;
    padding-top: 30px;
    position: relative;
    padding-top: 120px;
}

/* PLAY Y VOLUMEN - más separación del borde */
.qrp-controls-wrapper {
    position: absolute;
    top: 50px;
    right: 40px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.qrp-play-button {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 25px;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s;
}

.qrp-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    border-color: rgba(255, 140, 0, 0.8);
}

.qrp-play-button #qrpButtonText {
    color: #fff;
}

/* ICONOS */
.qrp-play-button i {
    font-style: normal;
    font-size: 16px;
    line-height: 1 !important;
    position: relative !important;
    top: 0 !important;
    bottom: auto !important;
    vertical-align: middle;
    color: #fff;
}

.qrp-play-button i,
#qrpPlayerIcon {
    position: relative !important;
    top: 0 !important;
    bottom: auto !important;
    vertical-align: middle;
    color: #fff;
}

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

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

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

.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(30, 60, 120, 0.4);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 220px;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(10px);
}

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

/* SLIDER */
.qrp-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 5px;
    outline: none;
    position: relative;
}

.qrp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.5);
    transition: all 0.2s;
}

.qrp-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(255, 102, 0, 0.7);
}

.qrp-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.5);
}

/* OCULTAR GLOBO COMPLETO - span.thumb y span.value */
.qrp-volume-wrapper span.thumb,
.qrp-volume-wrapper span.thumb.active,
.qrp-volume-wrapper span.value,
.qrp-volume-slider + span.thumb,
span.thumb,
span.thumb.active,
span.value {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -99999px !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Ocultar todos los tooltips nativos */
.qrp-volume-slider::-webkit-slider-runnable-track {
    background: transparent;
}

.qrp-volume-slider::-webkit-slider-thumb::before,
.qrp-volume-slider::-webkit-slider-thumb::after,
.qrp-volume-slider::-moz-range-thumb::before,
.qrp-volume-slider::-moz-range-thumb::after {
    display: none !important;
}

.qrp-volume-slider[type="range"]::-ms-tooltip {
    display: none !important;
}

/* 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;
}

/* ESPACIO PARA STICKY PLAYER */
body {
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}

body.qrp-sticky-active {
    padding-bottom: 80px;
}

/* STICKY PLAYER - ABAJO CON COLORES QUALITY RADIO */
.qrp-sticky-player {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 20, 35, 0.95) 0%, rgba(25, 30, 45, 0.98) 100%);
    backdrop-filter: blur(15px);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    border-top: 3px solid transparent;
    background-clip: padding-box;
}

/* Borde superior naranja Quality */
.qrp-sticky-player::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600 0%, #ff8c00 50%, #ff6600 100%);
    background-size: 200% 100%;
    animation: qrp-orange-glow 2s ease-in-out infinite;
}

@keyframes qrp-orange-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.qrp-sticky-player.visible {
    transform: translateY(0) !important;
}

.qrp-sticky-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* IZQUIERDA - Cover + Info */
.qrp-sticky-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.qrp-sticky-cover {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    border: 2px solid rgba(255, 102, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s;
}

.qrp-sticky-cover:hover {
    transform: scale(1.05);
    border-color: rgba(255, 102, 0, 0.6);
}

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

.qrp-sticky-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.qrp-sticky-artist {
    font-size: 14px;
    color: #ff8c00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    font-weight: 500;
}

/* DERECHA - Controles */
.qrp-sticky-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.qrp-sticky-play-btn {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
    border: 2px solid rgba(255, 140, 0, 0.5);
}

.qrp-sticky-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
    border-color: rgba(255, 140, 0, 0.8);
}

.qrp-sticky-play-btn i {
    font-style: normal;
    font-size: 20px;
    line-height: 1 !important;
    position: relative !important;
    top: 0 !important;
    bottom: auto !important;
    vertical-align: middle;
    color: #fff;
}

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

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

/* VOLUMEN */
.qrp-sticky-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 60, 120, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.qrp-sticky-volume-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.qrp-sticky-volume-slider {
    width: 120px;
    -webkit-appearance: none;
    height: 5px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 5px;
    outline: none;
}

.qrp-sticky-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.5);
    transition: all 0.2s;
}

.qrp-sticky-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(255, 102, 0, 0.7);
}

.qrp-sticky-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.5);
}

/* Ocultar tooltip del slider */
.qrp-sticky-volume span.thumb,
.qrp-sticky-volume span.value {
    display: none !important;
}

/* CORREGIR MEDIAELEMENT.JS (footer sticky) */
.mejs-playpause-button button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.mejs-playpause-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 768px) {
    .qrp-header-container {
        grid-template-columns: 1fr;
    }
    .qrp-player-header {
        padding-top: 20px;
    }
    .qrp-left-section {
        padding-top: 20px;
    }
    .qrp-right-section {
        padding-right: 20px;
    }
    
    /* Sticky player mobile */
    .qrp-sticky-container {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .qrp-sticky-cover {
        width: 45px;
        height: 45px;
    }
    
    .qrp-sticky-title {
        font-size: 15px;
    }
    
    .qrp-sticky-artist {
        font-size: 13px;
    }
    
    .qrp-sticky-play-btn {
        width: 50px;
        height: 50px;
    }
    
    .qrp-sticky-volume {
        padding: 8px 15px;
    }
    
    .qrp-sticky-volume-slider {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .qrp-sticky-volume {
        display: none;
    }
    
    body.qrp-sticky-active {
        padding-bottom: 70px;
    }
}
