/**
 * Direction artistique : fond noir mat, accent néon vert chartreuse, typographie sans-serif nette.
 */

:root {
    --bg: #121212;
    --bg-elevated: #1a1a1a;
    --surface: #1e1e1e;
    --surface-2: #252525;
    --border: #333;
    --border-strong: #404040;
    --text: #ffffff;
    --muted: #9ca3af;
    --muted-dim: #6b7280;
    --neon: #ccff00;
    --neon-bright: #d4ff33;
    --neon-dim: #99cc00;
    --neon-on-dark: #0d0d0d;
    --glow-neon: rgba(204, 255, 0, 0.35);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.55);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 9999px;
    --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --grid-line: rgba(204, 255, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Texture grille discrète façon “dashboard tech” */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 48px 48px;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--neon);
    text-decoration: none;
}

.logo:hover {
    color: var(--neon-bright);
    text-shadow: 0 0 20px var(--glow-neon);
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.site-header nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-header nav a:hover {
    color: var(--neon);
    border-color: rgba(204, 255, 0, 0.45);
    background: rgba(204, 255, 0, 0.06);
}

.site-main {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 1.5rem clamp(1rem, 3vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-intro {
    color: var(--muted);
    margin: 0 0 1.5rem;
    max-width: 65ch;
}

.page-intro a {
    color: var(--neon);
    text-decoration: none;
    font-weight: 600;
}

.page-intro a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.library-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    margin: 0 0 1.1rem;
}

.library-toolbar .page-intro {
    margin: 0;
}

/* --- Filtres & puces --- */
.timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.timeline-filters label {
    font-size: 0.85rem;
    color: var(--muted);
    margin-right: 0.25rem;
}

.filter-chip {
    cursor: pointer;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip:hover {
    border-color: rgba(204, 255, 0, 0.5);
    color: var(--neon-bright);
}

.filter-chip.active {
    background: var(--neon);
    border-color: var(--neon);
    color: var(--neon-on-dark);
    box-shadow: 0 0 20px var(--glow-neon);
}

.filter-chip.active:hover {
    color: var(--neon-on-dark);
    filter: brightness(1.05);
}

/* --- Frise --- */
.timeline-wrap {
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.timeline-axis {
    --lane-step: 60px;
    --vinyl-marker-size: 58px;
    position: relative;
    min-width: 720px;
    padding: 2.75rem 1rem 1.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(165deg, var(--surface) 0%, var(--bg-elevated) 50%, #141414 100%);
    box-shadow: var(--shadow-card);
    overflow: visible;
}

.timeline-years {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2rem;
    border-bottom: 1px solid var(--border);
}

.timeline-year-tick {
    position: absolute;
    top: 0.35rem;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--muted);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.timeline-track {
    position: relative;
    margin-top: 2.25rem;
    margin-left: 0.5%;
    margin-right: 0.5%;
    /*
     * Marqueurs centrés sur top:50% + translateY ; le couloir N descend de N × lane-step.
     * Hauteur min = moitié haute + (N-1)×pas + moitié basse du dernier carré
     * = 2 × ((lane_count-1) × lane-step + demi-pochette).
     */
    min-height: calc(
        var(--vinyl-marker-size) +
        (var(--timeline-lane-count, 1) - 1) * var(--lane-step) * 2 +
        10px
    );
    height: auto;
    padding-bottom: 1rem;
    overflow: visible;
    border-radius: var(--radius-md);
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 11px,
        rgba(255, 255, 255, 0.03) 11px,
        rgba(255, 255, 255, 0.03) 12px
    ),
    linear-gradient(180deg, rgba(30, 30, 30, 0.9) 0%, rgba(18, 18, 18, 0.98) 100%);
    border: 1px solid var(--border);
}

.timeline-track::after {
    content: "";
    position: absolute;
    left: 3%;
    right: 3%;
    top: 50%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-dim) 8%, var(--neon) 50%, var(--neon-dim) 92%, transparent);
    box-shadow: 0 0 16px var(--glow-neon);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.vinyl-marker {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, calc(-50% + var(--vinyl-lane, 0) * var(--lane-step, 60px)));
    width: var(--vinyl-marker-size, 58px);
    height: var(--vinyl-marker-size, 58px);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--neon);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 0 14px var(--glow-neon);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: var(--surface-2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, z-index 0s;
}

.vinyl-marker:hover {
    transform: translate(-50%, calc(-50% + var(--vinyl-lane, 0) * var(--lane-step, 60px))) scale(1.07);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 24px var(--glow-neon);
    z-index: 3;
}

.vinyl-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vinyl-marker.no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    font-weight: 600;
    text-align: center;
    padding: 4px;
    line-height: 1.15;
    word-break: break-word;
    color: var(--muted);
}

/* --- Grille disques --- */
.grid-records-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.grid-records-title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.grid-records-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.grid-records-search {
    flex-basis: 100%;
    margin: 0.15rem 0 0;
}

.grid-records-search .search-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.grid-records-search-inner {
    flex: 1;
    min-width: 200px;
}

.grid-records-search-inner input[type="search"] {
    width: 100%;
}

.grid-search-empty {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-strong);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.grid-record-hidden {
    display: none !important;
}

.grid-sort-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.grid-records {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.15rem;
}

.card-record {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card-record:hover {
    border-color: rgba(204, 255, 0, 0.45);
    box-shadow:
        var(--shadow-card),
        0 0 0 1px rgba(204, 255, 0, 0.12),
        0 0 28px rgba(204, 255, 0, 0.08);
    transform: translateY(-2px);
}

.card-record a {
    color: inherit;
    text-decoration: none;
}

.card-record-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.card-cover {
    aspect-ratio: 1;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
    flex: 1;
}

.card-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.15rem 0 0;
}

/* --- Frise verticale dédiée (1 ligne par année + slider) --- */
.timeline-frise-toolbar {
    max-width: 720px;
    margin: 0 0 1rem;
}

.timeline-years-list {
    display: grid;
    gap: 0.75rem;
}

.timeline-years-list:not(.frise-show-wishes) .timeline-cover-btn--wish {
    display: none;
}

.timeline-years-list.frise-show-wishes .timeline-row-empty--wish-placeholder {
    display: none;
}

.timeline-year-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.4rem 0;
}

