/* =========================================================================
   NOIZ TV — feuille de style
   Univers : diffusion cathodique, sérigraphie 60/70, papier crème et encre.
   ========================================================================= */

/* ---------- Jetons -------------------------------------------------- */
:root {
    --paper:        #EFE2CC;
    --paper-hi:     #FBF4E6;
    --paper-deep:   #E1D0B3;
    --ink:          #17120F;
    --ink-2:        #3B302A;
    --ink-mute:     #7C6B5D;
    --red:          #D93B2B;
    --red-deep:     #A5261A;
    --teal:         #17948B;
    --cyan:         #3FC2CE;
    --gold:         #E9A72C;

    --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
    --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'DM Mono', ui-monospace, 'SF Mono', monospace;

    --radius:       14px;
    --radius-sm:    8px;
    --border:       2px solid var(--ink);
    --lift:         4px 4px 0 var(--ink);
    --lift-sm:      3px 3px 0 var(--ink);
    --sidebar-w:    268px;
    --ease:         cubic-bezier(.2, .8, .25, 1);
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 10% -12%, rgba(233,167,44,.13), transparent 38%),
        radial-gradient(circle at 98% 2%, rgba(63,194,206,.09), transparent 34%);
    background-attachment: fixed;
}

/* Grain d'impression sur toute la page */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Typographie --------------------------------------------- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin: 0;
}

h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(20px, 2.4vw, 26px); }
h3 { font-size: 17px; letter-spacing: -.01em; }

.lede {
    max-width: 62ch;
    color: var(--ink-2);
    margin: 10px 0 0;
}

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }

/* Aberration chromatique du logotype */
.wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.03em;
    text-shadow: 2px 0 rgba(217, 59, 43, .85), -2px 0 rgba(63, 194, 206, .8);
}

/* ---------- Boutons -------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: var(--border);
    border-radius: 999px;
    background: var(--paper-hi);
    color: var(--ink);
    box-shadow: var(--lift-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .15s;
}

.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.btn--primary { background: var(--red); color: var(--paper-hi); }
.btn--ink     { background: var(--ink); color: var(--paper-hi); }
.btn--ghost   { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: rgba(23,18,15,.07); box-shadow: none; transform: none; }
.btn--sm      { padding: 7px 13px; font-size: 13px; }
.btn--danger  { background: var(--paper-hi); color: var(--red-deep); }
.btn--danger:hover { background: var(--red); color: var(--paper-hi); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Structure admin ------------------------------------------ */
.shell {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(90deg, var(--ink) 0 var(--sidebar-w), transparent var(--sidebar-w));
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    width: var(--sidebar-w);
    height: 100vh;
    flex: 0 0 var(--sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    background: var(--ink);
    color: var(--paper);
    border-right: 3px solid var(--ink);
    z-index: 40;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background: repeating-linear-gradient(
        180deg, rgba(255,255,255,.6) 0 1px, transparent 1px 4px
    );
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 18px;
    border-bottom: 1px dashed rgba(239,226,204,.28);
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 2px solid var(--paper);
    object-fit: cover;
}

.brand b { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.brand span { display: block; font-size: 11.5px; color: rgba(239,226,204,.62); letter-spacing: .04em; }

.nav { display: flex; flex-direction: column; gap: 6px; position: relative; }

.nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(239,226,204,.82);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid transparent;
    transition: background .16s, color .16s, transform .16s var(--ease);
}

.nav a:hover { background: rgba(239,226,204,.09); color: var(--paper-hi); transform: translateX(3px); }

.nav a.is-active {
    background: var(--red);
    border-color: var(--paper);
    color: var(--paper-hi);
    box-shadow: 3px 3px 0 rgba(239,226,204,.9);
}

.nav svg { width: 19px; height: 19px; flex: none; }

.sidebar-foot {
    margin-top: auto;
    position: relative;
    padding-top: 18px;
    border-top: 1px dashed rgba(239,226,204,.28);
    font-size: 12.5px;
    color: rgba(239,226,204,.6);
    display: grid;
    gap: 10px;
}

.sidebar-foot a { color: var(--cyan); }

.session-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--paper);
}

.session-chip i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(23,148,139,.28);
}

.main { flex: 1; min-width: 0; padding: 34px clamp(18px, 3.4vw, 48px) 72px; position: relative; }

