/* single-artists.css actualizaciones */
.sideMenuContainer {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.side-button {
    display: block;
    transition: all 0.5s ease;
    box-shadow: 0px 0px 4px rgba(38, 38, 38, 0.6);
    position: relative;
    overflow: hidden;
}
.video-popup-btn:hover,
.video-popup-btn:active {
    width: 24vw;
    transition: all .2s ease;
}
.open-popup-btn:hover,
.open-popup-btn:active {
    width: 24vw;
    transition: all .2s ease;
}
.sideMenuContainer:has(.open-popup-btn:hover) .video-popup-btn {
    transform: translateX(240px);
    transition: transform 0.3s ease;
}
.sideMenuContainer:has(.video-popup-btn:hover) .open-popup-btn {
    transform: translateX(240px);
    transition: transform 0.3s ease;
}
.side-button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.video-popup-btn {
     width: 9.8vw;
    height: 9.8vw;
    background: url(https://renewproductionsus.com/assets/images/samples-iconv2.svg) no-repeat left rgba(0, 0, 0, .7);
    background-size: cover;
    animation-name: side-menu-samples;
    animation-duration: .9s;
    animation-delay: 2s;
    animation-iteration-count: 2;
    animation-direction: alternate;
}

.open-popup-btn {
     width: 9.8vw;
    height: 9.8vw;
    background: url(https://renewproductionsus.com/assets/images/songlist-icon.svg) no-repeat left rgba(0, 0, 0, .7);
    background-size: cover;
    box-shadow: 0px 0px 4px rgb(11 11 11 / 60%);
    animation-name: side-menu-pdf;
    animation-duration: .9s;
    animation-delay: 2.25s;
    animation-iteration-count: 2;
    animation-direction: alternate;
}
.side-button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}
.side-button:hover a {
}
.side-button::after {
   /* content: attr(data-tooltip);*/
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.side-button:hover::after {
    opacity: 1;
}
.side-button {
    display: block;
    transition: all 0.5s ease;
    box-shadow: 0px 0px 4px rgba(38, 38, 38, 0.6);
    position: relative;
    overflow: hidden;
    transform: translateX(-15px);
}
.side-button:hover {
    transform: translateX(-5px);
}

#videoPopup {
    max-width: 90vw;
    width: 998px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 2px;
    overflow: hidden;
}
.fancybox-video-container {
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    position: relative;
}
.custom-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 100;
}
.fancybox-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s ease;
}
.fancybox-close-btn:hover {
    opacity: 0.7;
}

.video-player {
    margin-bottom: 20px;
}
#videoPlayerWrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    /* Altura fija para el reproductor principal */
    height: 500px;
}
#popupVideoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-list {
    display: flex;
    flex-direction: row;
    max-height: 250px;
    overflow-y: auto;
    padding: 0 10px 20px;
    margin-top: 20px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: #666 #1a1a1a;
}
.video-list::-webkit-scrollbar {
    width: 6px;
}
.video-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.video-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
.video-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
.video-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0,0,0,.6);
    border-radius: 6px;
    cursor: pointer;
    min-height: 60px;
    flex-direction: column;
    min-width: 150px;
    max-width: 210px;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #fff;
    text-align: center;
}

.video-item:hover {
    background: rgba(40,40,40,.6);
    transform: translateX(5px);
}
.video-item.active {
    background: #212529;
    border-left: 3px solid #f4511e;
}
.video-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.video-item:hover .video-item-icon {
    background: #f4511e;
}
.video-item-icon i {
    color: white;
    font-size: 16px;
}
.video-item-title {
    flex: 1;
    color: white;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.video-item.no-videos {
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

@media (max-width: 768px) {
    #videoPopup {
        max-width: 95vw;
    }
    
    #videoPlayerWrapper {
        height: 250px;
    }
    
    .video-list {
        max-height: 200px;
    }
    
    .fancybox-video-container {
        padding: 15px;
    }
}

.fancybox-video-modal {
    background: transparent !important;
}
.fancybox-video-modal .fancybox-bg {
    background: rgba(0, 0, 0, 0.8);
}
.fancybox-video-modal .fancybox-inner {
    overflow: visible !important;
}
.fancybox-video-modal .fancybox-content {
    padding: 0 !important;
    background: transparent;
}
/* Estilos para el modal de songlist */
#songlistPdfPopup {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.songlist-pdf-container {
    padding: 30px;
    text-align: center;
}
.songlist-header {
    margin-bottom: 30px;
}
.artist-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.songlist-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}
.songlist-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}
.pdf-download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.pdf-icon {
    margin-bottom: 10px;
}
.pdf-link {
    display: inline-block;
    color: #dc3545;
    transition: all 0.3s ease;
}
.pdf-link:hover {
    color: #c82333;
    transform: scale(1.1);
}
.pdf-actions {
    display: flex;
    gap: 15px;
}
.btn-pdf-view,
.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn-pdf-view {
    background: #f4511e;
    color: white;
}
.btn-pdf-view:hover {
    background: #d84315;
    color: white;
}
.btn-pdf-download {
    background: #28a745;
    color: white;
}
.btn-pdf-download:hover {
    background: #218838;
    color: white;
}

