/* ============================================================
   NEBULA — NAS & game streaming
   Один файл стилей на все страницы.
   ============================================================ */

:root {
  --bg: #060911;
  --bg-soft: #0a0f1a;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-solid: #0c1220;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #e9eefb;
  --muted: #93a3bd;
  --dim: #6c7c95;
  --mint: #4de3c6;
  --violet: #8b7bff;
  --amber: #ffc46b;
  --rose: #ff6f87;
  --grad: linear-gradient(115deg, #4de3c6 0%, #6fd2ff 45%, #8b7bff 100%);
  --grad-soft: linear-gradient(115deg, rgba(77, 227, 198, 0.16), rgba(139, 123, 255, 0.16));
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 0 1px rgba(77, 227, 198, 0.25), 0 26px 60px -34px rgba(77, 227, 198, 0.55);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Inter", Arial, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(77, 227, 198, 0.14), transparent 60%),
    radial-gradient(900px 700px at 92% 4%, rgba(139, 123, 255, 0.16), transparent 62%),
    radial-gradient(1000px 800px at 50% 108%, rgba(58, 120, 255, 0.1), transparent 65%),
    var(--bg);
}

::selection { background: rgba(77, 227, 198, 0.28); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #070b14; }
::-webkit-scrollbar-thumb { background: #1b2434; border-radius: 20px; border: 3px solid #070b14; }
::-webkit-scrollbar-thumb:hover { background: #26334a; }

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- декоративные пятна ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s var(--ease) infinite alternate;
}
.orb-1 { width: 420px; height: 420px; left: -120px; top: 8%; background: rgba(77, 227, 198, 0.22); }
.orb-2 { width: 520px; height: 520px; right: -160px; top: -60px; background: rgba(139, 123, 255, 0.2); animation-delay: -8s; }
.orb-3 { width: 380px; height: 380px; left: 42%; bottom: -140px; background: rgba(58, 120, 255, 0.16); animation-delay: -16s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 9, 17, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad);
  box-shadow: 0 10px 26px -12px rgba(77, 227, 198, 0.9);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 17px; letter-spacing: 0.16em; font-weight: 700; }
.brand-text small { font-size: 10.5px; letter-spacing: 0.22em; color: var(--dim); text-transform: uppercase; }

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav-link {
  position: relative;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(77, 227, 198, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77, 227, 198, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(77, 227, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 227, 198, 0); }
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}
.burger span { display: block; width: 17px; height: 1.7px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- кнопки ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--btn-bg);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  border: none;
  color: #04141a;
  background: var(--grad);
  box-shadow: 0 16px 34px -18px rgba(77, 227, 198, 0.85);
}
.btn-primary:hover { box-shadow: 0 20px 40px -16px rgba(77, 227, 198, 0.9); }
.btn-ghost { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(34px, 5.2vw, 62px); }
h2 { font-size: clamp(25px, 3.2vw, 38px); }
h3 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.01em; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.65; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.eyebrow .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: #04141a;
  background: var(--grad);
  font-weight: 700;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- секции ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(36px, 4vw, 56px) 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head p { margin-top: 14px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: none; }
.section-head--row > div { max-width: 640px; }

/* ---------- карточки ---------- */
.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}
.card-pad { padding: clamp(20px, 2.2vw, 30px); }
.card:hover { transform: translateY(-4px); border-color: rgba(77, 227, 198, 0.28); }
.card-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px 200px at 20% 0%, rgba(77, 227, 198, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card-glow:hover::after { opacity: 1; }

.icon-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(77, 227, 198, 0.28);
  background: var(--grad-soft);
  color: var(--mint);
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge--violet { border-color: rgba(139, 123, 255, 0.32); color: #b6aaff; background: linear-gradient(115deg, rgba(139, 123, 255, 0.18), rgba(58, 120, 255, 0.12)); }

/* ---------- hero ---------- */
.hero { padding: clamp(44px, 6vw, 84px) 0 clamp(30px, 4vw, 54px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}
.hero h1 { margin: 20px 0 18px; }
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--mint); flex-shrink: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.stat b { display: block; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 12.5px; color: var(--dim); }

/* панель-мокап */
.panel-mock {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 25, 40, 0.92), rgba(9, 13, 22, 0.96));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 20px;
  overflow: hidden;
}
.panel-mock::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 140px;
  background: radial-gradient(400px 140px at 30% 0%, rgba(77, 227, 198, 0.18), transparent 70%);
  pointer-events: none;
}
.panel-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.panel-top .dot { flex-shrink: 0; }
.panel-top .mono { color: var(--muted); }
.panel-top .spacer { margin-left: auto; }
.panel-top .chip-mini { font-family: var(--mono); font-size: 10.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.storage-block { display: flex; align-items: center; gap: 20px; padding: 20px 0 18px; }
.ring { flex-shrink: 0; position: relative; width: 96px; height: 96px; }
.ring svg { transform: rotate(-90deg); }
.ring-track { stroke: rgba(255, 255, 255, 0.08); }
.ring-bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-size: 17px; }
.ring-label span { font-size: 10px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.storage-meta { flex: 1; min-width: 0; }
.storage-meta .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: 0; transition: width 1.4s var(--ease); }
.storage-meta .hint { font-size: 11.5px; color: var(--dim); margin-top: 9px; }