/* Rayons de soleil du logo, en filigrane derrière l'en-tête */
.main::before {
    content: '';
    position: absolute;
    top: -220px; left: 50%;
    width: 1100px; height: 640px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .085;
    background: repeating-conic-gradient(
        from 0deg at 50% 100%,
        var(--red) 0deg 7deg, transparent 7deg 14deg
    );
    -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 5%, transparent 68%);
            mask-image: radial-gradient(ellipse at 50% 100%, #000 5%, transparent 68%);
}

.page-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cartes / panneaux ---------------------------------------- */
.panel {
    background: var(--paper-hi);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--lift);
    padding: 22px;
    position: relative;
}

.grid { display: grid; gap: 18px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid--lists { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid--albums { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }

.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.stat span { color: var(--ink-mute); font-size: 13px; }
.stat .bar { height: 6px; border-radius: 3px; background: var(--paper-deep); margin-top: 10px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--red); }

/* ---------- Écran cathodique (pochettes) ------------------------------ */
.crt {
    position: relative;
    aspect-ratio: 1;
    border: var(--border);
    border-radius: 22px / 26px;
    overflow: hidden;
    background: var(--ink-2);
    flex: none;
}

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

.crt::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
        radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0,0,0,.42) 100%);
    pointer-events: none;
}

.crt--sm { width: 78px; border-radius: 14px / 16px; }

/* ---------- Vignette de tier list ------------------------------------ */
.listcard {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: var(--paper-hi);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--lift);
    text-decoration: none;
    transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}

.listcard:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.listcard h3 { margin-bottom: 2px; }
.listcard .meta { color: var(--ink-mute); font-size: 13px; }
.listcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    font-size: 11.5px;
    font-weight: 600;
    background: var(--paper-deep);
}

.tag--live { background: var(--red); color: var(--paper-hi); border-color: var(--red-deep); }
.tag--draft { background: transparent; color: var(--ink-mute); border-color: var(--ink-mute); }

.tag--live i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--paper-hi);
    animation: pulse 1.8s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* Barre de progression du classement */
.progress { height: 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; }

/* ---------- Recherche d'album ---------------------------------------- */
.searchbar { position: relative; margin-bottom: 26px; }

.searchbar input {
    width: 100%;
    padding: 18px 20px 18px 54px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--paper-hi);
    box-shadow: var(--lift);
    font-size: 17px;
    font-weight: 500;
}

.searchbar input::placeholder { color: var(--ink-mute); font-weight: 400; }
.searchbar svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }

.searchbar .spinner {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid var(--paper-deep); border-top-color: var(--red);
    animation: spin .7s linear infinite;
    display: none;
}

.searchbar.is-busy .spinner { display: block; }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg) } }

.album {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper-hi);
    box-shadow: var(--lift-sm);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}

.album:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.album .crt { border: 0; border-bottom: var(--border); border-radius: 0; }
.album .body { padding: 0 13px 14px; display: grid; gap: 3px; }
.album strong { font-size: 14.5px; line-height: 1.25; }
.album small { color: var(--ink-mute); font-size: 12.5px; }
.album.is-loading { opacity: .55; pointer-events: none; }

/* ---------- Éditeur de tier list ------------------------------------- */
.editor-head {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper-hi);
    box-shadow: var(--lift);
    margin-bottom: 24px;
}

.editor-head .crt { width: 116px; }
.editor-head .info { flex: 1; min-width: 220px; }
.editor-head .info h1 { font-size: clamp(24px, 3vw, 34px); }
.editor-head .info .meta { color: var(--ink-mute); margin-top: 4px; }
.editor-head .side { display: grid; gap: 10px; justify-items: end; }

/* Interrupteur de publication */
.switch { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch .track {
    width: 54px; height: 30px;
    border: var(--border); border-radius: 999px;
    background: var(--paper-deep);
    position: relative;
    transition: background .2s;
}

.switch .track::after {
    content: '';
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--ink);
    transition: transform .22s var(--ease), background .2s;
}

.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::after { transform: translateX(24px); background: var(--paper-hi); }
.switch input:focus-visible + .track { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Bandes de rangs — mire de test */
.tiers { display: grid; gap: 12px; }

.tier {
    display: flex;
    align-items: stretch;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper-hi);
    box-shadow: var(--lift-sm);
    overflow: hidden;
    min-height: 116px;
}

