:root {
  --bg: #14181c;
  --panel: #1c2228;
  --panel-2: #242c34;
  --line: #2c3440;
  --text: #e1e6ea;
  --muted: #8a99a8;
  --accent: #00e054;
  --accent-2: #ff8000;
  --star: #00c030;
  --heart: #ff8000;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; margin: 0; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(20, 24, 28, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: Fraunces, serif; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; color: var(--accent-2); fill: var(--accent); }

.btn { border: 0; border-radius: var(--radius); padding: 9px 16px; font: 600 14px Inter, sans-serif; cursor: pointer; transition: filter .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #0b1a10; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--text); }
.btn.danger { background: transparent; color: #ff6b6b; border: 1px solid #5a2a2a; }
.btn:disabled { opacity: .5; cursor: default; }

main { padding: 28px clamp(16px, 4vw, 48px) 80px; max-width: 1280px; margin: 0 auto; }

/* ---------- home ---------- */
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.home-head h1 { font-size: 28px; }
.home-head .count { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.tools { display: flex; gap: 8px; }
.tools input, .tools select {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius); padding: 7px 10px; font: inherit; font-size: 13px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.card { display: block; }
.poster {
  aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--panel-2);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 20px rgba(0,0,0,.35);
  transition: box-shadow .15s, transform .15s;
  display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 0;
}
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .poster { box-shadow: 0 0 0 3px var(--accent) inset, 0 10px 26px rgba(0,0,0,.5); transform: translateY(-2px); }
.card:hover .poster img { opacity: .9; }
.card .meta { margin-top: 8px; font-size: 13px; }
.card .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.rating-text { color: var(--star); letter-spacing: 1px; }
.heart { color: var(--heart); }

.empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 26px; margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }

/* ---------- review page ---------- */
.backdrop {
  position: relative; margin: -28px calc(-1 * clamp(16px, 4vw, 48px)) 0; height: clamp(220px, 42vw, 460px);
  background-size: cover; background-position: center 20%;
}
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,28,.15) 0%, rgba(20,24,28,.55) 55%, var(--bg) 100%), linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.detail { display: grid; grid-template-columns: 230px 1fr; gap: 36px; margin-top: -120px; position: relative; z-index: 1; }
.detail.no-backdrop { margin-top: 0; }
.detail .poster { width: 100%; }
.detail h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.detail h1 .yr { color: var(--muted); font-weight: 600; font-size: .6em; margin-left: 6px; }
.sub { color: var(--muted); margin: 6px 0 4px; }
.sub b { color: var(--text); font-weight: 600; }
.tagline { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin: 18px 0 6px; }
.plot { max-width: 68ch; color: #c8d1d8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { background: var(--panel-2); color: var(--muted); font-size: 12px; padding: 3px 9px; border-radius: 3px; }

.your-review { margin-top: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; max-width: 760px; }
.your-review .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.your-review .big-stars .none { color: var(--muted); font-size: 14px; letter-spacing: 0; }
.your-review .big-stars { font-size: 22px; color: var(--star); letter-spacing: 2px; }
.your-review .body { white-space: pre-wrap; font-size: 16px; line-height: 1.7; }
.your-review .body.none { color: var(--muted); font-style: italic; }
.review-actions { display: flex; gap: 8px; margin-top: 18px; }

.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 34px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; font-family: Inter, sans-serif; font-weight: 600; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.actor { text-align: center; font-size: 13px; }
.actor .ph { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; background: var(--panel-2) center/cover; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.actor .n { font-weight: 600; }
.actor .c { color: var(--muted); font-size: 12px; }
.ext { margin-top: 14px; font-size: 13px; color: var(--muted); }
.ext a { color: var(--accent); }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.back-link:hover { color: var(--text); }

/* ---------- dialog ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); width: min(680px, 94vw); max-height: 88vh; }
dialog::backdrop { background: rgba(5, 8, 10, .75); backdrop-filter: blur(3px); }
.dialog-inner { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px; max-height: 88vh; overflow: auto; }
.dialog-inner h2 { font-size: 22px; margin-bottom: 14px; }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.close:hover { color: var(--text); }
input[type=search], input[type=date], input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius); padding: 11px 13px; font: inherit;
}
input[type=search] { font-size: 17px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; line-height: 1.6; }

.results { list-style: none; margin: 12px 0 0; padding: 0; }
.results li { display: flex; gap: 14px; padding: 10px; border-radius: 6px; cursor: pointer; align-items: flex-start; }
.results li:hover, .results li.active { background: var(--panel-2); }
.results img, .results .noimg { width: 46px; height: 69px; object-fit: cover; border-radius: 3px; background: var(--panel-2); flex: none; }
.results .rt { font-weight: 600; }
.results .ry { color: var(--muted); font-weight: 400; margin-left: 4px; }
.results .ro { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results .msg { color: var(--muted); cursor: default; }
.results .msg:hover { background: none; }

.picked { display: flex; gap: 18px; margin-bottom: 20px; }
.picked img { width: 96px; border-radius: 4px; flex: none; align-self: flex-start; }
.picked h2 { margin-bottom: 2px; }
.picked .sub { margin: 0 0 8px; font-size: 13px; }
.picked p { margin: 0; font-size: 13px; color: #b9c3cb; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

form label, form .field { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
form label > input, form label > textarea, form .field > .stars { margin-top: 6px; }
.row { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.row input[type=date] { width: auto; color-scheme: dark; }
.like-toggle { display: flex !important; align-items: center; gap: 6px; cursor: pointer; padding-bottom: 10px; user-select: none; }
.like-toggle input { display: none; }
.like-toggle span { font-size: 22px; color: var(--line); transition: color .15s; }
.like-toggle input:checked + span { color: var(--heart); }

.stars { display: flex; align-items: center; gap: 2px; }
.star { position: relative; width: 30px; height: 30px; cursor: pointer; }
.star svg { width: 100%; height: 100%; display: block; }
.star .bg { fill: var(--line); }
.star .fg { fill: var(--star); }
.stars .clear { margin-left: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-transform: none; letter-spacing: 0; }
.actions { display: flex; justify-content: space-between; margin-top: 6px; }

#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 100; }
.toast { background: var(--panel-2); border: 1px solid var(--line); padding: 10px 18px; border-radius: 6px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { border-color: #7a2d2d; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header nav, banner ---------- */
.nav { display: flex; align-items: center; gap: 10px; }
.nav .btn { display: inline-block; white-space: nowrap; }
.nav .short { display: none; }
.brand { white-space: nowrap; }
.btn.small { padding: 4px 10px; font-size: 12px; margin-left: 8px; vertical-align: 1px; }
.nav-user { color: var(--muted); font-weight: 600; font-size: 14px; max-width: 18ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user:hover { color: var(--text); }
.banner {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 10px clamp(16px, 4vw, 48px); background: #2a2213; border-bottom: 1px solid #4a3a1a;
  color: #f0d9a8; font-size: 14px; text-align: center;
}
.banner .btn { padding: 5px 12px; font-size: 13px; color: #f0d9a8; border-color: #6a5426; }

/* ---------- account pages ---------- */
.auth-card { max-width: 420px; margin: 40px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 30px 28px; }
.auth-card h1 { font-size: 26px; margin-bottom: 18px; }
.auth-card .intro, .settings .intro { color: var(--muted); margin: -6px 0 18px; }
.auth-card .intro b, .settings .intro b { color: var(--text); }
.auth-card form input, .settings form input { text-transform: none; letter-spacing: 0; font-size: 15px; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a, .welcome a.link { color: var(--accent); }
.btn.wide { width: 100%; padding: 11px 16px; font-size: 15px; display: block; text-align: center; }
.field-error { display: block; color: #ff8a8a; text-transform: none; letter-spacing: 0; font-size: 13px; margin-top: 5px; min-height: 0; }
.field-error:empty { display: none; }
.form-error { color: #ff8a8a; font-size: 14px; margin: 0 0 12px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.welcome { text-align: center; padding: 80px 20px 40px; max-width: 720px; margin: 0 auto; }
.welcome h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.welcome p { color: var(--muted); font-size: 17px; margin: 18px auto 28px; max-width: 46ch; }
.welcome .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.welcome .cta .btn { padding: 12px 22px; font-size: 15px; }

.settings { max-width: 640px; margin: 0 auto; }
.settings h1 { font-size: 28px; margin-bottom: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; margin-bottom: 18px; }
.panel h2 { font-size: 19px; margin-bottom: 12px; }
.panel .note { color: var(--muted); font-size: 13px; margin: -4px 0 14px; }
.panel form + .note { margin: 12px 0 0; }
.danger-zone { border-color: #5a2a2a; }

.byline { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.byline b { color: var(--text); }
.byline:hover b { color: var(--accent); }
.handle { color: var(--muted); }
.title-link:hover { color: var(--accent); }

/* ---------- avatars ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none;
  background: #2b3440; color: var(--text); font-weight: 700; width: 40px; height: 40px; font-size: 16px; }
.avatar.initial { background: linear-gradient(135deg, #2f3b47, #1f2731); color: var(--accent); }
.avatar.xs { width: 26px; height: 26px; font-size: 12px; }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; }
.avatar.md { width: 48px; height: 48px; font-size: 19px; }
.avatar.lg { width: 84px; height: 84px; font-size: 32px; }
.avatar.xl { width: 112px; height: 112px; font-size: 44px; border: 2px solid var(--line); }

.nav-link { color: var(--muted); font-weight: 600; font-size: 14px; padding: 0 4px; }
.nav-link:hover { color: var(--text); }
.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-user .nm { overflow: hidden; text-overflow: ellipsis; }
.welcome .browse { margin-top: 26px; font-size: 15px; }
.welcome .browse a { color: var(--accent); }

/* ---------- profile ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.profile-head h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.profile-head .handle { font-size: 14px; margin-top: 4px; }
.profile-head .bio { margin-top: 10px; max-width: 60ch; white-space: pre-line; color: #c9d1da; }
.small-btn { margin-top: 12px; padding: 5px 12px; font-size: 13px; display: inline-block; }
.stats { display: flex; gap: 6px; margin: 0; }
.stats div { text-align: center; padding: 6px 14px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: "Fraunces", Georgia, serif; font-size: 26px; font-weight: 700; }
.stats .star { color: var(--accent); font-size: .7em; margin-left: 2px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
.profile-grid .section-title:first-child { margin-top: 0; }
.fav-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 560px; margin-bottom: 26px; }
.fav { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #222a33; border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); padding: 0; }
.fav img { width: 100%; height: 100%; object-fit: cover; }
.fav:hover { border-color: var(--accent); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 0; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.empty-note { color: var(--muted); padding: 16px 0; }
.side .section-title { margin-top: 0; }
.ratings-chart { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 70px; align-items: end;
  border-bottom: 1px solid var(--line); }
.ratings-chart .bar { height: 100%; display: flex; align-items: flex-end; }
.ratings-chart .bar span { display: block; width: 100%; min-height: 2px; background: #4b5a69; border-radius: 2px 2px 0 0; }
.ratings-chart .bar:hover span { background: var(--accent); }
.ratings-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--accent); margin: 4px 0 26px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { border-bottom: 1px solid var(--line); }
.activity a { display: block; padding: 9px 0; font-size: 14px; }
.activity a:hover b { color: var(--accent); }
.activity .when { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.review-item { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-item .thumb { aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: #222a33; }
.review-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-item h3 { font-size: 18px; }
.review-item h3 a:hover { color: var(--accent); }
.review-item .yr, .community-review .yr { color: var(--muted); font-weight: 400; font-size: .8em; }
.meta .when { color: var(--muted); font-size: 12px; margin-left: 6px; }
.excerpt { margin: 8px 0 6px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; color: #d3d9e0; }
.more { color: var(--accent); font-size: 13px; }

/* ---------- members ---------- */
.member-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.member-list a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.member-list a:hover { border-color: #3a4552; }
.member-list .info { flex: 1; min-width: 0; }
.member-list .info p { margin: 4px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-list .handle { font-size: 13px; }
.member-list .films { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- film page ---------- */
.film-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 12px; text-align: center; }
.film-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px; }
.film-stats b { display: block; font-family: "Fraunces", Georgia, serif; font-size: 20px; }
.film-stats span { font-size: 11px; color: var(--muted); }
.community-review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.community-review .who { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; }
.community-review .who:hover b { color: var(--accent); }
.community-review .meta { margin-top: 8px; }
.you { font-size: 11px; background: #23342a; color: var(--accent); padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.logged-by { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.logged-by a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }

/* ---------- likes & comments ---------- */
.avatar[data-card] { cursor: pointer; }
.avatar[data-card]:hover, .avatar[data-card]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar.ghost { background: #1d232a; color: #4b5866; }
.review-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-foot .review-actions { margin: 0 0 0 auto; display: flex; gap: 8px; }
.like-btn { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.like-btn .ic { color: var(--accent-2); font-size: 16px; line-height: 1; }
.like-btn:hover:not(:disabled) { border-color: var(--accent-2); color: var(--text); }
.like-btn.on { border-color: var(--accent-2); color: var(--text); background: rgba(255,128,0,.08); }
.like-btn:disabled { cursor: default; opacity: .85; }
.liked-by { color: var(--muted); font-size: 13px; }
.liked-by a { color: var(--text); }
.liked-by a:hover { color: var(--accent); }
.placeholder-review .body { font-style: italic; }
.social { display: inline-flex; gap: 10px; margin-left: 10px; color: var(--muted); font-size: 12px; }

.comments { margin-top: 8px; max-width: 760px; }
.thread { margin-bottom: 16px; }
.comment { padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.comment[data-depth="1"] { margin-left: 28px; }
.comment[data-depth="2"] { margin-left: 56px; }
.comment[data-depth="3"] { margin-left: 84px; }
.comment[data-depth]:not([data-depth="0"]) { border-left: 2px solid var(--line); padding-left: 14px; border-bottom: 0; }
.c-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 14px; }
.c-name { font-weight: 700; }
.c-name:hover { color: var(--accent); }
.c-head .when { color: var(--muted); font-size: 12px; }
.c-head .re { color: var(--muted); font-size: 12px; }
.you.warn { background: #3a2a14; color: #f0b35a; }
.removed-label { color: var(--muted); font-style: italic; font-size: 13px; }
.c-body { margin: 6px 0 0 41px; white-space: pre-line; overflow-wrap: anywhere; }
.c-actions { margin: 4px 0 0 41px; display: flex; gap: 14px; }
.link-btn { background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.danger-text:hover { color: #ff8a8a; }
.c-slot:empty { display: none; }
.c-slot { margin: 8px 0 0 41px; }
.c-form textarea { width: 100%; text-transform: none; letter-spacing: 0; font-size: 14px; resize: vertical; min-height: 64px; }
.c-form-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.c-left { margin-right: auto; color: var(--muted); font-size: 12px; }
.c-note { color: var(--muted); font-size: 14px; margin: 10px 0; }
.c-note a { color: var(--accent); }

/* ---------- profile card ---------- */
.profile-card { position: absolute; z-index: 60; width: 300px; background: var(--panel); border: 1px solid #39434f;
  border-radius: 12px; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.profile-card .spinner { margin: 20px auto; }
.spinner.small { width: 14px; height: 14px; margin: 0; }
.profile-card.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 16px 16px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.card-shade { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.5); }
.card-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.card-x:hover { color: var(--text); }
.card-top { display: flex; gap: 14px; align-items: center; padding-right: 20px; }
.card-top .avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.card-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 20px; line-height: 1.15; }
.card-top .handle { font-size: 12px; margin-top: 3px; }
.card-bio { margin: 12px 0 0; font-size: 14px; color: #c9d1da; white-space: pre-line; max-height: 7.5em; overflow: auto; }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
.card-stats div { padding: 8px 4px; border-left: 1px solid var(--line); }
.card-stats div:first-child { border-left: 0; }
.card-stats dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-stats dd { margin: 2px 0 0; font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 700; }
.card-stats .star { color: var(--accent); font-size: .7em; margin-left: 1px; }

/* ---------- header: links, bell ---------- */
.nav-links, .nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links { margin-right: 10px; gap: 18px; }
.nav-link.on { color: var(--text); }
.bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.bell:hover, .bell.on { color: var(--text); background: var(--panel); }
.bell .badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent-2); color: #1a0f00; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* ---------- following ---------- */
.follow-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--muted); }
.follow-row a:hover { color: var(--text); }
.follow-row b { color: var(--text); }
.follow-row .small-btn { margin-top: 0; }
.follow-btn { padding: 6px 16px; font-size: 13px; }
.follow-btn.following:hover { border-color: #5a2a2a; color: #ff8a8a; }
.member-list .follow-btn { flex: none; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; text-align: center; padding: 9px 12px; }

/* ---------- notifications ---------- */
.notifications { max-width: 720px; margin: 0 auto; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.notif-list li.unread { background: rgba(0, 224, 84, .05); }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-body:hover .notif-text { color: #fff; }
.notif-text i { font-style: normal; font-weight: 600; color: var(--accent); }
.notif-quote { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-body .when { color: var(--muted); font-size: 12px; }
.notif-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.comment.flash { animation: flash 2.4s ease-out; border-radius: 6px; }
@keyframes flash { 0%, 30% { background: rgba(0, 224, 84, .14); } 100% { background: transparent; } }

/* ---------- landing page ---------- */
.hero { text-align: center; padding: 56px 20px 30px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.hero p { color: var(--muted); font-size: 17px; margin: 16px auto 24px; max-width: 46ch; }
.hero .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { padding: 12px 22px; font-size: 15px; }
.hero.member { text-align: left; padding: 10px 0 6px; max-width: none; }
.hero.member h1 { font-size: clamp(24px, 3.4vw, 32px); }
.hero.member p { margin: 6px 0 0; font-size: 15px; }
.landing-section { margin-top: 34px; }
.landing-section .section-title { margin-bottom: 14px; }
.center { text-align: center; }
.browse { margin: 40px 0 10px; }
.browse a, .empty-note a { color: var(--accent); }

.trailer-row, .poster-row { display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; }
.trailer-row { grid-auto-columns: minmax(280px, 340px); }
.trailer-card { scroll-snap-align: start; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tc-img { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; background: #222a33 center / cover no-repeat;
  border: 1px solid var(--line); position: relative; overflow: hidden; }
.tc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); }
.play { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.6); border: 2px solid #fff;
  display: grid; place-items: center; color: #fff; font-size: 18px; padding-left: 3px; transition: transform .15s, background .15s; }
.trailer-card:hover .play, .trailer-card:focus-visible .play { transform: scale(1.1); background: var(--accent); color: #0b1a10; border-color: var(--accent); }
.tc-title { display: block; font-weight: 700; margin-top: 8px; }
.tc-sub { display: block; color: var(--muted); font-size: 12px; }
.poster-row { grid-auto-columns: 130px; }
.poster-tile { scroll-snap-align: start; }
.poster-tile .poster { aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; }
.poster-tile img { width: 100%; height: 100%; object-fit: cover; }
.poster-tile:hover .poster { border-color: var(--accent); }
.pt-title { font-weight: 600; font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-sub { color: var(--muted); font-size: 12px; }
.pt-sub .star { color: var(--accent); }
.review-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.review-card { display: grid; grid-template-columns: 76px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.rc-poster { aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; background: var(--panel-2); }
.rc-poster img { width: 100%; height: 100%; object-fit: cover; }
.rc-main { min-width: 0; }
.rc-who { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.rc-who a:hover { color: var(--text); }
.review-card h3 { font-size: 17px; margin-top: 5px; }
.review-card h3 a:hover { color: var(--accent); }
.review-card .yr { color: var(--muted); font-weight: 400; font-size: .8em; }
.review-card .excerpt { -webkit-line-clamp: 3; font-size: 14px; }
.rc-foot { display: flex; align-items: center; }

.trailer-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 20px; }
.tm-box { position: relative; width: min(960px, 100%); background: var(--panel); border: 1px solid #39434f; border-radius: 12px; overflow: hidden; }
.tm-box .card-x { top: 6px; right: 8px; z-index: 2; color: #fff; text-shadow: 0 1px 3px #000; }
.tm-video { aspect-ratio: 16 / 9; background: #000; }
.tm-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.tm-info { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; padding: 16px 20px 20px; }
.tm-info h3 { font-size: 20px; }
.tm-info p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tm-actions { display: flex; gap: 8px; flex: none; }

/* ---------- reporting, blocking ---------- */
.report-btn { margin-left: auto; }
.review-foot .review-actions + .report-btn, .review-foot .report-btn:last-child { margin-left: auto; }
.profile-tools { display: flex; gap: 16px; align-items: center; margin-top: 10px; font-size: 13px; }
.blocked-note { color: #f0b35a; font-size: 13px; }
.block-list { list-style: none; padding: 0; margin: 0; }
.block-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.block-list li > span { flex: 1; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; width: min(460px, 100%); background: var(--panel); border: 1px solid #39434f; border-radius: 12px; padding: 22px 22px 18px; }
.modal-box h2 { font-size: 22px; margin-bottom: 6px; }
.modal-box .note { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.modal-box textarea { width: 100%; text-transform: none; letter-spacing: 0; font-size: 14px; }
.reasons { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.reason { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text);
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin: 0; }
.reason:has(input:checked) { border-color: var(--accent); background: rgba(0, 224, 84, .06); }
.reason input { accent-color: var(--accent); }
.ts-box { margin: 4px 0 6px; min-height: 65px; }

/* ---------- admin ---------- */
.admin { max-width: 980px; margin: 0 auto; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #2b3440; color: #c9d1da; vertical-align: 1px; }
.pill.warn { background: #3a2a14; color: #f0b35a; }
.pill.type { background: #23342a; color: var(--accent); }
.tabs .pill { background: var(--accent-2); color: #1a0f00; }
.filters { margin-bottom: 16px; }
.filters .chip.on { background: var(--accent); color: #0b1a10; }
.q-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.q-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-title { font-weight: 700; }
.q-title:hover, .q-head .handle a:hover { color: var(--accent); }
.q-text { margin: 10px 0; padding: 10px 14px; border-left: 3px solid #4b5a69; background: #171c22; white-space: pre-line; overflow-wrap: anywhere; color: #d3d9e0; max-height: 220px; overflow: auto; }
.q-reports { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.q-reports li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.q-reason { color: #d3d9e0; }
.q-reports .when { color: var(--muted); font-size: 12px; }
.q-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.admin-search { display: flex; gap: 10px; margin-bottom: 14px; }
.admin-search input { flex: 1; }
.admin-search select, .admin-users select { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 14px; }
.admin-users { list-style: none; padding: 0; margin: 0; }
.admin-users li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.au-main { flex: 1; min-width: 220px; }
.au-main .when { color: var(--muted); font-size: 12px; margin-top: 2px; }
.audit { list-style: none; padding: 0; margin: 0; }
.audit li { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.audit .when { color: var(--muted); font-size: 12px; }

/* ---------- footer ---------- */
.site-foot { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 28px 16px 40px; margin-top: 50px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot a:hover { color: var(--text); }

/* ---------- support ---------- */
.wide-card { max-width: 620px; }
.auth-card select, .t-side select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; margin-top: 6px; }
.auth-card textarea { width: 100%; text-transform: none; letter-spacing: 0; font-size: 15px; }
.shots { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.shots .file-btn { padding: 7px 12px; font-size: 13px; }
.shot-list { display: flex; gap: 8px; flex-wrap: wrap; }
.shot { position: relative; width: 64px; height: 48px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #1a2028; display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .fav-x { width: 20px; height: 20px; font-size: 13px; top: 2px; right: 2px; }
.ticket { max-width: 820px; margin: 0 auto; }
.ticket .home-head h1 { font-size: clamp(22px, 3.5vw, 30px); }
.pill.big { font-size: 13px; padding: 4px 12px; }
.t-thread { display: grid; gap: 12px; margin-bottom: 18px; }
.t-msg { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.t-msg.staff { border-color: #2e4a38; background: #18231d; }
.t-msg.internal { border-color: #5a4520; background: #241d10; }
.t-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.t-head .when { color: var(--muted); font-size: 12px; margin-left: auto; }
.t-body { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.t-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.t-shots img { max-width: 220px; max-height: 160px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.t-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; }
.t-side .section-title { margin: 14px 0 8px; }
.t-side .section-title:first-child { margin-top: 0; }
.t-side .note { font-size: 13px; color: var(--muted); }
.inline-check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); margin: 0; }
.ticket-list { list-style: none; padding: 0; margin: 0; }
.ticket-list li a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.ticket-list li a:hover { background: var(--panel); }
.ticket-list .tk-id { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket-list .when { color: var(--muted); font-size: 12px; width: 100%; }

/* ---------- admin: member page ---------- */
.am-head { display: flex; gap: 18px; align-items: center; margin: 6px 0 22px; }
.am-head h1 { font-size: 28px; }
.am-head .handle a { color: var(--text); }
.am-status { margin-top: 8px; font-size: 14px; color: var(--muted); }
.am-actions { margin: 0 0 14px; padding-top: 0; border-top: 0; }
table.strikes { width: 100%; border-collapse: collapse; font-size: 13px; }
table.strikes th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.strikes td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.strikes tr.faded td { opacity: .55; }
.reason small.note { margin: 0; font-size: 12px; }

/* ---------- settings: avatar + favourites ---------- */
.avatar-edit { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.avatar-edit .note { margin: 8px 0 0; }
.file-btn { cursor: pointer; display: inline-block; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); margin: 0; }
.settings textarea { text-transform: none; letter-spacing: 0; }
.fav-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin-bottom: 14px; }
.fav-slot { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; position: relative; display: grid; place-items: center;
  background: #1a2028; border: 1px dashed var(--line); color: var(--muted); font-size: 22px; }
.fav-slot.filled { border-style: solid; font-size: 11px; text-align: center; }
.fav-slot img { width: 100%; height: 100%; object-fit: cover; }
.fav-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.75); color: #fff; font-size: 16px; line-height: 1; }
.fav-results { margin: 8px 0 14px; max-height: 300px; overflow: auto; }

@media (max-width: 900px) {
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head .stats { grid-column: 1 / -1; justify-content: flex-start; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 6px; }
  .nav-user .nm { display: none; }
  .nav .btn { padding: 8px 11px; font-size: 13px; }
  .nav-user { max-width: 12ch; font-size: 13px; }
  .brand { font-size: 19px; }
  .detail { grid-template-columns: 1fr; gap: 20px; margin-top: -80px; }
  .detail .poster { width: 140px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 16px 12px; }
}
@media (max-width: 720px) {
  .t-layout { grid-template-columns: 1fr; }
  table.strikes thead { display: none; }
  table.strikes tr { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.strikes td { border: 0; padding: 2px 4px; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .nav { display: contents; }
  .nav-actions { margin-left: auto; gap: 6px; }
  .nav-links { order: 3; width: 100%; margin: 0; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 8px; }
  .tm-info { flex-direction: column; }
  .review-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav .long, #logoutBtn { display: none; }   /* Log out is on the Settings page */
  .audit li { grid-template-columns: 1fr; gap: 2px; }
  .admin-search { flex-direction: column; }
  .trailer-row { grid-auto-columns: 82%; }
  .poster-row { grid-auto-columns: 108px; }
  .trailer-modal { padding: 0; align-items: center; }
  .tm-box { border-radius: 0; }
  .hero { padding-top: 34px; }
  .comment[data-depth="1"] { margin-left: 14px; }
  .comment[data-depth="2"] { margin-left: 28px; }
  .comment[data-depth="3"] { margin-left: 42px; }
  .c-body, .c-actions, .c-slot { margin-left: 0; }
  .review-foot .review-actions { margin-left: 0; width: 100%; }
  .profile-head { gap: 16px; }
  .avatar.xl { width: 76px; height: 76px; font-size: 30px; }
  .stats { width: 100%; justify-content: space-between; }
  .stats div { padding: 4px 8px; }
  .stats dd { font-size: 21px; }
  .member-list { grid-template-columns: 1fr; }
  .fav-row { gap: 8px; }
  .nav .short { display: inline; }
  .brand { font-size: 18px; gap: 8px; }
}

/* ---------- Stage 8: friends, messages, lists ---------- */
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.profile-actions .small-btn { margin-top: 0; }
.profile-actions .btn { padding: 6px 16px; font-size: 13px; }
.friend-btn, .msg-btn { padding: 6px 16px; font-size: 13px; white-space: nowrap; }
.card-stats { grid-template-columns: repeat(4, 1fr); }
.card-actions { flex-wrap: wrap; }
.card-actions .wide-row { flex-basis: 100%; }
.row-btns { display: flex; gap: 6px; flex: none; }
.row-btns .btn { padding: 6px 12px; font-size: 13px; }

.convo-list { list-style: none; padding: 0; margin: 0; }
.convo-list a { display: flex; align-items: center; gap: 14px; padding: 12px; border-bottom: 1px solid var(--line); border-radius: 8px; }
.convo-list a:hover { background: var(--panel); }
.convo-list li.unread a { background: rgba(0, 224, 84, .05); }
.convo-list li.unread b { color: #fff; }
.convo-list .info { flex: 1; min-width: 0; }
.convo-list .info p { margin: 2px 0 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-list li.unread .info p { color: var(--text); }
.convo-list .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.convo-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

.thread-page { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100dvh - 150px); min-height: 380px; }
.thread-head { display: flex; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.thread-head .back-link { margin: 0; }
.th-who { display: flex; align-items: center; gap: 10px; }
.th-who b { font-size: 16px; }
.thread { flex: 1; overflow-y: auto; padding: 16px 2px; display: flex; flex-direction: column; gap: 10px; }
.thread .older { align-self: center; padding: 5px 12px; font-size: 13px; }
.thread-note { color: var(--muted); text-align: center; font-size: 14px; margin: auto 0; padding: 0 12px; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.bubble { padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.theirs .bubble { background: var(--panel-2); border-bottom-left-radius: 5px; }
.msg.mine .bubble { background: #0f4d2a; border-bottom-right-radius: 5px; }
.m-removed { color: var(--muted); }
.m-meta { color: var(--muted); font-size: 11px; margin: 3px 6px 0; }
.m-meta .link-btn { font-size: 11px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 46px; max-height: 160px; }
.composer[hidden] { display: none; }
.composer-note { color: var(--muted); text-align: center; font-size: 14px; padding: 12px; border-top: 1px solid var(--line); margin: 0; }
.composer-note a { color: var(--accent); }
.request-bar { margin-top: 12px; padding: 12px 14px; background: #2a2416; border: 1px solid #5a4a26; border-radius: 10px; }
.request-bar p { margin: 0 0 10px; font-size: 14px; color: #f0e2c0; }

.list-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.list-btns .btn { flex: 1; padding: 8px 6px; font-size: 13px; }
.btn.on[aria-pressed="true"] { color: var(--accent); border-color: #1d5a35; }
.tm-actions { flex-wrap: wrap; }
.lock { font-size: .8em; filter: grayscale(1); opacity: .8; }
.list-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.list-tools .note { color: var(--muted); font-size: 13px; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.list-card { display: block; }
.lc-posters { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 8 / 3; border-radius: 6px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.lc-posters img, .lc-posters span { width: 100%; height: 100%; object-fit: cover; border-left: 1px solid rgba(0,0,0,.4); }
.lc-posters span { background: var(--panel-2); }
.list-card:hover .lc-posters { border-color: var(--accent); }
.lc-name { font-weight: 600; margin-top: 8px; }
.lc-sub { color: var(--muted); font-size: 13px; }
.list-page .home-head h1 { font-size: clamp(24px, 4vw, 32px); }
.list-desc { color: #c9d1da; white-space: pre-line; margin: -6px 0 22px; max-width: 70ch; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 16px; }
.pg-actions { display: flex; gap: 6px; margin-top: 6px; }
.pg-actions .btn { flex: 1; padding: 5px 6px; font-size: 12px; }
.pt-sub .seen { color: var(--accent); }
.modal-box label.check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.modal-box label.check input { margin: 0; }
.picker { list-style: none; padding: 0; margin: 0 0 12px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.picker li + li { border-top: 1px solid var(--line); }
.modal-box .picker label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.picker label span:first-of-type { flex: 1; }
.picker input { margin: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.picker .when { color: var(--muted); font-size: 12px; }
.picker-new { display: flex; gap: 8px; }
.picker-new input { flex: 1; }

@media (max-width: 720px) {
  .thread-page { height: calc(100dvh - 170px); }
  .list-btns { flex-direction: row; }
  .msg { max-width: 88%; }
  .member-list .row-btns { flex-direction: column; }
}
@media (max-width: 520px) {
  .bell { width: 34px; height: 34px; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .list-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nav-links { gap: 12px; font-size: 14px; }
}

/* ---------- Stage 9 ---------- */
.backup-note { margin-top: 8px; font-size: 13px; }
.backup-note.ok { color: var(--muted); }
.backup-note.warn { color: #f0b35a; }
.backup-note code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
