:root {
  --bg: #0f0d15;
  --surface: #1a1724;
  --surface-2: #252134;
  --line: #322c45;
  --text: #f5f2fb;
  --muted: #a39cb6;
  --like: #2fe08b;
  --nope: #ff4f6d;
  --accent: #ff6a3d;
  --accent-2: #ff3d8b;
  --radius: 24px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#app {
  height: 100vh; height: 100dvh;
  max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  background: var(--bg);
}

/* ---------- Barre du haut ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 6px;
}
.logo {
  font-weight: 900; font-size: 26px; letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo span { color: var(--text); -webkit-text-fill-color: var(--text); }
.topbar-right { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 7px 12px; border-radius: 999px; background: var(--surface);
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pill svg { flex: none; color: var(--accent); }
.pill.install { color: #fff; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

main { flex: 1; position: relative; min-height: 0; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; }
.view.active { display: flex; }
.view.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { padding: 8px 16px 24px; }

/* ---------- Pile de cartes ---------- */
.deck { flex: 1; position: relative; margin: 6px 12px 0; min-height: 0; }
.card {
  position: absolute; inset: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  touch-action: none; user-select: none; -webkit-user-select: none;
  will-change: transform;
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), opacity .3s;
  cursor: grab;
}
.card:active { cursor: grabbing; }
.card[data-pos="1"] { transform: scale(.95) translateY(14px); }
.card[data-pos="2"] { transform: scale(.9) translateY(28px); opacity: .6; }
.card.enter { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; } }
.card.back { animation: back .4s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes back { from { transform: translate(-120%, 30px) rotate(-25deg); } }

/* Visuel génératif de l'artiste */
.art {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 80% at 15% 5%, var(--c1), transparent 60%),
    radial-gradient(90% 70% at 100% 85%, var(--c1), transparent 70%),
    linear-gradient(160deg, var(--c2), #0a0810 85%);
}
.art::before {
  content: ""; position: absolute; inset: -40%;
  background: repeating-radial-gradient(circle at 70% 30%, rgba(255,255,255,.07) 0 1px, transparent 1px 14px);
  transition: transform 8s linear;
}
.art.playing::before { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(8, 6, 12, .55) 60%, rgba(8, 6, 12, .96) 100%);
  pointer-events: none;
}
.initials {
  position: absolute; top: 9%; left: 0; right: 0; text-align: center;
  font-size: clamp(90px, 34vw, 170px); font-weight: 900; letter-spacing: -.06em; line-height: 1;
  color: rgba(255, 255, 255, .16);
  mix-blend-mode: overlay;
}
.eq {
  position: absolute; left: 50%; top: 40%; transform: translateX(-50%);
  display: flex; gap: 6px; align-items: flex-end; height: 56px;
  opacity: 0; transition: opacity .3s;
}
.eq i { width: 8px; height: 30%; border-radius: 4px; background: rgba(255,255,255,.85); }
.art.playing .eq { opacity: 1; }
.art.playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; }
.eq i:nth-child(3) { animation-delay: -.6s !important; }
.eq i:nth-child(4) { animation-delay: -.15s !important; }
.eq i:nth-child(5) { animation-delay: -.45s !important; }
@keyframes eq { from { height: 15%; } to { height: 100%; } }
.media-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.art.has-img { background: var(--img) center / cover no-repeat, var(--c2); }
.art.has-img::before, .art.has-img .initials { display: none; }
.art .media-video ~ * { z-index: 1; }
.art .media-video ~ .initials, .art .media-video ~ .eq { display: none; }

/* Tampons de swipe */
.stamp {
  position: absolute; top: 34px; z-index: 5;
  font-size: 30px; font-weight: 900; letter-spacing: .06em;
  padding: 4px 14px; border: 4px solid; border-radius: 10px;
  opacity: 0; pointer-events: none;
}
.stamp.like { left: 24px; color: var(--like); transform: rotate(-14deg); }
.stamp.nope { right: 24px; color: var(--nope); transform: rotate(14deg); }

