﻿/* ═══════════════════════════════════════════════════════════════
   CHRONIQUES v3 — Forum des Passionnés — World of Metal
   ═══════════════════════════════════════════════════════════════ */

:root {
    --chr-album:      #ff7b00;
    --chr-concert:    #00bcd4;
    --chr-festival:   #e91e63;
    --chr-text:       #ffffff;
    --chr-text-muted: rgba(255,255,255,0.45);
    --chr-border:     rgba(160,40,40,0.38);
    --chr-success:    #4caf50;
    --chr-warning:    #ff9800;
    --chr-danger:     #f44336;
    --chr-radius:     12px;
    --chr-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --chr-blur:       blur(22px);
    --chr-blur-heavy: blur(50px);
    /* v3 additions */
    --chr-hot:        #ff5500;
    --chr-new:        #00e676;
    --chr-gold:       #ffd700;
    --chr-silver:     #c0c0c0;
    --chr-bronze:     #cd7f32;
}

/* ─── Masquer ancienne UI ────────────────────────────────────── */
#review-popup,
.reviews-popup,
#review-detail-popup,
.review-detail-popup,
#review-detail-modal,
#comments-modal {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ─── ONGLET PRINCIPAL ──────────────────────────────────────── */
#chroniques-tab-container {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #0f0000 0%, #1a0202 50%, #0a0000 100%);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity var(--chr-transition);
    flex-direction: column;
    font-family: 'Arial', sans-serif;
}

#chroniques-tab-container.show {
    display: flex;
    opacity: 1;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.chr-header {
    flex-shrink: 0;
    background: rgba(10,2,2,0.92);
    border-bottom: 1px solid var(--chr-border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: var(--chr-blur);
    -webkit-backdrop-filter: var(--chr-blur);
}

.chr-header::after {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,40,0,0.7) 40%, rgba(255,80,0,0.5) 60%, transparent);
}

.chr-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
}

.chr-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chr-back-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 7px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--chr-transition);
    line-height: 0;
}

.chr-back-btn:hover {
    background: rgba(200,40,0,0.3);
    border-color: rgba(220,60,30,0.5);
    color: #fff;
}

.chr-title-group {
    display: flex;
    flex-direction: column;
}

.chr-main-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.04em;
    font-family: 'Rajdhani', serif;
    text-shadow: 0 0 20px rgba(200,40,0,0.4);
}

.chr-subtitle {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.32);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-top: 2px;
    font-family: 'Arial', sans-serif;
}

.chr-header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,4,4,0.65);
    border: 1px solid rgba(160,40,40,0.38);
    border-radius: 21px;
    padding: 0 12px;
    max-width: 320px;
    transition: border-color var(--chr-transition), box-shadow var(--chr-transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.chr-header-search:focus-within {
    border-color: rgba(220,60,30,0.65);
    box-shadow: 0 4px 18px rgba(200,0,0,0.3), 0 2px 6px rgba(0,0,0,0.4);
}

.chr-header-search svg {
    color: rgba(255,255,255,0.32);
    flex-shrink: 0;
}

.chr-header-search input {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-family: Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    caret-color: rgba(220,80,80,0.9);
}

.chr-header-search input::placeholder {
    color: rgba(255,255,255,0.28);
    font-weight: 500;
}

.chr-write-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 60%, #ff5500 100%);
    border: none;
    color: white;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.84rem;
    transition: filter 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 18px rgba(200,0,0,0.4);
}

.chr-write-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.chr-write-btn:active {
    transform: translateY(0);
    filter: brightness(0.92);
}

/* ─── FILTRES ────────────────────────────────────────────────── */
.chr-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.chr-type-tabs {
    display: flex;
    gap: 2px;
}

.chr-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.38);
    padding: 6px 13px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 500;
    transition: all var(--chr-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Arial', sans-serif;
}

.chr-tab:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
}

.chr-tab.active {
    background: rgba(200,40,0,0.18);
    color: rgba(255,160,100,0.95);
    font-weight: 700;
}

.chr-tab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chr-dot-album   { background: var(--chr-album); }
.chr-dot-concert { background: var(--chr-concert); }
.chr-dot-festival{ background: var(--chr-festival); }

.chr-sort-wrap select {
    background: rgba(20,4,4,0.65);
    border: 1px solid rgba(160,40,40,0.38);
    color: rgba(255,255,255,0.5);
    padding: 7px 28px 7px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    font-family: 'Arial', sans-serif;
    transition: border-color var(--chr-transition);
    appearance: none;
    -webkit-appearance: none;
}