.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; transition: background 0.2s; }
.mini-row:hover { background: rgba(255, 255, 255, 0.045); }
.mini-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.mini-icon svg { width: 16px; height: 16px; }
.mini-icon--invite { color: var(--amber); background: rgba(255, 196, 107, 0.12); }
.mini-body { min-width: 0; flex: 1; }
.mini-body b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body span { font-size: 11.5px; color: var(--dim); }
.mini-row .badge { flex-shrink: 0; }

/* ---------- бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge--open { color: #7ff0d8; background: rgba(77, 227, 198, 0.12); border-color: rgba(77, 227, 198, 0.28); }
.badge--invite { color: #ffd493; background: rgba(255, 196, 107, 0.11); border-color: rgba(255, 196, 107, 0.3); }
.badge--violet { color: #c3b8ff; background: rgba(139, 123, 255, 0.14); border-color: rgba(139, 123, 255, 0.3); }
.badge--muted { color: var(--muted); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

/* ---------- карточки файлов ---------- */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.file-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
  transition: transform 0.26s var(--ease), border-color 0.26s, box-shadow 0.26s;
  overflow: hidden;
}
.file-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9); }
.file-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px 160px at 15% 0%, rgba(77, 227, 198, 0.1), transparent 70%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.file-card:hover::before { opacity: 1; }
.file-card.is-locked::before { background: radial-gradient(340px 160px at 15% 0%, rgba(255, 196, 107, 0.1), transparent 70%); }
.file-top { display: flex; align-items: flex-start; gap: 12px; }
.file-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: #a9b8d0;
}
.file-ico svg { width: 21px; height: 21px; }
.file-ico--iso { color: #8fd7ff; background: rgba(96, 190, 255, 0.1); border-color: rgba(96, 190, 255, 0.24); }
.file-ico--zip { color: #ffc98f; background: rgba(255, 190, 120, 0.1); border-color: rgba(255, 190, 120, 0.24); }
.file-ico--media { color: #c8b4ff; background: rgba(150, 130, 255, 0.1); border-color: rgba(150, 130, 255, 0.24); }
.file-ico--doc { color: #9ff0d0; background: rgba(77, 227, 198, 0.1); border-color: rgba(77, 227, 198, 0.24); }
.file-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.file-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--dim); font-family: var(--mono); }
.file-desc { font-size: 12.8px; color: var(--muted); line-height: 1.5; }
.file-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.file-foot .btn { flex: 1; }
.file-foot .badge { order: -1; }

/* ---------- два больших направления ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.feature-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.6vw, 34px); overflow: hidden; }
.feature-card h3 { font-size: clamp(21px, 2vw, 26px); }
.feature-card p { color: var(--muted); font-size: 14.5px; }
.feature-list { display: grid; gap: 9px; margin: 2px 0 6px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); }
.feature-list svg { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; margin-top: 3px; }
.feature-card .link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--mint); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.feature-art {
  position: absolute;
  right: -40px; top: -30px;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  pointer-events: none;
}
.feature-art--mint { background: rgba(77, 227, 198, 0.35); }
.feature-art--violet { background: rgba(139, 123, 255, 0.35); }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step::after {
  content: "";
  position: absolute; inset: auto 24px 0 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 227, 198, 0.5), transparent);
}

/* ---------- полоса статистики ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-band > div { background: rgba(10, 15, 26, 0.86); padding: 26px 24px; }
.stat-band b { display: block; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.stat-band span { font-size: 12.5px; color: var(--dim); }
.stat-band em { font-style: normal; font-size: 13px; color: var(--mint); }

/* ---------- баннер ---------- */
.banner {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 28px;
  border: 1px solid rgba(77, 227, 198, 0.22);
  background:
    radial-gradient(600px 240px at 8% 0%, rgba(77, 227, 198, 0.16), transparent 70%),
    radial-gradient(520px 260px at 95% 100%, rgba(139, 123, 255, 0.18), transparent 70%),
    rgba(10, 15, 26, 0.9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}
.banner h2 { margin-bottom: 12px; }
.banner p { color: var(--muted); max-width: 560px; font-size: 14.5px; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- страница: заголовок ---------- */
.page-head { padding: clamp(34px, 4.5vw, 60px) 0 clamp(20px, 2.6vw, 34px); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span.sep { opacity: 0.5; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.page-head .lead { max-width: 660px; }

/* ---------- макет с боковой колонкой ---------- */
.layout-split { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 24px; align-items: start; }

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { padding: 20px; border-radius: 18px; }
.side-title { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.tree { display: flex; flex-direction: column; gap: 2px; }
.tree-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  width: 100%;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.tree-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.tree-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.tree-item.is-active { background: rgba(77, 227, 198, 0.1); border-color: rgba(77, 227, 198, 0.25); color: #c9fff2; }
.tree-item .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.tree-sub { padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }

.side-storage { padding: 20px; border-radius: 18px; }
.side-storage .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.side-storage .legend { display: flex; gap: 14px; margin-top: 14px; font-size: 11.5px; color: var(--dim); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend .l1 { background: var(--mint); }
.legend .l2 { background: var(--violet); }
.legend .l3 { background: rgba(255, 255, 255, 0.18); }

.promo { padding: 20px; border-radius: 18px; border: 1px solid rgba(255, 196, 107, 0.24); background: linear-gradient(160deg, rgba(255, 196, 107, 0.1), rgba(255, 196, 107, 0.02)); }
.promo h4 { font-size: 14.5px; margin-bottom: 8px; }
.promo p { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.promo .code { font-family: var(--mono); font-size: 12px; color: #ffd493; letter-spacing: 0.08em; }

/* ---------- тулбар ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 240px; min-width: 200px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.search input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: rgba(77, 227, 198, 0.5); background: rgba(255, 255, 255, 0.06); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.chip.is-active { color: #04141a; background: var(--grad); border-color: transparent; font-weight: 600; }
.select {
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.select option { background: #0c1220; color: var(--text); }

/* ---------- таблица ---------- */
.table-wrap { border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: rgba(10, 15, 26, 0.62); }
.table-scroll { overflow-x: auto; }
table.files { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.files thead th {
  position: sticky; top: 0;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  padding: 13px 16px;
  background: rgba(12, 18, 32, 0.96);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.files tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.files tbody tr { transition: background 0.16s; }
table.files tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
table.files tbody tr:last-child td { border-bottom: none; }
.cell-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cell-name .file-ico { width: 34px; height: 34px; border-radius: 9px; }
.cell-name .file-ico svg { width: 17px; height: 17px; }
.cell-name .txt { min-width: 0; }
.cell-name .txt b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.cell-name .txt span { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.col-size, .col-date { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.col-act { text-align: right; }
.cat-tag { font-size: 11.5px; color: var(--dim); }
.empty { padding: 46px 20px; text-align: center; color: var(--dim); font-size: 14px; }
.empty svg { width: 34px; height: 34px; opacity: 0.5; margin-bottom: 10px; }

/* ---------- стриминг ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.game-card { overflow: hidden; display: flex; flex-direction: column; }
.game-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  isolation: isolate;
}
.game-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 9, 17, 0.92) 100%);
  z-index: -1;
}
.game-cover .g-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.game-cover .g-sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.7); font-family: var(--mono); }
.game-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.slot-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--dim); }
.slots { display: flex; gap: 4px; }
.slots i { width: 14px; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.slots i.on { background: var(--mint); }
.slots i.busy { background: rgba(255, 196, 107, 0.75); }
.game-foot { display: flex; align-items: center; gap: 10px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.spec { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.025); }
.spec span { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.spec b { font-size: 15px; font-weight: 600; }
.spec small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

.ping-list { display: flex; flex-direction: column; gap: 2px; }
.ping-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.ping-row:last-child { border-bottom: none; }
.ping-row .city { flex: 1; color: var(--muted); }
.ping-row .ms { font-family: var(--mono); font-size: 12.5px; color: var(--mint); }
.ping-row .ms.mid { color: var(--amber); }
.signal { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.signal i { width: 4px; border-radius: 1px; background: rgba(255, 255, 255, 0.15); }
.signal i:nth-child(1) { height: 5px; }
.signal i:nth-child(2) { height: 8px; }
.signal i:nth-child(3) { height: 11px; }
.signal i:nth-child(4) { height: 14px; }
.signal.s4 i { background: var(--mint); }
.signal.s3 i:nth-child(-n+3) { background: var(--mint); }
.signal.s2 i:nth-child(-n+2) { background: var(--amber); }

/* ---------- форма / доступ ---------- */
.form-card { padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.01em; }
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: rgba(77, 227, 198, 0.55); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 4px rgba(77, 227, 198, 0.09); }
.field input.is-error { border-color: rgba(255, 111, 135, 0.65); box-shadow: 0 0 0 4px rgba(255, 111, 135, 0.1); }
.field .hint { font-size: 11.5px; color: var(--dim); margin-top: 6px; }
.form-msg { font-size: 12.5px; margin-top: 12px; min-height: 18px; }
.form-msg.err { color: var(--rose); }
.form-msg.ok { color: var(--mint); }
.divider { height: 1px; background: var(--line-soft); margin: 22px 0; }
.tiny { font-size: 11.5px; color: var(--dim); }

.success-box { text-align: center; padding: 10px 4px 4px; }
.success-box .check {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(77, 227, 198, 0.12);
  border: 1px solid rgba(77, 227, 198, 0.4);
  color: var(--mint);
}
.success-box .check svg { width: 28px; height: 28px; }
.success-box h3 { margin-bottom: 8px; }
.success-box p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

/* ---------- аккордеон ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
details.acc {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 18px;
  transition: border-color 0.2s, background 0.2s;
}
details.acc[open] { border-color: rgba(77, 227, 198, 0.25); background: rgba(77, 227, 198, 0.045); }
details.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s;
}
details.acc[open] summary::after { content: "−"; color: var(--mint); }
details.acc .acc-body { padding: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- таймлайн ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 22px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(77, 227, 198, 0.5), rgba(139, 123, 255, 0.35), transparent); }
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute; left: -26px; top: 7px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(77, 227, 198, 0.6);
  background: #0a0f1a;
}
.tl-item.done::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px rgba(77, 227, 198, 0.14); }
.tl-item span { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.08em; }
.tl-item h4 { font-size: 15px; margin: 4px 0 4px; }
.tl-item p { font-size: 13px; color: var(--muted); }

/* ---------- подвал ---------- */
.site-footer { margin-top: clamp(50px, 6vw, 90px); border-top: 1px solid var(--line-soft); background: rgba(5, 8, 14, 0.6); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)); gap: 34px; padding: 52px 0 36px; }
.footer-brand p { font-size: 13px; color: var(--dim); margin-top: 14px; max-width: 320px; line-height: 1.6; }
.footer-col h5 { margin: 0 0 14px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color 0.18s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 18px 0 26px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--dim);
}
.footer-bottom .disclaimer { max-width: 640px; }
.footer-bottom .disclaimer b { color: var(--muted); font-weight: 600; }

/* ---------- модальное окно ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-panel {
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(170deg, #0e1524, #080c15);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95);
  padding: clamp(22px, 3vw, 30px);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.26s var(--ease);
}
.modal.is-open .modal-panel { transform: none; }
.modal-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.modal-head h3 { font-size: 19px; }
.modal-head p { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.modal-close {
  margin-left: auto;
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.modal-close svg { width: 15px; height: 15px; }
.modal-file { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 13px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.03); margin-bottom: 18px; }
.modal-file .file-ico { width: 38px; height: 38px; }
.modal-file b { font-size: 13px; display: block; }
.modal-file span { font-size: 11.5px; color: var(--dim); font-family: var(--mono); }

/* ---------- тосты ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(14, 21, 36, 0.96);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  color: var(--text);
  animation: toastIn 0.28s var(--ease);
}
.toast.is-out { animation: toastOut 0.25s var(--ease) forwards; }
.toast svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.toast.ok svg { color: var(--mint); }
.toast.warn svg { color: var(--amber); }
.toast.info svg { color: var(--violet); }
.toast span { line-height: 1.45; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .layout-split { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-card, .side-storage, .promo { flex: 1 1 240px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .panel-mock { order: 2; }
  .banner { grid-template-columns: 1fr; }
  .nav { display: none; }
  .burger { display: grid; }
  .header-actions .status-pill { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 74px;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(7, 11, 19, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
  }
  .nav.is-open .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav.is-open .nav-link.is-active::after { display: none; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { height: 66px; gap: 14px; }
  .nav.is-open { top: 66px; }
  .brand-text small { display: none; }
  .hero { padding-top: 30px; }
  .stat-row { gap: 22px; }
  .stat { flex: 1 1 40%; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
  .toolbar { padding: 12px; }
  .chips { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .file-grid, .game-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .banner { padding: 24px; }
  .toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .side-card, .side-storage, .promo { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ПРЯМОЙ ЭФИР
   ============================================================ */
@media (max-width: 1120px) {
  .header-actions .status-pill { display: none; }
}

@media (max-width: 1020px) and (min-width: 901px) {
  .header-inner { gap: 16px; }
  .nav-link { padding: 8px 7px; font-size: 13px; }
  .brand-text small { display: none; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 13px; }
}

.live-head-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 20px;
  align-items: stretch;
}
.live-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.live-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05080e;
  box-shadow: 0 34px 80px -44px rgba(0, 0, 0, 0.95);
  isolation: isolate;
}
.live-player:hover { transform: none; border-color: var(--line); }
.live-player canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.live-player::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    radial-gradient(125% 95% at 50% 45%, transparent 48%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0.5;
}

.live-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  pointer-events: none;
}
.live-top, .live-bottom { display: flex; align-items: center; gap: 9px; pointer-events: auto; }
.live-top {
  margin: -14px -14px 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.82), rgba(3, 6, 12, 0));
}
.live-bottom {
  margin: 0 -14px -14px;
  padding: 22px 14px 14px;
  background: linear-gradient(0deg, rgba(3, 6, 12, 0.9), rgba(3, 6, 12, 0));
}
.live-spacer { margin-left: auto; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ff3d5f;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 6px 18px -8px rgba(255, 61, 95, 0.9);
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.live-chip, .live-viewers {
  font-size: 11.5px;
  color: #fff;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 7, 12, 0.55);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.live-chip { color: rgba(255, 255, 255, 0.75); }

.select--dark {
  padding: 6px 8px;
  font-size: 11.5px;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(4, 7, 12, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}

.live-ctrl {
  width: 33px; height: 33px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 7, 12, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.18s, border-color 0.18s;
}
.live-ctrl:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); }
.live-ctrl svg { width: 15px; height: 15px; }

.live-streamer { display: flex; align-items: center; gap: 11px; min-width: 0; }
.live-streamer > div { min-width: 0; }
.live-streamer b { display: block; font-size: 14px; }
.live-title { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bottom .btn { margin-left: auto; flex-shrink: 0; }

.avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #04141a;
  background: var(--grad);
  box-shadow: 0 8px 20px -12px rgba(77, 227, 198, 0.9);
}
.avatar--sm { width: 32px; height: 32px; font-size: 10.5px; }

.live-pause-mark {
  position: absolute; inset: 0; z-index: 3;
  display: none; place-items: center;
  background: rgba(3, 6, 12, 0.45);
}
.live-player.is-paused .live-pause-mark { display: grid; }
.live-pause-mark span {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(3, 6, 12, 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
}
.live-pause-mark svg { width: 26px; height: 26px; margin-left: 3px; }

.live-lock {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(4, 7, 12, 0.8);
  backdrop-filter: blur(8px);
}
.live-lock[hidden] { display: none; }
.live-lock .icon-badge { margin: 0 auto 14px; }
.live-lock h3 { font-size: 18px; margin-bottom: 8px; }
.live-lock p { font-size: 12.5px; color: var(--muted); max-width: 330px; margin: 0 auto 16px; }
.live-lock-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.live-meta {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-start;
}
.live-meta:hover { transform: none; }
.live-meta .grow { flex: 1 1 320px; min-width: 0; }
.live-meta-row, .live-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.live-meta-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-left: auto; }
.tag-pill {
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.live-chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.live-chat:hover { transform: none; border-color: var(--line); }
.live-chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.live-chat-head b { font-size: 13px; color: var(--text); }
.live-chat-head .mono { font-size: 11.5px; color: var(--dim); }
.live-chat-mode {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.8px;
  scrollbar-width: thin;
}
.chat-msg { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.45; animation: chatIn 0.24s var(--ease); }
.chat-msg b { font-weight: 600; }
.chat-msg span { color: var(--muted); word-break: break-word; }
.chat-msg.is-me b { color: var(--mint) !important; }
.chat-sys { font-size: 11.5px; color: var(--dim); font-style: italic; }
@keyframes chatIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.chat-form input {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.chat-form input::placeholder { color: var(--dim); }
.chat-form input:focus { outline: none; border-color: rgba(77, 227, 198, 0.5); background: rgba(255, 255, 255, 0.06); }
.chat-form button {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  border: none;
  background: var(--grad);
  color: #04141a;
  cursor: pointer;
}
.chat-form button svg { width: 16px; height: 16px; }
.chat-note { padding: 0 14px 12px; }

.stream-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.stream-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.stream-card.is-current { border-color: rgba(77, 227, 198, 0.42); box-shadow: 0 0 0 1px rgba(77, 227, 198, 0.18), var(--shadow); }
.stream-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  isolation: isolate;
}
.stream-cover::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.1) 30%, rgba(4, 7, 12, 0.88) 100%);
}
.stream-cover-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stream-viewers {
  font-size: 10.5px;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 7, 12, 0.55);
  backdrop-filter: blur(4px);
}
.stream-cover-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; }
.stream-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.stream-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stream-row > div { min-width: 0; }
.stream-row b { display: block; font-size: 13px; }
.stream-row .sub { font-size: 11.5px; color: var(--dim); }
.stream-foot { display: flex; align-items: center; gap: 10px; }
.stream-foot .btn { margin-left: auto; }

.live-mini-list { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.live-mini-list > div { display: flex; align-items: center; gap: 9px; }

.live-teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-color: rgba(255, 61, 95, 0.22);
}
.live-teaser .grow { flex: 1 1 320px; min-width: 0; }
.live-teaser h3 { font-size: 16px; margin-bottom: 4px; }
.live-teaser p { font-size: 13px; color: var(--muted); }
.live-teaser .side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.live-teaser .side .mono { font-size: 12px; color: var(--dim); }

@media (max-width: 1080px) {
  .live-layout { grid-template-columns: 1fr; }
  .live-chat { min-height: 340px; max-height: 440px; }
}

@media (max-width: 640px) {
  .live-top .live-chip { display: none; }
  .live-top .select--dark { display: none; }
  .live-streamer .live-title { max-width: 44vw; }
  .live-bottom { gap: 8px; }
  .live-bottom .btn { padding: 8px 12px; font-size: 12px; }
  .live-meta-side { flex-direction: row; align-items: center; margin-left: 0; }
  .live-teaser { padding: 16px 18px; }
  .live-teaser .side { width: 100%; justify-content: space-between; }
}
