/* app.css — Reelist product app. Dark-slate cinema chrome, poster-grid density,
   three-accent verb system (green watched · orange like · blue watchlist).
   Restraint is the aesthetic: the only bouncy thing in the app is the heart. */

:root {
  --bg: #14181c;
  --bg-2: #1a1f24;
  --surface: #1c2228;
  --surface-2: #2c3440;
  --line: #2c3440;
  --line-soft: #232a31;
  --ink: #ffffff;
  --text: #b9c2cc;
  --muted: #8899a6;
  --muted-2: #667788;
  --green: #00e054;
  --green-dim: #14a44a;
  --orange: #ff8000;
  --blue: #40bcf4;
  --star: #00b020;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
  --nav-h: 56px;
  --font: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--green); color: #06240f; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; margin: 0; }
input, textarea { font-family: inherit; }

/* ---------- layout ---------- */
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.app-main { min-height: calc(100vh - var(--nav-h)); padding: 24px 0 80px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; color: var(--muted-2); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: linear-gradient(180deg, #101418, #14181c);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
}
.nav .wrap { display: flex; align-items: center; gap: 18px; width: min(1240px, 95vw); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 17px; letter-spacing: -.02em; flex-shrink: 0; }
.brand .dots { display: flex; gap: 3px; }
.brand .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.brand .dots i:nth-child(1) { background: var(--orange); }
.brand .dots i:nth-child(2) { background: var(--green); margin-left: -5px; }
.brand .dots i:nth-child(3) { background: var(--blue); margin-left: -5px; }
.nav-links { display: flex; gap: 4px; margin-left: 4px; }
.nav-links a { padding: 7px 11px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-search { position: relative; margin-left: auto; flex: 0 1 320px; }
.nav-search input {
  width: 100%; height: 34px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 0 14px 0 36px; color: var(--ink); font-size: 14px; outline: none; transition: border-color .15s, background .15s;
}
.nav-search input:focus { border-color: var(--blue); background: #0f1317; }
.nav-search .s-icon { position: absolute; left: 12px; top: 9px; color: var(--muted-2); pointer-events: none; }
.nav-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #0c1013; flex-shrink: 0; }
.avatar.lg { width: 92px; height: 92px; font-size: 34px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #06240f; }
.btn-green:hover { background: #14f065; }
.btn-blue { background: var(--blue); color: #04222e; }
.btn-blue:hover { background: #5fcbff; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #38434f; }
.btn-line { border: 1px solid var(--line); color: var(--text); }
.btn-line:hover { border-color: var(--muted); color: var(--ink); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- poster grid ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 14px; }
.poster {
  position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden;
  background: #0d1114; cursor: pointer; border: 1px solid rgba(255,255,255,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.55); border-color: var(--green); z-index: 2; }
.poster .p-badges { position: absolute; top: 5px; right: 5px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; }
.poster:hover .p-badges, .poster.has-state .p-badges { opacity: 1; }
.poster .p-badges i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.35); display: block; }
.poster .p-badges i.w { background: var(--green); }
.poster .p-badges i.l { background: var(--orange); }
.poster .p-badges i.b { background: var(--blue); }
.poster .p-rating { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 7px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-size: 12px; color: var(--green); font-weight: 700; opacity: 0; transform: translateY(4px); transition: .12s; }
.poster:hover .p-rating.has, .poster.has-state .p-rating.has { opacity: 1; transform: none; }
.poster-tip { position: fixed; z-index: 80; background: #0b0e11; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 10px; font-size: 12.5px; color: var(--ink); pointer-events: none; box-shadow: var(--shadow); max-width: 220px; opacity: 0; transition: opacity .1s; }
.poster-tip .y { color: var(--muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.section-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--green); }

/* ---------- film page ---------- */
.film-hero { position: relative; margin: -24px 0 0; }
.film-backdrop { position: absolute; inset: 0; height: 380px; overflow: hidden; z-index: 0; }
.film-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 8%, rgba(20,24,28,.5) 60%, rgba(20,24,28,.75)); }
.film-backdrop svg { width: 100%; height: 100%; filter: blur(2px) brightness(.7); transform: scale(1.1); }
.film-body { position: relative; z-index: 1; display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-top: 60px; }
.film-poster-lg { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2/3; }
.film-title { font-size: 30px; line-height: 1.05; }
.film-title .yr { color: var(--muted); font-weight: 500; font-size: 22px; margin-left: 8px; }
.film-meta { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.film-meta a:hover { color: var(--green); }
.film-tagline { font-style: italic; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.film-synopsis { max-width: 62ch; color: var(--text); }
.film-stats { display: flex; gap: 26px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.film-stats .stat b { display: block; color: var(--ink); font-size: 20px; font-weight: 700; }
.film-stats .stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }

/* action trio */
.actions { display: flex; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 16px 0; width: fit-content; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 22px; min-width: 78px; transition: background .12s; border-right: 1px solid var(--line); }
.act:last-child { border-right: none; }
.act:hover { background: var(--surface-2); }
.act svg { width: 24px; height: 24px; transition: transform .1s; }
.act span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.act.on.watch svg { color: var(--green); } .act.watch svg { color: var(--muted-2); }
.act.on.like svg { color: var(--orange); } .act.like svg { color: var(--muted-2); }
.act.on.wl svg { color: var(--blue); } .act.wl svg { color: var(--muted-2); }
.act.on span { color: var(--ink); }
.act.pop svg { animation: heartpop .28s cubic-bezier(.2,1.4,.4,1); }

/* rating stars (film page inline) */
.rate-block { margin: 12px 0; }
.rate-block .rl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 6px; }

/* ---------- the half-star slider ---------- */
.stars { position: relative; display: inline-flex; height: 34px; user-select: none; touch-action: none; }
.stars.lg { height: 44px; }
.stars .track { position: relative; display: flex; }
.stars .star { position: relative; width: 34px; height: 34px; }
.stars.lg .star { width: 44px; height: 44px; }
.stars .star .bg, .stars .star .fill { position: absolute; inset: 0; }
.stars .star .bg { color: #3a444e; }
.stars .star .fill { color: var(--green); overflow: hidden; width: 0; }
.stars .star svg { width: 100%; height: 100%; }
.stars .hit { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; }
.stars .clearbtn { align-self: center; margin-left: 10px; color: var(--muted-2); font-size: 12px; opacity: 0; transition: opacity .15s; }
.stars:hover .clearbtn, .stars.has .clearbtn { opacity: 1; }
.stars.dragging .star .fill { transition: none; }
.stars .star .fill { transition: width .04s linear; }

/* ---------- log modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(6,9,11,.72); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .15s; }
.modal-scrim.in { opacity: 1; }
.modal { width: min(560px, 96vw); max-height: 92vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); transform: translateY(10px) scale(.99); transition: transform .16s cubic-bezier(.2,.9,.3,1); }
.modal-scrim.in .modal { transform: none; }
.modal-head { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.modal-head .mp { width: 66px; border-radius: 4px; overflow: hidden; aspect-ratio: 2/3; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.modal-head h3 { font-size: 20px; }
.modal-head .yr { color: var(--muted); font-weight: 500; }
.modal-head .close { margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 6px; }
.modal-head .close:hover { color: var(--ink); }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 7px; font-weight: 600; }
.field input[type=date], .field input[type=text], .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: 9px 11px; font-size: 14px; outline: none; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.row { display: flex; gap: 16px; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--text); font-size: 14px; }
.check input { display: none; }
.check .box { width: 18px; height: 18px; border: 1.5px solid var(--muted-2); border-radius: 3px; display: grid; place-items: center; transition: .12s; flex-shrink: 0; }
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box svg { opacity: 1; }
.check .box svg { width: 12px; opacity: 0; color: #06240f; }

.rate-heart-row { display: flex; align-items: center; gap: 24px; padding: 4px 0; }
.heart-inline { display: inline-flex; align-items: center; gap: 8px; }
.heart-inline .h { width: 30px; height: 30px; color: #3a444e; transition: color .12s; }
.heart-inline.on .h { color: var(--orange); }
.heart-inline .h.pop { animation: heartpop .28s cubic-bezier(.2,1.4,.4,1); }
.heart-inline .hl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }

@keyframes heartpop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 70% { transform: scale(.92); } 100% { transform: scale(1); } }

.tags-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 9px; }
.tags-input:focus-within { border-color: var(--blue); }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); color: var(--text); font-size: 12px; padding: 3px 8px; border-radius: 3px; }
.tag-chip button { color: var(--muted); font-size: 13px; line-height: 1; }
.tag-chip button:hover { color: var(--orange); }
.tags-input input { flex: 1; min-width: 90px; background: none; border: none; outline: none; color: var(--ink); font-size: 13px; }
.tag-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tag-suggest button { font-size: 11px; color: var(--blue); }
.modal-foot { padding: 14px 20px 20px; display: flex; align-items: center; gap: 12px; }
.modal-foot .btn-green { flex: 1; justify-content: center; height: 42px; font-size: 15px; }

/* ---------- diary ledger ---------- */
.diary-month { margin-top: 26px; }
.diary-month h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; margin-bottom: 4px; }
.diary-row { display: grid; grid-template-columns: 46px 44px 1fr auto auto; gap: 14px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line-soft); transition: background .12s; }
.diary-row:hover { background: rgba(255,255,255,.02); }
.diary-row.enter { animation: slidein .4s cubic-bezier(.2,.8,.3,1); }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); background: rgba(0,224,84,.09); } to { opacity: 1; transform: none; } }
.diary-day { text-align: center; }
.diary-day b { display: block; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1; }
.diary-day span { font-size: 10px; text-transform: uppercase; color: var(--muted-2); }
.diary-row .dp { width: 40px; aspect-ratio: 2/3; border-radius: 3px; overflow: hidden; }
.diary-film b { color: var(--ink); font-weight: 600; }
.diary-film .fy { color: var(--muted); font-weight: 400; margin-left: 5px; }
.diary-film .dtags { margin-top: 3px; }
.diary-film .dtags .pill { height: 18px; font-size: 10px; padding: 0 7px; margin-right: 4px; }
.diary-icons { display: flex; gap: 10px; color: var(--muted-2); align-items: center; }
.diary-icons .liked { color: var(--orange); }
.diary-icons .rw { color: var(--blue); }
.mini-stars { display: inline-flex; color: var(--green); }
.mini-stars svg { width: 15px; height: 15px; }

/* ---------- feed ---------- */
.feed-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.feed-item .fp { width: 52px; aspect-ratio: 2/3; border-radius: 3px; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.feed-body { flex: 1; min-width: 0; }
.feed-line { color: var(--text); font-size: 14px; }
.feed-line b { color: var(--ink); }
.feed-line a:hover { color: var(--green); }
.feed-review { color: var(--text); margin-top: 6px; font-size: 14px; line-height: 1.55; }
.feed-review.spoiler { filter: blur(5px); cursor: pointer; }
.feed-review.spoiler.reveal { filter: none; }
.feed-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--muted-2); font-size: 12px; }
.feed-meta .lk { display: inline-flex; align-items: center; gap: 5px; }
.feed-meta .lk svg { width: 15px; }
.feed-meta .lk.on { color: var(--orange); }
.feed-meta .lk.pop svg { animation: heartpop .28s cubic-bezier(.2,1.4,.4,1); }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 8px 0 22px; border-bottom: 1px solid var(--line-soft); }
.profile-head h1 { font-size: 26px; }
.profile-head .ph-stats { display: flex; gap: 26px; margin-top: 10px; }
.profile-head .ph-stats .stat b { color: var(--ink); font-size: 18px; }
.profile-head .ph-stats .stat span { font-size: 11px; text-transform: uppercase; color: var(--muted-2); letter-spacing: .06em; display: block; }
.favs-row { margin: 22px 0; }
.favs-row .grid { --cols: 4; max-width: 620px; }
.fav-slot { aspect-ratio: 2/3; border: 1.5px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted-2); cursor: pointer; transition: border-color .15s, color .15s; text-align: center; font-size: 12px; }
.fav-slot:hover { border-color: var(--green); color: var(--green); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 6px; }
.tabs button { padding: 9px 15px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--green); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #0b0e11; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 12px 18px; color: var(--ink); font-size: 14px; box-shadow: var(--shadow); z-index: 120; opacity: 0; transition: .25s; display: flex; align-items: center; gap: 10px; }
.toast.in { opacity: 1; transform: translateX(-50%); }
.toast a { color: var(--green); font-weight: 600; }