.chr-sort-wrap select:focus,
.chr-sort-wrap select:hover {
    border-color: rgba(220,60,30,0.65);
    color: #fff;
}

/* ─── HERO BAR (remplace stats-banner) ─────────────────────── */
.chr-hero-bar {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(80,8,8,0.55) 0%, rgba(12,2,2,0.88) 100%);
    border-bottom: 1px solid rgba(160,40,40,0.22);
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}
.chr-hero-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 50%, rgba(200,30,0,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.chr-hero-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,80,0,0.5) 50%, transparent);
}
.chr-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}
.chr-hero-emblem {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255,80,0,0.4));
    animation: chrEmblemdrop 4s ease-in-out infinite;
}
@keyframes chrEmblemdrop {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,80,0,0.4)); }
    50%       { filter: drop-shadow(0 0 22px rgba(255,130,0,0.7)); }
}
.chr-hero-title-text {
    font-family: 'Rajdhani', serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(200,40,0,0.4);
}
.chr-hero-sub-text {
    font-size: 0.67rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-top: 2px;
}
.chr-hero-stats-row {
    display: flex;
    align-items: center;
    position: relative;
}
.chr-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 18px;
}
.chr-hero-stat:first-child { padding-left: 0; }
.chr-hero-stat-sep {
    width: 1px;
    height: 26px;
    background: rgba(160,40,40,0.35);
    flex-shrink: 0;
}
.chr-stat-num {
    font-size: 1.22rem;
    font-weight: 700;
    color: #ff4500;
    font-family: 'Rajdhani', serif;
    text-shadow: 0 0 14px rgba(200,40,0,0.5);
    line-height: 1.1;
    transition: color 0.4s;
}
.chr-stat-label {
    font-size: 0.64rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-top: 2px;
    font-family: 'Arial', sans-serif;
}
.chr-hide-sm { /* caché sur écrans étroits via @media */ }

/* ─── BODY LAYOUT : main + sidebar ─────────────────────────── */
.chr-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

/* ─── LISTE PRINCIPALE ─────────────────────────────────────── */
.chr-main {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 32px;
    min-width: 0;
}

#chroniques-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* ─── CARTE CHRONIQUE v3 ────────────────────────────────────── */
.chr-card {
    background: rgba(16,2,2,0.78);
    border: 1.5px solid rgba(160,35,35,0.4);
    border-radius: var(--chr-radius);
    overflow: hidden;
    display: flex;
    position: relative;
    transition: all var(--chr-transition);
    cursor: pointer;
    animation: chrCardIn 0.35s ease-out both;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.035);
}

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

.chr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 22px rgba(180,20,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.chr-card--album:hover   { border-color: rgba(255,123,0,0.55); }
.chr-card--concert:hover { border-color: rgba(0,188,212,0.5); }
.chr-card--festival:hover{ border-color: rgba(233,30,99,0.5); }

/* Shine sweep */
.chr-card::before {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.04) 50%, transparent 80%);
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 10;
}
.chr-card:hover::before { animation: chrShine 0.6s ease forwards; }
@keyframes chrShine {
    from { left: -130%; }
    to   { left: 165%; }
}

.chr-card-accent { width: 4px; flex-shrink: 0; }
.chr-card--album .chr-card-accent    { background: linear-gradient(180deg, var(--chr-album), rgba(255,123,0,0.35)); }
.chr-card--concert .chr-card-accent  { background: linear-gradient(180deg, var(--chr-concert), rgba(0,188,212,0.35)); }
.chr-card--festival .chr-card-accent { background: linear-gradient(180deg, var(--chr-festival), rgba(233,30,99,0.35)); }

.chr-card-body {
    flex: 1;
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

/* Top de la carte : avatar + infos + score */
.chr-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chr-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.03em;
}

.chr-card-info { flex: 1; min-width: 0; }

