/* Compléments pour la version site : navigation, pages série, explorateur, roulette, carte des notes. */
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; padding-bottom: 40px; }
.logo { text-decoration: none; color: var(--fg); }
.pill { text-decoration: none; color: var(--fg); }
.pill.on, .pill[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.icon { padding: 9px 11px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 12px/1 var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; pointer-events: none; }
.search input:focus + .kbd, .search input:not(:placeholder-shown) + .kbd { display: none; }
footer p { margin: 0; max-width: 80ch; }
.card { text-decoration: none; color: var(--fg); }

/* Lueur d'ambiance tirée de l'affiche */
:root { --tint: 255, 200, 69; }
.glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(70% 50% at 50% -10%, rgba(var(--tint), .22), transparent 70%); transition: background .8s; }

/* Chargement */
.skel { background: linear-gradient(90deg, var(--raise) 0%, var(--line) 50%, var(--raise) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.rail .skel, .grid .skel { aspect-ratio: 2 / 3; }
.err { padding: 18px; border-radius: var(--r); background: var(--raise); color: var(--muted); }
.ep-badge { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--bulb); color: var(--bulb-ink); font-variant-numeric: tabular-nums; }
.hero .bg, .show-top .bg { transition: background-image .5s; }

/* Bandeau humeur sur l'accueil */
.moods-band { margin-top: 36px; padding: clamp(20px, 3.5vw, 34px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.moods-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.moods-band p { color: var(--muted); margin: 6px 0 0; }
.mini-moods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Page série */
.show-top { position: relative; overflow: hidden; border-radius: 22px; margin-top: 14px; isolation: isolate; background: var(--raise); }
.show-top .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.3); opacity: .5; z-index: -2; }
.show-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 75%, transparent) 100%); z-index: -1; }
.show-in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); padding: clamp(20px, 4vw, 40px); align-items: end; }
.show-in .poster { box-shadow: 0 24px 60px -20px var(--shade); }
.show-in h1 { font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.show-in .orig { color: var(--muted); font-size: 14px; margin-top: 8px; }
.summary { max-width: 65ch; font-size: 16px; margin: 16px 0 0; }
.summary small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 14px; background: none; border: 0; cursor: pointer; padding: 0; }
.back:hover { color: var(--fg); }

