/* =====================================================================
   Позырим — стиль MetricLab: чёрный, белый, оттенки серого и один акцент,
   лайм. Глянцевые сферы бренда, жидкое стекло iOS, Nunito.
   Правило акцента: лайм — только главное действие, активная вкладка,
   твоя оценка и выбранное состояние. Всё остальное нейтральное.
   ===================================================================== */

@font-face { font-family: 'Nunito'; src: url("../fonts/Nunito.b5018128b78d.woff2") format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0b0b0c;
  --surface-2: #19191c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f2;
  --text-2: #c6c6c1;
  --muted: #8c8c87;
  --dim: #5b5b57;
  --lime: #E1FE52;
  --lime-soft: rgba(225, 254, 82, .1);
  --lime-line: rgba(225, 254, 82, .32);
  --danger: #ff5a4f;
  --r-l: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 66px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  --glass-border: 1px solid rgba(255, 255, 255, .1);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 -1px 0 rgba(255, 255, 255, .03), 0 10px 34px rgba(0, 0, 0, .38);
  --glass-blur: blur(20px) saturate(160%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.4 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
svg { flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- атмосфера: тёмные сферы бренда и зерно плёнки ---------- */
.atmos {
  position: absolute; top: 0; left: 0; right: 0; height: 560px; z-index: 0; pointer-events: none;
  background: url("../img/spheres-dark.2309c05737cc.webp") center bottom / cover;
  transform: scaleY(-1); opacity: .55;
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 30%, transparent 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- каркас ---------- */
.app {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto;
  padding: calc(var(--safe-t) + 12px) 16px calc(var(--tabbar-h) + var(--safe-b) + 40px);
}
.app.flush-top { padding-top: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 0 18px; }
.page-head h1 { margin: 0; font-size: 36px; line-height: 1; font-weight: 1000; letter-spacing: -.03em; }

.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  padding: calc(var(--safe-t) + 8px) 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.appbar.solid {
  background: rgba(5, 5, 5, .74);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
}
.appbar .brand { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 1000; letter-spacing: -.02em; }
.appbar .brand .eyes { width: 40px; height: auto; }
.appbar .right { display: flex; gap: 10px; align-items: center; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text); transition: transform .2s var(--spring);
}
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; }

.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, #f7ffc9, var(--lime) 50%, #c5df3d);
  color: #0a0a0a; font-weight: 1000; font-size: 18px;
  box-shadow: 0 0 0 2px var(--bg);
}
.avatar.alt { background: radial-gradient(120% 120% at 30% 20%, #ffffff, #d9d9d5 55%, #a9a9a4); }
.avatar.xl { width: 72px; height: 72px; font-size: 32px; }

/* ---------- таб-бар: жидкое стекло ---------- */
.tabbar {
  position: fixed; z-index: 80; left: 50%; bottom: calc(var(--safe-b) + 10px);
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 430px); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(48, 48, 52, .55), rgba(16, 16, 18, .66));
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .04);
  view-transition-name: tabbar;
}
.tabbar .lens {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(255, 255, 255, .05);
  transform: translateX(calc(var(--i, 0) * 100%));
  view-transition-name: tablens;
}
.tabbar.no-active .lens { opacity: 0; }
.tabbar a {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 999px; color: #8f8f8a; font-size: 10.5px; font-weight: 800; letter-spacing: .01em;
  transition: color .25s;
}
.tabbar a svg { width: 25px; height: 25px; transition: transform .35s var(--spring); }
.tabbar a:active svg { transform: scale(.85); }
.tabbar a.active { color: var(--lime); }

