/* Fenêtre releases : compact et uniforme comme credits-uniform-table */
.accordion .card-body dl,
.accordion .card-body dt,
.accordion .card-body dd {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-link, #2c3e50);
    margin-bottom: 0.2rem !important;
    line-height: 1.1 !important;
}
.accordion .card-body dt {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
.accordion .card-body dd {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
.accordion .release-summary small,
.accordion .release-summary span {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-link, #2c3e50);
    line-height: 1.1 !important;
}
/* Tracklist compacte comme credits-uniform-table */
ol.credits-uniform-table {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-link, #2c3e50);
    margin-bottom: 0 !important;
    padding-left: 1.2em !important;
}
ol.credits-uniform-table li {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.1 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-link, #2c3e50);
}
/* FORCE zero vertical spacing for credits tables with v4 marker */
table[style*="margin-left:1.8rem"] td small:contains('v4'),
table[style*="margin-left:1.8rem"] td small {
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* FORCE compact vertical spacing for credits tables (margin-left:1.8rem) */
table[style*="margin-left:1.8rem"] td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    line-height: 1.1 !important;
}
/* Ultra-specific: remove bold from studios credits table 2nd column */
.credits-uniform-table tr > td.text-muted[style*="70%"] > small {
    font-weight: 400 !important;
}
/* Force no bold in 2nd column of studios table (v3 debug) */
.studios-credits-table td:nth-child(2) small {
    font-weight: 400 !important;
    color: #444 !important;
    font-family: inherit !important;
}
/* Remove bold from persons column in credits tables and studios table */
.credits-uniform-table td:nth-child(2) a,
.credits-uniform-table td:nth-child(2),
.studios-credits-table td:nth-child(2) a,
.studios-credits-table td:nth-child(2) {
    font-weight: 400 !important;
}
/* All credits tables: uniform 0.95rem and strong for all content */
.credits-uniform-table td,
.credits-uniform-table a,
.credits-uniform-table strong,
.credits-uniform-table small {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-link, #2c3e50);
}
/* Force single-line for credit roles in credits table */
.credits-table td[style*="white-space:nowrap"],
.credits-table td .credit-role-nowrap {
    white-space: nowrap !important;
}
.table-releases td strong {
    font-size: 0.95em;
    font-weight: 600;
}
.ultra-compact-table td strong {
    font-size: 0.95em;
    font-weight: 600;
}
.credits-table td strong {
    color: var(--color-link) !important;
    font-weight: 600;
}
.credits-table td strong.role-text {
    color: var(--color-link) !important;
    font-weight: bold;
    font-size: 0.95em;
}
/* Studios dans credits : couleur identique aux rôles */
.credits-table td strong.role-text {
    color: var(--color-link) !important;
    font-weight: bold;
}
/**
 * ============================================================================
 * ROOTS ARCHIVES - SITE OVERRIDES
 * ============================================================================
 * 
 * Ce fichier contient TOUS les overrides Bootstrap du site.
 * Il doit être chargé APRÈS bootstrap.css dans le header.
 * 
 * Tous les !important sont INTENTIONNELS pour surcharger Bootstrap.
 * 
 * Organisation:
 * 1. Design Tokens (variables CSS)
 * 2. Tables
 * 3. Badges
 * 4. Cards
 * 5. Buttons
 * 6. Grid & Layout
 * 7. Responsive
 * ============================================================================
 */


/* ============================================================================
   1. DESIGN TOKENS - Variables CSS réutilisables
   ============================================================================ */
:root {
    /* Typography */
    --font-size-base: 0.875rem;
    --font-size-small: 0.7rem;
    --line-height-base: 1.4;
    
    /* Spacing */
    --padding-cell: 0.5rem;
    --padding-card: 0.75rem;
    --padding-badge: 0.15rem 0.4rem;
    
    /* Colors */
    --color-primary: #8b6f47;
    --color-link: #8b6f47;
    --color-text: #212529;
    
    /* Table widths (for credits tables) */
    --table-col-cover: 80px;
    --table-col-artist: 185px;
    --table-col-album: 290px;
    --table-col-release: 125px;
    --table-col-type: 80px;
    --table-col-label: 145px;
    --table-col-rec: 80px;
    --table-col-role: 80px;
    --table-col-rel: 80px;
}


/* ============================================================================
   2. GLOBAL OVERRIDES - Links, Buttons, Text
   ============================================================================ */

/* Links - Override Bootstrap blue */
a {
    color: var(--color-link) !important;
    text-decoration: none !important;
}

a:hover {
    color: #6d5836 !important;
    text-decoration: underline !important;
}

/* Button links - specific override */
.btn-link {
    color: var(--color-text) !important;
    text-decoration: none !important;
    padding: 0 !important;
}

.btn-link:hover {
    color: var(--color-primary) !important;
    text-decoration: none !important;
}

/* Table header buttons - keep text dark */
.table thead .btn-link {
    color: var(--color-text) !important;
}

.table thead .btn-link:hover {
    color: var(--color-primary) !important;
}


/* ============================================================================
   2. TABLES - Override Bootstrap table styles
   ============================================================================ */

/* Base table font size */
.table,
.credits-table,
.artist-table {
    font-size: var(--font-size-base) !important;
}

/* All table cells - padding and typography */
.table td,
.table th,
.credits-table td,
.credits-table th,
.artist-table td,
.artist-table th {
    padding: var(--padding-cell) !important;
    vertical-align: middle !important;
    font-size: var(--font-size-base) !important;
    line-height: var(--line-height-base) !important;
}

/* Table headers */
.table thead th,
.credits-table thead th,
.artist-table thead th {
    font-size: var(--font-size-base) !important;
    font-weight: 600 !important;
    padding: var(--padding-cell) !important;
}

/* Force buttons in table headers to have no extra spacing */
.artist-table thead th button,
.credits-table thead th button,
.table thead th button {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    text-align: inherit !important;
}

/* Table body cells */
.table tbody td,
.credits-table tbody td,
.artist-table tbody td {
    font-size: var(--font-size-base) !important;
    padding: var(--padding-cell) !important;
}

/* Links and spans inside tables */
.table tbody td a,
.credits-table tbody td a,
.artist-table tbody td a,
.table tbody td span,
.credits-table tbody td span,
.artist-table tbody td span {
    font-size: var(--font-size-base) !important;
    color: var(--color-link) !important;
}

.table tbody td a:hover,
.credits-table tbody td a:hover,
.artist-table tbody td a:hover {
    color: #6d5836 !important;
}

/* Table header links - keep dark */
.table thead th a,
.table thead th button,
.credits-table thead th a,
.credits-table thead th button,
.artist-table thead th a,
.artist-table thead th button {
    color: var(--color-text) !important;
}

/* Small text inside tables */
.table tbody td small,
.credits-table tbody td small,
.artist-table tbody td small,
.table thead th small,
.credits-table thead th small,
.artist-table thead th small {
    font-size: var(--font-size-base) !important;
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: hidden !important;
}

/* Credits table specific styles */
.credits-table { 
    table-layout: fixed; 
}

.credits-table th, 
.credits-table td { 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* Credits table column widths */
.credits-table thead th:nth-child(1), 
.credits-table tbody td:nth-child(1) { width: var(--table-col-cover); }

.credits-table thead th:nth-child(2), 
.credits-table tbody td:nth-child(2) { width: var(--table-col-artist); }

.credits-table thead th:nth-child(3), 
.credits-table tbody td:nth-child(3) { width: var(--table-col-album); }

.credits-table thead th:nth-child(4), 
.credits-table tbody td:nth-child(4) { width: var(--table-col-release); }

.credits-table thead th:nth-child(5), 
.credits-table tbody td:nth-child(5) { 
    width: var(--table-col-type); 
    text-align: center; 
}

.credits-table thead th:nth-child(6), 
.credits-table tbody td:nth-child(6) { width: var(--table-col-label); }

.credits-table thead th:nth-child(7), 
.credits-table tbody td:nth-child(7) { 
    width: var(--table-col-rec); 
    text-align: center; 
}

.credits-table thead th:nth-child(8), 
.credits-table tbody td:nth-child(8) { 
    width: var(--table-col-role); 
    text-align: center; 
}

.credits-table thead th:nth-child(9), 
.credits-table tbody td:nth-child(9) { 
    width: var(--table-col-rel); 
    text-align: center; 
}

/* Artist table (albums page) column widths - SAME as credits table */
.artist-table { 
    table-layout: fixed !important; 
}

.artist-table th, 
.artist-table td { 
    white-space: nowrap !important; 
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
}

.artist-table thead th:nth-child(1), 
.artist-table tbody td:nth-child(1) { 
    width: var(--table-col-cover) !important; 
}

.artist-table thead th:nth-child(2), 
.artist-table tbody td:nth-child(2) { 
    width: var(--table-col-artist) !important; 
}

.artist-table thead th:nth-child(3), 
.artist-table tbody td:nth-child(3) { 
    width: var(--table-col-album) !important; 
}

.artist-table thead th:nth-child(4), 
.artist-table tbody td:nth-child(4) { 
    width: var(--table-col-release) !important; 
}

.artist-table thead th:nth-child(5), 
.artist-table tbody td:nth-child(5) { 
    width: var(--table-col-type) !important; 
    text-align: center !important; 
}

.artist-table thead th:nth-child(6), 
.artist-table tbody td:nth-child(6) { 
    width: var(--table-col-label) !important; 
}

.artist-table thead th:nth-child(7), 
.artist-table tbody td:nth-child(7) { 
    width: var(--table-col-rec) !important; 
    text-align: center !important; 
}

.artist-table thead th:nth-child(8), 
.artist-table tbody td:nth-child(8) { 
    width: var(--table-col-rel) !important; 
    text-align: center !important; 
}


/* ============================================================================
   3. BADGES - Override Bootstrap badge styles
   ============================================================================ */

/* Badge base styles */
.badge {
    display: inline-block !important;
    padding: 0.15rem 0.4rem !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: baseline !important;
    border-radius: 0.25rem !important;
}

/* Badge color variants */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
}

/* All badges in tables - smaller and more compact */
.table .badge,
.artist-table .badge,
.credits-table .badge,
.card .badge,
span.badge {
    display: inline-block !important;
    font-size: var(--font-size-small) !important;
    padding: var(--padding-badge) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    min-width: 30px !important;
    text-align: center !important;
}

/* Secondary badges specific override */
.table .badge.bg-secondary,
.artist-table .badge.bg-secondary,
.credits-table .badge.bg-secondary,
.card .badge.bg-secondary {
    font-size: var(--font-size-small) !important;
    padding: var(--padding-badge) !important;
    background-color: #6c757d !important;
    color: #fff !important;
}


/* ============================================================================
   4. CARDS - Override Bootstrap card styles
   ============================================================================ */

/* Card body padding */
.card .card-body {
    padding: var(--padding-card) !important;
}

/* Card body with nav-tabs - remove horizontal padding to allow tabs to breathe */
.card .card-body:has(> .nav-tabs) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Add back padding for content after nav-tabs */
.card .card-body .nav-tabs ~ * {
    padding-left: var(--padding-card) !important;
    padding-right: var(--padding-card) !important;
}

/* Grid view cards - flexbox layout for alignment */
.row.g-4 > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.row.g-4 .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.row.g-4 .card .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: var(--padding-card) !important;
}

/* Card title in grid - limit to 2 lines */
.row.g-4 .card .card-title,
.album-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em;
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
}