/* Chiffres clés de la série */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.fact { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fact .k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.fact .v { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact .d { color: var(--muted); font-size: 13px; margin-top: 4px; }
.fact.next { border-color: var(--bulb); }
.fact.next .v { color: var(--bulb-text); }

.sec { margin-top: 36px; }
.sec > h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sec > .sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }

/* Carte des notes */
.heat-wrap { overflow-x: auto; margin-top: 14px; padding-bottom: 6px; }
.heat { display: grid; gap: 4px; width: max-content; font-variant-numeric: tabular-nums; }
.heat .lab { font-size: 12px; color: var(--muted); display: grid; place-items: center; font-weight: 600; }
.heat .lab.row { justify-content: end; padding-right: 6px; }
.heat .cell { width: 38px; height: 30px; border-radius: 6px; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 0; cursor: pointer; padding: 0; transition: transform .12s; }
.heat .cell:hover, .heat .cell:focus-visible { transform: scale(1.12); }
.heat .cell.none { background: var(--raise); color: var(--muted); cursor: default; }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend .bar { width: 160px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5B4A8A, #8E5FA8, #D9776E, #F2A93B, #FFD84D); }
.best { margin-top: 10px; font-size: 14px; }
.best b { color: var(--bulb-text); }

.seasons { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 6px; }
.eps { display: grid; gap: 10px; margin-top: 8px; }
.ep { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.ep.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { border-color: var(--bulb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bulb) 40%, transparent); } }
.ep .thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--raise); max-width: 100%; }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep h3 { font-family: var(--body); font-size: 16px; font-weight: 600; }
.ep .num { color: var(--bulb-text); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; }
.ep .when { color: var(--muted); font-size: 13px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ep p { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.cast { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 14px; overflow-x: auto; padding-block: 14px 8px; }
.person { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person .ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--raise); max-width: 100%; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person b { font-size: 13px; line-height: 1.25; }
.person span { font-size: 12px; color: var(--muted); line-height: 1.25; }

/* Explorer */
.page-head { margin-top: 26px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.page-head p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.progress { height: 3px; border-radius: 3px; background: var(--raise); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; background: var(--bulb); transition: width .3s; }
.more { display: flex; justify-content: center; margin-top: 18px; }

/* Roulette */
.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 22px; }
.mood { text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, border-color .15s; }
.mood:hover { transform: translateY(-2px); border-color: var(--muted); }
.mood[aria-pressed="true"] { border-color: var(--bulb); box-shadow: 0 0 0 2px var(--bulb) inset; }
.mood .e { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.mood span { color: var(--muted); font-size: 13px; }
.stage { margin-top: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(20px, 4vw, 40px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.stage .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4); opacity: .35; z-index: -1; }
.reel { width: clamp(150px, 22vw, 240px); aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: var(--raise); box-shadow: 0 24px 60px -24px var(--shade); max-width: 100%; position: relative; }
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel.spinning img { filter: blur(1.5px) brightness(.9); }
.reel.landed { animation: land .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes land { from { transform: scale(.92) rotate(-2deg); } to { transform: none; } }
.stage h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.stage p { max-width: 58ch; margin: 12px 0 0; }
.spin-btn { font-size: 17px; padding: 14px 22px; }

@media (max-width: 760px) {
  .nav { width: 100%; }
  .nav .pill { flex: 1; justify-content: center; }
  .nav .pill.icon { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .show-in { grid-template-columns: 1fr; }
  .show-in .poster { width: 150px; }
  .ep { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .moods-band, .stage { grid-template-columns: 1fr; }
  .kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { .skel, .reel.landed, .ep.flash { animation: none; } .glow { transition: none; } }
a.chip, a.tag { text-decoration: none; color: var(--fg); }
@media (max-width: 760px) {
  header .wrap { gap: 8px 10px; padding-block: 8px; }
  .nav { flex-wrap: nowrap; gap: 6px; }
  .nav .pill { padding: 7px 8px; font-size: 13px; gap: 5px; }
  .nav .pill svg { display: none; }
  .nav .pill.icon svg { display: block; }
}

/* Barre d'onglets façon appli, sur téléphone */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  header .wrap { flex-wrap: nowrap; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
  .tabbar [aria-current="page"] { color: var(--fg); }
  .tabbar [aria-current="page"] svg { stroke: var(--bulb-text); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .install, .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Invitation à installer + messages */
.install { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(520px, calc(100% - 24px));
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px var(--shade); }
.install img { border-radius: 11px; }
.install b { display: block; font-family: var(--display); font-size: 16px; }
.install span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.install .btn { padding: 10px 14px; }
.install .close { position: static; width: 32px; height: 32px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; padding: 11px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px -14px var(--shade); }
@media (max-width: 760px) {
  .install, .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .install { grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; padding: 10px; }
  .install img { width: 40px; height: 40px; }
  .install span { font-size: 12px; }
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } .grid .card .t { font-size: 13px; } .grid .card .s { font-size: 12px; } }

/* ---------- Logo ---------- */
.logo { align-items: center; gap: 6px; }
.logo .sofa { flex: none; margin-right: 2px; }
.logo i { align-self: flex-end; margin-bottom: 7px; }

/* ---------- Où la regarder ---------- */
.where-box { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); max-width: 560px; }
.where-k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.where-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.plat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.plat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--pc); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.plat-chip i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .85; }
.plat-chip em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.22); padding: 2px 6px; border-radius: 5px; }
.link { background: none; border: 0; padding: 0; color: var(--bulb-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tm-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tm-group span { font-size: 13px; color: var(--muted); min-width: 110px; }
.tm-group img { border-radius: 9px; display: block; }

/* ---------- Suivi des épisodes ---------- */
.pbar { height: 6px; border-radius: 6px; background: var(--raise); overflow: hidden; margin-top: 8px; }
.pbar i { display: block; height: 100%; background: var(--bulb); border-radius: 6px; transition: width .4s; }
.prog-fact .v { color: var(--fg); }
.ep { grid-template-columns: 168px minmax(0, 1fr) auto; }
.ep.is-seen { opacity: .62; }
.ep.is-seen h3 { text-decoration: line-through; text-decoration-color: var(--muted); }
.seen-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; flex: none; }
.seen-btn:hover { border-color: var(--bulb); color: var(--fg); }
.seen-btn:active { transform: scale(.9); }
.seen-btn[aria-pressed="true"] { background: var(--bulb); border-color: var(--bulb); color: var(--bulb-ink); }
.seen-btn.big { width: 48px; height: 48px; }
.ep .upto { font-size: 13px; margin-top: 6px; display: inline-block; }
.ep.is-seen .upto { display: none; }
.soon { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line); padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.season-tools { margin-top: 4px; }
.heat .cell.seen { box-shadow: inset 0 0 0 2px var(--fg); position: relative; }
.heat .cell.seen::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.seen-key { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.seen-key::before { content: ""; width: 14px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--fg); }

/* Ma liste : à suivre */
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 14px; }
.up { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.up-img { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--raise); display: block; }
.up-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-main { min-width: 0; }
.up-t { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--fg); text-decoration: none; }
.up-ep { font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-ep b { color: var(--bulb-text); }
.up-d { font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.new { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: var(--bulb); color: var(--bulb-ink); vertical-align: 2px; }
.n.hot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bulb) 45%, transparent); }
.tabbar .hot { position: relative; }
.tabbar .hot::after { content: ""; position: absolute; top: 4px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bulb); }