/* ---------- search dropdown ---------- */
.search-drop { position: absolute; top: 40px; left: 0; right: 0; background: #0b0e11; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; z-index: 60; }
.search-drop .sr { display: flex; gap: 10px; padding: 8px 10px; align-items: center; cursor: pointer; }
.search-drop .sr:hover, .search-drop .sr.active { background: var(--surface-2); }
.search-drop .sr .srp { width: 30px; aspect-ratio: 2/3; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.search-drop .sr b { color: var(--ink); font-weight: 600; font-size: 14px; }
.search-drop .sr .sy { color: var(--muted); font-size: 13px; }
.search-drop .sr .sd { color: var(--muted-2); font-size: 12px; }
.search-drop .empty { padding: 16px; color: var(--muted); text-align: center; font-size: 13px; }

/* ---------- year-in-review cards ---------- */
.yir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.tc { position: relative; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; padding: 26px 22px; display: flex; flex-direction: column; color: #fff; box-shadow: var(--shadow); }
.tc .tc-brand { position: absolute; bottom: 18px; left: 22px; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; letter-spacing: -.02em; }
.tc .tc-brand .dots { display: flex; }
.tc .tc-brand .dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.tc .tc-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; opacity: .8; font-weight: 700; }
.tc .tc-big { font-size: 62px; font-weight: 800; line-height: .95; margin: 6px 0; letter-spacing: -.03em; }
.tc .tc-label { font-size: 16px; font-weight: 600; opacity: .92; }
.tc .tc-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; margin-bottom: 44px; }
.tc .tc-collage .poster { border: none; border-radius: 3px; }
.tc-dl { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.4); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; opacity: 0; transition: .15s; }
.tc:hover .tc-dl { opacity: 1; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 46px; color: var(--muted-2); margin: 0 auto 14px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- footer ---------- */
.app-foot { border-top: 1px solid var(--line-soft); padding: 30px 0 60px; color: var(--muted-2); font-size: 13px; margin-top: 40px; }
.app-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.app-foot a { color: var(--muted); }
.app-foot a:hover { color: var(--green); }
.app-foot .fl { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- misc ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { padding: 5px 11px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; color: var(--muted); transition: .12s; }
.chip-link:hover, .chip-link.on { border-color: var(--green); color: var(--green); }
.pro-banner { background: linear-gradient(90deg, rgba(0,224,84,.08), rgba(64,188,244,.06)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pro-banner .pro-tag { background: var(--green); color: #06240f; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 3px; letter-spacing: .04em; }
.demo-note { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); border: 1px dashed var(--line); border-radius: 12px; padding: 2px 9px; }

.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); }
.histo { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.histo .hb { flex: 1; background: var(--green); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.histo-labels { display: flex; gap: 6px; margin-top: 4px; }
.histo-labels span { flex: 1; text-align: center; font-size: 10px; color: var(--muted-2); }

/* skeleton */
.sk { background: linear-gradient(90deg, #1a1f24, #232a31, #1a1f24); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
/* ---------- mobile bottom tab bar (app) ---------- */
.mobile-tabs { display: none; }
@media (max-width: 900px) {
  .grid { --cols: 4 !important; }
  .film-body { grid-template-columns: 150px 1fr; gap: 20px; padding-top: 40px; }
  .film-backdrop { height: 280px; }
  .nav-links { display: none; }
  .nav-search { flex: 1; }
  .app-main { padding-bottom: 84px; }
  .mobile-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #0f1418; border-top: 1px solid var(--line); padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted-2); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
  .mobile-tabs a svg { width: 22px; height: 22px; }
  .mobile-tabs a.active { color: var(--green); }
}
@media (max-width: 640px) {
  .grid { --cols: 3 !important; gap: 10px; }
  .film-body { grid-template-columns: 1fr; }
  .film-poster-lg { width: 150px; margin: 0 auto; }
  .film-title { text-align: center; }
  .diary-row { grid-template-columns: 40px 36px 1fr auto; }
  .diary-row .diary-icons { display: none; }
  .favs-row .grid { --cols: 4 !important; }
  .profile-head { flex-direction: column; text-align: center; }
  .row { flex-direction: column; }
  .nav .wrap { gap: 10px; }
  .brand span.bt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .05ms !important; }
}
