/* ============================================================
   OTAKAI — views.css
   Styles propres à chaque écran
   ============================================================ */

/* ---------- Accueil : bannière ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--border); padding: var(--sp-8); background: linear-gradient(130deg, var(--accent-soft), transparent 55%), var(--surface); }
.hero__glow { position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: var(--gradient); filter: blur(80px); opacity: .3; pointer-events: none; }
.hero__inner { position: relative; display: flex; gap: var(--sp-6); align-items: center; flex-wrap: wrap; }
.hero h1 { margin-bottom: 6px; }
.hero p { color: var(--text-dim); max-width: 52ch; }
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.hero__side { display: flex; gap: var(--sp-4); margin-left: auto; align-items: center; }

.streak { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); min-width: 96px; }
.streak__flame { font-size: 1.7rem; animation: flameFlicker 2.4s ease-in-out infinite; }
.streak__count { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.streak__label { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }
.streak-week { display: flex; gap: 5px; margin-top: var(--sp-2); }
.streak-week__day { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: .62rem; font-weight: 700; background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border); }
.streak-week__day--on { background: var(--gradient); color: var(--on-accent); border-color: transparent; }
.streak-week__day--today { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Niveau / XP ---------- */
.levelcard { display: flex; align-items: center; gap: var(--sp-4); }
.levelcard__info { min-width: 0; flex: 1; }
.levelcard__title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.levelcard__xp { font-size: .74rem; color: var(--text-mute); }
.xpbar { margin-top: 7px; }

/* ---------- Quêtes ---------- */
.quest { display: flex; gap: var(--sp-3); align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.quest:last-child { border-bottom: 0; padding-bottom: 0; }
.quest__check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: 0 0 auto; margin-top: 2px; color: transparent; transition: all var(--t-base); }
.quest__check svg { width: 14px; height: 14px; }
.quest--done .quest__check { background: var(--gradient); border-color: transparent; color: var(--on-accent); }
.quest__main { flex: 1; min-width: 0; }
.quest__title { font-size: .86rem; font-weight: 600; }
.quest--done .quest__title { color: var(--text-mute); text-decoration: line-through; }
.quest__meta { font-size: .72rem; color: var(--text-mute); display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.quest__reward { font-size: .72rem; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ---------- Feed ---------- */
.composer { display: flex; gap: var(--sp-3); }
.composer__main { flex: 1; min-width: 0; }
.composer__input { width: 100%; min-height: 54px; max-height: 260px; resize: none; background: none; border: 0; outline: none; font-size: 1rem; line-height: 1.6; padding: 8px 0; }
.composer__input::placeholder { color: var(--text-mute); }
.composer__toolbar { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.composer__count { font-size: .74rem; color: var(--text-mute); margin-left: auto; font-variant-numeric: tabular-nums; }
.composer__count--warn { color: var(--warn); }
.composer__count--over { color: var(--bad); }
.composer__attach { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); padding: var(--sp-3); border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface); }

.post { display: flex; flex-direction: column; gap: var(--sp-3); }
.post__head { display: flex; align-items: flex-start; gap: 10px; }
.post__body { font-size: .95rem; line-height: 1.66; white-space: pre-wrap; word-break: break-word; }
.post__body .mention, .post__body .hashtag { color: var(--accent); font-weight: 600; }
.post__actions { display: flex; align-items: center; gap: var(--sp-1); margin-top: 2px; }
.post__action { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-full); color: var(--text-mute); font-size: .8rem; font-weight: 600; transition: all var(--t-fast); }
.post__action svg { width: 16px; height: 16px; }
.post__action:hover { background: var(--surface-2); color: var(--text); }
.post__action--on { color: var(--accent); }
.post__action--on svg { animation: pop var(--t-spring); }
.post__ref { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--t-fast); }
.post__ref:hover { border-color: var(--border-strong); }
.post__ref .poster { width: 54px; flex: 0 0 54px; }
.post__ref-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.post__art { aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; position: relative; }
.post__art-label { position: absolute; bottom: 10px; left: 12px; font-size: .74rem; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.post__type { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--accent); }