.timeline-year-label {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon);
    text-align: right;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.timeline-row-slider-wrap {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 0.5rem;
    align-items: center;
}

.timeline-row-nav {
    height: 34px;
    width: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--neon);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.timeline-row-slider {
    min-height: 78px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.45rem;
    background: rgba(20, 20, 20, 0.75);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.timeline-row-empty {
    color: var(--muted-dim);
    font-size: 0.78rem;
    padding: 0 0.4rem;
}

.timeline-cover-btn {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 2px solid rgba(204, 255, 0, 0.7);
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.16);
    padding: 0;
    background: var(--surface-2);
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
}

.timeline-cover-btn--wish {
    border-style: dashed;
    border-color: rgba(186, 104, 255, 0.95);
    box-shadow:
        0 0 14px rgba(186, 104, 255, 0.28),
        inset 0 0 0 1px rgba(186, 104, 255, 0.2);
}

.timeline-cover-btn--wish img {
    filter: grayscale(0.2) saturate(0.88);
    opacity: 0.94;
}

.timeline-cover-wish-badge {
    position: absolute;
    bottom: 3px;
    left: 2px;
    right: 2px;
    font-size: 0.42rem;
    font-weight: 800;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(90deg, rgba(120, 60, 180, 0.95), rgba(186, 104, 255, 0.92));
    padding: 2px 1px;
    text-align: center;
    line-height: 1.15;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.timeline-cover-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-cover-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.58rem;
    padding: 4px;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: grid;
    place-items: center;
    z-index: 50;
    padding: 1rem;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-card {
    width: min(700px, 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    padding: 1rem 1rem 1.1rem;
    position: relative;
}

.modal-layout {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.modal-cover-wrap {
    width: 170px;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(204, 255, 0, 0.45);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-cover-fallback {
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
}

.modal-content {
    min-width: 0;
}

.modal-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal-title {
    margin: 0 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.modal-subtitle {
    margin: 0 0 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.modal-resume {
    margin: 0 0 0.9rem;
    color: var(--text);
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* --- Formulaires --- */
.form-grid {
    display: grid;
    gap: 1.1rem;
    max-width: 720px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: var(--muted-dim);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.2);
}

.form-grid textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted-dim);
    font-weight: 400;
}

.form-switch-row {
    grid-column: 1 / -1;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
}

.form-switch {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.form-grid .form-switch {
    flex-direction: row;
}

.form-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-switch-slider {
    flex-shrink: 0;
    width: 2.5rem;
    height: 1.35rem;
    margin-top: 0.15rem;
    border-radius: var(--radius-pill);
    background: var(--border-strong);
    position: relative;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.form-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(1.35rem - 6px);
    height: calc(1.35rem - 6px);
    border-radius: 50%;
    background: var(--text);
    transition: transform 0.2s ease, background 0.2s ease;
}

.form-switch input:focus-visible + .form-switch-slider {
    outline: 2px solid var(--neon);
    outline-offset: 2px;
}

.form-switch input:checked + .form-switch-slider {
    background: var(--neon-dim);
    box-shadow: 0 0 12px var(--glow-neon);
}

.form-switch input:checked + .form-switch-slider::after {
    transform: translateX(1.1rem);
    background: var(--neon-on-dark);
}

.form-switch-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.form-switch-text strong {
    font-weight: 600;
    color: var(--text);
}

.form-switch-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}

.form-switch-desc code {
    font-size: 0.78em;
    color: var(--neon-bright);
    background: rgba(204, 255, 0, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.wish-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(204, 255, 0, 0.15);
    color: var(--neon-bright);
    border: 1px solid rgba(204, 255, 0, 0.35);
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--neon);
    color: var(--neon-on-dark);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--glow-neon);
    transition: filter 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.btn-secondary:hover {
    filter: none;
    border-color: var(--neon);
    color: var(--neon);
    box-shadow: 0 0 16px rgba(204, 255, 0, 0.12);
}

.btn-danger {
    background: rgba(255, 80, 80, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(255, 100, 100, 0.55);
    box-shadow: none;
}

.btn-danger:hover {
    filter: none;
    background: rgba(255, 80, 80, 0.22);
    border-color: #fca5a5;
    color: #fff;
    box-shadow: 0 0 16px rgba(255, 80, 80, 0.25);
}

.danger-zone {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 100, 100, 0.35);
    border-radius: var(--radius-md);
    background: rgba(255, 80, 80, 0.05);
}

.danger-zone h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    color: #fca5a5;
    font-size: 1.05rem;
}

.danger-zone p {
    margin: 0 0 0.85rem;
    color: var(--text-muted, #b3b3b3);
    font-size: 0.9rem;
}

.danger-zone__form {
    margin: 0;
}

/* --- Panneau recherche MusicBrainz --- */
.search-panel {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    max-width: 900px;
    box-shadow: var(--shadow-card);
    background-image:
        linear-gradient(rgba(204, 255, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 255, 0, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

.search-panel h2 {
    margin-top: 0;
    font-size: 0.95rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--neon);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.search-row input[type="text"],
.search-row input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
}

.search-row input[type="text"]:focus,
.search-row input[type="search"]:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.2);
}

.search-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    display: none;
    background: var(--bg-elevated);
}

.search-results.open {
    display: block;
}

.search-result-item {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.1s ease;
}

.search-result-item:hover {
    background: rgba(204, 255, 0, 0.08);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* --- Alertes --- */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(204, 255, 0, 0.1);
    border-color: rgba(204, 255, 0, 0.4);
    color: var(--neon-bright);
}

.alert-error {
    background: rgba(255, 80, 80, 0.08);
    border-color: rgba(255, 100, 100, 0.45);
    color: #fca5a5;
}

/* --- Fiche disque (pochette sticky à gauche, texte à droite) --- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: start;
}

.detail-layout--no-cover {
    grid-template-columns: 1fr;
}

.detail-layout__aside {
    position: sticky;
    top: 1rem;
    align-self: start;
}

.detail-layout__main .page-title {
    margin-top: 0;
}

.detail-layout__meta {
    margin-bottom: 0.75rem;
}

.detail-artist-link {
    color: var(--neon);
    text-decoration: none;
    border-bottom: 1px solid rgba(204, 255, 0, 0.35);
}

.detail-artist-link:hover {
    color: var(--neon-bright);
    border-bottom-color: var(--neon);
}

.detail-layout__styles {
    margin-top: -0.35rem;
    margin-bottom: 1.25rem;
}

.detail-cover {
    width: 100%;
    max-width: none;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(204, 255, 0, 0.35);
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: var(--shadow-card), 0 0 24px var(--glow-neon);
}

.detail-cover img {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.detail-section {
    margin-bottom: 1.6rem;
}

.detail-section h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--neon);
    margin: 0 0 0.55rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.detail-section p {
    margin: 0;
    color: var(--muted);
}

.detail-actions {
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .detail-layout:not(.detail-layout--no-cover) {
        grid-template-columns: 1fr;
    }

    .detail-layout__aside {
        position: static;
        max-width: 280px;
        margin: 0 auto 0.5rem;
    }

    .timeline-year-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .timeline-year-label {
        text-align: left;
    }

    .timeline-row-slider-wrap {
        grid-template-columns: 1fr;
    }

    .timeline-row-nav {
        display: none;
    }

    .modal-layout {
        grid-template-columns: 1fr;
    }

    .modal-cover-wrap {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 600px) {
    .timeline-axis {
        min-width: 100%;
    }

    .site-header {
        padding: 1rem;
    }
}
