/* ═══════════════════ Pulse · glass design system ═══════════════════ */

:root {
  --bg: #070605;
  --text: #f6f1e6;
  --muted: rgba(246, 241, 230, .62);
  --faint: rgba(246, 241, 230, .38);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .14);
  --accent: #fec654;
  --accent-2: #ff9a3c;
  --accent-ink: #1c1400;
  --accent-soft: rgba(254, 198, 84, .14);
  --good: #6fe3a1;
  --mid: #ffc93c;
  --fire: #ff5a2a;
  --bad: #ff6f61;
  --info: #8fb6ff;

  --glass: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025) 60%);
  --glass-solid: rgba(22, 19, 14, .62);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --blur: blur(26px) saturate(170%);

  --r: 22px;
  --r-sm: 14px;
  --font: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Onest', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 700; }
.num, .display { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); letter-spacing: -0.02em; }
::selection { background: rgba(254, 198, 84, .35); }

/* ── живий фон за склом ── */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.ambient .b1 { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(254, 198, 84, .55), transparent 65%); }
.ambient .b2 { width: 46vw; height: 46vw; right: -14vw; top: 22vh; background: radial-gradient(circle, rgba(255, 120, 50, .38), transparent 65%); }
.ambient .b3 { width: 40vw; height: 40vw; left: 28vw; bottom: -22vw; background: radial-gradient(circle, rgba(120, 80, 255, .18), transparent 65%); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── скло ── */
.glass, .card, .kpi, .side, .topbar, .seg, .pf {
  background: var(--glass), var(--glass-solid);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--shadow);
  border-radius: var(--r);
}