.chr-card-band {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 10px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.chr-card-album-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.chr-card-title {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    font-family: 'Arial', sans-serif;
}

/* Mini étoiles + temps de lecture */
.chr-card-stars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.chr-mini-stars { font-size: 0.72rem; letter-spacing: 1.5px; line-height: 1; }
.chr-mini-star-filled { color: #ffc844; }
.chr-mini-star-empty  { color: rgba(255,255,255,0.1); }
.chr-reading-time {
    font-size: 0.64rem;
    color: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

/* Badges HOT & NOUVEAU */
.chr-badge-hot {
    background: rgba(255,85,0,0.14);
    color: var(--chr-hot);
    border: 1px solid rgba(255,85,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    animation: chrHotPulse 2.5s ease-in-out infinite;
}
@keyframes chrHotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,85,0,0); }
    50%       { box-shadow: 0 0 6px 1px rgba(255,85,0,0.18); }
}
.chr-badge-new {
    background: rgba(0,230,118,0.1);
    color: var(--chr-new);
    border: 1px solid rgba(0,230,118,0.26);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Réputation auteur */
.chr-rep { font-size: 0.68rem; line-height: 1; }
.chr-rep-bronze { filter: sepia(1) saturate(3) hue-rotate(-10deg) brightness(0.85); }
.chr-rep-silver { filter: saturate(0) brightness(1.15); }
.chr-rep-gold   { filter: sepia(1) saturate(5) hue-rotate(-5deg) brightness(1.1); }
.chr-rep-legend { filter: drop-shadow(0 0 4px rgba(255,150,50,0.7)); }

.chr-card-score {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    font-family: 'Rajdhani', serif;
}

.chr-score--high { background: linear-gradient(135deg, #388e3c, #4caf50); }
.chr-score--mid  { background: linear-gradient(135deg, #e65100, #ff9800); }
.chr-score--low  { background: linear-gradient(135deg, #b71c1c, #f44336); }

.chr-card-excerpt {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-family: 'Arial', sans-serif;
    font-style: italic;
}

.chr-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.065);
    gap: 8px;
    flex-wrap: wrap;
}

.chr-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    min-width: 0;
    font-family: 'Arial', sans-serif;
}

.chr-card-type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Rajdhani', serif;
}

.chr-badge--album    { background: rgba(255,123,0,0.14);  color: var(--chr-album); }
.chr-badge--concert  { background: rgba(0,188,212,0.11);  color: var(--chr-concert); }
.chr-badge--festival { background: rgba(233,30,99,0.11);  color: var(--chr-festival); }

.chr-card-author {
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}
.chr-card-dot    { opacity: 0.2; }

.chr-card-social {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.chr-card-social button {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.73rem;
    cursor: pointer;
    transition: all var(--chr-transition);
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.chr-like-btn:hover   { border-color: rgba(255,20,68,0.6); color: #ff5555; background: rgba(255,20,68,0.09); }
.chr-like-btn.liked   { border-color: rgba(255,20,68,0.6); color: #ff5555; background: rgba(255,20,68,0.08); }
.chr-comment-btn:hover{ border-color: rgba(160,40,40,0.6); color: rgba(255,180,150,0.9); }

.chr-read-btn {
    background: rgba(60,8,8,0.6) !important;
    border: 1px solid rgba(180,50,30,0.5) !important;
    color: rgba(255,195,175,0.9) !important;
    font-family: 'Rajdhani', serif !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
}

.chr-read-btn:hover {
    filter: brightness(1.3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(200,40,0,0.35) !important;
}

/* État vide */
.chr-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.3);
}

.chr-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.32;
    display: block;
}

.chr-empty-title {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.68);
    margin: 0 0 8px;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
}

.chr-empty-sub {
    font-size: 0.87rem;
    margin: 0 0 24px;
    font-family: 'Arial', sans-serif;
}

.chr-empty-cta {
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 60%, #ff5500 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 18px rgba(200,0,0,0.4);
    transition: filter 0.2s, transform 0.15s;
}

.chr-empty-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ── Bouton "Charger plus" ───────────────────────── */
.chr-load-more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    max-width: 360px;
    margin: 20px auto 8px;
    padding: 13px 20px;
    gap: 3px;
    background: rgba(20, 4, 4, 0.55);
    border: 1px solid rgba(160, 40, 40, 0.32);
    border-radius: 12px;
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.chr-load-more-btn:hover {
    background: rgba(100, 10, 0, 0.6);
    border-color: rgba(220, 60, 30, 0.55);
    color: #fff;
    transform: translateY(-1px);
}
.chr-load-more-count {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    font-family: Arial, sans-serif;
}

/* ─── PANEL DÉTAIL ────────────────────────────────────────────── */
#chr-detail-panel {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1100;
    display: none;
    opacity: 0;
    transition: opacity var(--chr-transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#chr-detail-panel.show {
    display: block;
    opacity: 1;
}

.chr-detail-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    min-width: 380px;
    max-width: 760px;
    height: 100%;
    background: rgba(0,0,0,0.1);
    backdrop-filter: var(--chr-blur-heavy);
    -webkit-backdrop-filter: var(--chr-blur-heavy);
    border-left: 1px solid rgba(160,40,40,0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 80px rgba(180,0,0,0.2), -8px 0 40px rgba(0,0,0,0.8);
}

#chr-detail-panel.show .chr-detail-drawer {
    transform: translateX(0);
}

.chr-detail-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.5);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--chr-transition);
    line-height: 0;
}

.chr-detail-close-btn:hover {
    background: rgba(200,40,0,0.35);
    border-color: rgba(220,60,30,0.5);
    color: #fff;
}

.chr-detail-scroll { flex: 1; overflow-y: auto; }

/* Contenu injecté */
.chr-detail-hero {
    padding: 56px 32px 28px;
    border-bottom: 1px solid rgba(160,40,40,0.18);
}

.chr-detail-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    font-family: 'Rajdhani', serif;
}