/* Bouton lecture avec anneau de progression */
.play {
  --p: 0;
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 22px; color: #fff;
}
.play .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#fff calc(var(--p) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2.5px));
          mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2.5px));
}
.play.is-loading .ring { background: conic-gradient(#fff .15turn, transparent 0); animation: spin .8s linear infinite; }
.play.no-preview { opacity: .45; }
.play svg:last-of-type { display: none; }
.play.is-playing svg:first-of-type { display: none; }
.play.is-playing svg:last-of-type { display: block; }
.card .play { position: absolute; right: 16px; top: 16px; z-index: 4; }
.play-label {
  position: absolute; right: 76px; top: 30px; z-index: 4;
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35); padding: 4px 9px; border-radius: 999px;
  max-width: calc(100% - 110px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 18px 18px 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tag.hot { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tag.ok { background: rgba(47, 224, 139, .22); color: #8ff5c3; }
.card-info h2 { font-size: 30px; line-height: 1.05; font-weight: 850; letter-spacing: -.02em; }
.card-info h2 small { font-size: 20px; font-weight: 600; color: rgba(255,255,255,.75); }
.meta { margin-top: 8px; display: grid; gap: 4px; font-size: 15px; color: rgba(255,255,255,.88); }
.meta span { display: flex; align-items: center; gap: 7px; }
.meta svg { color: var(--accent); flex: none; }
.more {
  margin-top: 12px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Boutons d'action */
.actions {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  padding: 14px 0 12px;
}
.act {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.4);
  transition: transform .15s;
}
.act:not(:disabled):active { transform: scale(.88); }
.act.small { width: 46px; height: 46px; font-size: 20px; color: var(--muted); }
.act.nope, .act.like { width: 66px; height: 66px; font-size: 28px; }
.act.nope { color: var(--nope); border: 2px solid rgba(255, 79, 109, .35); }
.act.like { color: var(--like); border: 2px solid rgba(47, 224, 139, .35); }
#btn-info { color: #8ab4ff; }
#btn-undo { color: #ffc24b; }

/* État vide */
.empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px; padding: 24px;
  border: 2px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-size: 46px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); font-size: 15px; max-width: 300px; }

/* ---------- Boutons génériques ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 15px;
  background: var(--surface-2); color: var(--text);
}
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { color: var(--nope); background: rgba(255, 79, 109, .1); }
.btn svg { font-size: 18px; }

/* ---------- Fiche détaillée ---------- */
.sheet {
  position: absolute; inset: 0; z-index: 30;
  background: var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.sheet.open { transform: none; }
.sheet-hero { position: relative; height: 52vh; max-height: 440px; min-height: 300px; }
.sheet-hero .art::after { background: linear-gradient(to bottom, rgba(8,6,12,.3), transparent 30%, transparent 45%, var(--bg) 100%); }
.sheet-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sheet-hero .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 76px; height: 76px; font-size: 30px; z-index: 4; }
.sheet-hero .art.has-video ~ .play { top: auto; bottom: 110px; left: auto; right: 16px; transform: none; width: 54px; height: 54px; font-size: 22px; }
.hero-text { position: absolute; left: 18px; right: 18px; bottom: 6px; z-index: 3; }
.hero-text h2 { font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.hero-text p { color: var(--muted); margin-top: 6px; font-weight: 600; }
.sheet-body { padding: 14px 18px 120px; display: grid; gap: 18px; }
.sheet-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.sheet-body p { line-height: 1.55; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.fact.wide { grid-column: 1 / -1; }
.fact small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.fact small svg { color: var(--accent); }
.fact strong { font-size: 16px; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.links .btn:not(.primary) { flex-direction: column; gap: 4px; font-size: 13px; padding: 12px 6px; }
.links .primary { grid-column: 1 / -1; padding: 15px; font-size: 16px; }
.why { display: flex; flex-wrap: wrap; gap: 6px; }
.why .tag:not(.hot):not(.ok) { background: var(--surface-2); }
.sheet-actions {
  position: sticky; bottom: 0; z-index: 6;
  display: flex; justify-content: center; gap: 22px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  margin-top: -110px;
}
.sheet-actions .btn { flex: 1; max-width: 320px; }

/* ---------- Mes concerts ---------- */
.page-title { font-size: 26px; font-weight: 850; letter-spacing: -.02em; margin: 6px 0 4px; }
.page-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 18px; padding: 8px; }
.row.past { opacity: .55; }
.row-open { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; }
.thumb {
  position: relative; flex: none; width: 62px; height: 62px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
}
.thumb .art::after, .thumb .initials, .thumb .eq { display: none; }
.thumb .art.has-img + span { display: none; }
.thumb span { position: relative; z-index: 1; font-weight: 900; font-size: 22px; color: rgba(255,255,255,.9); }
.row-main { min-width: 0; display: grid; gap: 2px; }
.row-main strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .when { color: var(--accent); font-weight: 700; }
.row-ticket {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; color: var(--accent); background: var(--surface-2);
}
.saved-empty { text-align: center; padding: 60px 20px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.saved-empty .big { font-size: 46px; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 26px; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.name-input {
  width: 100%; font: inherit; font-size: 22px; font-weight: 800; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px dashed var(--line); padding: 4px 0;
}
.name-input:focus { outline: none; border-bottom-color: var(--accent); }
.stats { color: var(--muted); font-size: 13px; margin-top: 4px; }
.panel { background: var(--surface); border-radius: 20px; padding: 16px; margin-bottom: 12px; display: grid; gap: 12px; }
.panel h3 { font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel h3 output { color: var(--accent); font-weight: 800; }
.panel .hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  transition: background .15s, color .15s;
}
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg button { padding: 9px 4px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); }
/* Section repliable du profil (« Sources de données ») */
.fold { margin-bottom: 12px; }
.fold-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0;
  cursor: pointer; list-style: none; user-select: none;
}
.fold-head::-webkit-details-marker { display: none; }
.fold-head > span:first-child { display: grid; gap: 3px; font-size: 15px; font-weight: 700; }
.fold-head small { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.35; }
.fold-arrow {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .25s;
}
.fold-arrow::before {
  content: ""; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg);
}
.fold[open] > .fold-head .fold-arrow { transform: rotate(180deg); }
.fold[open] > .fold-head { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.fold-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fold-body { padding-top: 8px; }
.fold-body > .panel:last-child { margin-bottom: 0; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-row span { display: grid; gap: 2px; font-weight: 600; }
.switch-row small { color: var(--muted); font-weight: 400; font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--like); border-color: transparent; }
.switch:checked::after { transform: translateX(20px); }
select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
}
.loc-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tm-box { display: grid; gap: 10px; }
.hint.status { white-space: pre-line; }
.link-chip { color: var(--text); }
.media-yt { border: 0; pointer-events: none; }
.sheet .media-yt { pointer-events: auto; }
.card-info h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.text-input {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  font-family: ui-monospace, Consolas, monospace;
}
.text-input:focus { outline: none; border-color: var(--accent); }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.danger-zone { display: grid; gap: 8px; margin-top: 8px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.5; }

/* ---------- Carte ---------- */
#view-map { padding: 0; }
.map-bar { display: flex; gap: 8px; padding: 4px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.map-bar .chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 12px; font-size: 13px; }
.map-note { color: var(--muted); font-size: 12px; padding: 0 16px 8px; margin-top: -4px; }
.map-note .inline-link { font-size: inherit; }
.map { flex: 1; min-height: 0; background: #0e0e12; position: relative; isolation: isolate; z-index: 0; } /* les calques Leaflet (z-index 400+) restent sous la fiche */
.map > .empty { position: absolute; inset: 0; }
.leaflet-container { font: inherit; background: #0e0e12; }
.leaflet-control-attribution { font-size: 9.5px; line-height: 1.35; background: rgba(15, 13, 21, .75) !important; color: var(--muted); max-width: 100%; }
.leaflet-control-attribution a { color: var(--text); }
.leaflet-bar a { background: var(--surface); color: var(--text); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--surface-2); }
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
.pin > span { transform: rotate(45deg); line-height: 1; }
.pin svg { width: 14px; height: 14px; }
.pin.liked { border-color: var(--like); box-shadow: 0 0 0 3px rgba(47, 224, 139, .35), 0 3px 10px rgba(0, 0, 0, .5); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.leaflet-popup-content { margin: 14px 14px 12px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pop h4 { font-size: 15px; margin-bottom: 2px; padding-right: 14px; }
.pop p { margin: 0 !important; font-size: 12px; color: var(--muted); }
.pop .pop-dist { margin-bottom: 8px !important; }
.pop a { color: var(--accent); }
.pop-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px; border-radius: 12px; }
.pop-open { text-align: left; min-width: 0; display: grid; gap: 1px; }
/* Vignette-bouton ▶ des fenêtres de la carte */
.pop-thumb.pop-play { position: relative; width: 44px; height: 44px; color: #fff; }
.pop-thumb.pop-play::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, .35); }
.pop-thumb.pop-play > svg { position: relative; z-index: 1; width: 18px; height: 18px; filter: drop-shadow(0 1px 3px #000); }
.pop-thumb.pop-play > svg:nth-of-type(2) { display: none; }
.pop-thumb.pop-play.is-playing > svg:nth-of-type(1) { display: none; }
.pop-thumb.pop-play.is-playing > svg:nth-of-type(2) { display: block; }
.pop-thumb.pop-play.is-playing { box-shadow: 0 0 0 2px var(--accent); }
.pop-thumb.pop-play.is-loading > svg { animation: pulse 1s ease-in-out infinite; }
.pop-thumb.pop-play.no-preview { opacity: .55; }
.pop-liked { position: absolute; right: -4px; bottom: -4px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--like); }
.pop-liked svg { width: 11px; height: 11px; }
.pop-media { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: -2px 0 10px; border-radius: 10px; overflow: hidden; background: #000; }
@keyframes pulse { 50% { opacity: .35; } }
/* Grande photo de l'artiste pendant un extrait audio (carte, recherche) */
.pop-art { position: absolute; inset: 0; background: var(--img, linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)))) center / cover no-repeat; }
.pop-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .75)); }
.pop-art .eq { position: absolute; left: 12px; top: auto; bottom: 30px; transform: none; z-index: 1; height: 26px; gap: 4px; opacity: 1; }
.pop-art .eq i { width: 5px; animation: eq .9s ease-in-out infinite alternate; }
.pop-art-cap { position: absolute; left: 12px; right: 12px; bottom: 8px; z-index: 1; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000; }
.pop-row:hover { background: var(--surface-2); }
.pop-row b { display: block; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-row small { color: var(--muted); font-size: 12px; }
.pop-thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--img, linear-gradient(135deg, var(--accent), var(--accent-2))) center / cover; display: grid; place-items: center; color: var(--like); }
.pop-thumb svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px #000); }
.pop-more, .pop-src { margin-top: 6px !important; }
.hint-line { color: var(--muted); font-size: 14px; margin: -4px 0 10px; }
#sheet-venue h3 { margin-bottom: 8px; }