/* ── каркас ── */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 14px; margin: 14px 0 14px 14px; height: calc(100vh - 28px); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; border-radius: 26px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px; }
.logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-ink); background: linear-gradient(140deg, #ffe08f, var(--accent) 45%, var(--accent-2)); box-shadow: 0 6px 20px -6px rgba(254, 198, 84, .7), inset 0 1px 0 rgba(255, 255, 255, .6); flex: none; }
.logo svg { width: 24px; height: 24px; }
.logo.sm { width: 32px; height: 32px; border-radius: 10px; }
.logo.sm svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { font-size: 11px; color: var(--text); opacity: .4; letter-spacing: .04em; margin-top: 4px; }
.nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: var(--muted); font-weight: 600; transition: color .25s; }
.nav a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent); }
.nav-ind { position: absolute; left: 0; right: 0; top: 0; height: 44px; border-radius: 13px; background: linear-gradient(90deg, rgba(254, 198, 84, .16), rgba(254, 198, 84, .06)); box-shadow: inset 0 0 0 1px rgba(254, 198, 84, .22); transition: transform .45s var(--spring), width .45s var(--spring), height .3s; opacity: 0; }
.sync { margin-top: auto; font-size: 12.5px; color: var(--faint); padding: 0 6px; display: flex; flex-direction: column; gap: 10px; }
.sync .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 8px; position: relative; }
.sync .dot.warn { background: var(--bad); animation: none; }
.sync .dot::after, .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2.2s ease-out infinite; will-change: transform, opacity; }
.sync .dot.warn::after { display: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.main { padding: 26px clamp(16px, 3vw, 40px) 70px; max-width: 1320px; width: 100%; }
.topbar { display: none; }

/* ── базові контроли ── */
select, input[type=text], input[type=password], input[type=number], input[type=search], textarea {
  width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); border-radius: 13px; padding: 11px 13px; font: inherit; outline: none; transition: border-color .2s, background .2s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f6f1e6' stroke-opacity='.6' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
select option { background: #1a1612; }
select:focus, input:focus, textarea:focus { border-color: rgba(254, 198, 84, .6); background: rgba(255, 255, 255, .07); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border-radius: 13px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .08); font-weight: 700; transition: transform .2s var(--spring), background .2s; }
.btn:hover { background: rgba(255, 255, 255, .11); }
.btn:active { transform: scale(.96); }
.btn.pri { background: linear-gradient(140deg, #ffe08f, var(--accent) 50%, var(--accent-2)); color: var(--accent-ink); box-shadow: 0 8px 24px -8px rgba(254, 198, 84, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn.dng { color: var(--bad); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbar { flex: 1; min-width: 50px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
table.hl td, table.hl th { padding: 8px 6px; font-size: 13px; }
.gl .table-wrap { margin: 0; padding: 0; }
table.hl .hbar { min-width: 28px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 600; font-size: 13.5px; transition: .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(254, 198, 84, .45); color: var(--accent); }

/* сегментований перемикач з «повзунком» */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 16px; gap: 2px; }
.seg button { position: relative; z-index: 1; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: color .25s; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.seg button.on { color: var(--accent-ink); }
.seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg .ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 12px; background: linear-gradient(140deg, #ffe08f, var(--accent) 55%, var(--accent-2)); box-shadow: 0 6px 18px -6px rgba(254, 198, 84, .8); transition: transform .45s var(--spring), width .45s var(--spring); }
.seg.quiet .ind { background: rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.seg.quiet button.on { color: var(--text); }

.card { padding: 22px 24px; min-width: 0; }
.card h2, .section-h { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.card .sub, .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.acc { color: var(--accent); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 30px 12px; text-align: center; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); border-radius: 16px; padding: 13px 15px; }
.note b { color: var(--text); }
.demo-banner { display: flex; gap: 10px; align-items: center; padding: 10px 15px; border-radius: 14px; background: rgba(254, 198, 84, .1); box-shadow: inset 0 0 0 1px rgba(254, 198, 84, .3); color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.demo-banner svg, .now svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.now svg path[fill] { stroke: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
h1 { margin: 4px 0 0; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.lede { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 720px; }
.lede b { color: var(--text); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .val { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 13px; font-weight: 700; }
.kpi .spark { height: 38px; margin-top: 4px; }
.kpi.hero .val { color: var(--accent); }

/* ── бейджі/статуси ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.b-fly { background: linear-gradient(140deg, #ffe08f, var(--accent) 55%, var(--accent-2)); color: var(--accent-ink); box-shadow: 0 4px 14px -4px rgba(254, 198, 84, .8); }
.b-up { background: rgba(111, 227, 161, .14); color: var(--good); box-shadow: inset 0 0 0 1px rgba(111, 227, 161, .3); }
.b-norm { background: rgba(255, 255, 255, .07); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.b-down { background: rgba(255, 111, 97, .1); color: #ff9c90; box-shadow: inset 0 0 0 1px rgba(255, 111, 97, .25); }
.b-slow { background: rgba(255, 111, 97, .16); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255, 111, 97, .35); }
.b-nodata { color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); }
.type-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }

/* ═══════════════════ ПРОФІЛЬ ═══════════════════ */
.pf { padding: 26px 28px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.pf::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 220px at 12% 0%, rgba(254, 198, 84, .14), transparent 70%); pointer-events: none; }
.pf-top { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 360px); gap: 26px; align-items: center; }
.ava { position: relative; width: 112px; height: 112px; border-radius: 50%; padding: 4px; flex: none; }
.ava::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffe08f, var(--accent), var(--accent-2), #ff5f6d, var(--accent-2), var(--accent), #ffe08f); }
.ava.hot::before { animation: rot 4s linear infinite; will-change: transform; }
.ava.hot::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 198, 84, .35), transparent 70%); will-change: transform, opacity; animation: breathe 2.4s ease-in-out infinite; z-index: -1; }
.ava .in { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 3px solid #0d0b08; background: #15120d; display: grid; place-items: center; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava .ini { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--accent); }
.ava .edit { position: absolute; right: 2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 17, 12, .85); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transform: scale(.7); transition: .3s var(--spring); }
.ava:hover .edit { opacity: 1; transform: none; }
.ava .edit svg { width: 15px; height: 15px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rot { to { transform: rotate(1turn); } }
@keyframes breathe { 50% { opacity: .35; transform: scale(1.06); } }
.pf-id h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); }
.pf-id .handle { color: var(--muted); font-weight: 600; margin-top: 4px; }
.pf-id .bio { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 460px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.pf-stat { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.pf-stat b { display: block; font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pf-stat span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.pf-stat em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.pf-stat em.good { background: rgba(111, 227, 161, .12); }
.pf-stat em.bad { background: rgba(255, 111, 97, .12); }
.pf-stat.hero b { color: var(--accent); text-shadow: 0 0 30px rgba(254, 198, 84, .35); }

/* ритм швидкості останніх постів */
.rhythm { align-self: stretch; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rhythm .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.rh-bars { flex: 1; min-height: 76px; display: flex; align-items: flex-end; gap: 3px; position: relative; }
.rh-bars::after { content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--norm) * 1%); border-top: 1px dashed rgba(255, 255, 255, .22); pointer-events: none; }
.rh-bars a { flex: 1; min-width: 4px; border-radius: 4px 4px 2px 2px; height: calc(var(--h) * 1%); background: rgba(255, 255, 255, .2); transform-origin: bottom; animation: grow .7s var(--spring) both; animation-delay: calc(var(--i) * 25ms); transition: filter .2s, transform .2s; }
.rh-bars a:hover { filter: brightness(1.4); transform: scaleY(1.04); }
@keyframes grow { from { transform: scaleY(0); } }

/* «зараз» */
.now { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.now a, .now span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; transition: .2s; }
.now a:hover { background: rgba(255, 255, 255, .09); }
.now .mini-thumb { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: none; }
.now .mini-thumb .cover { position: static; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); position: relative; flex: none; }

/* панель стрічки */
.feed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.legend-heat { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.legend-heat span { display: inline-flex; align-items: center; gap: 6px; }
.legend-heat i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ═══════════════════ СІТКА ПОСТІВ ═══════════════════ */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.feed.reels .tile { aspect-ratio: 9 / 16; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; isolation: isolate; transform-style: preserve-3d; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .35s var(--ease), filter .35s; }
.feed.enter .tile { animation: rise .6s var(--ease) both; animation-delay: calc(min(var(--i), 24) * 28ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.tile .face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #15120d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.tile:hover { --ty: -4px; z-index: 2; }
.tile:hover .face { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 20px 40px -14px rgba(0, 0, 0, .8); }
.tile .shine { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 3; }
.tile:hover .shine { opacity: 1; }

/* гарячі — жива рамка і світіння */
/* холодні — вицвітають */
.tile:hover .cover { filter: none; }

.cover { position: absolute; inset: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14% 10% 26%;
  background: radial-gradient(120% 70% at 25% 15%, hsl(var(--h) 38% 42% / .8), transparent 60%), radial-gradient(90% 60% at 90% 80%, hsl(calc(var(--h) + 50) 35% 36% / .5), transparent 60%), linear-gradient(165deg, hsl(var(--h) 25% 17%), hsl(calc(var(--h) + 30) 30% 6%)); }
.gen span { font-family: var(--display); font-weight: 700; font-size: clamp(12px, 1.25vw, 16px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gen.sm span { display: none; }

.t-top { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.heat { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; max-width: calc(100% - 30px); overflow: hidden; padding: 4px 9px 4px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(12, 10, 7, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--text); }
.heat svg { width: 13px; height: 13px; flex: none; }
.t-type { width: 26px; height: 26px; display: grid; place-items: center; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6)); }
.t-type svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-bot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 10px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78)); font-size: 13px; font-weight: 700; }
.t-bot .v { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.t-bot .v svg { width: 13px; height: 13px; fill: #fff; }
.t-bot .age { font-size: 11.5px; color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: 6px; }
.t-bar { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; z-index: 2; }
.t-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: rgba(255, 255, 255, .55); transform-origin: left; animation: barIn 1s var(--ease) both; animation-delay: calc(min(var(--i), 24) * 28ms + .25s); }
@keyframes barIn { from { transform: scaleX(0); } }
.t-quick { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 8px; background: rgba(8, 7, 5, .62); opacity: 0; transition: opacity .25s; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.t-quick div { display: flex; align-items: center; gap: 7px; }
.t-quick svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tile:hover .t-quick { opacity: 1; } }

/* ═══════════════════ СКЛЯНЕ ВІКНО ПОСТА ═══════════════════ */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.sheet-bg { position: absolute; inset: 0; background: rgba(5, 4, 3, .42); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); opacity: 0; transition: opacity .4s var(--ease); }
.sheet { position: relative; width: min(1060px, 100%); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: 32px; padding: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 50%), rgba(24, 20, 15, .58);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -20px rgba(0, 0, 0, .85);
  opacity: 0; transform: scale(.86) translateY(16px); transition: transform .55s var(--spring), opacity .3s var(--ease); scrollbar-width: thin; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { opacity: 1; transform: none; }
.sheet-wrap.closing .sheet { transition-duration: .28s; transform: scale(.92) translateY(10px); opacity: 0; }
.sheet .handle { display: none; }
.sh-x, .sh-nav { position: absolute; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .25s var(--spring), background .2s; }
.sh-x:hover, .sh-nav:hover { background: rgba(255, 255, 255, .16); transform: scale(1.08); }
.sh-x { top: 18px; right: 18px; }
.sh-x svg, .sh-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sh-navs { position: fixed; inset: 0; pointer-events: none; z-index: 41; }
.sh-nav { pointer-events: auto; top: 50%; margin-top: -20px; position: fixed; opacity: 0; transition: opacity .4s; }
.sheet-wrap.open .sh-nav { opacity: 1; }
.sh-nav.prev { left: max(12px, calc(50vw - 590px)); }
.sh-nav.next { right: max(12px, calc(50vw - 590px)); }

.sh-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; }
.sh-poster { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.poster { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; isolation: isolate; }
.poster.feed { aspect-ratio: 3 / 4; }
.poster .face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -20px rgba(0, 0, 0, .9); }
.poster .gen span { font-size: 22px; }
.sh-cap { font-weight: 700; font-size: 15px; line-height: 1.4; white-space: pre-line; cursor: pointer; }
.sh-cap.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sh-meta { color: var(--muted); font-size: 13px; }

.sh-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: center; margin-bottom: 18px; padding-right: 50px; }
.sh-hero .big { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.gauge { position: relative; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge .g-val { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge .g-val b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.gauge .g-val span { font-size: 12px; font-weight: 700; color: var(--muted); }
.gl { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.st { padding: 13px 14px; border-radius: 18px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.st .k { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.st .k svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st .v { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.st .s { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.st.acc-b { background: linear-gradient(160deg, rgba(254, 198, 84, .16), rgba(254, 198, 84, .04)); box-shadow: inset 0 0 0 1px rgba(254, 198, 84, .3); }

/* таймлайн контрольних точок */
.tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; margin-top: 10px; }
.tl::before { content: ''; position: absolute; left: 8.3%; right: 8.3%; top: 31px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06)); }
.tl > div { text-align: center; position: relative; }
.tl .h { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.tl .n { width: 16px; height: 16px; margin: 8px auto 10px; border-radius: 50%; background: #2a251c; box-shadow: 0 0 0 4px rgba(10, 8, 6, .9), inset 0 0 0 2px rgba(255, 255, 255, .2); }
.tl .n.fly { background: var(--accent); box-shadow: 0 0 0 4px rgba(10, 8, 6, .9), 0 0 16px rgba(254, 198, 84, .8); }
.tl .n.up { background: var(--good); }
.tl .n.norm { background: rgba(255, 255, 255, .55); }
.tl .n.down { background: #ff9c90; }
.tl .n.slow { background: var(--bad); }
.tl .v { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.tl .x { font-size: 12px; font-weight: 700; margin-top: 1px; }

/* ── «Зведення» ── */
.live { display: flex; flex-direction: column; gap: 10px; }
.live-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); transition: .25s var(--ease); }
.live-item:hover { background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.live-item.fly { background: linear-gradient(90deg, rgba(254, 198, 84, .12), rgba(255, 255, 255, .03) 60%); box-shadow: inset 0 0 0 1px rgba(254, 198, 84, .4); }
.live-item .t { font-weight: 700; }
.live-item .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.live-item .mini { height: 56px; }
.thumb { position: relative; flex: none; width: 50px; height: 64px; border-radius: 11px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: right; font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.l, td.l { text-align: left; }
td { text-align: right; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .04); }
td .cell { display: flex; align-items: center; gap: 12px; max-width: 380px; }
td .cell .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; max-width: 260px; }
td .cell .s { font-size: 12.5px; color: var(--muted); }
.heatc { display: inline-block; min-width: 52px; text-align: center; padding: 3px 8px; border-radius: 9px; font-weight: 700; font-size: 12px; margin-top: 3px; }

/* ── графіки ── */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 11px; font-family: var(--font); font-weight: 500; }
.chart .cross { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.chart path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tip { position: absolute; display: none; pointer-events: none; z-index: 5; background: rgba(28, 24, 18, .78); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px rgba(0, 0, 0, .5); border-radius: 13px; padding: 9px 12px; font-size: 12.5px; white-space: nowrap; }
.tip-h { color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.tip-r { display: flex; align-items: center; gap: 8px; }
.tip-r i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.tip-r b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.legend i.band { height: 10px; opacity: .35; border-radius: 3px; }

.rank { display: flex; flex-direction: column; gap: 8px; }
.rank-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 8px 0; }
.rank-i .t { font-weight: 600; }
.rank-i .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.rank-i .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; transform-origin: left; animation: barIn 1s var(--ease) both; }
.conf { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-left: 6px; }
.conf.high { color: var(--good); background: rgba(111, 227, 161, .12); }
.conf.medium { color: var(--accent); background: var(--accent-soft); }
.conf.low { color: var(--faint); background: rgba(255, 255, 255, .06); }

.hm { display: grid; grid-template-columns: 40px repeat(4, 1fr); gap: 5px; font-size: 12.5px; }
.hm .c { border-radius: 10px; min-height: 40px; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm .h { color: var(--faint); font-weight: 700; display: grid; place-items: center; font-size: 11px; }
.hm .r { color: var(--muted); font-weight: 700; display: grid; align-items: center; }

.ratio { display: grid; grid-template-columns: 100px minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.ratio .track { position: relative; height: 8px; background: rgba(255, 255, 255, .07); border-radius: 5px; }
.ratio .track i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 5px; transform-origin: left; animation: barIn 1s var(--ease) both; }
.ratio .track u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .75; border-radius: 1px; }

.ev { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.ev:last-child { border-bottom: 0; }

.form { display: grid; gap: 14px; }
.form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proj-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.proj-row:last-child { border-bottom: 0; }
.proj-row .btn { flex: none; }
.proj-edit { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--muted); text-transform: uppercase; }
.tag.demo { background: var(--accent-soft); color: var(--accent); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: rgba(255, 255, 255, .1); border-radius: 999px; transition: .3s; box-shadow: inset 0 0 0 1px var(--line); }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: .35s var(--spring); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { left: 23px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: rgba(30, 26, 20, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 40px rgba(0, 0, 0, .5); padding: 12px 18px; border-radius: 16px; font-weight: 600; opacity: 0; pointer-events: none; transition: .35s var(--spring); z-index: 60; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.err { color: var(--bad); }

.skel { background: linear-gradient(90deg, rgba(255, 255, 255, .03) 25%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .03) 75%); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: var(--r); height: 140px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ═══════════════════ адаптив ═══════════════════ */
@media (max-width: 1180px) {
  .pf-top { grid-template-columns: auto minmax(0, 1fr); }
  .rhythm { grid-column: 1 / -1; }
  .sh-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid-3-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 30; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; top: auto; height: auto; margin: 0; flex-direction: row; padding: 6px; border-radius: 24px; gap: 0; }
  .brand, .sync, .proj { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .nav a { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 10.5px; flex: 1; align-items: center; border-radius: 18px; }
  .nav a span { white-space: nowrap; }
  .nav-ind { border-radius: 18px; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; margin: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; border-radius: 0 0 22px 22px; }
  .main { padding: 14px 10px 110px; }
  .pf { padding: 20px 16px 16px; border-radius: 24px; }
  .pf-top { gap: 16px; }
  .ava { width: 84px; height: 84px; padding: 3px; }
  .ava .ini { font-size: 30px; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .pf-stat { padding: 11px 12px; border-radius: 15px; }
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .tile { border-radius: 6px; }
  .tile .face { border-radius: 6px; }
  .heat { padding: 2px 6px 2px 5px; font-size: 10.5px; gap: 3px; }
  .heat svg { width: 11px; height: 11px; }
  .t-top { left: 5px; right: 5px; top: 5px; }
  .t-type { width: 20px; height: 20px; }
  .t-type svg { width: 15px; height: 15px; }
  .t-bot { padding: 22px 6px 9px; font-size: 11.5px; }
  .t-bot .age { display: none; }
  .t-bar { left: 6px; right: 6px; bottom: 4px; height: 2px; }
  .gen { padding: 10% 8% 30%; }
  .gen span { font-size: 9.5px; }
  .feed-bar .seg button { padding: 7px 11px; font-size: 12.5px; }
  .sheet-wrap { padding: 0; place-items: end stretch; }
  .sheet { width: 100%; max-height: 92vh; border-radius: 30px 30px 0 0; padding: 12px 16px calc(28px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .5s var(--spring), opacity .2s; }
  .sheet-wrap.closing .sheet { transform: translateY(100%); opacity: 1; }
  .sheet .handle { display: block; width: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: 0 auto 14px; }
  .sh-nav { display: none; }
  .sh-x { top: 14px; right: 14px; width: 34px; height: 34px; }
  .sh-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sh-poster { position: static; flex-direction: row; align-items: center; }
  .poster { width: 96px; flex: none; border-radius: 14px; }
  .poster .face { border-radius: 14px; }
  .poster .gen span { font-size: 9px; }
  .sh-hero { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .gauge { max-width: 280px; margin: 0 auto; }
  .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .tl::before { display: none; }
  .live-item { grid-template-columns: auto minmax(0, 1fr); }
  .live-item .mini { grid-column: 1 / -1; }
  .kpi .val { font-size: 24px; }
  .form.two { grid-template-columns: minmax(0, 1fr); }
  .ev { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .ratio { grid-template-columns: 82px minmax(0, 1fr) 84px; }
  .ambient i { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .chart path.draw { stroke-dashoffset: 0; } }

/* ═══════════════════ РІВНІ ШВИДКОСТІ (перегляди/год) ═══════════════════ */
/* позначка на прев'ю */
.lv-fire .heat { background: linear-gradient(135deg, #ffd36b, #ff7a2f 45%, #ff3d2e); color: #2a0700; box-shadow: 0 4px 18px -2px rgba(255, 90, 42, .9); }
.lv-good .heat { background: rgba(20, 60, 38, .78); color: var(--good); box-shadow: inset 0 0 0 1px rgba(111, 227, 161, .55); }
.lv-mid .heat { background: rgba(64, 48, 8, .78); color: var(--mid); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .45); }
.lv-bad .heat { background: rgba(70, 16, 12, .78); color: #ff8b80; box-shadow: inset 0 0 0 1px rgba(255, 111, 97, .45); }
.lv-wait .heat { color: rgba(255, 255, 255, .75); }
.heat small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .75; margin-right: 1px; }

/* вогонь — живе вогняне кільце, світіння і іскри */
.ring { position: absolute; inset: -2.5px; border-radius: 18.5px; overflow: hidden; z-index: -1; pointer-events: none; }
.ring i { position: absolute; left: 50%; top: 50%; width: 230%; aspect-ratio: 1; translate: -50% -50%; background: conic-gradient(#ffd36b, #ff7a2f, #ff3d2e, transparent 38%, transparent 52%, #ff3d2e, #ff7a2f, #ffd36b); animation: rot 2.4s linear infinite; will-change: transform; }
.poster .ring { inset: -3px; border-radius: 25px; }
.tile.lv-fire .fire-glow, .poster.lv-fire::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -6%; height: 70%; z-index: -2; border-radius: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 90, 30, .85), rgba(255, 160, 40, .35) 45%, transparent 70%); filter: blur(22px); will-change: transform, opacity; animation: breathe 1.8s ease-in-out infinite; pointer-events: none; }
.tile.lv-fire { --ty: -3px; }
.tile.lv-fire .face { box-shadow: inset 0 -60px 60px -30px rgba(255, 80, 20, .45); }
.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 6px 2px rgba(255, 120, 30, .9); opacity: 0; animation: ember 3.2s linear infinite; }
.embers i:nth-child(1) { left: 12%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 30%; animation-delay: .7s; animation-duration: 2.6s; }
.embers i:nth-child(3) { left: 48%; animation-delay: 1.5s; }
.embers i:nth-child(4) { left: 64%; animation-delay: .3s; animation-duration: 3.8s; }
.embers i:nth-child(5) { left: 80%; animation-delay: 2.1s; animation-duration: 2.9s; }
.embers i:nth-child(6) { left: 90%; animation-delay: 1.1s; }
@keyframes ember { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(-14px, -220px) scale(.3); opacity: 0; } }

/* добре — зелена рамка; середньо — без рамки; слабко — прев'ю тьмяніє */
.tile.lv-good .face { box-shadow: inset 0 0 0 2px rgba(111, 227, 161, .75), 0 0 22px -6px rgba(111, 227, 161, .55); }
.tile.lv-bad .cover { filter: saturate(.3) brightness(.7); transition: filter .35s; }
.tile.lv-bad:hover .cover { filter: none; }
.poster.lv-good .face { box-shadow: inset 0 0 0 2px rgba(111, 227, 161, .75), 0 24px 60px -20px rgba(0, 0, 0, .9); }

/* смужка швидкості внизу */
.lv-fire .t-bar i { background: linear-gradient(90deg, #ff3d2e, #ff7a2f, #ffd36b); box-shadow: 0 0 8px rgba(255, 110, 30, .9); }
.lv-good .t-bar i { background: var(--good); }
.lv-mid .t-bar i { background: var(--mid); }
.lv-bad .t-bar i { background: var(--bad); }
.t-quick .lvq { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; justify-content: center; }

/* ритм і позначки «зараз» */
.rh-bars a.lv-fire { background: linear-gradient(180deg, #ffd36b, #ff7a2f, #ff3d2e); box-shadow: 0 0 14px rgba(255, 90, 42, .7); }
.rh-bars a.lv-good { background: var(--good); }
.rh-bars a.lv-mid { background: var(--mid); opacity: .9; }
.rh-bars a.lv-bad { background: var(--bad); opacity: .8; }
.rh-bars a.lv-wait { background: rgba(255, 255, 255, .12); }
.now a.lv-fire { background: linear-gradient(90deg, rgba(255, 90, 42, .28), rgba(255, 160, 40, .12)); box-shadow: inset 0 0 0 1px rgba(255, 120, 40, .6), 0 0 18px -4px rgba(255, 90, 42, .6); color: #ffb47a; }
.now a.lv-good { color: var(--good); box-shadow: inset 0 0 0 1px rgba(111, 227, 161, .35); }
.now a.lv-mid { color: var(--mid); }
.now a.lv-bad { color: #ff8b80; }

@media (max-width: 860px) {
  .tile .ring { inset: -2px; border-radius: 8px; }
  .poster .ring { border-radius: 17px; }
  .heat small { display: none; }
}