/* Card title link - marron foncé */
.row.g-4 .card .card-title a,
.album-card .card-title a {
    color: #6d5836 !important;
    text-decoration: none !important;
}

.row.g-4 .card .card-title a:hover,
.album-card .card-title a:hover {
    color: #8b6f47 !important;
    text-decoration: underline !important;
}

/* Card subtitle in grid - hide completely */
.row.g-4 .card .card-text.small,
.album-card .card-text.small {
    display: none !important;
}

/* Push footer to bottom */
.row.g-4 .card-body > div:last-of-type,
.row.g-4 .card-body > p:last-child {
    margin-top: auto;
}

/* Card images */
.row.g-4 .card > a:first-child {
    flex-shrink: 0;
}


/* ============================================================================
   5. BUTTONS - Override Bootstrap button styles
   ============================================================================ */

/* All buttons - default sizing */
.btn {
    padding: 0.375rem 0.75rem !important;
    font-size: var(--font-size-base) !important;
    min-width: 100px !important;
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
}

/* Button link focus styles */
.btn-link.sort-btn:focus { 
    outline: none !important;
    box-shadow: none !important;
}

/* Primary buttons */
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-primary:hover {
    background-color: #6d5836 !important;
    border-color: #6d5836 !important;
}

/* Outline buttons */
.btn-outline-primary {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}