.poll { display: flex; flex-direction: column; gap: 7px; }
.poll__opt { position: relative; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; cursor: pointer; transition: border-color var(--t-fast); font-size: .88rem; }
.poll__opt:hover { border-color: var(--border-strong); }
.poll__fill { position: absolute; inset: 0; width: 0; background: var(--accent-soft); transition: width var(--t-slow); }
.poll__row { position: relative; display: flex; justify-content: space-between; gap: 10px; }
.poll__opt--picked { border-color: color-mix(in oklab, var(--accent) 55%, transparent); font-weight: 600; }
.poll__meta { font-size: .74rem; color: var(--text-mute); }

.comments { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.comment { display: flex; gap: 9px; }
.comment__bubble { background: var(--surface-2); border-radius: var(--r-md); padding: 8px 12px; font-size: .86rem; min-width: 0; }
.comment__author { font-weight: 700; font-size: .8rem; margin-bottom: 1px; }
.comment-form { display: flex; gap: 9px; align-items: center; }

/* ---------- Découverte ---------- */
.filters { display: flex; flex-direction: column; gap: var(--sp-3); }
.filters__row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.searchbar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 var(--sp-4); border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); }
.searchbar svg { width: 18px; height: 18px; color: var(--text-mute); }
.searchbar input { flex: 1; background: none; border: 0; outline: none; font-size: .95rem; }
.results-count { font-size: .8rem; color: var(--text-mute); }

/* ---------- Fiche anime ---------- */
.detail-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.detail-hero__bg { position: absolute; inset: 0; filter: blur(2px) saturate(1.2); transform: scale(1.1); }
.detail-hero__veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, color-mix(in oklab, var(--bg) 82%, transparent) 45%, color-mix(in oklab, var(--bg) 40%, transparent)); }
.detail-hero__inner { position: relative; display: flex; gap: var(--sp-6); padding: var(--sp-6); align-items: flex-end; flex-wrap: wrap; }
.detail-hero__poster { width: 170px; flex: 0 0 170px; box-shadow: var(--shadow-3); }
.detail-hero__main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.detail-hero__title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem); }
.detail-hero__sub { color: var(--text-dim); font-size: .9rem; }
.detail-hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.detail-meta { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.detail-meta__item { font-size: .8rem; }
.detail-meta__label { color: var(--text-mute); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; display: block; }

.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 7px; }
.episode { aspect-ratio: 1; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--text-dim); transition: all var(--t-fast); cursor: pointer; }
.episode:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.episode--seen { background: var(--gradient); color: var(--on-accent); border-color: transparent; }
.episode--next { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.char-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.char-card__face { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; border: 2px solid var(--border); }
.char-card__name { font-size: .8rem; font-weight: 600; }
.char-card__role { font-size: .7rem; color: var(--text-mute); }

.review { display: flex; flex-direction: column; gap: var(--sp-2); }
.stars { display: inline-flex; gap: 2px; color: var(--warn); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.stars__off svg { fill: none; }
.stars--input svg { width: 24px; height: 24px; cursor: pointer; transition: transform var(--t-fast); }
.stars--input svg:hover { transform: scale(1.2); }
.stars__off { color: var(--border-strong); }

/* ---------- Watchlist ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: var(--sp-4); align-items: start; }
.board__col { display: flex; flex-direction: column; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-3); min-height: 120px; }
.board__col--over { border-color: var(--accent); background: var(--accent-soft); }
.board__head { display: flex; align-items: center; gap: 8px; padding: 4px 6px; }
.board__dot { width: 9px; height: 9px; border-radius: 50%; }
.board__title { font-size: .84rem; font-weight: 700; }
.board__count { margin-left: auto; font-size: .74rem; color: var(--text-mute); background: var(--surface-2); padding: 1px 8px; border-radius: var(--r-full); }

.listitem { display: flex; gap: 11px; padding: 9px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid transparent; cursor: grab; transition: all var(--t-fast); }
.listitem:hover { border-color: var(--border-strong); }
.listitem--drag { opacity: .4; }
.listitem .poster { width: 44px; flex: 0 0 44px; }
.listitem__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.listitem__title { font-size: .84rem; font-weight: 600; line-height: 1.3; }
.listitem__row { display: flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--text-mute); }
.listitem__btn { width: 24px; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: var(--text-dim); }
.listitem__btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ---------- Clubs ---------- */
.club-card { display: flex; flex-direction: column; gap: 0; overflow: hidden; padding: 0; }
.club-card__banner { height: 84px; position: relative; }
.club-card__emoji { position: absolute; bottom: -20px; left: var(--sp-4); width: 52px; height: 52px; border-radius: var(--r-md); background: var(--surface-solid); border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.6rem; }
.club-card__body { padding: var(--sp-6) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: 9px; }
.club-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.club-card__desc { font-size: .82rem; color: var(--text-dim); }
.club-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 288px minmax(0, 1fr); height: calc(100vh - var(--topbar-h) - var(--sp-12)); min-height: 480px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.chat__list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--surface-solid); }
.chat__search { padding: var(--sp-3); border-bottom: 1px solid var(--border); }
.chat__threads { overflow-y: auto; flex: 1; padding: var(--sp-2); display: flex; flex-direction: column; gap: 2px; }
.thread { display: flex; gap: 10px; padding: 9px; border-radius: var(--r-md); cursor: pointer; transition: background var(--t-fast); }
.thread:hover { background: var(--surface-2); }
.thread--on { background: var(--accent-soft); }
.thread__main { flex: 1; min-width: 0; }
.thread__top { display: flex; justify-content: space-between; gap: 7px; }
.thread__name { font-size: .86rem; font-weight: 600; }
.thread__time { font-size: .68rem; color: var(--text-mute); white-space: nowrap; }
.thread__preview { font-size: .78rem; color: var(--text-mute); }
.thread__unread { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .62rem; font-weight: 800; display: grid; place-items: center; align-self: center; }