.chr-detail-tag--album    { background: rgba(255,123,0,0.12); color: var(--chr-album);    border: 1px solid rgba(255,123,0,0.3); }
.chr-detail-tag--concert  { background: rgba(0,188,212,0.12); color: var(--chr-concert);  border: 1px solid rgba(0,188,212,0.3); }
.chr-detail-tag--festival { background: rgba(233,30,99,0.12); color: var(--chr-festival); border: 1px solid rgba(233,30,99,0.3); }

.chr-detail-band {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(180,20,0,0.15);
}

.chr-detail-title-album {
    font-size: 1rem;
    color: rgba(255,255,255,0.42);
    margin: 0 0 20px;
    font-weight: 400;
    font-family: 'Arial', sans-serif;
}

.chr-detail-rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.chr-detail-stars-row {
    display: flex;
    gap: 2px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.chr-detail-score-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    font-family: 'Rajdhani', serif;
}

.chr-detail-event-info {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chr-detail-event-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.48);
    background: rgba(255,255,255,0.035);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.07);
    font-family: 'Arial', sans-serif;
}

.chr-detail-article {
    padding: 28px 32px;
    font-size: 0.97rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    border-bottom: 1px solid rgba(160,40,40,0.18);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Arial', sans-serif;
}

.chr-detail-setlist {
    padding: 20px 32px 24px;
    border-bottom: 1px solid rgba(160,40,40,0.18);
}

.chr-detail-setlist h5 {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.32);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 10px;
    font-family: 'Rajdhani', serif;
}

.chr-detail-setlist p {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Arial', sans-serif;
}

.chr-detail-byline {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid rgba(160,40,40,0.18);
}

.chr-detail-byline-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.32);
    font-family: 'Arial', sans-serif;
}

.chr-detail-author-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
    transition: color var(--chr-transition);
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.03em;
}

.chr-detail-author-btn:hover { color: rgba(255,160,100,0.95); }

.chr-detail-byline-right { display: flex; gap: 8px; }

.chr-detail-action-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.42);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--chr-transition);
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chr-detail-like-btn.like-active { border-color: rgba(255,60,60,0.6); color: #ff5555; background: rgba(255,60,60,0.08); }
.chr-detail-like-btn:hover       { border-color: rgba(255,60,60,0.6); color: #ff5555; }
.chr-detail-edit-btn:hover       { border-color: rgba(33,150,243,0.5); color: #64b5f6; }
.chr-detail-delete-btn:hover     { border-color: rgba(244,67,54,0.5);  color: #ef9a9a; }

/* ─── COMMENTAIRES ──────────────────────────────────────────── */
.chr-comments-section { padding: 24px 32px 32px; }

.chr-comments-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Rajdhani', serif;
}

.chr-comment-item {
    padding: 12px 14px;
    background: rgba(255,255,255,0.022);
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 8px;
    margin-bottom: 10px;
}

.chr-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.chr-comment-author {
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.02em;
}

.chr-comment-date {
    font-size: 0.71rem;
    color: rgba(255,255,255,0.28);
    font-family: 'Arial', sans-serif;
}

.chr-comment-text {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.55;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.chr-comment-del-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.28);
    font-size: 0.71rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
    transition: all var(--chr-transition);
    font-family: 'Arial', sans-serif;
}

.chr-comment-del-btn:hover {
    background: rgba(244,67,54,0.1);
    color: #ef9a9a;
}

.chr-no-comments {
    text-align: center;
    color: rgba(255,255,255,0.22);
    font-size: 0.86rem;
    padding: 20px 0;
    font-family: 'Arial', sans-serif;
}

.chr-comment-input-area { margin-top: 16px; }

.chr-comment-input-area textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.87rem;
    font-family: 'Arial', sans-serif;
    resize: vertical;
    min-height: 70px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chr-comment-input-area textarea::placeholder { color: rgba(255,255,255,0.22); }

.chr-comment-input-area textarea:focus {
    border-color: rgba(220,60,30,0.6);
    box-shadow: 0 0 0 3px rgba(200,40,0,0.12);
    background: rgba(255,255,255,0.1);
}

.chr-comment-submit-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 60%, #ff5500 100%);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(200,0,0,0.35);
    transition: filter 0.2s, transform 0.15s;
}

.chr-comment-submit-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ─── MODAL FORMULAIRE ──────────────────────────────────────── */
#chronicle-form-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--chr-transition);
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#chronicle-form-modal.show {
    display: flex;
    opacity: 1;
}