/* ============================================================================
   6. GRID & LAYOUT - Override Bootstrap grid
   ============================================================================ */

/* Grid spacing */
.row.g-4 {
    display: flex;
    flex-wrap: wrap;
}


/* ============================================================================
   6.5. ARTIST PAGE - Desktop styles (AVANT media queries!)
   ============================================================================ */

/* Artist photo - main photo on artist page (DESKTOP) */
.artist-photo {
    width: auto !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Artist photo placeholder - when no photo available (DESKTOP) */
.artist-photo-placeholder {
    height: 300px !important;
    width: 240px !important;
}

/* Artist photo placeholder icon (DESKTOP) */
.artist-photo-icon {
    font-size: 4rem !important;
    color: var(--color-secondary, #6c757d) !important;
}


/* ============================================================================
   7. RESPONSIVE - Mobile overrides
   ============================================================================ */

@media (max-width: 768px) {
    /* Tracklist et credits-uniform-table : 0.8rem sur mobile */
    .card-body,
    .card-body *,
    .release-content,
    .release-content *,
    ol.credits-uniform-table,
    ol.credits-uniform-table li,
    .credits-uniform-table td,
    .credits-uniform-table a,
    .credits-uniform-table strong,
    .credits-uniform-table small {
        font-size: 0.8rem !important;
    }
    /* Masquer la colonne artwork des releases/reissues sur mobile */
    .release-artwork-col {
        display: none !important;
    }
    /* Enable horizontal scroll on mobile */
    .table-responsive {
        overflow-x: auto !important;
    }
    
    /* ============================================================================
       CREDITS SECTION - Typo plus petite que Discography
       ============================================================================ */
    
    /* Réduire la typo des titres d'albums dans Credits */
    .card-body .row.g-4 .card-title,
    .mb-5 .row.g-4 .card-title,
    .mb-4 .row.g-4 .card-title {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        min-height: 1.7em !important;
    }
    
    /* Réduire la typo des badges dans Credits */
    .card-body .row.g-4 .badge,
    .mb-5 .row.g-4 .badge,
    .mb-4 .row.g-4 .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.35rem !important;
    }
    
    /* Réduire la typo des labels dans Credits */
    .card-body .row.g-4 .card-text,
    .mb-5 .row.g-4 .card-text,
    .mb-4 .row.g-4 .card-text,
    .card-body .row.g-4 .card-text small,
    .mb-5 .row.g-4 .card-text small,
    .mb-4 .row.g-4 .card-text small {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
    }
    
    /* Credits table mobile adjustments */
    .credits-table {
        font-size: 0.85rem;
    }
    
    .credits-table thead th {
        font-size: 0.8rem;
        padding: 0.5rem 0.3rem;
    }
    
    .credits-table tbody td {
        padding: 0.5rem 0.3rem;
    }
    
    .credits-table tbody td:nth-child(2) {
        padding-left: 0.5rem;
    }
    
    /* Hide release column on mobile */
    .credits-table thead th:nth-child(4),
    .credits-table tbody td:nth-child(4) {
        display: none;
    }
    
    /* Card header text size */
    .card-header h2 {
        font-size: 0.85rem;
    }
    
    /* Small buttons */
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* ============================================================================
       ALBUM CARDS - Apply SAME styles to ALL album cards on mobile
       ============================================================================ */
    
    /* Card body - reduce padding for more content space */
    .col-6 .album-card .card-body,
    .album-card .card-body {
        padding: 0.3rem !important;
    }
    
    /* Album title - SAME as home page */
    .col-6 .album-card .card-title,
    .album-card .card-title,
    .col-6 .card-title,
    .row.g-3 .card-title,
    .row.g-4 .card-title {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        height: auto !important;
        min-height: 1.8em !important;
        margin-bottom: 0.3rem !important;
        font-weight: 600 !important;
    }
    
    /* Badges - larger and more visible */
    .col-6 .badge,
    .album-card .badge,
    .row.g-3 .badge,
    .row.g-4 .badge {
        font-size: 0.72rem !important;
        padding: 0.25rem 0.4rem !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }
    
    /* Label text - improve readability */
    .col-6 .card-text,
    .album-card .card-text,
    .row.g-3 .card-text,
    .row.g-4 .card-text {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }
    
    .col-6 .card-text small,
    .album-card .card-text small,
    .row.g-3 .card-text small,
    .row.g-4 .card-text small {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }
    
    /* Badge container - better spacing */
    .col-6 .d-flex.justify-content-between,
    .album-card .d-flex.justify-content-between,
    .row.g-3 .d-flex.justify-content-between,
    .row.g-4 .d-flex.justify-content-between {
        gap: 0.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* ============================================================================
       ARTIST PAGE - Reduce photo size on mobile to make room for bio
       ============================================================================ */
    
    /* Reduce artist photo size by half on mobile */
    .artist-photo {
        max-height: 150px !important;
        max-width: 150px !important;
    }
    
    /* Reduce placeholder size by half on mobile */
    .artist-photo-placeholder {
        height: 150px !important;
        width: 120px !important;
    }
    
    /* Reduce placeholder icon size on mobile */
    .artist-photo-icon {
        font-size: 60px !important;
    }
    
    /* ============================================================================
       ARTIST PAGE - Force grid view (2 columns) for discography on mobile
       ============================================================================ */
    
    /* Force albums grid to display on mobile (2 columns) */
    #albums-grid,
    #compilations-grid {
        display: flex !important;
        row-gap: 1rem !important;
        --bs-gutter-y: 1rem !important;
    }
    
    /* Hide albums table on mobile */
    #albums-list,
    #compilations-list {
        display: none !important;
    }
    
    /* Ensure cards are properly sized in 2-column layout on mobile */
    #albums-grid .col-6,
    #compilations-grid .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Adjust card spacing for mobile */
    #albums-grid .album-card,
    #compilations-grid .album-card {
        margin-bottom: 0 !important;
    }
    
    /* Force compact card body padding */
    #albums-grid .card-body,
    #compilations-grid .card-body {
        padding: 0.5rem !important;
    }
    
    /* Optimize card title for smaller screens */
    #albums-grid .card-title,
    #compilations-grid .card-title {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        height: auto !important;
        min-height: 1.8em !important;
    }
    
    /* Optimize badge sizes for mobile cards */
    #albums-grid .badge,
    #compilations-grid .badge {
        font-size: 0.72rem !important;
        padding: 0.25rem 0.4rem !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }
    
    /* Label text in mobile cards */
    #albums-grid .card-text,
    #compilations-grid .card-text,
    #albums-grid .card-text small,
    #compilations-grid .card-text small {
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
    }
    
    /* Badge and date container */
    #albums-grid .d-flex.justify-content-between,
    #compilations-grid .d-flex.justify-content-between {
        gap: 0.3rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Card body spacing for mobile cards */
    #albums-grid .album-card .card-body,
    #compilations-grid .album-card .card-body {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }
    
    /* ============================================================================
       CREDITS & APPEARANCES - Transform tables into grid cards on mobile
       ============================================================================ */
    
    /* Hide table headers in credits section - FORCE with body prefix */
    body [id^="creditsTable-"] thead,
    body #appearsOnTable thead,
    body table[id^="creditsTable-"] thead,
    body table#appearsOnTable thead {
        display: none !important;
    }
    
    /* Transform table body into 2-column grid */
    [id^="creditsTable-"] tbody,
    #appearsOnTable tbody {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        width: 100% !important;
    }
    
    /* Transform each row into a card */
    [id^="creditsTable-"] tbody tr,
    #appearsOnTable tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
    }
    
    /* Hide expand buttons rows */
    [id^="creditsTable-"] tbody tr[id$="-expand-btn"],
    #appearsOnTable tbody tr[id$="-expand-btn"] {
        display: none !important;
    }
    
    /* Each cell becomes a block element */
    [id^="creditsTable-"] tbody td,
    #appearsOnTable tbody td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }
    
    /* Cover image - full width at top, no padding */
    [id^="creditsTable-"] tbody td:nth-child(1),
    #appearsOnTable tbody td:nth-child(1) {
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: #f8f9fa !important;
        position: relative !important;
        width: 100% !important;
        padding-top: 100% !important; /* Creates 1:1 aspect ratio */
    }
    
    [id^="creditsTable-"] tbody td:nth-child(1) a,
    #appearsOnTable tbody td:nth-child(1) a {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
    
    [id^="creditsTable-"] tbody td:nth-child(1) img,
    #appearsOnTable tbody td:nth-child(1) img,
    [id^="creditsTable-"] tbody td:nth-child(1) div,
    #appearsOnTable tbody td:nth-child(1) div {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }
    
    /* Card body - padding for text content only */
    [id^="creditsTable-"] tbody td:nth-child(2),
    [id^="creditsTable-"] tbody td:nth-child(3),
    [id^="creditsTable-"] tbody td:nth-child(5),
    [id^="creditsTable-"] tbody td:nth-child(6),
    [id^="creditsTable-"] tbody td:nth-child(7),
    [id^="creditsTable-"] tbody td:nth-child(8),
    #appearsOnTable tbody td:nth-child(2),
    #appearsOnTable tbody td:nth-child(3),
    #appearsOnTable tbody td:nth-child(5),
    #appearsOnTable tbody td:nth-child(6),
    #appearsOnTable tbody td:nth-child(7),
    #appearsOnTable tbody td:nth-child(8) {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Album title - SAME style as Albums/Compilations cards */
    [id^="creditsTable-"] tbody td:nth-child(3),
    #appearsOnTable tbody td:nth-child(3) {
        font-weight: 600 !important;
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.3rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Artist name - slightly smaller */
    [id^="creditsTable-"] tbody td:nth-child(2),
    #appearsOnTable tbody td:nth-child(2) {
        font-size: 0.75rem !important;
        color: #666 !important;
        padding-top: 0 !important;
        padding-bottom: 0.3rem !important;
    }
    
    /* Release ref - hide on mobile to save space */
    [id^="creditsTable-"] tbody td:nth-child(4),
    #appearsOnTable tbody td:nth-child(4) {
        display: none !important;
    }
    
    /* Type badge - inline with dates */
    [id^="creditsTable-"] tbody td:nth-child(5),
    #appearsOnTable tbody td:nth-child(5) {
        display: inline-block !important;
        width: auto !important;
        margin-right: 0.3rem !important;
    }
    
    /* Label */
    [id^="creditsTable-"] tbody td:nth-child(6),
    #appearsOnTable tbody td:nth-child(6) {
        font-size: 0.75rem !important;
        color: #666 !important;
        margin-top: 0.2rem !important;
    }
    
    /* Rec & Rel dates - inline, with bottom padding on last one */
    [id^="creditsTable-"] tbody td:nth-child(7),
    [id^="creditsTable-"] tbody td:nth-child(8),
    #appearsOnTable tbody td:nth-child(7),
    #appearsOnTable tbody td:nth-child(8) {
        display: inline-block !important;
        width: auto !important;
        font-size: 0.7rem !important;
        color: #888 !important;
        margin-right: 0.5rem !important;
    }
    
    /* Last cell - add bottom padding to card */
    [id^="creditsTable-"] tbody td:nth-child(8),
    #appearsOnTable tbody td:nth-child(8) {
        padding-bottom: 0.5rem !important;
    }
    
    /* Compact role section headers */
    .mb-4 h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Desktop only: marge gauche ULTRA spécifique sur les titres de rôles dans credits (h6.mb-0) */
    @media (min-width: 768px) {
        #credits-section .card-body .mb-4 .d-flex.align-items-center.justify-content-between.text-muted.mb-2 > h6.mb-0 {
            margin-left: 2.7rem !important;
        }
    }
    
    /* Compact role type headers */
    .mb-5 > h5 {
        font-size: 0.9rem !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
}

    /* Uniformiser l'espacement vertical des vignettes credits/appearances en mobile */
    @media (max-width: 768px) {
        .row.g-4 .col-6,
        .row.g-4 .col-6.mb-2 {
            margin-bottom: 0 !important;
        }
    }