.chat__panel { display: flex; flex-direction: column; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 11px; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); background: var(--surface-solid); }
.chat__msgs { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: 11px; }
.msg { display: flex; gap: 9px; max-width: 78%; animation: fadeUp var(--t-base) both; }
.msg--me { align-self: flex-end; flex-direction: row-reverse; }
.msg__bubble { padding: 9px 13px; border-radius: 16px; background: var(--surface-2); font-size: .9rem; line-height: 1.5; border-bottom-left-radius: 5px; word-break: break-word; }
.msg--me .msg__bubble { background: var(--gradient); color: var(--on-accent); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.msg__time { font-size: .64rem; color: var(--text-mute); margin-top: 3px; }
.msg--me .msg__time { text-align: right; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface-2); border-radius: 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-mute); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat__form { display: flex; gap: 10px; padding: var(--sp-3); border-top: 1px solid var(--border); background: var(--surface-solid); align-items: flex-end; }
.chat__input { flex: 1; max-height: 120px; }
@media (max-width: 900px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--topbar-h) - 120px); }
  .chat__list { display: none; }
  .chat--list .chat__list { display: flex; border-right: 0; }
  .chat--list .chat__panel { display: none; }
}

/* ---------- Classement ---------- */
.rank { display: flex; align-items: center; gap: var(--sp-3); padding: 11px var(--sp-3); border-radius: var(--r-md); transition: background var(--t-fast); }
.rank:hover { background: var(--surface-2); }
.rank--me { background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
.rank__pos { width: 34px; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text-mute); text-align: center; flex: 0 0 auto; }
.rank__pos--1 { color: #ffd76a; font-size: 1.3rem; }
.rank__pos--2 { color: #d7dbe6; font-size: 1.2rem; }
.rank__pos--3 { color: #e0a878; font-size: 1.15rem; }
.rank__main { flex: 1; min-width: 0; }
.rank__score { font-family: var(--font-display); font-weight: 800; font-size: .96rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); align-items: end; }
.podium__slot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--sp-4) var(--sp-2); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.podium__slot--1 { background: linear-gradient(180deg, color-mix(in oklab, #ffd76a 22%, transparent), var(--surface-2)); border-color: color-mix(in oklab, #ffd76a 40%, transparent); padding-top: var(--sp-6); }
.podium__medal { font-size: 1.5rem; }

/* ---------- Quiz ---------- */
.quiz { display: flex; flex-direction: column; gap: var(--sp-5); }
.quiz__stage { position: relative; overflow: hidden; padding: var(--sp-8) var(--sp-6); border-radius: var(--r-xl); border: 1px solid var(--border); background: linear-gradient(150deg, var(--accent-soft), transparent 60%), var(--surface); text-align: center; }
.quiz__timer { height: 6px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.quiz__timer-bar { height: 100%; background: var(--gradient); transition: width 1s linear; }
.quiz__timer-bar--low { background: linear-gradient(90deg, var(--bad), var(--warn)); }
.quiz__q { font-family: var(--font-display); font-size: clamp(1.1rem, .9rem + 1.2vw, 1.6rem); font-weight: 700; margin: var(--sp-4) 0; }
.quiz__answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.quiz__answer { padding: var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); text-align: left; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 11px; transition: all var(--t-fast); }
.quiz__answer:hover:not([disabled]) { border-color: var(--accent); transform: translateY(-2px); }
.quiz__answer--good { background: color-mix(in oklab, var(--good) 22%, transparent); border-color: var(--good); }
.quiz__answer--bad { background: color-mix(in oklab, var(--bad) 22%, transparent); border-color: var(--bad); }
.quiz__key { width: 26px; height: 26px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-size: .76rem; font-weight: 800; flex: 0 0 auto; }
.quiz__combo { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.quiz__combo--hot { animation: pop var(--t-spring); }

/* ---------- Watch party ---------- */
.party { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-4); align-items: start; }
@media (max-width: 900px) { .party { grid-template-columns: minmax(0, 1fr); } }
.player { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; }
.player__scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(rgba(255,255,255,.045) 0 1px, transparent 1px 4px); pointer-events: none; }
.player__state { position: relative; text-align: center; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-3); background: linear-gradient(to top, rgba(4,4,10,.88), transparent); display: flex; align-items: center; gap: var(--sp-3); }
.player__time { font-size: .74rem; color: #fff; font-variant-numeric: tabular-nums; }
.party__chat { display: flex; flex-direction: column; height: 440px; }
.party__msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding-right: 4px; }
.party__msg { font-size: .84rem; line-height: 1.45; animation: fadeUp var(--t-base) both; }
.party__msg b { color: var(--accent); }
.reactions { display: flex; gap: 7px; flex-wrap: wrap; }
.reaction { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 1.15rem; display: grid; place-items: center; transition: transform var(--t-fast); }
.reaction:hover { transform: translateY(-3px) scale(1.1); }
.floaty { position: fixed; pointer-events: none; font-size: 1.6rem; z-index: var(--z-fx); animation: floatUp 2.2s ease-out forwards; }
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(.6); } 30% { transform: translateY(-40px) scale(1.15); } 100% { opacity: 0; transform: translateY(-180px) scale(1) rotate(18deg); } }