.chr-form-panel {
    position: relative;
    background: rgba(0,0,0,0.1);
    backdrop-filter: var(--chr-blur-heavy);
    -webkit-backdrop-filter: var(--chr-blur-heavy);
    border: 1px solid rgba(160,40,40,0.28);
    border-radius: 22px;
    padding: 36px;
    max-width: 600px;
    width: 100%;
    margin: auto;
    box-shadow: 0 8px 32px rgba(200,0,0,0.45), 0 2px 8px rgba(0,0,0,0.7);
    animation: chrFormIn 0.3s ease-out;
}

@keyframes chrFormIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chr-form-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    color: rgba(255,255,255,0.48);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--chr-transition);
    line-height: 0;
}

.chr-form-close-btn:hover {
    background: rgba(200,40,0,0.35);
    border-color: rgba(220,60,30,0.5);
    color: #fff;
}

.chr-form-header { margin-bottom: 28px; }

#chronicle-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(200,40,0,0.4);
}

.chr-form-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.32);
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.chr-form-section { margin-bottom: 22px; }

.chr-form-label {
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    color: rgba(255,255,255,0.42);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
    font-family: 'Rajdhani', serif;
}

.chr-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chr-form-label-row .chr-form-label { margin-bottom: 0; }

.chr-char-counter {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.22);
    transition: color var(--chr-transition);
    font-family: 'Arial', sans-serif;
}

.chr-char-counter.near-limit { color: #ff9800; }
.chr-char-counter.over-limit { color: #f44336; }

/* Cartes de type */
.chr-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.chr-type-card {
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.42);
    padding: 16px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all var(--chr-transition);
    font-family: 'Arial', sans-serif;
}

.chr-type-card:hover {
    border-color: rgba(220,60,30,0.5);
    background: rgba(160,25,0,0.12);
    color: rgba(255,200,175,0.9);
}

.chr-type-card.active {
    border-color: rgba(220,60,30,0.65);
    background: rgba(120,15,0,0.25);
    color: rgba(255,180,140,0.95);
    box-shadow: inset 0 1px 0 rgba(255,100,60,0.07);
}

.chr-type-card[data-type="concert"].active {
    border-color: rgba(0,188,212,0.5);
    background: rgba(0,140,160,0.1);
    color: var(--chr-concert);
}

.chr-type-card[data-type="festival"].active {
    border-color: rgba(233,30,99,0.5);
    background: rgba(180,15,70,0.1);
    color: var(--chr-festival);
}

.chr-type-card-icon  { font-size: 1.8rem; line-height: 1; }
.chr-type-card-label { font-size: 0.79rem; font-weight: 600; letter-spacing: 0.04em; font-family: 'Rajdhani', serif; }

.chr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.chr-form-field { margin-bottom: 16px; }
.chr-form-field:last-child { margin-bottom: 0; }

.chr-form-input {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-family: 'Arial', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chr-form-input:focus {
    border-color: rgba(220,60,30,0.6);
    box-shadow: 0 0 0 3px rgba(200,40,0,0.12);
    background: rgba(255,255,255,0.1);
}

.chr-form-input::placeholder { color: rgba(255,255,255,0.22); }

.chr-form-textarea { resize: vertical; min-height: 90px; }
.chr-review-area   { min-height: 140px; line-height: 1.6; }

.chr-optional-fields {
    display: none;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.065);
    border-radius: 10px;
    margin-bottom: 16px;
}

/* Rating */
.chr-rating-stars {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.chr-star {
    font-size: 1.7rem;
    cursor: pointer;
    color: rgba(255,255,255,0.1);
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
    user-select: none;
}

.chr-star:hover,
.chr-star.hovered {
    color: #ffc844;
    transform: scale(1.12);
    text-shadow: 0 0 10px rgba(255,195,0,0.5);
}
.chr-star.active {
    color: #ffc844;
    text-shadow: 0 0 8px rgba(255,195,0,0.4);
}

.chr-rating-inline-display {
    font-size: 1rem;
    font-weight: 700;
    color: #ff5500;
    margin-left: 4px;
    font-family: 'Rajdhani', serif;
}

/* Boutons d'action */
.chr-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.chr-btn-cancel {
    flex: 1;
    padding: 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.11);
    color: rgba(255,255,255,0.45);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Arial', sans-serif;
    transition: all var(--chr-transition);
}

.chr-btn-cancel:hover {
    background: rgba(244,67,54,0.09);
    border-color: rgba(244,67,54,0.4);
    color: #ef9a9a;
}

.chr-btn-submit {
    flex: 2;
    padding: 13px;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 60%, #ff5500 100%);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 18px rgba(200,0,0,0.4);
    transition: filter 0.2s, transform 0.15s;
}

.chr-btn-submit:hover { filter: brightness(1.15); transform: translateY(-1px); }
.chr-btn-submit:active { transform: translateY(0); filter: brightness(0.92); }

.chr-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* ─── TOASTS ─────────────────────────────────────────────────── */
#chr-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.chr-toast {
    background: rgba(12,3,3,0.94);
    border: 1px solid rgba(200,50,50,0.4);
    border-radius: 22px;
    padding: 10px 18px 10px 14px;
    font-size: 0.83rem;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: chrToastIn 0.3s ease-out;
    max-width: 320px;
    font-family: 'Arial', sans-serif;
}