/* ---------- кнопки, поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 900; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .22s var(--spring), background .3s, color .3s, box-shadow .3s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.95); }
.btn svg { width: 20px; height: 20px; }
.btn-lime { background: var(--lime); color: #0a0a0a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 24px rgba(0, 0, 0, .35); }
.btn-glass { background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); color: var(--text); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-danger { background: rgba(255, 90, 79, .1); color: var(--danger); border: 1px solid rgba(255, 90, 79, .22); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.on { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.input {
  width: 100%; min-height: 56px; padding: 0 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  outline: none; font-size: 17px; font-weight: 700; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 4px rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .08); }
.input::placeholder { color: var(--dim); font-weight: 600; }

.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kicker svg { width: 10px; height: 10px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.chip.active { background: var(--text); color: #0a0a0a; border-color: transparent; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; margin-bottom: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.segmented a { text-align: center; padding: 10px 6px; border-radius: 999px; font-size: 13.5px; font-weight: 900; color: var(--muted); white-space: nowrap; transition: color .25s; }
.segmented a.active { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 14px rgba(0,0,0,.3); }
.segmented .count { color: var(--dim); margin-left: 5px; font-weight: 800; }
.segmented a.active .count { color: var(--muted); }

.notice { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 18px; margin: 0 0 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; font-weight: 700; }
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- постеры ---------- */
.pcard { position: relative; display: block; min-width: 0; transition: transform .25s var(--spring); }
.pcard:active { transform: scale(.96); }
.pimg {
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(110deg, #141416 30%, #1e1e22 50%, #141416 70%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.pimg::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }
.pimg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.pimg img.loaded { opacity: 1; }
.pimg.ok { animation: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pcard .t { margin-top: 8px; font-size: 13.5px; font-weight: 800; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .m { margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .m b { color: var(--text-2); font-weight: 900; }
.pcard .why { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.kp { position: absolute; top: 7px; left: 7px; z-index: 2; padding: 2px 7px; border-radius: 8px; font-size: 12px; font-weight: 1000; background: rgba(6, 6, 6, .72); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.mine {
  position: absolute; right: 7px; bottom: 7px; z-index: 2;
  min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 1000; color: #0a0a0a; background: var(--lime);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 0 2px rgba(6, 6, 6, .5);
}
.mine.low { background: #e9e9e5; }
.mine.icon { background: rgba(6, 6, 6, .74); color: var(--text); padding: 0; width: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.mine svg { width: 16px; height: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(5, 1fr); } .grid.two { grid-template-columns: repeat(4, 1fr); } }

/* ---------- ряды подборок ---------- */
.row { margin-top: 34px; }
.row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.row-head h3 { margin: 3px 0 0; font-size: 21px; line-height: 1.12; font-weight: 1000; letter-spacing: -.02em; }
.row-head .grow { flex: 1; min-width: 0; }
.row-head .ph { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.row-head .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.row-head .ph img.loaded { opacity: 1; }
.row-head .more { font-size: 14px; font-weight: 900; color: var(--text-2); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.row-head .more svg { width: 16px; height: 16px; }

.rail { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail .pcard { width: 122px; }

.t10 { display: flex; align-items: flex-end; padding-left: 4px; }
.t10 .num { font-size: 132px; line-height: .74; font-weight: 1000; letter-spacing: -.08em; color: var(--bg); -webkit-text-stroke: 2px rgba(255, 255, 255, .42); margin-right: -20px; user-select: none; }
.t10:first-child .num { -webkit-text-stroke-color: var(--lime); }
.t10 .pcard { width: 112px; z-index: 1; }
.t10 .pcard .t, .t10 .pcard .m { display: none; }

.wide { position: relative; width: 278px; display: block; transition: transform .25s var(--spring); }
.wide:active { transform: scale(.97); }
.wide .pimg { aspect-ratio: 16 / 10; border-radius: 18px; }
.wide .shade { position: absolute; inset: 0; border-radius: 18px; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.9) 100%); }
.wide .body { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.wide .body b { font-size: 17px; font-weight: 1000; line-height: 1.15; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wide .body span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wide .match { position: absolute; top: 10px; right: 10px; z-index: 2; }
.wide .kp { top: 10px; left: 10px; }

.match-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(10, 10, 10, .62); border: 1px solid var(--line-2); color: var(--text); font-size: 13px; font-weight: 900; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.match-pill small { font-size: 11px; font-weight: 800; color: var(--muted); }

.cta-card { position: relative; overflow: hidden; width: 210px; aspect-ratio: 16 / 10; border-radius: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; background: #050505 url("../img/strips-lime.dc5158a01bae.webp") center / cover; border: 1px solid var(--line-2); }
.cta-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.75)); }
.cta-card b, .cta-card span { position: relative; }
.cta-card b { font-size: 18px; font-weight: 1000; line-height: 1.1; }
.cta-card span { font-size: 13.5px; font-weight: 900; color: var(--text-2); display: inline-flex; align-items: center; gap: 2px; }
.cta-card span svg { width: 16px; height: 16px; }

/* ---------- витрина на главной ---------- */
.hero { position: relative; margin: 0 -16px; padding-top: calc(var(--safe-t) + 62px); }
.hero-track { --card-w: min(64vw, 290px); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px calc(50% - var(--card-w) / 2) 26px; overscroll-behavior-x: contain; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-card { position: relative; flex: none; width: var(--card-w); aspect-ratio: 2 / 3; border-radius: 24px; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: 50% 60%; will-change: transform; background: var(--surface-2); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.hero-card img.loaded { opacity: 1; }
.hero-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.06); background: linear-gradient(115deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 30%); }
.hero-card .kp { top: 12px; left: 12px; font-size: 13.5px; padding: 3px 9px; }
.hero-info { position: relative; padding: 0 24px; text-align: center; min-height: 206px; }
.hero-slide { transition: opacity .25s var(--ease), transform .35s var(--ease); }
.hero-slide[hidden] { display: none; }
.hero-slide.enter { opacity: 0; transform: translateY(8px); }
.hero-slide h2 { margin: 10px 0 0; font-size: 30px; line-height: 1.02; font-weight: 1000; letter-spacing: -.03em; text-wrap: balance; }
.hero-slide .meta { margin-top: 10px; color: var(--text-2); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hero-slide .why { margin: 8px auto 0; color: var(--muted); font-size: 13.5px; font-weight: 700; max-width: 330px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.hero-dots button { height: 6px; width: 6px; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; transition: width .4s var(--spring); }
.hero-dots button.on { width: 28px; }
.hero-dots b { display: block; height: 100%; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }
.hero-dots button.on b { animation: dotfill var(--hero-t, 7s) linear forwards; }
.hero-dots.paused button.on b { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* ---------- карточка фильма ---------- */
.film-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-t) + 8px) 16px 10px; border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.film-nav-title { flex: 1; min-width: 0; text-align: center; font-size: 16px; font-weight: 1000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); }
.film-nav.solid { background: rgba(5, 5, 5, .74); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-bottom-color: var(--line); }
.film-nav.solid .film-nav-title { opacity: 1; transform: none; }
.film-nav.solid .icon-btn { background: transparent; border-color: transparent; box-shadow: none; }
.film-hero { position: relative; margin: 0 -16px; height: 52vh; min-height: 330px; max-height: 560px; overflow: hidden; background: var(--bg-2); }
.film-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); opacity: 0; transition: opacity .6s; }
.film-hero img.loaded { opacity: 1; }
.film-hero.soft img { filter: blur(22px) saturate(.9); transform: translate3d(0, var(--py, 0px), 0) scale(1.2); }
.film-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 42%, rgba(5,5,5,.86) 82%, var(--bg) 100%); }
.film-top { position: relative; z-index: 2; display: flex; gap: 16px; align-items: flex-end; margin-top: -150px; }
.film-cover { width: 124px; flex: none; }
.film-cover .pimg { border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.75); }
.film-title { min-width: 0; padding-bottom: 4px; }
.film-title h1 { margin: 0; font-size: 29px; line-height: 1.02; font-weight: 1000; letter-spacing: -.03em; text-wrap: balance; text-shadow: 0 4px 24px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.film-title .orig { margin-top: 7px; font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.facts span { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--text-2); background: rgba(255,255,255,.06); border: 1px solid var(--line); }

.panel { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--r-l); }
.rings { display: flex; justify-content: space-around; gap: 8px; padding: 16px 8px 14px; margin-top: 14px; }
.ring { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 74px; }
.ring .wrap { position: relative; width: 70px; height: 70px; }
.ring svg { width: 70px; height: 70px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .val { stroke: #ecece8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s var(--ease) .15s; }
.ring.you .val { stroke: var(--lime); }
.ring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 1000; letter-spacing: -.02em; }
.ring .lbl { font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 13px 4px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 900; color: var(--text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: transform .25s var(--spring), background .3s, color .3s, border-color .3s; }
.act:active { transform: scale(.94); }
.act svg { width: 25px; height: 25px; }
.act.on { color: var(--lime); background: var(--lime-soft); border-color: var(--lime-line); }
.act.off { color: var(--text); background: rgba(255, 255, 255, .12); border-color: var(--line-2); }

.rate { margin-top: 12px; padding: 16px; position: relative; }
.rate-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; min-height: 40px; }
.rate-head .big { display: flex; align-items: baseline; gap: 9px; }
.rate-head .big b { font-size: 40px; line-height: .9; font-weight: 1000; letter-spacing: -.03em; color: var(--lime); }
.rate-head .big span { font-size: 14px; font-weight: 900; color: var(--text-2); }
.rate-head .ttl { font-size: 17px; font-weight: 1000; }
.rate-head .clear { font-size: 13px; font-weight: 800; color: var(--dim); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale button { height: 48px; border-radius: 12px; font-size: 16px; font-weight: 1000; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: transform .3s var(--spring), background .25s, color .25s; }
.scale button:active { transform: scale(.88); }
.scale button.sel { transform: scale(1.08); color: #0a0a0a; background: var(--lime); border-color: transparent; }
.partner-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13.5px; font-weight: 800; color: var(--text-2); }
.partner-chip .avatar { width: 26px; height: 26px; font-size: 12px; box-shadow: none; }

.burst { position: absolute; pointer-events: none; z-index: 5; color: var(--lime); width: 14px; height: 14px; animation: burst .8s var(--ease) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(150deg); opacity: 0; } }

.reason { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.reason svg { width: 12px; height: 12px; color: var(--lime); }
.desc { position: relative; margin-top: 18px; color: #d9d9d4; font-size: 15.5px; line-height: 1.6; font-weight: 600; }
.desc.clamp { max-height: 125px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.desc-more { margin-top: 4px; font-size: 14px; font-weight: 900; color: var(--text); }

.people { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.person { width: 76px; flex: none; text-align: center; }
.person .ph { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.person .ph img.loaded { opacity: 1; }
.person b { display: block; margin-top: 7px; font-size: 12px; font-weight: 800; line-height: 1.2; }
.person span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.ext { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 30px 0 0; font-size: 13px; font-weight: 800; color: var(--dim); }
.ext svg { width: 14px; height: 14px; }

/* ---------- поиск ---------- */
.search-bar { position: sticky; top: 0; z-index: 30; margin: 0 -16px; padding: calc(var(--safe-t) + 8px) 16px 14px; background: linear-gradient(180deg, var(--bg) 72%, rgba(5,5,5,0)); }
.search-bar h1 { margin: 6px 0 14px; font-size: 36px; line-height: 1; font-weight: 1000; letter-spacing: -.03em; }
.search-field { position: relative; }
.search-field > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 50px; border-radius: 999px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; padding: 12px 14px; transition: transform .25s var(--spring); background: var(--surface-2); }
.tile:active { transform: scale(.96); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; filter: grayscale(1) contrast(1.05); }
.tile img.loaded { opacity: .62; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(0,0,0,0) 10%, rgba(0,0,0,.86)); }
.tile b { position: relative; z-index: 1; font-size: 14.5px; font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- профиль ---------- */
.profile { display: flex; align-items: center; gap: 16px; padding: 10px 0 22px; }
.profile .grow { flex: 1; min-width: 0; }
.profile h1 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 1000; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile .sub { color: var(--muted); font-size: 13.5px; font-weight: 700; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bento > * { border-radius: var(--r-l); padding: 16px; position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); min-width: 0; }
.bento .full { grid-column: 1 / -1; }
.bento .hero-stat { min-height: 172px; display: flex; flex-direction: column; justify-content: flex-end; background: #060606 url("../img/spheres-wide.6d8d05037470.webp") right center / cover; }
.bento .hero-stat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.92) 25%, rgba(5,5,5,.25)); }
.bento .hero-stat > * { position: relative; }
.stat-n { font-size: 40px; line-height: .95; font-weight: 1000; letter-spacing: -.04em; }
.hero-stat .stat-n { font-size: 64px; }
.stat-l { margin-top: 7px; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.stat-x { margin-top: 5px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.stat-word { font-size: 23px; font-weight: 1000; line-height: 1.05; letter-spacing: -.02em; }
.stat-word::first-letter { text-transform: uppercase; }
.person-stat { display: flex; align-items: center; gap: 12px; }
.person-stat .ph { width: 54px; height: 54px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.person-stat .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.person-stat .ph img.loaded { opacity: 1; }
.person-stat b { display: block; font-size: 16px; font-weight: 1000; line-height: 1.15; }

.chart { padding: 18px 14px 12px; margin-bottom: 24px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 16px; }
.chart-head b { font-size: 17px; font-weight: 1000; }
.bars { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; align-items: end; height: 150px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar .n { font-size: 11px; font-weight: 800; color: var(--muted); }
.bar .col { width: 100%; min-height: 3px; border-radius: 7px 7px 4px 4px; background: linear-gradient(180deg, #6e6e6a, #3a3a37); transform-origin: bottom; animation: grow .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.bar.peak .col { background: var(--lime); }
.bar.peak .n { color: var(--text); }
.bar .r { font-size: 12.5px; font-weight: 1000; color: var(--text-2); }
@keyframes grow { from { transform: scaleY(0); } }
.sort-line { display: flex; justify-content: flex-end; gap: 16px; margin: -6px 2px 14px; font-size: 13.5px; font-weight: 900; color: var(--dim); }
.sort-line a.active { color: var(--text); }

/* ---------- пара ---------- */
.duo { display: flex; align-items: center; }
.duo .avatar + .avatar { margin-left: -12px; }
.pair-top { display: flex; align-items: center; gap: 14px; padding: 10px 0 18px; }
.pair-top .grow { flex: 1; min-width: 0; }
.pair-top h1 { margin: 0; font-size: 28px; font-weight: 1000; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-top .sub { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.compat-ring { position: relative; width: 60px; height: 60px; flex: none; }
.compat-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.compat-ring circle { fill: none; stroke-width: 5; }
.compat-ring .track { stroke: rgba(255,255,255,.08); }
.compat-ring .val { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 100; }
.compat-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 1000; }

.deck { position: relative; height: calc(100dvh - 360px - var(--safe-t) - var(--safe-b)); min-height: 340px; max-height: 640px; margin: 0 auto; max-width: 420px; }
.swipe-card { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; background: var(--surface-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .09); touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .35s var(--ease), opacity .35s var(--ease); will-change: transform; }
.swipe-card.dragging { transition: none; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 18%, transparent 40%, rgba(0,0,0,.95) 100%); }
.swipe-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.swipe-card .info h3 { margin: 0; font-size: 28px; line-height: 1.02; font-weight: 1000; letter-spacing: -.03em; }
.swipe-card .info .m { color: #d6d6d1; font-size: 14px; font-weight: 700; margin-top: 7px; }
.swipe-card .info .d { color: #b9b9b4; font-size: 14px; font-weight: 600; margin-top: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.swipe-card .info .why { display: flex; gap: 7px; align-items: center; color: var(--text-2); font-size: 13.5px; font-weight: 900; margin-top: 10px; }
.swipe-card .info .why svg { width: 12px; height: 12px; color: var(--lime); }
.swipe-card .top-badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.swipe-card .top-badges .kp { position: static; font-size: 14px; padding: 4px 10px; }
.stamp { position: absolute; top: 70px; z-index: 3; padding: 8px 16px; border-radius: 14px; font-size: 30px; font-weight: 1000; letter-spacing: .08em; opacity: 0; border: 4px solid; transform: rotate(-14deg); }
.stamp.yes { left: 22px; color: var(--lime); border-color: var(--lime); background: rgba(5, 5, 5, .35); }
.stamp.no { right: 22px; color: var(--text); border-color: var(--text); background: rgba(5, 5, 5, .35); transform: rotate(14deg); }
.deck-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 18px; }
.round { width: 62px; height: 62px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: var(--glass-bg); border: var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); transition: transform .25s var(--spring); }
.round:active { transform: scale(.88); }
.round svg { width: 28px; height: 28px; }
.round.yes { width: 78px; height: 78px; color: #0a0a0a; background: var(--lime); border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 30px rgba(0,0,0,.45); }
.round.yes svg { width: 34px; height: 34px; }
.round.small { width: 48px; height: 48px; color: var(--muted); }
.round.small svg { width: 21px; height: 21px; }

.match-screen { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 24px) 24px calc(var(--safe-b) + 24px); text-align: center; background: #050505 url("../img/spheres-dark.2309c05737cc.webp") center / cover; animation: fade .3s ease; overflow: hidden; }
.match-screen::before { content: ''; position: absolute; inset: 0; background: rgba(5,5,5,.45); }
.match-screen > * { position: relative; }
.match-duo { display: flex; align-items: center; margin-bottom: 18px; }
.match-duo .avatar { width: 64px; height: 64px; font-size: 26px; }
.match-duo .avatar:first-child { animation: inl .7s var(--spring) both; }
.match-duo .avatar:last-child { margin-left: -14px; animation: inr .7s var(--spring) both; }
@keyframes inl { from { transform: translateX(-120px) scale(.5); opacity: 0; } }
@keyframes inr { from { transform: translateX(120px) scale(.5); opacity: 0; } }
.match-screen h2 { margin: 0; font-size: 64px; line-height: .9; font-weight: 1000; letter-spacing: .02em; color: var(--lime); animation: pop .6s var(--spring) .2s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.match-screen p { color: var(--text-2); font-weight: 700; margin: 12px 0 22px; }
.match-screen p b { color: var(--text); }
.match-screen .poster { width: 168px; border-radius: 18px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 30px 70px rgba(0,0,0,.7); animation: pop .6s var(--spring) .35s both; }
.match-screen .btns { display: grid; gap: 10px; width: 100%; max-width: 320px; }
@keyframes fade { from { opacity: 0; } }

.list-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .thumb { width: 56px; flex: none; }
.list-row .thumb .pimg { border-radius: 10px; }
.list-row .txt { flex: 1; min-width: 0; }
.list-row .txt b { display: block; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .txt span { display: block; color: var(--dim); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); transition: transform .25s var(--spring); }
.done-btn:active { transform: scale(.88); }
.done-btn svg { width: 22px; height: 22px; }

.invite { position: relative; margin: calc(-12px - var(--safe-t)) -16px 0; padding: calc(var(--safe-t) + 40px) 24px 34px; text-align: center; overflow: hidden; border-radius: 0 0 36px 36px; background: #050505 url("../img/spheres-dark.2309c05737cc.webp") center 70% / cover; }
.invite::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.2), rgba(5,5,5,.88)); }
.invite > * { position: relative; }
.invite .eyes { width: 150px; margin: 10px auto 20px; }
.invite h2 { margin: 0; font-size: 36px; line-height: 1; font-weight: 1000; letter-spacing: -.03em; }
.invite p { color: var(--text-2); font-weight: 700; margin: 12px auto 22px; max-width: 330px; }
.steps { display: grid; gap: 10px; margin-top: 22px; }
.step { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.step .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 1000; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line-2); }
.step b { display: block; font-size: 15px; font-weight: 900; }
.step span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- вход ---------- */
.login-page { position: relative; min-height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.login-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wall { position: absolute; top: -30%; left: -45%; right: -45%; height: 130%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; transform: rotate(-14deg); opacity: .3; filter: grayscale(1); }
.wall .col { display: flex; flex-direction: column; gap: 12px; animation: drift 70s linear infinite; }
.wall .col:nth-child(even) { animation-direction: reverse; animation-duration: 85s; }
.wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
@keyframes drift { to { transform: translateY(-50%); } }
.login-bg .spheres { position: absolute; inset: 0; background: url("../img/spheres-lime.ab0479a195e0.webp") center / cover; mix-blend-mode: screen; opacity: .85; }
.login-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.1) 0%, rgba(5,5,5,.35) 32%, rgba(5,5,5,.9) 58%, #050505 78%); }
.login { position: relative; z-index: 2; margin-top: auto; padding: 0 24px calc(var(--safe-b) + 30px); max-width: 460px; width: 100%; align-self: center; }
.login .logo { width: 112px; margin-bottom: 18px; }
.login h1 { margin: 0; font-size: 58px; line-height: .92; font-weight: 1000; letter-spacing: -.045em; }
.login .lead { color: var(--text-2); font-size: 17px; font-weight: 700; margin: 12px 0 26px; max-width: 340px; }
.login form > * + * { margin-top: 12px; }
.login .hint { color: var(--dim); font-size: 13.5px; font-weight: 700; text-align: center; }
.login .hint button { color: var(--text); font-weight: 900; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 800; min-height: 20px; }
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp span { height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 1000; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s, box-shadow .2s, transform .25s var(--spring); }
.otp span.cur { border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 4px rgba(255, 255, 255, .07); }
.otp span.fill { transform: scale(1.04); border-color: rgba(255,255,255,.22); }
.otp input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; caret-color: transparent; }
.otp.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.eyes .pupil { transition: transform .28s var(--ease); }
.eyes .lids { transform-origin: center; transform-box: fill-box; }
.eyes.blink .lids { animation: blink .24s ease; }
@keyframes blink { 50% { transform: scaleY(.1); } }

/* ---------- пустые состояния, тосты, шторки ---------- */
.empty { text-align: center; padding: 40px 18px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 22px; margin: 12px 0 8px; font-weight: 1000; letter-spacing: -.02em; }
.empty p { margin: 0 auto 20px; max-width: 330px; font-weight: 700; }
.empty .eyes { width: 104px; margin: 0 auto; }
.onboard { position: relative; margin: 0 -16px; padding: calc(var(--safe-t) + 120px) 22px 30px; overflow: hidden; background: #050505 url("../img/spheres-lime.ab0479a195e0.webp") center 30% / cover; border-radius: 0 0 34px 34px; }
.onboard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0), rgba(5,5,5,.9)); }
.onboard > * { position: relative; }
.onboard h1 { margin: 0; font-size: 40px; line-height: .98; font-weight: 1000; letter-spacing: -.04em; }
.onboard p { color: var(--text-2); font-weight: 700; margin: 12px 0 22px; }

.toast { position: fixed; z-index: 300; left: 50%; top: calc(var(--safe-t) + 8px); transform: translateX(-50%) scale(.5, .4); opacity: 0; transform-origin: 50% 0; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 11px 18px 11px 12px; border-radius: 999px; background: #000; color: #fff; font-size: 14.5px; font-weight: 800; box-shadow: 0 16px 44px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .5s var(--spring), opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) scale(1); }
.toast i { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--lime); color: #0a0a0a; display: flex; align-items: center; justify-content: center; }
.toast i svg { width: 14px; height: 14px; }
.toast.error i { background: var(--danger); color: #fff; }

.sheet-back { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 520px; padding: 10px 18px calc(var(--safe-b) + 18px); border-radius: 30px 30px 0 0; background: linear-gradient(180deg, rgba(34, 34, 38, .94), rgba(14, 14, 16, .97)); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%); border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 -20px 60px rgba(0,0,0,.5); animation: up .45s var(--spring); }
.sheet .grabber { width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .2); margin: 0 auto 16px; }
.sheet h3 { margin: 0 0 8px; font-size: 22px; font-weight: 1000; letter-spacing: -.02em; }
.sheet p { color: var(--muted); font-weight: 700; margin: 0 0 16px; }
.sheet .btns { display: grid; gap: 10px; margin-top: 16px; }
@keyframes up { from { transform: translateY(100%); } }
.qr-film { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.qr-film .pimg { width: 64px; flex: none; border-radius: 10px; }
.qr-film b { display: block; font-size: 19px; font-weight: 1000; line-height: 1.1; }
.qr-film span { font-size: 13px; font-weight: 700; color: var(--muted); }

.spinner { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; margin: 26px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { padding: 18px; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid var(--line); }
.card + .card { margin-top: 12px; }
.card h2 { margin: 0 0 6px; font-size: 19px; font-weight: 1000; letter-spacing: -.01em; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.settings-list .row-s { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; font-weight: 800; }
.settings-list .row-s + .row-s { border-top: 1px solid var(--line); }
.settings-list .row-s span { color: var(--muted); font-size: 14px; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* ---------- переходы между страницами ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-group(tablens) { animation-duration: .5s; animation-timing-function: var(--spring); }
::view-transition-group(film-cover) { animation-duration: .42s; animation-timing-function: var(--ease); }
::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