/* ---------- Profil ---------- */
.profile-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.profile-hero__banner { height: 168px; position: relative; }
.profile-hero__body { padding: 0 var(--sp-6) var(--sp-5); display: flex; gap: var(--sp-4); align-items: flex-end; flex-wrap: wrap; margin-top: -52px; }
.profile-hero__main { flex: 1 1 260px; min-width: 0; padding-bottom: 4px; }
.profile-hero__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.profile-hero__handle { color: var(--text-mute); font-size: .88rem; }
.profile-hero__bio { font-size: .9rem; color: var(--text-dim); margin-top: 7px; max-width: 60ch; }
.profile-hero__actions { display: flex; gap: var(--sp-2); align-items: center; padding-bottom: 4px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: var(--sp-3); }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: var(--sp-4) var(--sp-2); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); position: relative; overflow: hidden; }
.badge--locked { opacity: .45; filter: grayscale(1); }
.badge--new::after { content: "NOUVEAU"; position: absolute; top: 7px; right: -26px; transform: rotate(38deg); background: var(--gradient); color: var(--on-accent); font-size: .52rem; font-weight: 800; padding: 2px 26px; }
.badge__icon { font-size: 1.9rem; }
.badge__name { font-size: .76rem; font-weight: 700; }
.badge__desc { font-size: .66rem; color: var(--text-mute); line-height: 1.35; }