@keyframes chrToastIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.chr-toast--success { border-left: 3px solid #4caf50; }
.chr-toast--error   { border-left: 3px solid #f44336; }
.chr-toast--info    { border-left: 3px solid #ff5500; }

.chr-toast.removing {
    animation: chrToastOut 0.25s ease-in forwards;
}

@keyframes chrToastOut {
    to { opacity: 0; transform: translateX(20px); }
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
.chr-main::-webkit-scrollbar,
.chr-detail-scroll::-webkit-scrollbar,
#chronicle-form-modal::-webkit-scrollbar { width: 5px; }

.chr-main::-webkit-scrollbar-track,
.chr-detail-scroll::-webkit-scrollbar-track,
#chronicle-form-modal::-webkit-scrollbar-track { background: transparent; }

.chr-main::-webkit-scrollbar-thumb,
.chr-detail-scroll::-webkit-scrollbar-thumb,
#chronicle-form-modal::-webkit-scrollbar-thumb {
    background: rgba(160,40,40,0.45);
    border-radius: 4px;
}

.chr-main::-webkit-scrollbar-thumb:hover,
.chr-detail-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(200,60,30,0.7);
}

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.chr-sidebar {
    width: 282px;
    flex-shrink: 0;
    overflow-y: auto;
    border-left: 1px solid rgba(160,40,40,0.18);
    padding: 18px 14px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(5,1,1,0.55);
}

/* CTA écrire */
.chr-sidebar-write {
    background: linear-gradient(135deg, rgba(90,8,8,0.55), rgba(35,5,5,0.88));
    border: 1px solid rgba(200,60,0,0.36);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.chr-sidebar-write::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,80,0,0.11) 0%, transparent 70%);
    pointer-events: none;
}
.chr-sidebar-write-flame {
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
    animation: chrFlamepulse 2.5s ease-in-out infinite;
}
@keyframes chrFlamepulse {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    50%       { transform: scale(1.1) rotate(3deg); }
}
.chr-sidebar-write-title {
    font-family: 'Rajdhani', serif;
    font-size: 0.89rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
    position: relative;
}
.chr-sidebar-write-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.36);
    line-height: 1.5;
    margin-bottom: 13px;
    position: relative;
}
.chr-sidebar-write-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    background: linear-gradient(135deg, #8b0000, #cc0000, #ff5500);
    border: none;
    color: white;
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.77rem;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(200,0,0,0.38);
    transition: filter 0.2s, transform 0.15s;
    position: relative;
}
.chr-sidebar-write-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Blocs sidebar */
.chr-sidebar-block {
    background: rgba(12,2,2,0.6);
    border: 1px solid rgba(160,40,40,0.16);
    border-radius: 12px;
    padding: 13px 13px;
}
.chr-sidebar-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Rajdhani', serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin: 0 0 11px;
}
.chr-sidebar-title svg { color: rgba(255,160,0,0.65); flex-shrink: 0; }

/* Top du mois */
.chr-sidebar-top-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 6px;
    margin: 0 -6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--chr-transition);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.chr-sidebar-top-item:last-child { border-bottom: none; }
