:root {
  --bg: #0C0C10; --surface: #15151C; --surface2: #1C1C24; --line: rgba(255,255,255,0.08);
  --text: #F4F4F6; --muted: #A3A3B2; --dim: #6E6E7C;
  --lime: #C8FF3D; --lime-soft: rgba(200,255,61,0.12); --violet: #8E7BFF; --violet-soft: rgba(142,123,255,0.16);
  --red: #FF8A8A; --tab-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }
a { color: var(--lime); text-decoration: none; }
h1, h2, .display { font-family: 'Unbounded', 'Manrope', sans-serif; letter-spacing: -0.02em; }
.hidden { display: none !important; }
.noscroll { scrollbar-width: none; } .noscroll::-webkit-scrollbar { display: none; }

#app { min-height: 100vh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
.screen { padding: 0 18px; }
.screen.anim { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.glow { position: fixed; left: -140px; top: -170px; width: 440px; height: 440px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(200,255,61,0.14) 0%, rgba(200,255,61,0) 65%); z-index: 0; }
.screen > * { position: relative; z-index: 1; }

/* шапка */
.top { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 800; font-size: 19px; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: var(--lime); display: inline-flex; align-items: center; justify-content: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--lime));
  color: #0C0C10; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; border: none; }
.pill { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }

.hero { margin: 12px 0 8px; font-weight: 700; font-size: 28px; line-height: 1.1; }
.hero em { font-style: normal; color: var(--lime); }
.lead { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.h2 { font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 600; font-size: 16px; margin: 26px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.h2 a { font-family: 'Manrope'; font-size: 13px; font-weight: 700; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 20px 0 10px; display: flex; justify-content: space-between; }
.label a { font-size: 13px; }

/* карточки загрузки */
.uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.upcard { height: 200px; padding: 0; border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
  position: relative; overflow: hidden; text-align: left; }
.upcard.ok { border-color: rgba(200,255,61,0.55); }
.upcard.want { border-color: rgba(142,123,255,0.45); }
.upcard .empty { position: absolute; inset: 8px; border-radius: 16px; border: 1.5px dashed rgba(255,255,255,0.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; text-align: center; padding: 10px; }
.upcard.want .empty { border-color: rgba(142,123,255,0.55); }
.upcard .ico { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--lime-soft); }
.upcard.want .ico { background: var(--violet-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .6 } 50% { opacity: 1 } }
.upcard .t { font-weight: 800; font-size: 15px; }
.upcard .s { font-size: 12px; color: var(--muted); line-height: 1.35; }
.upcard img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upcard .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(to top, rgba(12,12,16,0.94), rgba(12,12,16,0)); }
.upcard .meta { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.upcard .kind { font-size: 11px; color: var(--lime); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.upcard .name { font-size: 13.5px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upcard .hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
.upcard .dur { position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(12,12,16,0.72);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; }
.upcard .check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--lime);
  display: flex; align-items: center; justify-content: center; }
.upcard .bar { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.upcard .bar b { display: block; height: 100%; border-radius: 3px; background: var(--lime); transition: width .2s; }
.upcard .busy { position: absolute; inset: 0; background: rgba(12,12,16,0.65); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 13px; }

/* стили-чипы */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.chip { height: 40px; padding: 0 14px 0 6px; border-radius: 14px; display: flex; align-items: center; gap: 8px; flex: none;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--lime-soft); border-color: var(--lime); }
.chip img, .chip .sw { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; flex: none; background: var(--surface2); }

/* режимы */
.modes { display: flex; flex-direction: column; gap: 8px; }
.mode { width: 100%; min-height: 66px; padding: 12px 14px; border-radius: 18px; display: flex; align-items: center; gap: 12px;
  text-align: left; background: var(--surface); border: 1px solid rgba(255,255,255,0.07); }
.mode.on { background: linear-gradient(180deg, rgba(200,255,61,0.10), rgba(200,255,61,0.03)); border-color: rgba(200,255,61,0.7); }
.mode .mi { width: 40px; height: 40px; border-radius: 13px; background: #1E1E27; color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.mode.on .mi { background: var(--lime); color: #0C0C10; }
.mode .mt { font-weight: 800; font-size: 15px; display: block; }
.mode .ms { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.mode .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.22); margin-left: auto; flex: none;
  display: flex; align-items: center; justify-content: center; }
.mode.on .radio { border-color: var(--lime); }
.mode.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }

/* главная кнопка */
.cta { width: 100%; height: 62px; border: none; border-radius: 20px; background: var(--lime); color: #0C0C10; display: flex;
  align-items: center; justify-content: center; gap: 10px; font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 700; font-size: 17px;
  box-shadow: 0 12px 34px rgba(200,255,61,0.28); margin-top: 22px; }
.cta:disabled { background: #1C1C24; color: #6E6E7C; box-shadow: none; border: 1px solid rgba(255,255,255,0.06); }
.cta.small { height: 54px; font-size: 15px; margin-top: 14px; }
.sub { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* недавние */
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.mini { width: 118px; flex: none; color: var(--text); text-align: left; background: none; border: none; padding: 0; }
.mini .th { height: 168px; border-radius: 16px; background: var(--surface2) center/cover no-repeat; position: relative; overflow: hidden; }
.mini .th .badge { position: absolute; left: 8px; bottom: 8px; }
.mini .tt { font-size: 12.5px; font-weight: 700; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ts { font-size: 11px; color: var(--muted); }
.badge { height: 22px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800;
  background: rgba(12,12,16,0.78); color: var(--text); }
.badge.done { background: rgba(200,255,61,0.16); color: var(--lime); }
.badge.work { background: rgba(142,123,255,0.22); color: #CFC7FF; }
.badge.err { background: rgba(255,170,90,0.18); color: #FFC08A; }
.badge.draft { background: rgba(255,255,255,0.1); color: #D6D6DE; }

/* экран монтажа */
.bar-top { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.bar-top .ttl { font-weight: 800; font-size: 15px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.ringwrap { position: relative; height: 250px; display: flex; align-items: center; justify-content: center; }
.ringwrap .halo { position: absolute; width: 240px; height: 240px; border-radius: 50%; animation: halo 3s ease-in-out infinite;
  background: radial-gradient(circle, rgba(200,255,61,0.22) 0%, rgba(200,255,61,0) 62%); }
@keyframes halo { 0%,100% { opacity: .45; transform: scale(1) } 50% { opacity: .9; transform: scale(1.06) } }
.ringwrap .tile { position: absolute; top: 46px; width: 76px; height: 134px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,0.55); background: var(--surface2) center/cover no-repeat; }
.ringwrap .tile.l { left: 4px; transform: rotate(-9deg); } .ringwrap .tile.r { right: 4px; transform: rotate(9deg); }
.ring { position: relative; width: 168px; height: 168px; border-radius: 50%; }
.ring .in { position: absolute; inset: 9px; border-radius: 50%; background: #111117; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .pc { font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }
.ring .pc small { font-size: 20px; color: var(--lime); }
.ring .eta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.headline { text-align: center; font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 600; font-size: 17px; margin-top: 4px; }
.card { margin-top: 16px; background: var(--surface); border: 1px solid rgba(255,255,255,0.07); border-radius: 22px; padding: 6px 16px; }
.card.pad { padding: 16px; }
.step { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.step:last-child { border-bottom: none; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 1.5px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; }
.step.done .dot { background: var(--lime); border: none; }
.step.now .dot { border-color: rgba(200,255,61,0.4); }
.step.now .dot::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lime); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.step .st { font-size: 14.5px; font-weight: 700; color: var(--dim); }
.step.done .st, .step.now .st { color: var(--text); }
.step .sn { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.seen { background: linear-gradient(180deg, rgba(142,123,255,0.14), rgba(142,123,255,0.04)); border: 1px solid rgba(142,123,255,0.3);
  border-radius: 22px; padding: 16px; margin-top: 14px; }
.seen .sh { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #C9C0FF; }
.seen p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #D6D6DE; }
.errbox { margin-top: 18px; border-radius: 22px; padding: 18px; background: rgba(255,138,138,0.08); border: 1px solid rgba(255,138,138,0.35); }
.errbox b { display: block; font-size: 15px; } .errbox p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* результат */
.player { display: flex; justify-content: center; margin-top: 4px; }
.player video { width: 236px; height: 420px; border-radius: 26px; background: #000; object-fit: cover; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.stat { background: var(--surface2); border-radius: 16px; padding: 12px; }
.stat b { display: block; font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 700; font-size: 19px; }
.stat b.l { color: var(--lime); }
.stat span { font-size: 12px; color: var(--muted); }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.act { height: 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; }
.act:disabled { color: var(--dim); }
.stars { display: flex; gap: 6px; margin-top: 12px; }
.stars button { width: 44px; height: 44px; border-radius: 14px; background: var(--surface2); border: none; display: flex; align-items: center; justify-content: center; }

/* списки */
.plist { display: flex; flex-direction: column; gap: 10px; }
.prow { display: flex; gap: 14px; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255,255,255,0.07); text-align: left; width: 100%; }
.prow .th { width: 66px; height: 116px; border-radius: 14px; flex: none; background: var(--surface2) center/cover no-repeat; }
.prow .pi { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 0; }
.prow .pt { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pm { font-size: 12px; color: var(--muted); margin-top: 3px; }
.prow .pb { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.prow .pbar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.1); margin-bottom: 8px; }
.prow .pbar b { display: block; height: 100%; border-radius: 3px; background: var(--lime); }
.emptybox { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.emptybox b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.scard { display: flex; gap: 14px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255,255,255,0.07); }
.scard .th { width: 86px; height: 152px; border-radius: 16px; flex: none; background: var(--surface2) center/cover no-repeat; }
.scard .si { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.scard .sn { font-size: 15px; font-weight: 800; }
.scard .ss { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scard .go { margin-top: auto; height: 38px; border-radius: 12px; border: none; background: var(--lime); color: #0C0C10; font-weight: 800; font-size: 13px; }
.soon { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.soon div { width: 128px; height: 92px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 800; font-size: 14px; text-align: center; padding: 0 8px; opacity: .55; }

/* профиль */
.me { display: flex; align-items: center; gap: 14px; padding-top: 20px; }
.me .avatar { width: 58px; height: 58px; border-radius: 20px; font-size: 22px; }
.me b { font-family: 'Unbounded', 'Manrope', sans-serif; font-size: 20px; display: block; }
.me span { font-size: 13px; color: var(--muted); }
.beta { margin-top: 20px; border-radius: 24px; padding: 18px; background: linear-gradient(150deg, rgba(200,255,61,0.16), rgba(200,255,61,0.03) 60%), var(--surface);
  border: 1px solid rgba(200,255,61,0.3); }
.beta .k { font-size: 12.5px; font-weight: 800; color: var(--lime); letter-spacing: .04em; text-transform: uppercase; }
.beta .v { font-family: 'Unbounded', 'Manrope', sans-serif; font-weight: 700; font-size: 24px; margin-top: 6px; }
.beta p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.faq { margin-top: 14px; background: var(--surface); border: 1px solid rgba(255,255,255,0.07); border-radius: 22px; padding: 4px 16px; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* нижнее меню */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding: 10px 6px var(--safe-b);
  background: rgba(16,16,22,0.96); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; justify-content: space-around; z-index: 50; }
.tab { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8C8C9A; font-size: 11px; font-weight: 700;
  background: none; border: none; padding: 0; }
.tab.on { color: var(--lime); }
.tab.plus { width: 56px; height: 56px; margin-top: -24px; border-radius: 20px; background: var(--lime); color: #0C0C10; justify-content: center;
  box-shadow: 0 10px 26px rgba(200,255,61,0.35), 0 0 0 6px var(--bg); }

.toast { position: fixed; left: 16px; right: 16px; top: 14px; z-index: 100; padding: 13px 15px; border-radius: 16px; background: #1C1C24;
  border: 1px solid rgba(200,255,61,0.45); box-shadow: 0 16px 40px rgba(0,0,0,0.6); font-size: 13.5px; font-weight: 700; line-height: 1.4;
  animation: fade .25s ease-out; }
.toast.bad { border-color: rgba(255,138,138,0.5); }
.gate { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 10px; }
.gate b { font-family: 'Unbounded', 'Manrope', sans-serif; font-size: 20px; } .gate p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