@media (max-width: 480px) {
    .songlist-pdf-container {
        padding: 20px;
    }
    .artist-name {
        font-size: 20px;
    }
    .pdf-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-pdf-view,
    .btn-pdf-download {
        width: 100%;
        justify-content: center;
    }
}

.songlist-pdf-modal .fancybox-bg {
    background: rgba(0, 0, 0, 0.8);
}
.songlist-pdf-modal .fancybox-content {
    padding: 0 !important;
    background: transparent;
}


/* Base styles (remain the same) */
.sideMenuContainer {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}


/* Default sizes for desktop */
.video-popup-btn, .open-popup-btn {
    width: 9.8vw;
    height: 9.8vw;
    max-width: 120px;
    max-height: 120px;
}

.video-popup-btn {
    background: url(https://renewproductionsus.com/assets/images/samples-iconv2.svg) no-repeat left rgba(0, 0, 0, .7);
    background-size: cover;
    animation-name: side-menu-samples;
    animation-duration: .9s;
    animation-delay: 2s;
    animation-iteration-count: 2;
    animation-direction: alternate;
}

.open-popup-btn {
    background: url(https://renewproductionsus.com/assets/images/songlist-icon.svg) no-repeat left rgba(0, 0, 0, .7);
    background-size: cover;
    box-shadow: 0px 0px 4px rgb(11 11 11 / 60%);
    animation-name: side-menu-pdf;
    animation-duration: .9s;
    animation-delay: 2.25s;
    animation-iteration-count: 2;
    animation-direction: alternate;
}

/* Hover effects for desktop */
@media (min-width: 1025px) {
    .video-popup-btn:hover,
    .video-popup-btn:active,
    .open-popup-btn:hover,
    .open-popup-btn:active {
        width: 24vw;
        max-width: 280px;
        transition: all .2s ease;
    }

    .sideMenuContainer:has(.open-popup-btn:hover) .video-popup-btn {
        transform: translateX(240px);
        transition: transform 0.3s ease;
    }

    .sideMenuContainer:has(.video-popup-btn:hover) .open-popup-btn {
        transform: translateX(240px);
        transition: transform 0.3s ease;
    }
    
    .side-button:hover {
        transform: translateX(-15px);
    }
}

/* Large Screens (1200px and above) */
@media (min-width: 1200px) {
    #videoPopup {
        max-width: 90vw;
        width: 998px;
    }
    
    #videoPlayerWrapper {
        height: 500px;
    }
    
    .video-list {
        max-height: 250px;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    #videoPopup {
        max-width: 90vw;
        width: 900px;
    }
    
    #videoPlayerWrapper {
        height: 450px;
    }
    
    .video-list {
        max-height: 220px;
    }
    
    .video-item {
        min-width: 140px;
        max-width: 180px;
    }
}

/* Tablets and Small Desktops (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .video-popup-btn, .open-popup-btn {
        width: 80px;
        height: 80px;
    }
    
    #videoPopup {
        max-width: 90vw;
        width: 700px;
    }
    
    #videoPlayerWrapper {
        height: 380px;
    }
    
    .video-list {
        max-height: 200px;
    }
    
    .fancybox-video-container {
        padding: 15px;
    }
    
    .video-item {
        min-width: 120px;
        max-width: 150px;
        padding: 8px;
    }
    
    .video-item-title {
        font-size: 13px;
    }
    
    /* Adjustments for PDF popup */
    #songlistPdfPopup {
        max-width: 450px;
    }
}

/* Large Mobile Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .video-popup-btn, .open-popup-btn {
        width: 70px;
        height: 70px;
    }
    
    #videoPopup {
        max-width: 95vw;
        width: 95vw;
    }
    
    #videoPlayerWrapper {
        height: 300px;
    }
    
    .video-list {
        max-height: 180px;
    }
    
    .fancybox-video-container {
        padding: 12px;
    }
    
    .video-item {
        min-width: 110px;
        max-width: 140px;
        padding: 8px;
        font-size: 12px;
    }
    
    /* Transform side buttons on touch for mobile - replacing hover */
    .side-button:active {
        transform: translateX(-5px);
    }
    
    /* PDF popup adjustments */
    .songlist-pdf-container {
        padding: 20px;
    }
    
    .artist-name {
        font-size: 22px;
    }
    
    .songlist-content {
        padding: 15px;
    }
}