.chr-sidebar-top-item:hover { background: rgba(255,255,255,0.04); }
.chr-sidebar-top-rank {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    color: rgba(255,255,255,0.18);
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}
.chr-sidebar-top-rank.rank-1 { color: var(--chr-gold); }
.chr-sidebar-top-rank.rank-2 { color: var(--chr-silver); }
.chr-sidebar-top-rank.rank-3 { color: var(--chr-bronze); }
.chr-sidebar-top-info { flex: 1; min-width: 0; }
.chr-sidebar-top-band {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Rajdhani', serif;
}
.chr-sidebar-top-meta {
    font-size: 0.67rem;
    color: rgba(255,255,255,0.28);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chr-sidebar-top-score {
    font-size: 0.74rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    color: #ff6020;
    flex-shrink: 0;
    background: rgba(255,80,0,0.1);
    border: 1px solid rgba(255,80,0,0.22);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Auteurs actifs */
.chr-sidebar-author-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 6px;
    margin: 0 -6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--chr-transition);
}
.chr-sidebar-author-item:hover { background: rgba(255,255,255,0.04); }
.chr-sidebar-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}
.chr-sidebar-author-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.76);
    font-family: 'Rajdhani', serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.chr-sidebar-author-count {
    font-size: 0.66rem;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* ─── CARTE FEATURED (SPOTLIGHT) ──────────────────────────── */
.chr-featured-card {
    background: linear-gradient(135deg, rgba(28,4,4,0.96), rgba(48,10,2,0.98));
    border: 1.5px solid rgba(220,80,0,0.48);
    border-radius: 18px;
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    animation: chrCardIn 0.4s ease-out both;
    box-shadow: 0 8px 40px rgba(200,40,0,0.22), 0 0 0 1px rgba(255,80,0,0.07);
}
.chr-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 54px rgba(200,40,0,0.36), 0 0 28px rgba(200,40,0,0.14);
    border-color: rgba(255,100,0,0.65);
}
.chr-featured-glow {
    position: absolute;
    top: -40%; right: -15%;
    width: 55%; height: 200%;
    background: radial-gradient(ellipse, rgba(200,50,0,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.chr-featured-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: linear-gradient(135deg, rgba(255,160,0,0.14), rgba(255,100,0,0.08));
    border: 1px solid rgba(255,160,0,0.42);
    color: #ffb04a;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.7px;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
}
.chr-featured-inner { padding: 24px 24px 20px; position: relative; z-index: 1; }
.chr-featured-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    font-family: 'Rajdhani', serif;
    border: 1px solid;
}
.chr-featured-band {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 36px rgba(200,30,0,0.2);
    margin-bottom: 3px;
}
.chr-featured-album { font-size: 0.93rem; color: rgba(255,255,255,0.4); margin-bottom: 11px; }
.chr-featured-stars-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.chr-featured-score {
    font-size: 0.84rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    color: #ff6020;
    background: rgba(255,80,0,0.11);
    border: 1px solid rgba(255,80,0,0.26);
    padding: 2px 9px;
    border-radius: 5px;
}
.chr-featured-excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.58);
    line-height: 1.72;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}
.chr-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.chr-featured-author {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.48);
}
.chr-featured-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}
.chr-featured-author-name { font-weight: 600; color: rgba(255,255,255,0.7); font-family: 'Rajdhani', serif; }
.chr-featured-social { display: flex; align-items: center; gap: 8px; }
.chr-featured-stat { font-size: 0.76rem; color: rgba(255,255,255,0.32); display: flex; align-items: center; gap: 4px; }
.chr-featured-read-btn {
    background: linear-gradient(135deg, #7a0000, #bb0000, #ee4400);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.73rem;
    font-family: 'Rajdhani', serif;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 14px rgba(180,0,0,0.38);
    transition: filter 0.2s, transform 0.15s;
}
.chr-featured-read-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ─── FAB FLOTTANT ──────────────────────────────────────────── */
.chr-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b0000 0%, #cc0000 60%, #ff5500 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(200,0,0,0.55), 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    z-index: 1050;
    animation: chrFabPulse 3s ease-in-out infinite;
    line-height: 0;
}
.chr-fab.visible { display: flex; }
@keyframes chrFabPulse {
    0%, 100% { box-shadow: 0 6px 28px rgba(200,0,0,0.55); }
    50%       { box-shadow: 0 6px 40px rgba(200,0,0,0.85), 0 0 0 8px rgba(200,0,0,0.1); }
}
.chr-fab:hover {
    transform: scale(1.1) rotate(8deg);
    filter: brightness(1.2);
    box-shadow: 0 8px 36px rgba(200,0,0,0.7);
    animation: none;
}