/* Transfert */
#transferDlg { border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--fg); width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px var(--shade); }
#transferDlg::backdrop { background: var(--shade); }
.transfer { padding: 26px; position: relative; text-align: center; }
.transfer h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.transfer p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.qr { width: 220px; height: 220px; margin: 18px auto 4px; background: #fff; border-radius: 14px; padding: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.transfer .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--fg); }

@media (max-width: 640px) {
  .ep { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .ups { grid-template-columns: 1fr; }
  .where-box { max-width: none; }
}

/* ---------- Agenda ---------- */
.agenda { display: grid; gap: 22px; margin-top: 18px; }
.day h3 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.day.today h3 { color: var(--bulb-text); }
.slot { display: grid; grid-template-columns: 50px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-top: 8px; }
.hour { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); font-size: 14px; }
.slot-img { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--raise); display: block; }
.slot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-main { min-width: 0; display: flex; flex-direction: column; }
.slot-main a { font-weight: 700; color: var(--fg); text-decoration: none; }
.slot-main span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-main b { color: var(--bulb-text); }

/* ---------- Stats ---------- */
.wrapped { margin-top: 22px; padding: clamp(24px, 4vw, 44px); border-radius: 22px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(var(--tint), .45), transparent 60%), linear-gradient(135deg, #241B3A, #110F18); color: #F2EFF8; }
.wrapped .w-k { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: #FFD36E; }
.wrapped .w-prof { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 7vw, 72px); letter-spacing: -.035em; line-height: 1; margin-top: 8px; }
.wrapped .w-big { font-size: clamp(18px, 2.4vw, 24px); margin-top: 18px; }
.wrapped .w-big b { font-family: var(--display); font-size: 1.6em; color: #FFD36E; font-variant-numeric: tabular-nums; }
.wrapped .w-d { color: #B9B2CC; margin-top: 4px; }
.wrapped .btn { margin-top: 22px; }
.stat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.bars { display: grid; gap: 10px; margin-top: 14px; }
.barrow { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) 74px; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); font-size: 14px; }
.bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bt { height: 12px; border-radius: 6px; background: var(--raise); overflow: hidden; }
.bt i { display: block; height: 100%; border-radius: 6px; background: var(--bulb); }
.bv { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Ce soir ---------- */
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; max-width: 640px; }
.slot-btn { text-align: center; padding: 16px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; }
.slot-btn[aria-pressed="true"] { background: var(--bulb); border-color: var(--bulb); color: var(--bulb-ink); }
@media (max-width: 520px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .slot { grid-template-columns: 44px 38px minmax(0, 1fr) auto; gap: 10px; } .barrow { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 64px; } }
.summary p { margin: 0; }
.summary small a { color: var(--bulb-text); }
.cert { border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-weight: 700; font-size: 12px; }

/* ---------- Mes plateformes ---------- */
.toolbar-r { display: flex; gap: 8px; flex-wrap: wrap; }
.plat-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 15px var(--body); cursor: pointer; text-align: left; }
.pick .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.pick[aria-pressed="true"] { border-color: var(--bulb); }
.pick[aria-pressed="true"] .box { background: var(--bulb); border-color: var(--bulb); }
.pick[aria-pressed="true"] .box::after { content: "✓"; color: var(--bulb-ink); font-size: 13px; font-weight: 800; }
#platDlg, #wrapDlg { border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--fg); width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px var(--shade); }
#platDlg::backdrop, #wrapDlg::backdrop { background: var(--shade); }
.mine-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--free); background: var(--free-bg); padding: 3px 8px; border-radius: 6px; letter-spacing: 0; text-transform: none; }
.plat-row { align-items: center; }
.tm-group a.mine img { box-shadow: 0 0 0 3px var(--free); }