/* ============================================================================
   8. UTILITY CLASSES - Composants réutilisables spécifiques au site
   ============================================================================ */

/* Sort icon in table headers */
.sort-icon { 
    font-size: 0.9em; 
    margin-left: 0.2em; 
    color: #6c757d !important;
}

/* Navigation tabs (alphabetical, etc.) */
.nav-tabs {
    border-bottom: 2px solid #e9ecef !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    margin-bottom: 1rem !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-tabs::-webkit-scrollbar {
    display: none !important;
}

.nav-tabs .nav-item {
    flex-shrink: 0 !important;
}

.nav-tabs .nav-item:last-child .nav-link {
    margin-right: var(--padding-card) !important;
}

.nav-tabs .nav-link {
    color: #6c757d !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    font-weight: 500 !important;
    font-size: var(--font-size-base) !important;
    padding: 0.5rem 1rem !important;
    white-space: nowrap !important;
}

.nav-tabs .nav-link:hover {
    color: var(--color-primary) !important;
    border-bottom-color: #E8E8D8 !important;
}

.nav-tabs .nav-link.active {
    color: var(--color-primary) !important;
    background-color: transparent !important;
    border-bottom-color: var(--color-primary) !important;
}

/* Break out of container padding for tabs */
.tabs-full-width {
    margin-left: calc(var(--padding-card) * -1) !important;
    margin-right: calc(var(--padding-card) * -1) !important;
    padding-left: var(--padding-card) !important;
    padding-right: var(--padding-card) !important;
}

