@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff") format("woff");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golostext.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --desk: #d9dee4;
  --panel: #f3f5f7;
  --well: #c9d0d8;
  --ink: #1c2430;
  --muted: #5a6575;
  --line: #b4bdc8;
  --playhead: #e5322d;

  --teal: #3fa98f;
  --iris: #6f7ff0;
  --mustard: #d8a92a;
  --rose: #db6b8c;
  --olive: #8c9a3c;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", "Segoe UI", system-ui, sans-serif;

  --r-chip: 3px;
  --r-ctl: 6px;
  --r-panel: 12px;
  --gutter: clamp(16px, 3vw, 40px);
  --hour: 168px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  font-variant-numeric: tabular-nums;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--playhead); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 58px); font-weight: 700; }
h2 { font-size: clamp(21px, 2.3vw, 28px); }
h3 { font-size: 17px; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- шапка: панель инструментов ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: #e9edf2;
}
.bar .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 22px; flex: none; }
.nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 7px 12px; border-radius: var(--r-ctl); text-decoration: none; font-size: 15px; color: #c3cad4; }
.nav a:hover { color: #fff; background: #2b3542; }
.nav a[aria-current="page"] { color: #fff; background: #36414f; }
.nav .live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--playhead); margin-right: 7px; vertical-align: 1px; }
.search { margin-left: auto; position: relative; }
.search input {
  width: 230px; height: 36px; padding: 0 12px 0 34px; border: 0; border-radius: var(--r-ctl);
  background: #2b3542; color: #fff;
}
.search input::placeholder { color: #8994a3; }
.search svg { position: absolute; left: 11px; top: 11px; width: 14px; height: 14px; color: #8994a3; }
.bar .upload-btn { flex: none; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-left: auto; cursor: pointer; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--r-ctl); border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #333f4e; border-color: #333f4e; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--panel); }
.btn.rec { background: var(--playhead); border-color: var(--playhead); }
.btn.rec:hover { background: #c8221d; border-color: #c8221d; }
.btn.small { height: 34px; padding: 0 13px; font-size: 14px; }
.bar .btn { border-color: #e9edf2; background: #e9edf2; color: var(--ink); height: 36px; }
.bar .btn:hover { background: #fff; }

/* ---------- цвет каналов ---------- */
.c-teal { --c: var(--teal); }
.c-iris { --c: var(--iris); }
.c-mustard { --c: var(--mustard); }
.c-rose { --c: var(--rose); }
.c-olive { --c: var(--olive); }
.chip { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--muted)); flex: none; }
.chlink { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--muted); font-size: 14px; }
.chlink:hover { color: var(--ink); }

/* ---------- секции ---------- */
main { display: block; }
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head a { font-size: 15px; color: var(--muted); }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.lead { font-size: 19px; max-width: 58ch; color: #2f3a48; }
.muted { color: var(--muted); }

/* ---------- монтажная шкала (главная и сетка) ---------- */
.timeline {
  background: var(--panel); border-radius: var(--r-panel); overflow: hidden;
  display: grid; grid-template-columns: 188px 1fr;
  border: 1px solid var(--line);
}
.tl-labels { border-right: 1px solid var(--line); background: #e8ecf0; position: relative; z-index: 2; }
.tl-corner { height: 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: var(--muted); }
.tl-label { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid #d3d9e0; text-decoration: none; font-size: 15px; font-weight: 500; }
.tl-label:last-child { border-bottom: 0; }
.tl-label .chip { width: 6px; height: 34px; border-radius: 2px; }
.tl-label:hover { background: var(--panel); }
.tl-scroll { overflow-x: auto; position: relative; scrollbar-width: thin; }
.tl-canvas { position: relative; }
.tl-ruler { height: 38px; border-bottom: 1px solid var(--line); position: relative; background: #e8ecf0; }
.tl-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); padding: 4px 0 0 6px; }
.tl-tick.half { top: 26px; }
.tl-track { height: 64px; position: relative; border-bottom: 1px solid #d3d9e0; background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--hour) - 1px), #dfe4ea calc(var(--hour) - 1px) var(--hour)); }
.tl-track:last-child { border-bottom: 0; }
.clip {
  position: absolute; top: 8px; bottom: 8px; border-radius: 4px;
  background: color-mix(in srgb, var(--c) 28%, var(--panel));
  border-left: 3px solid var(--c);
  padding: 6px 9px; overflow: hidden; text-decoration: none;
  font-size: 13px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis;
}
.clip small { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.clip.past { opacity: 0.45; }
.clip.now { background: var(--c); color: #fff; }
.clip.now small { color: rgba(255,255,255,0.85); }
.clip:hover { filter: brightness(0.96); }
.clip.off { background: repeating-linear-gradient(135deg, #e1e6eb 0 6px, #eef1f4 6px 12px); border-left-color: var(--line); color: var(--muted); }
.playhead { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--playhead); z-index: 3; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: -8px; border: 7px solid transparent; border-top: 10px solid var(--playhead); }
.playhead span { position: absolute; top: 12px; left: 8px; background: var(--playhead); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; font-weight: 500; }

/* ---------- главный экран ---------- */
.hero { padding: 44px 0 34px; }
.hero-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; margin-bottom: 30px; }
.hero h1 { max-width: 13ch; }
.hero-side p { margin: 0 0 18px; color: #2f3a48; font-size: 18px; max-width: 46ch; }
.hero-side .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

/* ---------- корзина клипов: ряды по реальным пропорциям ---------- */
.bin { display: flex; flex-wrap: wrap; gap: 26px 18px; }
.bin::after { content: ""; flex-grow: 999; }
.item { --ar: 1.7778; flex: var(--ar) 1 calc(var(--ar) * 150px); min-width: 168px; text-decoration: none; display: block; }
.item.r11 { --ar: 1; }
.item.r916 { --ar: 0.5625; }
.thumb { position: relative; aspect-ratio: var(--ar); background: var(--well); border-radius: var(--r-chip); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(28,36,48,0.86); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; }
.thumb .ratio { position: absolute; left: 6px; bottom: 6px; background: rgba(243,245,247,0.9); font-size: 11.5px; padding: 1px 5px; border-radius: 3px; }
.thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--c, var(--ink)); transition: box-shadow .15s; border-radius: inherit; }
.item:hover .thumb::after { box-shadow: inset 0 0 0 3px var(--c, var(--ink)); }
.item h3 { font-family: var(--text); font-weight: 600; font-size: 15.5px; line-height: 1.3; margin: 10px 0 4px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); align-items: center; }
.item .meta .chlink { font-size: 13.5px; }

/* ---------- каналы ---------- */
.channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.channel-tile { background: var(--panel); padding: 20px 18px 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--c); }
.channel-tile:hover { background: #fff; }
.channel-tile img { width: 52px; height: 52px; border-radius: 50%; }
.channel-tile strong { font-family: var(--display); font-weight: 600; font-size: 16px; }
.channel-tile span { font-size: 14px; color: var(--muted); }

/* ---------- блок про хранение ---------- */
.store-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--ink); color: #e9edf2; border-radius: var(--r-panel); overflow: hidden; }
.store-strip > div { padding: 38px 36px; }
.store-strip h2 { color: #fff; margin-bottom: 14px; }
.store-strip p { color: #c3cad4; max-width: 46ch; }
.meter { margin: 22px 0 8px; height: 26px; border-radius: 4px; background: #2b3542; display: flex; overflow: hidden; }
.meter i { display: block; height: 100%; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: #c3cad4; }
.meter-legend span { display: inline-flex; gap: 6px; align-items: center; }
.store-strip .btn { background: #e9edf2; color: var(--ink); border-color: #e9edf2; margin-top: 10px; }

/* ---------- плеер ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 28px 0 60px; }
.player { background: #0e1319; border-radius: var(--r-panel); overflow: hidden; position: relative; }
.player video { width: 100%; max-height: 72vh; margin: 0 auto; background: #0e1319; }
.player.portrait video { max-height: 78vh; width: auto; }
.player .scrub { position: relative; height: 34px; background: #1c2430; border-top: 1px solid #2b3542; }
.chapters { display: flex; height: 100%; }
.chapters button { border: 0; border-right: 1px solid #0e1319; background: #232d3a; color: #c3cad4; font-size: 12.5px; padding: 0 10px; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapters button:hover { background: #2f3a48; color: #fff; }
.scrub .ph { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--playhead); left: 0; pointer-events: none; }
.watch h1 { font-size: clamp(22px, 2.6vw, 32px); margin: 22px 0 12px; }
.watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.watch-meta .who { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.watch-meta .who img { width: 44px; height: 44px; border-radius: 50%; }
.watch-meta .who strong { display: block; }
.watch-meta .who span { font-size: 13.5px; color: var(--muted); }
.watch-meta .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.desc { padding: 18px 0; max-width: 72ch; }
.desc .stats { font-size: 14px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags a { font-size: 13.5px; padding: 3px 10px; border-radius: 20px; background: var(--panel); text-decoration: none; border: 1px solid var(--line); }
.tags a:hover { border-color: var(--ink); }
.comments h2 { font-size: 19px; margin: 18px 0 16px; }
.comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--well); display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--muted); }
.comment b { font-weight: 600; margin-right: 8px; }
.comment time { font-size: 13px; color: var(--muted); }
.comment p { margin: 3px 0 0; }
.comment-form { display: grid; grid-template-columns: 38px 1fr; gap: 12px; margin-bottom: 8px; }
.comment-form textarea { width: 100%; min-height: 44px; resize: vertical; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 12px; background: var(--panel); }
.comment-form .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.up-next h2 { font-size: 16px; font-family: var(--text); font-weight: 600; margin: 0 0 14px; }
.next { display: grid; grid-template-columns: 150px 1fr; gap: 12px; text-decoration: none; padding: 8px 0; align-items: start; }
.next .thumb { aspect-ratio: 16/9; }
.next strong { font-size: 14.5px; line-height: 1.3; font-weight: 600; display: block; margin-bottom: 4px; }
.next .chlink { font-size: 13px; }

/* ---------- эфир ---------- */
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 28px 0 60px; }
.onair { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; z-index: 2; }
.onair span { background: var(--playhead); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 3px; }
.onair span + span { background: rgba(14,19,25,0.75); font-weight: 500; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); display: flex; flex-direction: column; height: min(72vh, 640px); }
.chat header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.chat header span { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.chat ol { list-style: none; margin: 0; padding: 10px 16px; overflow-y: auto; flex: 1; font-size: 14.5px; }
.chat li { padding: 4px 0; line-height: 1.4; }
.chat li b { font-weight: 600; margin-right: 6px; color: var(--c, var(--ink)); }
.chat li.sys { color: var(--muted); font-size: 13px; }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 12px; background: #fff; }
.other-live { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.other-live a { text-decoration: none; }
.other-live .thumb { aspect-ratio: 16/9; }
.other-live strong { display: block; font-size: 14.5px; margin-top: 8px; }

/* ---------- каталог ---------- */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 36px 0 70px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.filters legend { font-weight: 600; margin-bottom: 10px; }
.filters label { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: 15px; }
.filters input[type="checkbox"], .filters input[type="radio"] { accent-color: var(--ink); width: 16px; height: 16px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-head select { height: 38px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--panel); padding: 0 10px; }
.empty { padding: 50px 30px; border: 2px dashed var(--line); border-radius: var(--r-panel); text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- канал ---------- */
.ch-banner { height: 210px; background: var(--c); position: relative; overflow: hidden; }
.ch-banner img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: 0.55; }
.ch-head { display: flex; gap: 24px; align-items: flex-end; margin-top: 16px; position: relative; flex-wrap: wrap; }
.ch-head > img { margin-top: -74px; width: 116px; height: 116px; border-radius: 50%; border: 5px solid var(--desk); background: var(--desk); }
.ch-head h1 { font-size: clamp(28px, 3.6vw, 44px); }
.ch-head .facts { display: flex; gap: 18px; color: var(--muted); font-size: 15px; margin-top: 8px; flex-wrap: wrap; }
.ch-head .actions { margin-left: auto; display: flex; gap: 10px; padding-bottom: 4px; }
.ch-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 30px 0 28px; overflow-x: auto; }
.ch-tabs button { background: none; border: 0; padding: 10px 16px; cursor: pointer; border-bottom: 3px solid transparent; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ch-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--c); }
.ch-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.ch-about dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.ch-about dt { color: var(--muted); }
.ch-about dd { margin: 0; }

/* ---------- сетка вещания ---------- */
.days { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 18px; }
.days button { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-ctl); padding: 8px 14px; cursor: pointer; text-align: left; line-height: 1.25; }
.days button small { display: block; color: var(--muted); font-size: 12.5px; }
.days button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.days button[aria-pressed="true"] small { color: #c3cad4; }
.legend-row { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 14px; }
.legend-row span { display: inline-flex; align-items: center; gap: 8px; }
.legend-row i { width: 22px; height: 12px; border-radius: 2px; display: inline-block; }

/* ---------- хранение ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--panel); }
.plan { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pick { background: #fff; box-shadow: inset 0 5px 0 var(--iris); }
.plan h3 { font-family: var(--display); font-size: 20px; font-weight: 600; }
.plan .price { font-family: var(--display); font-size: 34px; font-weight: 700; }
.plan .price small { font-family: var(--text); font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 32px; }
.calc label { display: block; font-weight: 500; margin: 0 0 6px; }
.calc .field { margin-bottom: 22px; }
.calc input[type="range"] { width: 100%; accent-color: var(--ink); }
.calc .val { float: right; font-weight: 600; }
.calc select { width: 100%; height: 40px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; padding: 0 10px; }
.calc-out { border-left: 1px solid var(--line); padding-left: 40px; }
.calc-out .big { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; margin: 6px 0 10px; }
.disk { margin: 18px 0 10px; height: 18px; background: var(--well); border-radius: 3px; overflow: hidden; }
.disk i { display: block; height: 100%; background: var(--ink); transition: width .25s; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; max-width: 70ch; color: #2f3a48; }

/* ---------- загрузка ---------- */
.upload { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px 0 70px; }
.drop { border: 2px dashed var(--line); border-radius: var(--r-panel); background: var(--panel); min-height: 340px; display: grid; place-items: center; text-align: center; padding: 30px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--ink); background: #fff; }
.drop strong { display: block; font-size: 19px; margin: 14px 0 6px; }
.drop video { max-height: 320px; border-radius: var(--r-chip); background: #000; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 500; margin-bottom: 6px; }
.form input[type="text"], .form textarea, .form select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px 12px; background: var(--panel); }
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-ctl); padding: 7px 12px; font-weight: 400; cursor: pointer; margin: 0; }
.radios input { accent-color: var(--ink); }
.file-info { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; margin-top: 14px; text-align: left; }
.file-info dt { color: var(--muted); }
.file-info dd { margin: 0; }
.drafts { margin-top: 26px; }
.drafts li { padding: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-ctl); opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- о проекте ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding: 50px 0 30px; }
.about .prose p { max-width: 64ch; }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table td:first-child { color: var(--muted); width: 40%; padding-right: 18px; }
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.changelog time { color: var(--muted); }
.rules { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; }
.rules li::before { content: counter(r) "."; font-weight: 600; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 58px - 120px); display: grid; align-content: center; padding: 60px 0; }
.lost-tl { position: relative; height: 96px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; margin-bottom: 40px; }
.lost-tl .seg { position: absolute; top: 18px; bottom: 18px; border-radius: 4px; }
.lost-tl .gap { position: absolute; top: 0; bottom: 0; left: 44%; width: 12%; background: repeating-linear-gradient(135deg, #e1e6eb 0 6px, #f3f5f7 6px 12px); border-left: 2px dashed var(--line); border-right: 2px dashed var(--line); }
.lost-tl .playhead { left: 50%; animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { from { left: 46%; } to { left: 54%; } }
.lost h1 { font-size: clamp(40px, 7vw, 92px); max-width: 12ch; }
.lost p { font-size: 19px; max-width: 52ch; margin: 18px 0 26px; color: #2f3a48; }
.lost .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot strong { display: block; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .channels { grid-template-columns: repeat(3, 1fr); }
  .watch, .live-layout { grid-template-columns: 1fr; }
  .chat { height: 420px; }
  .other-live { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .bar .wrap { gap: 14px; }
  .menu-toggle { display: block; }
  .nav, .search, .bar .upload-btn { display: none; }
  .bar.open .nav, .bar.open .search, .bar.open .upload-btn { display: flex; }
  .bar.open .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 14px; }
  .bar.open nav { width: 100%; order: 3; }
  .bar.open .nav { flex-direction: column; }
  .bar.open .search { order: 4; width: 100%; margin: 0; }
  .bar.open .search input { width: 100%; }
  .bar.open .upload-btn { order: 5; }
  .hero-top, .store-strip, .calc, .upload, .about, .ch-about { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .catalog { grid-template-columns: 1fr; gap: 10px; }
  .filters { display: flex; gap: 26px; flex-wrap: wrap; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 112px 1fr; }
  .tl-label { font-size: 13px; padding: 0 8px; gap: 7px; }
  :root { --hour: 132px; }
}
@media (max-width: 560px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .bin { gap: 22px 12px; }
  .item { min-width: 0; flex: 1 1 40%; max-width: calc(50% - 6px); }
  .item h3 { font-size: 14.5px; }
  .next { grid-template-columns: 120px 1fr; }
  .other-live { grid-template-columns: 1fr 1fr; }
  .store-strip > div { padding: 28px 22px; }
  .ch-head .actions { margin-left: 0; }
  .changelog li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