/* ─── COMPTEURS SUR LES ONGLETS ─────────────────────────────── */
.chr-tab-count {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.42);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 9px;
    min-width: 16px;
    text-align: center;
    transition: all var(--chr-transition);
}
.chr-tab.active .chr-tab-count {
    background: rgba(200,60,0,0.28);
    color: rgba(255,160,100,0.88);
}

/* ─── RELATED REVIEWS (dans le panel detail) ─────────────────── */
.chr-related-section {
    padding: 18px 32px 22px;
    border-bottom: 1px solid rgba(160,40,40,0.18);
}
.chr-related-title {
    font-size: 0.67rem;
    font-weight: 700;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 11px;
    font-family: 'Rajdhani', serif;
    display: flex;
    align-items: center;
    gap: 7px;
}
.chr-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: background var(--chr-transition);
    margin: 0 -8px;
}
.chr-related-item:hover { background: rgba(255,255,255,0.04); }
.chr-related-score {
    width: 28px; height: 28px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Rajdhani', serif;
    flex-shrink: 0;
    color: white;
}
.chr-related-info { flex: 1; min-width: 0; }
.chr-related-album {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.74);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chr-related-meta {
    font-size: 0.66rem;
    color: rgba(255,255,255,0.27);
    margin-top: 1px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .chr-sidebar { width: 240px; padding: 14px 10px 28px; }
}
@media (max-width: 900px) {
    .chr-sidebar { display: none; }
    .chr-detail-drawer { width: 100%; max-width: none; min-width: 0; }
    .chr-hide-sm { display: none !important; }
    .chr-fab.visible { display: flex; }
}
@media (max-width: 768px) {
    #chroniques-list { grid-template-columns: 1fr; gap: 12px; }
    .chr-header-top { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .chr-header-search { order: 3; max-width: none; width: 100%; }
    .chr-header-search input { font-size: 1rem; padding: 10px 14px; min-height: 44px; }
    .chr-filters-row { padding: 0 14px 10px; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .chr-tab-btn { min-height: 38px; padding: 6px 14px; font-size: 0.8rem; white-space: nowrap; }
    .chr-main        { padding: 12px 12px 100px; }
    .chr-hero-bar    { padding: 10px 14px; gap: 8px; }
    .chr-hero-left   { display: none; }
    .chr-hero-stats-row { gap: 6px; }
    .chr-hero-stat   { padding: 4px 10px; font-size: 0.72rem; }
    /* Cartes : zone de tap agrandie */
    .chr-card        { border-radius: 14px; }
    .chr-card-top    { padding: 14px 14px 10px; }
    .chr-card-body   { padding: 0 14px 12px; font-size: 0.88rem; line-height: 1.55; }
    .chr-card-foot   { padding: 10px 14px 14px; min-height: 44px; }
    .chr-card-like-btn, .chr-card-comment-btn { min-height: 36px; padding: 0 12px; font-size: 0.8rem; }
    /* Formulaire */
    .chr-form-panel  { padding: 22px 16px; border-radius: 16px; }
    .chr-form-row    { grid-template-columns: 1fr; }
    .chr-submit-btn  { min-height: 50px; font-size: 1rem; }
    /* D\u00e9tail article */
    .chr-detail-hero      { padding: 48px 16px 20px; }
    .chr-detail-article   { padding: 20px 16px; font-size: 1rem; line-height: 1.7; }
    .chr-detail-byline    { padding: 12px 16px; }
    .chr-comments-section { padding: 16px; }
    .chr-comment-input    { font-size: 1rem; min-height: 80px; }
    .chr-comment-submit   { min-height: 44px; font-size: 0.9rem; }
    .chr-detail-setlist   { padding: 14px 16px 18px; }
    .chr-related-section  { padding: 12px 16px 16px; }
    /* FAB \u2014 au-dessus de la barre d'accueil iOS */
    .chr-fab { bottom: max(24px, env(safe-area-inset-bottom, 24px)); right: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .chr-type-tabs   { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .chr-tab-btn     { flex-shrink: 0; }
    .chr-card-foot   { flex-direction: column; align-items: stretch; gap: 8px; }
    .chr-card-social { justify-content: space-between; }
    .chr-type-cards  { gap: 8px; }
    .chr-hero-stats-row { flex-wrap: wrap; gap: 6px; }
    .chr-hero-stat   { padding: 3px 10px; min-width: calc(50% - 8px); text-align: center; }
    /* Titre de la carte plus lisible */
    .chr-card-band   { font-size: 1rem; }
    .chr-card-album  { font-size: 0.82rem; }
    /* Commentaires */
    .chr-comment-avatar { width: 32px; height: 32px; font-size: 0.75rem; }
}