.tier__label {
    flex: 0 0 96px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-right: var(--border);
    position: relative;
}

.tier__label input {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    padding: 0;
    border-radius: 6px;
}

.tier__label input:focus { outline: 2px dashed var(--ink); outline-offset: 2px; }

.tier__tools { display: flex; gap: 5px; opacity: 0; transition: opacity .16s; }
.tier:hover .tier__tools, .tier__label:focus-within .tier__tools { opacity: 1; }

.tier__tools button {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    padding: 0;
}

.tier__tools button:hover { background: var(--ink); color: var(--paper-hi); }
.tier__tools svg { width: 13px; height: 13px; }

.tier__drop, .pool__drop {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    padding: 12px;
    min-height: 100px;
    transition: background .15s;
}

.tier__drop.is-over, .pool__drop.is-over { background: rgba(23,148,139,.13); }

.tier__drop:empty::after, .pool__drop:empty::after {
    content: attr(data-empty);
    align-self: center;
    color: var(--ink-mute);
    font-size: 13px;
    font-style: italic;
}

/* Réserve de titres */
.pool { margin-top: 24px; }

.pool__head {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    margin-bottom: 12px;
}

.pool__drop {
    border: 2px dashed var(--ink-mute);
    border-radius: var(--radius);
    background: rgba(251,244,230,.6);
    min-height: 130px;
}

/* ---------- Carte titre ---------------------------------------------- */
.card {
    position: relative;
    flex: 0 0 186px;
    width: 186px;
    padding: 10px 11px 9px;
    border: var(--border);
    border-radius: 11px;
    background: var(--paper-hi);
    box-shadow: 2px 2px 0 var(--ink);
    cursor: grab;
    touch-action: none;
    user-select: none;
    display: grid;
    gap: 5px;
    transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}

.card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.card:active { cursor: grabbing; }

.card__top { display: flex; align-items: center; gap: 7px; }

.card__num {
    flex: none;
    min-width: 22px; height: 22px;
    display: grid; place-items: center;
    padding: 0 5px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--paper-hi);
    font-family: var(--font-mono);
    font-size: 11px;
}

.card__title {
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card__foot .mono { color: var(--ink-mute); }
.card__links { display: flex; gap: 5px; }

.card__links a {
    width: 25px; height: 25px;
    display: grid; place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    transition: background .15s, color .15s, transform .15s;
}

.card__links a:hover { transform: scale(1.12); }
.card__links a.yt:hover { background: var(--red); color: var(--paper-hi); }
.card__links a.sp:hover { background: var(--teal); color: var(--paper-hi); }
.card__links svg { width: 13px; height: 13px; }

.card.is-dragging { opacity: .28; }

.card.is-ghost {
    position: fixed;
    z-index: 900;
    pointer-events: none;
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 8px 10px 0 rgba(23,18,15,.35);
    cursor: grabbing;
}

.slot {
    flex: 0 0 186px;
    width: 186px;
    height: 74px;
    border: 2px dashed var(--teal);
    border-radius: 11px;
    background: rgba(23,148,139,.1);
}

/* ---------- Notifications -------------------------------------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 950; display: grid; gap: 10px; justify-items: end; }

.toast {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 17px;
    border: var(--border);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper-hi);
    box-shadow: var(--lift);
    font-size: 13.5px;
    font-weight: 500;
    animation: toast-in .28s var(--ease);
}

.toast--ok i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.toast--err { background: var(--red); }
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }

@keyframes toast-in  { from { opacity: 0; transform: translateY(12px) } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) } }

/* Indicateur de sauvegarde */
.saver { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-mute); }
.saver i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); transition: background .2s; }
.saver.is-saving i { background: var(--gold); animation: pulse 1s infinite; }
.saver.is-saved i { background: var(--teal); }

/* ---------- Fenêtre modale ------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 960; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal__veil { position: absolute; inset: 0; background: rgba(23,18,15,.62); }

.modal__box {
    position: relative;
    width: min(430px, 100%);
    padding: 26px;
    background: var(--paper-hi);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--ink);
    animation: toast-in .22s var(--ease);
}

.modal__box p { color: var(--ink-2); }
.modal__box .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- État vide ------------------------------------------------- */
.empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: 56px 24px;
    border: 2px dashed var(--ink-mute);
    border-radius: var(--radius);
    background: rgba(251,244,230,.78);
}

