/* ================================================
   JUBU DISCOGRAPHY PAGE - STYLES v2.1.0
   Avec correction modale scrollable
   ================================================ */

/* ============================================
   PAGE HEADER
   ============================================ */
.jubu-discography-page {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 80px 5% 100px;
}

.jubu-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.jubu-page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 20px 0;
}

.jubu-page-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ============================================
   CONTAINER AVEC SIDEBAR
   ============================================ */
.jubu-discography-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================
   SIDEBAR FILTRES
   ============================================ */
.jubu-filters-sidebar {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.jubu-filter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 15px;
}

.jubu-filter-section {
    margin-bottom: 30px;
}

.jubu-filter-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    font-weight: 600;
}

.jubu-filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jubu-filter-checkbox,
.jubu-filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.jubu-filter-checkbox:hover,
.jubu-filter-radio:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

.jubu-filter-checkbox input[type="checkbox"],
.jubu-filter-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d4af37;
}

.jubu-filter-count {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.jubu-filter-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.jubu-btn-reset {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(
        10px 0, 
        100% 0, 
        100% calc(100% - 10px), 
        calc(100% - 10px) 100%, 
        0 100%, 
        0 10px
    );
}

.jubu-btn-reset:hover {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.jubu-results-count {
    margin-top: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #d4af37;
    font-weight: 600;
}

/* ============================================
   GRILLE DE TRACKS - LARGEUR AUGMENTÉE
   ============================================ */
.jubu-tracks-content {
    position: relative;
}

.jubu-music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Loading */
.jubu-loading {
    text-align: center;
    padding: 60px 20px;
}

.jubu-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.jubu-loading p {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
}

/* No results */
.jubu-no-results {
    text-align: center;
    padding: 80px 20px;
}

.jubu-no-results h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #d4af37;
    margin: 20px 0;
}

.jubu-no-results p {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   MODALE POP-UP - AVEC SCROLL FIX
   ============================================ */
.jubu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.jubu-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease-out;
}

.jubu-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: calc(100vh - 80px);
    margin: 40px auto;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 3px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    /* clip-path retiré pour permettre le scroll */
}

/* Scrollbar stylisée Art Deco */
.jubu-modal-content::-webkit-scrollbar {
    width: 8px;
}

.jubu-modal-content::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.8);
    border-radius: 4px;
}

.jubu-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b8941e);
    border-radius: 4px;
}

.jubu-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f4d03f, #d4af37);
}

/* Firefox scrollbar */
.jubu-modal-content {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(10, 10, 10, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jubu-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transition: all 0.3s ease;
}

.jubu-modal-close:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: rotate(45deg);
}

.jubu-modal-inner {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    padding: 40px;
}

/* ============================================
   LEFT COLUMN: Cover + Video
   ============================================ */
.jubu-modal-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jubu-modal-cover {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ★ COVER CLIQUABLE - Effet hover ★ */
.jubu-modal-cover:hover {
    transform: scale(1.02);
}

.jubu-modal-cover:hover img {
    border-color: #f4d03f;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

/* Indicateur visuel "Voir le track" */
.jubu-modal-cover::after {
    content: '🔗 View track';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    );
}

.jubu-modal-cover:hover::after {
    opacity: 1;
}

.jubu-modal-cover img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

/* ============================================
   VIDEO CONTAINER (9:16 vertical)
   ============================================ */
.jubu-modal-video-container {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
    border: 2px solid #d4af37;
    overflow: hidden;
}

.jubu-video-label {
    display: none !important; /* Label masqué - Option A */
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.05em;
    z-index: 10;
    clip-path: polygon(
        8px 0, 
        100% 0, 
        100% calc(100% - 8px), 
        calc(100% - 8px) 100%, 
        0 100%, 
        0 8px
    );
}

.jubu-video-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.jubu-modal-video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Art Déco corners on video container */
.jubu-modal-video-container::before,
.jubu-modal-video-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
    z-index: 5;
}

.jubu-modal-video-container::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.jubu-modal-video-container::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

/* Player dans la modale */
.jubu-modal-player {
    margin-top: 20px;
    text-align: center;
}