/* Breadcrumb */
.breadcrumb {
    padding: 0.5rem 0 !important;
    margin-bottom: 1rem !important;
    font-size: var(--font-size-base) !important;
    background-color: transparent !important;
}

.breadcrumb-item {
    font-size: var(--font-size-base) !important;
}

.breadcrumb-item a {
    color: var(--color-link) !important;
}

.breadcrumb-item.active {
    color: #6c757d !important;
}

/* Page titles */
.page-title {
    font-weight: 700 !important;
    color: #6d5836 !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.2rem !important;
}


/* ============================================================================
   9. NUCLEAR OVERRIDES - Force everything no matter what
   ============================================================================ */

/* Force ALL text in tables to be 0.875rem */
.table,
.table *,
.artist-table,
.artist-table *,
.credits-table,
.credits-table * {
    font-size: 0.875rem !important;
}

/* Force badges to be small */
.badge,
span.badge,
.table .badge,
.artist-table .badge {
    display: inline-block !important;
    font-size: 0.7rem !important;
    padding: 0.15rem 0.4rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    min-width: 30px !important;
    text-align: center !important;
}

/* Force table cells padding */
.table td,
.table th,
.artist-table td,
.artist-table th {
    padding: 0.5rem !important;
    vertical-align: middle !important;
}


/* Force small tags to stay 0.875rem */
.table small,
.artist-table small,
small {
    font-size: 0.875rem !important;
}

/* Remove bold from album titles in artist-table */
.artist-table tbody td:nth-child(3) strong,
.artist-table tbody td:nth-child(3) a strong {
    font-weight: 500 !important;
}


/* ============================================================================
   10. ARTIST PAGE SPECIFIC - Images, covers, thumbnails
   ============================================================================ */

/* Cover thumbnails in tables - 50x50px squares */
.cover-thumb {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
}

/* Cover thumbnail placeholders */
.cover-thumb-placeholder {
    width: 50px !important;
    height: 50px !important;
}

/* Table column width for cover column */
.artist-table thead th:nth-child(1) {
    width: 80px !important;
}
/* ============================================================================
   10. ARTISTS PAGES - Specific styles for artists index and letter pages
   ============================================================================ */

/* Form controls */
.form-control,
.form-select {
    padding: 0.375rem 0.75rem !important;
    font-size: var(--font-size-base) !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    height: auto !important;
}

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 111, 71, 0.25) !important;
}

/* Quick search box margin */
.card-body .mb-3 {
    margin-left: 1.7rem !important;
}

/* Artist links in grid */
.artist-link {
        display: block !important;
        padding: 0.15rem 0.4rem !important;
        border-radius: 4px !important;
        transition: all 0.2s ease !important;
        font-size: 0.78rem !important; /* Mobile par défaut */
        line-height: 1.13 !important;
        color: var(--color-link) !important;
}