.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heatmap__cell { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); }
.heatmap__cell[data-lvl="1"] { background: color-mix(in oklab, var(--accent) 28%, var(--surface-2)); }
.heatmap__cell[data-lvl="2"] { background: color-mix(in oklab, var(--accent) 52%, var(--surface-2)); }
.heatmap__cell[data-lvl="3"] { background: color-mix(in oklab, var(--accent) 76%, var(--surface-2)); }
.heatmap__cell[data-lvl="4"] { background: var(--accent); }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bars__row { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 10px; font-size: .78rem; }
.bars__track { height: 9px; border-radius: var(--r-full); background: var(--surface-2); overflow: hidden; }
.bars__fill { height: 100%; border-radius: inherit; background: var(--gradient); }

/* ---------- Roulette ---------- */
.roulette { display: grid; place-items: center; gap: var(--sp-4); text-align: center; padding: var(--sp-6); }
.roulette__window { width: 100%; max-width: 420px; height: 210px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border-strong); position: relative; background: var(--surface-2); }
.roulette__strip { display: flex; flex-direction: column; transition: transform 2.6s cubic-bezier(.12, .8, .1, 1); }
.roulette__cell { height: 70px; display: flex; align-items: center; gap: 11px; padding: 0 var(--sp-4); border-bottom: 1px solid var(--border); }
.roulette__cell .poster { width: 34px; flex: 0 0 34px; }
.roulette__marker { position: absolute; inset: 70px 0 70px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); pointer-events: none; background: var(--accent-soft); }

/* ---------- Notifications ---------- */
.notif { display: flex; gap: 11px; padding: 12px var(--sp-3); border-radius: var(--r-md); transition: background var(--t-fast); align-items: flex-start; }
.notif:hover { background: var(--surface-2); }
.notif--unread { background: var(--accent-soft); }
.notif__icon { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-2); font-size: 1rem; }
.notif__text { font-size: .86rem; line-height: 1.45; }
.notif__time { font-size: .7rem; color: var(--text-mute); margin-top: 2px; }

/* ---------- Réglages ---------- */
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting__main { min-width: 0; }
.setting__title { font-weight: 600; font-size: .92rem; }
.setting__desc { font-size: .8rem; color: var(--text-mute); }
.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; position: relative; transition: transform var(--t-fast); }
.swatch:hover { transform: scale(1.12); }
.swatch--on { border-color: var(--text); }
.swatch--on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .82rem; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---------- Rail droit ---------- */
.trend { display: flex; gap: 11px; align-items: center; padding: 8px 0; }
.trend__rank { font-family: var(--font-display); font-weight: 800; color: var(--text-mute); font-size: .9rem; width: 18px; }
.trend__tag { font-weight: 600; font-size: .86rem; }
.trend__count { font-size: .72rem; color: var(--text-mute); }
.suggest { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.online-list { display: flex; flex-direction: column; gap: 3px; }
.online { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-sm); }
.online:hover { background: var(--surface-2); }