.jubu-modal-play-button {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    border: 3px solid #d4af37;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jubu-modal-play-button:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

.jubu-modal-play-button .play-icon {
    font-size: 28px;
    color: #d4af37;
    margin-left: 5px;
}

.jubu-modal-play-button .audio-bars {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 35px;
}

.jubu-modal-play-button.playing .play-icon {
    display: none;
}

.jubu-modal-play-button.playing .audio-bars {
    display: flex;
}

.jubu-modal-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.jubu-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #d4af37;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.jubu-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jubu-modal-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.meta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #d4af37;
    font-weight: 600;
}

.jubu-modal-nft {
    margin-top: 20px;
}

.jubu-btn-nft {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(
        15px 0, 
        100% 0, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        0 100%, 
        0 15px
    );
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.jubu-btn-nft:hover {
    background: linear-gradient(135deg, #f4d03f, #d4af37);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.jubu-modal-external-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jubu-external-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.jubu-external-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateX(5px);
}

.jubu-external-link-icon {
    width: 30px;
    height: 30px;
    color: #d4af37;
    font-size: 20px;
}

.jubu-external-link-text {
    font-family: 'Montserrat', sans-serif;
    color: #d4af37;
    font-weight: 600;
}

/* ============================================
   COMMENTS SECTION STYLES
   ============================================ */
.jubu-modal-comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.jubu-comments-loading {
    font-family: 'Montserrat', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .jubu-discography-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .jubu-music-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .jubu-modal-inner {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .jubu-discography-container {
        grid-template-columns: 1fr;
    }
    
    .jubu-filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .jubu-music-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .jubu-modal {
        padding: 10px;
    }
    
    .jubu-modal-content {
        max-height: calc(100vh - 60px);
        margin: 30px auto;
        width: 95%;
    }
    
    .jubu-modal-inner {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 20px;
    }
    
    .jubu-modal-left-column {
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }
    
    .jubu-modal-cover {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .jubu-modal-video-container {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .jubu-modal-video {
        max-height: 350px;
    }
    
    .jubu-video-label {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .jubu-page-title {
        font-size: 2.5rem;
    }
    
    .jubu-music-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .jubu-modal-inner {
        padding: 20px;
    }
    
    .jubu-modal-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .jubu-modal {
        padding: 5px;
    }
    
    .jubu-modal-content {
        max-height: calc(100vh - 40px);
        margin: 20px auto;
        width: 100%;
    }
    
    .jubu-modal-inner {
        padding: 15px;
        gap: 15px;
    }
    
    .jubu-modal-left-column {
        max-width: 100%;
        gap: 12px;
    }
    
    .jubu-modal-cover {
        max-width: 200px;
    }
    
    .jubu-modal-video-container {
        max-width: 200px;
    }
    
    .jubu-modal-video {
        max-height: 280px;
    }
    
    .jubu-video-label {
        top: 8px;
        left: 8px;
        padding: 5px 10px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .jubu-modal-title {
        font-size: 1.5rem;
    }
}

/* ================================================
   ACCORDÉONS FILTRES - Style Art Déco
   ================================================ */

.jubu-filter-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 12px 15px !important;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(10, 10, 10, 0.6)) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    margin-bottom: 10px !important;
}

.jubu-filter-toggle:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05)) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    transform: translateX(3px) !important;
}

.jubu-filter-toggle.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1)) !important;
    border-color: #d4af37 !important;
}

.jubu-toggle-arrow {
    font-size: 0.9rem !important;
    color: #d4af37 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-block !important;
    min-width: 15px !important;
    text-align: center !important;
}

.jubu-filter-toggle.active .jubu-toggle-arrow {
    transform: rotate(180deg) !important;
}

/* Options déroulantes */
.jubu-filter-options {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
    opacity: 0 !important;
    margin-bottom: 0 !important;
}

.jubu-filter-options[style*="display: block"] {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-bottom: 15px !important;
}

/* Animation fluide */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 1000px;
        opacity: 1;
    }
}

/* Séparateur visuel */
.jubu-filter-section {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.jubu-filter-section:last-of-type {
    border-bottom: none !important;
}

/* Ajustements pour les checkboxes dans accordéon */
.jubu-filter-options .jubu-filter-checkbox,
.jubu-filter-options .jubu-filter-radio {
    padding: 8px 10px !important;
    margin-left: 5px !important;
}

/* Responsive accordéons */
@media (max-width: 968px) {
    .jubu-filter-toggle {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
    
    .jubu-toggle-arrow {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 768px) {
    .jubu-filter-toggle {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }
}