@media (min-width: 576px) {
    .artist-link {
        font-size: 0.85rem !important; /* Tablette */
        line-height: 1.15 !important;
    }
}

@media (min-width: 992px) {
    .artist-link {
        font-size: 1rem !important; /* Laptop/Desktop */
        line-height: 1.18 !important;
    }
}

.artist-link:hover {
    background-color: #f8f9fa !important;
    color: var(--color-primary) !important;
    text-decoration: none !important;
}

/* Break out of container for full-width tabs */
.tabs-full-width {
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* 3-column grid for artists */
.row-cols-3 > * {
    flex: 0 0 auto !important;
    width: 33.333333% !important;
}

.row.g-1 {
    --bs-gutter-x: 0.25rem !important;
    --bs-gutter-y: 0.25rem !important;
}
/* ====================
    FORCING LEFT MARGIN ON CREDITS ROLES HEADERS (DESKTOP) - MAXIMUM PRIORITY
    ==================== */
@media (min-width: 768px) {
    #credits-section .d-flex > h6.mb-0 {
        margin-left: 26px !important;
    }
}
/* ============================================================================
/* Album page - compact releases */
.accordion-button {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Remove ugly Bootstrap focus ring */
.accordion-button:focus {
    box-shadow: none !important;
    border: none !important;
}

/* Hide default Bootstrap arrow */
.accordion-button::after {
    display: none !important;
}

/* Add custom chevron icon at the right */
.accordion-button::before {
    content: '\203A' !important;
    position: absolute !important;
    right: 1rem !important;
    font-size: 1.5rem !important;
    font-weight: 300 !important;
    color: #8b6f47 !important;
    transform: rotate(90deg) !important;
    transition: transform 0.3s ease !important;
    line-height: 1 !important;
}

/* Rotate chevron when expanded */
.accordion-button:not(.collapsed)::before {
    transform: rotate(270deg) !important;
}
.accordion-body {
    padding: 0.5rem 0.75rem !important;
}
/* ============================================================================
   14. HOME PAGE - Overview Stats
   ============================================================================ */

.overview-card {
    border: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
    border-radius: 6px !important;
}

.overview-card .card-body {
    padding: 0.25rem 0.5rem !important;
}

.overview-card h3 {
    color: #8B4513 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.25rem !important;
}

.overview-stat {
    text-align: center !important;
    padding: 0.25rem 0.3rem !important;
    border-right: 1px solid #E8E8D8 !important;
    transition: all 0.2s ease !important;
}

.overview-stat:hover {
    background-color: #FFFEF9 !important;
    transform: translateY(-1px) !important;
}

.overview-stat:last-child {
    border-right: none !important;
}

.stat-number {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #8B4513 !important;
    line-height: 1 !important;
}

.stat-label {
    font-size: 0.65rem !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin-top: 0.1rem !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 1.25rem !important;
    }
    .stat-label {
        font-size: 0.7rem !important;
    }
    .overview-stat {
        padding: 0.6rem 0.25rem !important;
    }
}

/* Album page - remove brown line */
.album-header {
    border-bottom: none !important;
}

/* Reduce margin below album title */
.album-header .page-title {
    margin-bottom: 1rem !important;
}

/* Labels page - hide all items until JS reveals the selected letter */
.label-item {
    display: none;
}

.label-item.is-visible {
    display: block !important;
}

/* Labels grid and items spacing */
#labels-grid {
    margin-left: 2.2rem !important;
}

.label-item {
    padding-left: 0.5rem !important;
}

/* Artists grid and items spacing */
#artists-grid {
    margin-left: 1.7rem !important;
}

.artist-item {
    padding-left: 0.5rem !important;
}

/* Search results h5 titles - reduce Bootstrap spacing */
#search-results h5 {
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.5rem !important;
}

#search-results .table-responsive {
    margin-top: 0 !important;
}
/* Search results - align table with icon header */
.card-body h5 + .table-responsive {
    margin-left: 2rem !important;
}
/* ============================================================================
   CRITICAL FIX: Studios table alignment in album.php
   ============================================================================ */

/* Override the .credit-cell padding from style.css */
.credits-table .credit-cell {
    padding: 0.5rem 0.3rem 0.5rem 0 !important;
}

/* Force first column to have no left padding */
.credits-table tbody tr td.credit-cell:first-child,
.credits-table tbody tr td:first-child {
    padding-left: 0 !important;
}

/* Ensure studio name cells specifically have correct padding */
.credits-table .studio-name-cell {
    padding-left: 0 !important;
    padding-right: 0.3rem !important;
}

/* ============================================================================
   ULTRA-NUCLEAR FIX: Must be at the very end to override style.css
   ============================================================================ */

/* Triple specificity to beat style.css */
body .card-body .credits-table.table-sm.table-borderless tbody tr td.credit-cell {
    padding: 0.5rem 0.3rem 0.5rem 0 !important;
}

/* Quadruple for first child */
body .card-body .credits-table.table-sm.table-borderless tbody tr td.credit-cell:first-child {
    padding-left: 0 !important;
}

/* Studio cells with maximum specificity */
body .card-body .credits-table tbody tr td.studio-name-cell.credit-cell {
    padding-left: 0 !important;
    padding-right: 0.3rem !important;
}

/* ============================================================================
   V9: Force le tableau Studios à gauche avec margin négatif
   ============================================================================ */

/* Décale le tableau vers la gauche */
.mb-4 .credits-table.table-sm.table-borderless {
    margin-left: -1.5rem !important;
}

/* V12: Compensation pour l'icône dans le titre Studios */

/* ============================================================================

/* ============================================================================
   FINAL FIX V14: Credits tables need left padding to align with card content
   ============================================================================ */