.empty p { max-width: 44ch; color: var(--ink-mute); margin: 0; }

/* ---------- Connexion ------------------------------------------------- */
.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
}

.login::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: .11;
    background: repeating-conic-gradient(from 0deg at 50% 42%, var(--red) 0deg 6deg, transparent 6deg 12deg);
    -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 8%, transparent 62%);
            mask-image: radial-gradient(circle at 50% 42%, #000 8%, transparent 62%);
}

.login__box {
    position: relative;
    width: min(392px, 100%);
    padding: 34px 30px;
    background: var(--paper-hi);
    border: 3px solid var(--ink);
    border-radius: 20px;
    box-shadow: 8px 8px 0 var(--ink);
    text-align: center;
}

.login__box img { width: 92px; height: 92px; border-radius: 18px; border: 3px solid var(--ink); margin-bottom: 16px; }
.login__box h1 { font-size: 30px; }
.login__box p { color: var(--ink-mute); font-size: 14px; margin: 6px 0 24px; }

.field { display: grid; gap: 6px; text-align: left; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.field input {
    padding: 12px 15px;
    border: var(--border);
    border-radius: 10px;
    background: var(--paper);
    font-size: 15px;
}

.field input:focus { background: #fff; }

.alert {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 14px;
    border: 2px solid var(--red-deep);
    border-radius: 10px;
    background: rgba(217,59,43,.12);
    color: var(--red-deep);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: left;
}

/* ---------- Site public ---------------------------------------------- */
.pub-header {
    position: relative;
    padding: 30px clamp(18px, 4vw, 56px) 26px;
    border-bottom: 3px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pub-header::before {
    content: '';
    position: absolute; inset: 0;
    opacity: .1;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.7) 0 1px, transparent 1px 4px);
}

.pub-header .brand { border: 0; padding: 0; margin: 0; }
.pub-header .brand img { border-color: var(--paper); }

.pub-main { padding: 34px clamp(18px, 4vw, 56px) 80px; position: relative; }

.pub-hero { position: relative; margin-bottom: 30px; }

.pub-hero::before {
    content: '';
    position: absolute;
    top: -160px; left: 50%;
    width: 900px; height: 460px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .10;
    background: repeating-conic-gradient(from 0deg at 50% 100%, var(--red) 0deg 7deg, transparent 7deg 14deg);
    -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 5%, transparent 66%);
            mask-image: radial-gradient(ellipse at 50% 100%, #000 5%, transparent 66%);
}

.live-dot {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 13px;
    border: 2px solid var(--paper);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--paper);
}

.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }

.pub-footer {
    padding: 26px clamp(18px, 4vw, 56px);
    border-top: 2px dashed var(--ink-mute);
    color: var(--ink-mute);
    font-size: 13px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Cartes titres en lecture seule */
.card--static { cursor: default; touch-action: auto; }
.card--static:hover { transform: none; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Barre mobile --------------------------------------------- */
.mobilebar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    border-bottom: 3px solid var(--ink);
}

.mobilebar img { width: 34px; height: 34px; border-radius: 8px; }
.mobilebar b { font-family: var(--font-display); }

.burger {
    margin-left: auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 2px solid var(--paper);
    border-radius: 9px;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
}

/* ---------- Adaptatif ------------------------------------------------- */
@media (max-width: 900px) {
    .mobilebar { display: flex; }

    .shell { flex-direction: column; background: none; }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .26s var(--ease);
        box-shadow: 0 0 0 100vmax rgba(23,18,15,0);
    }

    .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(23,18,15,.55); }

    .main { padding: 22px 16px 64px; }
    .tier__label { flex-basis: 72px; }
    .tier__label input { font-size: 26px; }
    .card, .slot { width: calc(50% - 5px); }
    .editor-head .side { justify-items: start; }
}

@media (max-width: 520px) {
    .card, .slot { width: 100%; }
    .grid--albums { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

@media print {
    .sidebar, .mobilebar, .btn, .toasts { display: none !important; }
}