/* ---------- Notes ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 0 1px; cursor: pointer; color: var(--line); font-size: 20px; line-height: 1; transition: transform .1s, color .1s; }
.stars.big button { font-size: 28px; }
.stars.small button { font-size: 17px; }
.stars button[aria-pressed="true"] { color: var(--bulb); }
.stars button:hover { transform: scale(1.15); }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.mynote { display: flex; align-items: center; gap: 10px; }
.fnotes { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fnote b { color: var(--fg); font-weight: 600; }
.fnote { color: var(--bulb-text); }
.ep-note { margin-top: 6px; }

/* ---------- Groupes ---------- */
.gform { display: grid; gap: 12px; max-width: 420px; margin-top: 14px; }
.gform label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.gform input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.glink { text-decoration: none; color: var(--fg); grid-template-columns: 48px minmax(0, 1fr); }
.gav { width: 48px; height: 48px; border-radius: 14px; background: var(--bulb); color: var(--bulb-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.gmembers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gm { padding: 4px 10px; border-radius: 999px; background: var(--raise); font-size: 14px; }
.gm.me { background: var(--bulb); color: var(--bulb-ink); font-weight: 600; }
.vote-grid { display: grid; gap: 10px; margin-top: 14px; }
.vote { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.vote.lead { border-color: var(--bulb); box-shadow: 0 0 0 1px var(--bulb); }
.vote-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vote-btn { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.vote-btn[aria-pressed="true"] { background: var(--bulb); border-color: var(--bulb); color: var(--bulb-ink); }
.vcount { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.link.small { font-size: 12px; color: var(--muted); }
.voters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.voters span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--free-bg); color: var(--free); font-weight: 600; }
#groupDlg { border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--fg); width: min(420px, calc(100vw - 32px)); }
#groupDlg::backdrop { background: var(--shade); }
.sum-wait { display: grid; gap: 8px; max-width: 560px; }
.sum-wait .skel { height: 14px; border-radius: 6px; }
.sum-wait .skel:last-child { width: 70%; }