/* All credits tables in album.php should have left padding to align with text */
.card-body .credits-table {
    margin-left: 0.5rem !important;
}
/* ============================================================================
   V24 FINAL - Réduction interlignes Credits UNIQUEMENT album.php
   SAFE: Ne touche QUE les tableaux dans .card-body (album.php)
   ============================================================================ */

/* Réduire le padding vertical des cellules dans les tableaux Credits */
.card-body .table-sm tbody td {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Réduire le line-height pour compacter encore plus */
.card-body .table-sm tbody td,
.card-body .table-sm tbody td a,
.card-body .table-sm tbody td strong,
.card-body .table-sm tbody td small {
    line-height: 1.2 !important;
}

/* v2 - Card release header discret, fond très clair, bordure fine */
.release-card-v2 {
    box-shadow: none !important;
    border: 1px solid #ece6da !important;
    background: #fcfaf7 !important;
    border-radius: 0.5rem !important;
}
.release-card-v2 .card-header {
    background: #F5E6D3 !important;
    border-bottom: 1px solid #ece6da !important;
    color: #8b6f47 !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
}
.release-card-v2 .card-body {
    padding: 0.75rem 1rem !important;
}

/* v2-light - Card release fond ultra-clair (pour le cadre avec badge Main) */
.release-card-v2-light {
    box-shadow: none !important;
    border: 1px solid #f5f2ec !important;
    background: #f9f7f3 !important;
    border-radius: 0.5rem !important;
}
.release-card-v2-light .card-header {
    background: #F5E6D3 !important;
    border-bottom: 1px solid #f5f2ec !important;
    color: #8b6f47 !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
}
.release-card-v2-light .card-body {
    padding: 0.75rem 1rem !important;
}

/* Couleur de fond pour les headers de releases (accordion) */
.accordion-button:not(.collapsed) {
    background-color: #FAF7F2 !important;
    color: #8b6f47 !important;
}
.accordion-button {
    background-color: #FAF7F2 !important;
    color: #8b6f47 !important;
}

/* Card header bg-primary pour Credits, Studios, etc */
.card-header.bg-primary {
    background-color: #F5E6D3 !important;
    color: #8b6f47 !important;
    border-bottom: 1px solid #ece6da !important;
}
.card-header.bg-primary h3,
.card-header.bg-primary i {
    color: #8b6f47 !important;
}

/* Boutons toggle dans les headers Albums/Compilations */
.card-header .btn-light,
.card-header .btn-outline-light,
.card-header .btn-sm.btn-light,
.card-header .btn-sm.btn-outline-light {
    background: rgba(139, 111, 71, 0.1) !important;
    border: 1px solid rgba(139, 111, 71, 0.3) !important;
    color: #8b6f47 !important;
    border-radius: 0.25rem !important;
    padding: 0.2rem 0.3rem !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    max-width: 1.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-header .btn-light:hover,
.card-header .btn-outline-light:hover,
.card-header .btn-sm.btn-light:hover,
.card-header .btn-sm.btn-outline-light:hover {
    background: rgba(139, 111, 71, 0.2) !important;
    border-color: rgba(139, 111, 71, 0.5) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.card-header .btn-light:active,
.card-header .btn-outline-light:active,
.card-header .btn-sm.btn-light:active,
.card-header .btn-sm.btn-outline-light:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.card-header .btn-light i,
.card-header .btn-outline-light i,
.card-header .btn-sm.btn-light i,
.card-header .btn-sm.btn-outline-light i {
    color: #8b6f47 !important;
    font-size: 0.9rem !important;
}

/* Override text-white sur les card-headers */
.card-header.text-white,
.card-header.text-white h1,
.card-header.text-white h2,
.card-header.text-white h3,
.card-header.text-white h4,
.card-header.text-white h5,
.card-header.text-white h6,
.card-header.text-white i {
    color: #8b6f47 !important;
}

/* Règle générale pour tous les card-headers (uniformisation du site) */
.card-header {
    background-color: #F5E6D3 !important;
    color: #8b6f47 !important;
}
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header i {
    color: #8b6f47 !important;
}

/* Override pour card-headers avec classes Bootstrap sombres */
.card-header.bg-secondary,
.card-header.bg-dark,
.card-header.bg-success,
.card-header.bg-danger,
.card-header.bg-info {
    background-color: #F5E6D3 !important;
    color: #8b6f47 !important;
}
.card-header.bg-secondary h1,
.card-header.bg-secondary h2,
.card-header.bg-secondary h3,
.card-header.bg-secondary h4,
.card-header.bg-secondary h5,
.card-header.bg-secondary h6,
.card-header.bg-secondary i,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.bg-dark i {
    color: #8b6f47 !important;
}
/* Reduce margin between header and first section on album page */
main.py-4 {
    padding-top: 1.5rem !important;
}

.container.mb-5 {
    margin-top: 0 !important;
}

/* Reduce breadcrumb margin if visible */
.breadcrumb {
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

/* Album page: reduce space between title and content */
body .album-header {
    margin-bottom: 0.75rem !important;
}

body .album-header .page-title {
    margin-bottom: 0 !important;
}

/* ============================================================================
   ARTIST BIOGRAPHY - Style compact et discret
   ============================================================================ */

/* Section bio compacte (sous les alias) */
.artist-bio-compact {
    font-size: 0.76rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    max-height: fit-content !important;
}

.artist-bio-compact .bio-text {
    margin-bottom: 0 !important;
    text-align: justify !important;
}

/* Bouton "→ Read more" ultra-discret, inline avec le texte */
.bio-read-more {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.76rem !important;
    color: #8b6f47 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline !important;
    vertical-align: baseline !important;
}

.bio-read-more:hover {
    color: #6d5836 !important;
    text-decoration: underline !important;
}

/* ============================================================================
   MODAL BIOGRAPHIE - Style magazine avec photos alternées
   ============================================================================ */

#bioModal .modal-content {
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
}

#bioModal .modal-header {
    background-color: #F5E6D3 !important;
    color: #8b6f47 !important;
    border-bottom: 1px solid #ece6da !important;
    padding: 0.75rem 1rem !important;
}

#bioModal .modal-header .modal-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #8b6f47 !important;
}

#bioModal .modal-header .modal-title i {
    color: #8b6f47 !important;
}