/* Small Mobile Devices (320px to 575px) */
@media (max-width: 575px) {
    /* Make side buttons smaller and more touch-friendly */
    .video-popup-btn, .open-popup-btn {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
    }
    
    /* Remove hover animations - they don't work well on mobile */
    .video-popup-btn:hover, .open-popup-btn:hover,
    .video-popup-btn:active, .open-popup-btn:active {
        width: 60px; /* Keep the same size */
        transform: none;
    }
    
    /* Active state for touch */
    .side-button:active {
        transform: translateX(-3px);
        opacity: 0.9;
    }
    
    /* Video popup adjustments */
    #videoPopup {
       /* max-width: 100vw;*/
       /* width: 100vw;*/
        border-radius: 0;  
    }
    
    #videoPlayerWrapper {
        height: 220px!important;
        border-radius: 0;
    }
    
    .video-list {
        max-height: 160px;
        padding: 0 5px 15px;
        gap: 6px;
    }
    
    .fancybox-video-container {
        padding: 10px;
    }
    
    .video-item {
        min-width: 100px;
       /* max-width: 120px;*/
        padding: 6px;
    }
    
    .video-item-title {
        font-size: 12px;
    }
    
    .fancybox-close-btn {
        font-size: 20px;
        padding: 8px;
    }
    
    /* PDF popup adjustments */
    #songlistPdfPopup {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }
    
    .songlist-pdf-container {
        padding: 15px;
    }
    
    .artist-name {
        font-size: 18px;
    }
    
    .songlist-title {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .songlist-content {
        padding: 12px;
    }
    
    .pdf-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn-pdf-view, .btn-pdf-download {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Extra Small Devices (under 375px) */
@media (max-width: 374px) {
    .video-popup-btn, .open-popup-btn {
        width: 50px;
        height: 50px;
    }
    
    #videoPlayerWrapper {
        height: 180px;
    }
    
    .video-list {
        max-height: 140px;
    }
    
    .video-item {
        min-width: 90px;
        max-width: 100px;
        padding: 5px;
    }
    
    .songlist-pdf-container {
        padding: 10px;
    }
    
    .artist-name {
        font-size: 16px;
    }
}

/* Fix for very tall mobile devices (iPhone X, etc.) */
@media (max-height: 700px) and (max-width: 575px) {
    .sideMenuContainer {
        top: 40%; /* Position higher on short screens */
    }
    
    .video-popup-btn, .open-popup-btn {
        width: 50px;
        height: 50px;
    }
}

/* Fix for landscape orientation on mobile */
@media (max-height: 450px) and (orientation: landscape) {
    .sideMenuContainer {
        flex-direction: row;
        top: auto;
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
        gap: 15px;
    }
    
    .video-popup-btn, .open-popup-btn {
        width: 50px;
        height: 50px;
    }
    
    #videoPlayerWrapper {
       /* height: 200px;*/
    }
    
    .video-list {
        /*flex-wrap: wrap;*/
        /*justify-content: flex-start;*/
    }
}


/* Estilo para el contenedor de la lista de videos */
.video-list {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos creen nuevas filas */
    gap: 10px; /* Espacio uniforme entre elementos */
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    justify-content: flex-start; /* Alinea los elementos desde el inicio */
    align-content: flex-start; /* Asegura que las filas empiecen desde arriba */
}

/* Estilo base para los elementos de video */
.video-item {
    background: rgba(20, 20, 20, 0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    width: calc(33.333% - 10px); /* Establece 3 elementos por fila con espaciado */
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
}

/* Ajustes para diferentes tamaños de pantalla */
@media (max-width: 992px) {
    .video-item {
        width: calc(50% - 10px); /* 2 elementos por fila en tablets */
    }
}

@media (max-width: 768px) {
    .video-list {
        padding: 10px;
        max-height: 250px;
    }
    
    .video-item {
        width: calc(50% - 8px); /* 3 elementos por fila en móviles más grandes */
        min-width: 120px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .video-list {
        padding: 8px;
        gap: 8px;
        max-height: 220px;
    }
    
    .video-item {
        width: calc(50% - 6px); /* 3 elementos por fila en la mayoría de móviles */
        min-width: 100px;
        padding: 6px;
    }
}

@media (max-width: 360px) {
    .video-list {
        padding: 6px;
        gap: 6px;
    }
    
    .video-item {
        width: 100%; /* 1 elemento por fila en móviles muy pequeños */
        margin-bottom: 6px;
    }
}

/* Mantener comportamiento hover/active */
.video-item:hover {
    background: rgba(40, 40, 40, 0.6);
    transform: translateX(5px);
}

@media (max-width: 576px) {
    .video-item-title {
        font-size: 12px;
    }
}