/* ---------- Navigation ---------- */
.nav {
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line); background: rgba(15, 13, 21, .92);
}
.nav button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.nav .ico { font-size: 22px; }
.nav button.active { color: var(--text); }
.nav button.active .ico { color: var(--accent); }
.badge {
  position: absolute; top: 8px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent-2); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}

/* ---------- Onboarding ---------- */
.onboard {
  position: absolute; inset: 0; z-index: 50; overflow-y: auto;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 106, 61, .25), transparent 60%), var(--bg);
  padding: calc(40px + env(safe-area-inset-top)) 22px 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.onboard h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; font-weight: 900; }
.onboard h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onboard p { color: var(--muted); line-height: 1.5; }
.howto { display: grid; gap: 10px; }
.howto div { display: flex; align-items: center; gap: 12px; background: var(--surface); padding: 12px 14px; border-radius: 16px; font-size: 14px; }
.howto b { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: var(--surface-2); }
.onboard .btn.primary { margin-top: auto; padding: 16px; font-size: 17px; }
.onboard h3 { font-size: 17px; }
.ob-criteria { display: grid; gap: 16px; background: var(--surface); border-radius: 20px; padding: 16px; }
.ob-criteria h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; margin-bottom: 8px; }
.ob-criteria output { color: var(--accent); font-weight: 800; }
.onboard .ob-note { font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; top: calc(58px + env(safe-area-inset-top)); z-index: 60;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 520px) {
  body { padding: 0; }
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-height: 640px) {
  .card-info h2 { font-size: 24px; }
  .act.nope, .act.like { width: 56px; height: 56px; }
  .actions { padding: 10px 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= Amis et partage ================= */
.friends-line { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 14px; color: #8ff5c3; }
.friends-line svg { flex: none; width: 17px; height: 17px; }
.friends-line b { font-weight: 800; }
.row-main .friends-line { margin-top: 2px; font-size: 13px; }
.row-main .friends-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #8ff5c3; }
.row-main .has-ticket { color: var(--like); font-weight: 700; }
.row-main .friends-sub { color: #8ff5c3; display: flex; align-items: center; gap: 5px; }
.row-main .friends-sub svg { width: 14px; height: 14px; flex: none; }
.invite-banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,106,61,.18), rgba(255,61,139,.18)); border: 1px solid rgba(255,106,61,.35);
}
.invite-banner > svg { width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 2px; }
.invite-banner div { display: grid; gap: 8px; justify-items: start; }
.invite-banner p { color: var(--muted); font-style: italic; }
.friend-list, .friend-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.friend-chip i, .friend-row i {
  font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; font-size: 13px; color: #fff; flex: none;
}
.friend-chip.going { border-color: rgba(47,224,139,.5); background: rgba(47,224,139,.12); }
.friend-chip.pick { cursor: pointer; }
.friend-chip.pick.sent { border-color: rgba(47,224,139,.5); color: var(--like); }
.ticket-row { padding: 12px 14px; border-radius: 16px; background: var(--surface); }
#p-social .count { color: var(--accent); margin-left: 4px; }
#p-social .btn.primary svg { width: 18px; height: 18px; }
.friend-rows { display: grid; gap: 8px; }
.friend-row { display: flex; align-items: center; gap: 10px; }
.friend-row i { width: 36px; height: 36px; font-size: 16px; }
.friend-row span { flex: 1; min-width: 0; display: grid; font-weight: 700; }
.friend-row small { color: var(--muted); font-weight: 400; font-size: 13px; }
.link-btn { color: var(--muted); font-size: 13px; text-decoration: underline; padding: 6px; }
.hint.warn { color: #ffb38f; }

.modal {
  position: absolute; inset: 0; z-index: 55; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(5,4,8,.6); opacity: 0; transition: opacity .2s;
}
.modal.open { opacity: 1; }
.modal-card {
  position: relative; width: 100%; max-width: 520px; max-height: 88%; overflow-y: auto;
  background: var(--surface); border-radius: 26px 26px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  display: grid; gap: 12px; transform: translateY(30px); transition: transform .25s;
}
.modal.open .modal-card { transform: none; }
.modal-card h3 { font-size: 20px; font-weight: 850; padding-right: 40px; }
.modal-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.modal-sub { color: var(--muted); font-size: 14px; line-height: 1.4; }
.modal-sub strong { color: var(--text); }
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.modal-x svg { width: 14px; height: 14px; }
.modal-card textarea { resize: none; font: inherit; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.share-btn {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 15px;
}
.share-btn small { color: var(--muted); font-size: 12px; }
.share-btn.wa { border-color: rgba(37,211,102,.5); background: rgba(37,211,102,.12); }

/* ================= « Quand ? » ================= */
.when-box { display: grid; gap: 10px; }
.seg-when button { font-size: 13px; line-height: 1.15; padding: 8px 3px; }
.when-custom { display: flex; flex-wrap: wrap; gap: 8px; }
.when-custom .chip { display: inline-flex; align-items: center; gap: 6px; }
.when-custom .chip svg { width: 15px; height: 15px; }
.date-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.date-field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.date-field input {
  width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); color-scheme: dark;
}
.date-field input:focus { outline: none; border-color: var(--accent); }
.when-sum { margin: 0; }

/* ================= Lecteur YouTube ================= */
.media-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.key-ok { color: #3ddc84; }

/* ================= Recherche, favoris, alertes ================= */
.search-box {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 4px 0 14px;
  padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; outline: none; }
/* ================= Profil : Mes artistes, Mes salles, Mes billets ================= */
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
/* Mes billets, dans « Mes concerts » */
.saved-tickets { display: grid; gap: 10px; margin: 6px 0 4px; }
.saved-tickets .group-title { display: flex; align-items: center; gap: 8px; }
.saved-tickets .group-title svg { width: 20px; height: 20px; color: var(--accent); }
.saved-tickets .ticket-row { background: var(--surface); border-radius: 16px; padding: 10px; border: 0; margin-bottom: 8px; }
.row-qr { color: var(--like); }
/* Fenêtre « Mets Tèvé! sur ton téléphone » : carte blanche en haut de l'écran */
.install-hint { position: absolute; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start;
  padding: calc(64px + env(safe-area-inset-top)) 12px 0; background: rgba(5, 4, 8, .45); opacity: 0; transition: opacity .2s; }
.install-hint.open { opacity: 1; }
.ih-card { position: relative; width: 100%; max-width: 460px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start;
  background: #fff; color: #14121b; border-radius: 26px; padding: 18px 16px 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  transform: translateY(-14px); transition: transform .25s; }
.install-hint.open .ih-card { transform: none; }
.ih-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #d9d7e0; display: grid; place-items: center; color: #14121b; background: #fff; }
.ih-x svg { width: 14px; height: 14px; }
.ih-app { display: grid; justify-items: center; gap: 6px; }
.ih-app img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.ih-app small { font-size: 12px; font-weight: 700; color: #5b5866; }
.ih-body { display: grid; gap: 8px; padding-right: 30px; }
.ih-body h3 { font-size: 19px; font-weight: 850; line-height: 1.2; }
.ih-body p { color: #5b5866; font-size: 14.5px; line-height: 1.4; }
.ih-steps { list-style: none; display: grid; gap: 10px; margin-top: 4px; padding: 0; }
.ih-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; font-size: 15px; line-height: 1.3; }
.ih-ico { width: 40px; height: 40px; border-radius: 11px; background: #eef1f8; color: #2f6fe4; display: grid; place-items: center; }
.ih-ico svg { width: 22px; height: 22px; }
.ih-install { margin-top: 4px; justify-self: start; }
.ih-install svg, .install-open svg { width: 18px; height: 18px; }
.install-open { width: 100%; margin-bottom: 12px; }
.lib-btn { display: grid; justify-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px; background: var(--surface); text-align: center; }
.lib-btn:hover { background: var(--surface-2); }
.lib-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.lib-ico svg { width: 20px; height: 20px; }
.lib-btn b { font-size: 13px; }
.lib-btn small { color: var(--muted); font-size: 12px; font-weight: 700; }
.modal-card h3 svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--accent); margin-right: 4px; }
.lib-count { color: var(--muted); font-size: 15px; font-weight: 700; }
.lib-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.lib-add .btn svg, .lib-actions .btn svg { width: 16px; height: 16px; }
.lib-list { display: grid; }
.lib-import { display: grid; gap: 12px; }
.lib-src { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.lib-src small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-actions .btn { cursor: pointer; }
.ticket-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ticket-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; color: #c0392b; }
.ticket-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticket-thumb svg { width: 34px; height: 34px; }
.ticket-main { display: grid; gap: 6px; min-width: 0; }
.ticket-main .text-input { padding: 8px 10px; font-size: 14px; }
.ticket-full { background: #fff; border-radius: 16px; padding: 12px; display: grid; place-items: center; }
.ticket-full img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.ticket-sheet { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-sheet .btn svg { width: 16px; height: 16px; }

/* Barre de recherche + bouton, résultats avec aperçu */
.search-row { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: 4px 0 14px; background: var(--bg); padding: 4px 0; }
.search-row .search-box { position: static; margin: 0; }
.search-row .btn { padding: 12px 16px; }
.search-price { display: grid; gap: 8px; }
.search-price h3 { font-size: 15px; display: flex; justify-content: space-between; }
.search-price output { color: var(--accent); font-weight: 800; }
.search-stage { position: sticky; top: 64px; z-index: 2; margin: 0 0 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.res-list { display: grid; gap: 2px; }
.res-row { padding: 6px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
.res-row .pop-open b { white-space: normal; }

/* Où et quand, dans la recherche */
.search-opts { padding: 0; gap: 0; margin-bottom: 4px; }
.search-opts > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 14px; }
.search-opts > summary::-webkit-details-marker { display: none; }
.search-opts > summary > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.search-opts > summary > span:first-of-type { flex: 1; min-width: 0; color: var(--muted); }
.search-opts > summary b { color: var(--text); }
.search-opts .fold-arrow { width: 28px; height: 28px; }
.search-opts[open] > summary .fold-arrow { transform: rotate(180deg); }
.search-opts-body { display: grid; gap: 12px; padding: 0 14px 14px; }
.search-h { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 18px 0 8px; }
.search-h small { color: var(--muted); font-weight: 600; }
.search-h svg { width: 18px; height: 18px; color: var(--accent); }
.ent { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.ent-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.ent-ico svg { width: 18px; height: 18px; }
.ent-main { text-align: left; display: grid; gap: 2px; min-width: 0; }
.ent-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-main small { color: var(--muted); font-size: 12.5px; }
.star { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.star svg { width: 22px; height: 22px; }
.star.on { color: #f7b32b; }
.chip svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.follow-chip.on { border-color: #f7b32b; color: #f7b32b; }
#sheet-follow h3 { display: flex; align-items: center; gap: 6px; }
#sheet-follow h3 svg { width: 17px; height: 17px; }
.new-tag { color: #f7b32b; font-weight: 700; }
.search-note { margin-top: 18px; }
.empty-inline { display: grid; gap: 10px; padding: 8px 0; }
.btn.small { padding: 8px 14px; font-size: 13px; margin-top: 8px; }
.nav button span:last-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav button { font-size: 10.5px; min-width: 0; }
@media (max-width: 380px) { .nav button { font-size: 9.5px; letter-spacing: -.01em; } }

/* ================= Communauté ================= */
.st-bar { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; }
.st-bar::-webkit-scrollbar { display: none; }
.st-bubble { display: grid; justify-items: center; gap: 6px; flex: none; width: 72px; }
.st-bubble small { font-size: 12px; color: var(--muted); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ring { position: relative; width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: var(--surface-2); }
.st-bubble.has .st-ring { background: conic-gradient(var(--accent), var(--accent-2), #f7b32b, var(--accent)); }
.st-face { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff;
  background: var(--img, linear-gradient(135deg, var(--accent), var(--accent-2))) center / cover; border: 3px solid var(--bg); }
.st-add { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); display: grid; place-items: center; color: #fff; }
.st-add svg { width: 12px; height: 12px; }
.st-new { width: 100%; margin-bottom: 6px; }
.st-new svg { width: 18px; height: 18px; }
.comm-empty { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); margin: 8px 0; color: var(--muted); }
.clip-list { display: grid; gap: 4px; }
.clip { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.clip-play { position: relative; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: var(--img, linear-gradient(135deg, var(--accent), var(--accent-2))) center / cover; }
.clip-play::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, .35); }
.clip-play > svg { position: relative; z-index: 1; width: 18px; height: 18px; }
.clip-play > svg:nth-of-type(2) { display: none; }
.clip-play.is-playing > svg:nth-of-type(1) { display: none; }
.clip-play.is-playing > svg:nth-of-type(2) { display: block; }
.clip-play.is-playing { box-shadow: 0 0 0 2px var(--accent); }
.clip-play.is-loading > svg { animation: pulse 1s infinite; }
.clip-main { display: grid; gap: 2px; min-width: 0; }
.clip-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-story { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.clip-story svg { width: 16px; height: 16px; }
.clip.picked { border: 1.5px solid var(--accent); border-radius: 14px; padding: 8px; }
.friend-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--like); font-weight: 700; }
.friend-tag i { width: 18px; height: 18px; border-radius: 50%; background: var(--like); color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; }
/* Lecteur de stories plein écran */
.story-view { position: absolute; inset: 0; z-index: 80; background: #000; color: #fff; overflow: hidden; }
.sv-bg { position: absolute; inset: -40px; background: var(--img, linear-gradient(135deg, var(--accent), var(--accent-2))) center / cover; filter: blur(30px) brightness(.45); }
.sv-bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; background: #fff; }
.sv-head { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.sv-face { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 800; }
.sv-head small { color: rgba(255, 255, 255, .7); }
.sv-head .sv-del { margin-left: auto; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); color: #fff; }
.sv-x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sv-del + .sv-x { margin-left: 0; }
.sv-x svg { width: 16px; height: 16px; }
.sv-main { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 80px 24px 40px; text-align: center; }
.sv-cover { position: relative; width: min(72vw, 300px); aspect-ratio: 1; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  background: var(--img, linear-gradient(135deg, var(--accent), var(--accent-2))) center / cover; }
.sv-cover .eq { position: absolute; left: 14px; bottom: 14px; top: auto; transform: none; height: 30px; gap: 4px; opacity: 1; }
.sv-cover .eq i { width: 5px; animation: eq .9s ease-in-out infinite alternate; }
.sv-main h2 { font-size: 24px; font-weight: 850; margin-top: 8px; }
.sv-artist { color: rgba(255, 255, 255, .8); font-size: 16px; }
.sv-text { font-size: 18px; font-weight: 700; max-width: 320px; }
.sv-concert { background: rgba(255, 255, 255, .15); color: #fff; border: 0; position: relative; z-index: 5; }
.sv-concert svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.sv-link { color: rgba(255, 255, 255, .75); font-size: 13px; text-decoration: underline; position: relative; z-index: 5; }
.sv-tap { position: absolute; top: 70px; bottom: 120px; z-index: 3; width: 34%; background: none; }
.sv-tap.prev { left: 0; } .sv-tap.next { right: 0; }
/* ================= Espace pro, alarme billetterie ================= */
.pro-open { width: 100%; margin-bottom: 12px; }
.pro-form { display: grid; gap: 10px; }
.pro-form h4 { margin-top: 8px; }
.pro-form textarea { resize: vertical; font: inherit; }
.pro-form .chip:has(input:checked) { background: var(--accent); color: #fff; border-color: transparent; }
.pro-kind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pro-kind label { display: block; }
.pro-kind span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.pro-kind input:checked + span { background: var(--accent); color: #fff; }
.pro-kind input { position: absolute; opacity: 0; pointer-events: none; }
.pro-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pro-kpis div { background: var(--surface-2); border-radius: 14px; padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.pro-kpis b { font-size: 20px; }
.pro-kpis small { color: var(--muted); font-size: 11px; }
.pro-ev { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pro-ev.past { opacity: .55; }
.pro-stats { display: flex; align-items: flex-end; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; width: 84px; }
.spark i { flex: 1; min-height: 2px; background: var(--accent); border-radius: 2px; opacity: .8; }
.pro-poster { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pro-poster img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; }
.pro-poster .btn { cursor: pointer; }
.pro-sheet { display: grid; gap: 8px; }
.pro-badge { color: #3ddc84; font-weight: 800; font-size: 14px; }
#sheet-venue { display: grid; gap: 10px; }
.pro-venue-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 14px; }
.pro-venue-addr { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 0; }
.pro-venue-addr svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pro-venue-map { width: 100%; height: 180px; border: 0; border-radius: 14px; background: var(--card, #1c1926); }
.venue-manual[hidden] { display: none; }
.venue-manual { display: grid; gap: 10px; }

/* Pré-remplissage automatique */
.pro-lookup { background: var(--surface-2); border-radius: 16px; padding: 12px; display: grid; gap: 8px; }
.pro-lookup summary { cursor: pointer; font-weight: 800; }
.pro-lookup[open] { gap: 10px; }
.pro-lookup .search-row { display: flex; gap: 8px; }
.pro-lookup .search-row input { flex: 1; min-width: 0; }
.lookup-results { display: grid; gap: 6px; }
.lookup-hit { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.lookup-hit img, .lookup-hit .ent-ico { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.lookup-hit span:last-child { display: grid; min-width: 0; }
.lookup-hit small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup-ok { color: var(--like); font-weight: 700; margin: 0; font-size: 14px; }

#sheet-sc { display: grid; gap: 8px; }
#sheet-sc .btn { justify-self: start; }
.sc-player { width: 100%; height: 166px; border: 0; border-radius: 12px; }

/* Compte (connexion par e-mail) */
.account-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 4px 0 12px; border-radius: 16px; background: var(--surface-2); }
.account-card span { display: grid; gap: 2px; min-width: 0; }
.account-card small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.account-card.on span { color: var(--like); font-weight: 700; }
.account-card .btn { flex: none; }
.ts-box { min-height: 0; }
.ts-box:not(:empty) { min-height: 66px; }
.code-input { font-size: 24px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }

/* Signaler, pages légales, reprise d'une fiche */
.report-link { justify-self: center; color: var(--muted); font-size: 13px; text-decoration: underline; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; margin-top: 8px; }
.legal-links a { color: var(--muted); }
.legal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; margin: 6px 0 20px; }
.legal-actions .link-btn { color: var(--muted); text-decoration: underline; font-size: 13px; }
.legal-actions .danger-link { color: var(--nope); }
.report-kinds { display: grid; gap: 6px; }
.report-kind { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.report-kind input { margin-top: 4px; accent-color: var(--accent); }
.report-kind span { display: grid; }
.report-kind small { color: var(--muted); font-size: 12px; }
.report-kind:has(input:checked) { outline: 2px solid var(--accent); }
.claim-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line); }
.claim-box p { margin: 0; }
.claim-box small { color: var(--muted); }
.claim-box .btn { justify-self: start; }
.claim-choices { display: grid; gap: 8px; }
.pro-report { padding: 10px 12px; border-radius: 12px; background: #3a1d24; display: grid; gap: 4px; }
.pro-report p { margin: 0; }
.share-empty { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.share-empty p { margin: 0; }

/* Import d'agenda */
.agenda-out { display: grid; gap: 10px; }
.agenda-list { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.agenda-row { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.agenda-row.exists { opacity: .6; }
.agenda-row:has(.agenda-check input:not(:checked)) .text-input { opacity: .5; }
.agenda-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.agenda-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pro-form .search-row { position: static; display: flex; gap: 8px; margin: 0; padding: 0; background: none; }
.pro-form .search-row .text-input { flex: 1; min-width: 0; }

/* Organisation d'une date */
.org-open { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.org-pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.org-pill.option { background: #4a3b10; color: #f7c948; }
.org-pill.confirmed { background: #123a2a; color: var(--like); }
.org-pill.contract { background: #10324a; color: #4cc9f0; }
.org-pill.done { background: var(--surface-2); color: var(--text); }
.org-pill.cancelled { background: #4a1420; color: var(--nope); }
.org-pill.private { background: var(--surface-2); color: var(--muted); }
.org-status { display: flex; flex-wrap: wrap; gap: 6px; }
.org-status input { position: absolute; opacity: 0; pointer-events: none; }
.org-status span { display: block; padding: 8px 12px; border-radius: 99px; background: var(--surface-2); font-weight: 700; font-size: 13px; cursor: pointer; }
.org-status input:checked + span { background: var(--accent); color: #fff; }
.org-rows { display: grid; gap: 10px; }
.org-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.org-row-act { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.org-row-act label.chip { margin-right: auto; display: inline-flex; gap: 6px; align-items: center; }
.org-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.org-task { display: flex; gap: 6px; align-items: center; }
.org-task label { flex: 1; display: flex; gap: 8px; align-items: center; }
.org-task input[type=checkbox], .org-row-act input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.org-task:has(input:checked) .text-input { text-decoration: line-through; color: var(--muted); }
.org-file { display: flex; gap: 6px; align-items: center; }
.org-file .text-input { flex: 1; min-width: 0; }
.roadsheet { white-space: pre-wrap; font: 13px/1.5 ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 12px; border-radius: 14px; max-height: 50vh; overflow: auto; margin: 0; }
@media (max-width: 420px) { .org-row { grid-template-columns: 1fr; } .org-times { grid-template-columns: 1fr 1fr; } }
.pro-ticket svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.alarm-box { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.alarm-box summary { cursor: pointer; font-weight: 700; }
.alarm-box .btn { justify-self: start; }

/* Setlist et plan de salle (fiche) */
#sheet-setlist { display: grid; gap: 8px; }
.setlist-top { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.setlist-top li { display: flex; justify-content: space-between; gap: 10px; }
.setlist-top small { color: var(--muted); font-weight: 700; }
.setlist-last summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.setlist-last ol { padding-left: 22px; margin-top: 6px; display: grid; gap: 3px; }
.venue-plan { display: grid; gap: 8px; }
.seatmap { border-radius: 14px; overflow: hidden; background: #fff; }
.seatmap img { width: 100%; display: block; }

/* Section « L'artiste » de la fiche */
#sheet-artist { display: grid; gap: 10px; }
.about-facts .chip { cursor: default; font-weight: 600; font-size: 13px; padding: 6px 12px; }

/* Disponibilité des places */
.tag.avail.no { background: rgba(255, 77, 109, .9); color: #fff; }
.tag.avail.warn { background: rgba(247, 179, 43, .92); color: #1a1205; }
.avail-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.avail-dot.no { background: #ff4d6d; }
.avail-dot.warn { background: #f7b32b; }
.avail-dot.ok { background: #3ddc84; }
.avail-txt { font-weight: 700; }
.avail-txt.no { color: #ff6b85; }
.avail-txt.warn { color: #f7b32b; }
.select-small { width: auto; flex: none; padding: 8px 10px; font-size: 14px; color-scheme: dark; }
.yt-unmute {
  position: absolute; left: 14px; top: 14px; z-index: 8; padding: 8px 12px; border-radius: 999px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px);
}

/* ================= Carte : rechercher dans la zone ================= */
.map-search {
  position: absolute; z-index: 800; top: 12px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 14px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.map-search svg { width: 17px; height: 17px; color: var(--accent); }
.map-search:disabled { opacity: .7; }