#bioModal .modal-header .btn-close {
    font-size: 0.875rem !important;
}

/* Corps du modal - style magazine */
.bio-modal-body {
    padding: 1.25rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* Photos inline alternées gauche/droite */
.bio-inline-photo {
    max-width: 220px !important;
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Paragraphes de bio */
.bio-paragraph {
    text-align: justify !important;
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.bio-paragraph-block {
    overflow: auto !important;
}

/* Footer modal */
#bioModal .modal-footer {
    background-color: #FAF7F2 !important;
    border-top: 1px solid #ece6da !important;
    padding: 0.75rem 1rem !important;
}

#bioModal .modal-footer small {
    font-size: 0.85rem !important;
}

#bioModal .modal-footer a {
    color: #8b6f47 !important;
    font-weight: 500 !important;
}

#bioModal .modal-footer a:hover {
    color: #6d5836 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bio-inline-photo {
        max-width: 160px !important;
        max-height: 200px !important;
    }
    
    .bio-paragraph {
        font-size: 0.875rem !important;
    }
    
    .artist-bio-compact,
    .artist-bio-compact .bio-text,
    .bio-read-more {
        font-size: 0.7rem !important;
    }
}

/* --- Correction Alignement Tableaux Artist --- */

/* 1. On réinitialise les headers pour qu'ils soient parfaitement centrés */
.credits-table thead th {
    text-align: center !important;
    vertical-align: middle !important;
    padding-left: 0.5rem !important; /* On annule le padding de 50px de style.css */
    padding-right: 0.5rem !important;
    background-color: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #666;
}

/* 2. On force la colonne titre à rester à gauche sans le gros padding */
.credits-table tbody td.text-start, 
.credits-table thead th.text-start {
    text-align: left !important;
    padding-left: 15px !important;
}

/* 3. Largeurs fixes pour les colonnes techniques (comme sur albums.php) */
.col-type { width: 70px; }
.col-rel, .col-rec { 
    width: 60px; 
    font-family: 'Courier New', Courier, monospace; /* Chiffres alignés */
}

/* 4. Correction du padding global qui cassait le centrage dans style.css */
.credits-table .credit-cell {
    padding-left: 15px !important; /* Réduction du test de 50px */
}

/* Style des badges pour les types d'albums */
.badge.bg-secondary {
    background-color: var(--color-primary) !important;
    font-weight: 500;
}

/* ========================================
   EXPERT SEARCH - COMPACT LAYOUT
   ======================================== */

/* Search button */
.expert-search-btn {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.4rem !important;
    line-height: 1.2 !important;
}

/* Icon buttons (+ and -) */
.expert-btn-icon {
    font-size: 0.8rem !important;
    font-weight: bold !important;
    padding: 0.1rem 0.5em !important;
    line-height: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block;
    text-align: center;
}

/* Criterion Row */
.criterion-row {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 111, 71, 0.1);
}
.criterion-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Header: Type + minus */
.criterion-header {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}
.criterion-header .criterion-type {
    flex: 1;
    min-width: 0;
}

/* Fields container */
.criterion-fields {
    margin-top: 0.3rem;
}

/* Row containers - ALL use nowrap */
.selects-add-row,
.input-add-row,
.year-add-row,
.add-only-row {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 0.25rem;
    align-items: center;
    margin-top: 0.25rem;
}

/* Add-only row: align right */
.add-only-row {
    justify-content: flex-end;
    margin-top: 0.2rem;
}

/* Person: input full width above selects row */
.criterion-fields > input[type="text"]:first-child {
    width: 100%;
    margin-bottom: 0.25rem;
}

/* Selects row: IS small, Role fills, + at end */
.selects-add-row .op-select {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 55px;
}
.selects-add-row .role-select {
    flex: 1;
    min-width: 0;
}

/* Input row: input fills, + at end */
.input-add-row input,
.input-add-row select {
    flex: 1;
    min-width: 0;
}

/* Year row: both inputs equal, + at end */
.year-add-row input {
    flex: 1;
    min-width: 0;
}

/* Expert Actions */
.expert-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(139, 111, 71, 0.15);
}

/* ========================================
   MOBILE (below 768px)
   ======================================== */
@media (max-width: 767.98px) {
    .expert-btn-icon {
        font-size: 0.75rem !important;
        padding: 0.08rem 0.3rem !important;
    }
    .expert-search-btn {
        font-size: 0.65rem !important;
        padding: 0.1rem 0.3rem !important;
    }
    .criterion-header {
        gap: 0.2rem;
    }
    .selects-add-row,
    .input-add-row,
    .year-add-row {
        gap: 0.2rem;
    }
    .selects-add-row .op-select {
        max-width: 50px;
        font-size: 0.75rem;
        padding: 0.2rem 0.25rem;
    }
    .selects-add-row .role-select {
        font-size: 0.75rem;
        padding: 0.2rem 0.25rem;
    }
    .criterion-fields .form-control-sm,
    .criterion-fields .form-select-sm {
        font-size: 0.8rem;
        padding: 0.2rem 0.3rem;
    }
}

/* ========================================
   VERY SMALL (below 400px)
   ======================================== */
@media (max-width: 400px) {
    .expert-btn-icon {
        font-size: 0.7rem !important;
        padding: 0.05rem 0.25rem !important;
    }
    .criterion-header .criterion-type {
        font-size: 0.75rem;
        padding: 0.2rem 0.25rem;
    }
    .selects-add-row .op-select {
        max-width: 45px;
        font-size: 0.7rem;
    }
}