/* youchop.app — "player noir" design system
   The aesthetic of the YouTube player itself: dark chrome, segment ticks,
   mono timestamps, one hot chop-red accent. */

:root {
  --bg: #0b0b0e;
  --bg2: #101014;
  --panel: #16161c;
  --panel2: #1c1c24;
  --line: #26262e;
  --ink: #f2efe9;
  --mut: #8f8d96;
  --red: #ff4930;
  --red-dim: #ff493022;
  --amber: #ffb43a;
  --amber-dim: #ffb43a22;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --disp: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain + glow atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999; mix-blend-mode: overlay;
}
.glow {
  position: absolute; pointer-events: none; filter: blur(120px); opacity: .5; z-index: 0;
}

a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.mono { font-family: var(--mono); }
.muted { color: var(--mut); }
.red { color: var(--red); }
.amber { color: var(--amber); }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; position: relative; z-index: 5;
}
.wordmark {
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-decoration: none;
  display: flex; align-items: center; gap: 2px;
}
.wordmark .blade {
  display: inline-block; width: 3px; height: 22px; background: var(--red);
  transform: rotate(14deg); margin: 0 5px; border-radius: 2px;
  box-shadow: 0 0 12px var(--red);
}
.navlinks { display: flex; gap: 26px; align-items: center; font-size: 14.5px; }
.navlinks a { text-decoration: none; color: var(--mut); transition: color .2s; }
.navlinks a:hover { color: var(--ink); }
.navlinks a.creator-link { color: var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--disp); font-weight: 700; font-size: 16.5px;
  padding: 15px 28px; border-radius: 12px; text-decoration: none;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 32px -6px var(--red);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -4px var(--red); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--mut); }
.btn-amber {
  background: var(--amber); color: #17130a;
  box-shadow: 0 6px 32px -8px var(--amber);
}
.btn-amber:hover { transform: translateY(-2px); }
.microcopy { font-size: 12.5px; color: var(--mut); margin-top: 10px; font-family: var(--mono); }

/* ---------- hero ---------- */
header.hero { position: relative; padding: 40px 0 90px; overflow: hidden; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  max-width: 13ch;
}
.hero h1 .chopword { position: relative; display: inline-block; }
.hero h1 .chopword::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%;
  height: 14%; background: var(--red); z-index: -1; transform: skewX(-12deg);
  opacity: .85;
}
.hero .sub {
  margin-top: 26px; font-size: 18.5px; color: var(--mut); max-width: 56ch; line-height: 1.65;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.creator-hint {
  font-size: 14.5px; color: var(--amber); text-decoration: none;
  border-bottom: 1px dashed var(--amber); padding-bottom: 2px;
}

/* ---------- the demo player ---------- */
.player {
  margin-top: 64px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8);
}
.player .screen {
  position: relative; aspect-ratio: 16/7; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 70% 20%, #2a1f3d55, transparent),
    radial-gradient(ellipse 50% 70% at 20% 80%, #3d1f1f55, transparent),
    linear-gradient(160deg, #17171d, #0d0d11);
  display: grid; place-items: center;
}
.player .screen .vtitle {
  position: absolute; top: 16px; left: 20px; font-size: 13px; color: #ffffffcc;
  font-weight: 600; text-shadow: 0 1px 4px #000;
}
.player .screen .vlen {
  position: absolute; bottom: 14px; right: 16px; font-family: var(--mono);
  font-size: 11.5px; background: #000000b8; padding: 3px 7px; border-radius: 4px;
}
.playbtn {
  width: 64px; height: 44px; background: #000000a0; border-radius: 12px;
  display: grid; place-items: center; transition: background .3s;
}
.playbtn::after {
  content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; margin-left: 3px;
}
.player.playing .playbtn { background: var(--red); }

/* chapterize button overlay */
.chopbtn {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  background: var(--red); color: #fff; border: none; border-radius: 8px;
  padding: 8px 14px; cursor: default; display: flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 20px -4px var(--red);
  transition: transform .2s;
}
.chopbtn .dot { width: 7px; height: 7px; border-radius: 99px; background: #fff; }
.player.thinking .chopbtn .dot { animation: pulse .5s infinite alternate; }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }
.player.pressed .chopbtn { transform: scale(.94); }

/* seekbar */
.bar-zone { padding: 18px 20px 8px; }
.seekbar { position: relative; height: 24px; display: flex; align-items: center; }
.seg-track { display: flex; width: 100%; gap: 0; height: 4px; transition: gap .5s; }
.player.chopped .seg-track { gap: 4px; }
.seg {
  position: relative; height: 100%; background: #ffffff2e; border-radius: 2px;
  flex-grow: var(--w); overflow: hidden; transition: height .25s;
}
.seg .fill {
  position: absolute; inset: 0; width: 0%; background: var(--red); border-radius: 2px;
}
.seekbar:hover .seg, .player.chopped .seg { height: 6px; }
/* chop flash line that sweeps across */
.chopline {
  position: absolute; top: -10px; bottom: -10px; width: 2.5px; left: 0;
  background: linear-gradient(var(--amber), var(--red));
  box-shadow: 0 0 16px 2px var(--red); opacity: 0; border-radius: 2px;
}
.player.chopping .chopline { animation: sweep 1.4s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes sweep {
  0% { left: 0; opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.playhead {
  position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 99px;
  background: var(--red); transform: translate(-50%, -50%) scale(0);
  transition: left 1s cubic-bezier(.5,0,.2,1), transform .3s;
  box-shadow: 0 0 0 4px var(--red-dim);
  z-index: 2;
}
.player.playing .playhead { transform: translate(-50%, -50%) scale(1); }

/* chapter chip that appears above the bar */
.chapchip {
  position: absolute; bottom: 30px; transform: translateX(-50%) translateY(6px);
  font-family: var(--mono); font-size: 11.5px; white-space: nowrap;
  background: #000000d8; border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 9px; opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.chapchip.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.chapchip .t { color: var(--amber); margin-right: 7px; }

/* chapter list */
.chaplist { padding: 6px 20px 18px; display: grid; gap: 0; }
.chaprow {
  display: flex; align-items: center; gap: 14px; padding: 9px 10px;
  border-radius: 9px; font-size: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .4s, background .2s;
}
.player.listed .chaprow { opacity: 1; transform: none; }
.chaprow.active { background: var(--red-dim); }
.chaprow .ts { font-family: var(--mono); font-size: 12.5px; color: var(--amber); min-width: 58px; }
.chaprow .nm { font-weight: 600; }
.chaprow .len { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--mut); }

.demo-caption {
  text-align: center; margin-top: 18px; font-family: var(--mono);
  font-size: 12.5px; color: var(--mut);
}
.demo-caption .stage { color: var(--amber); }

/* ---------- sections ---------- */
section { padding: 90px 0; position: relative; }
.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); }
h2 {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch;
}
.lede { margin-top: 18px; font-size: 17.5px; color: var(--mut); max-width: 58ch; line-height: 1.7; }

/* problem strip */
.problem {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg2); padding: 56px 0;
}
.problem p {
  font-size: clamp(21px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.4; max-width: 34ch;
}
.problem p .scrub { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; position: relative;
}
.step .num {
  font-family: var(--mono); font-size: 12px; color: var(--amber);
  border: 1px solid var(--amber); border-radius: 99px; width: 30px; height: 30px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--mut); line-height: 1.65; }
.step p strong { color: var(--ink); font-weight: 600; }

/* native comparison */
.native-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.native-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: var(--panel);
}
.native-card.them { opacity: .65; }
.native-card .tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px; display: inline-block;
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--mut);
}
.native-card.us .tag { color: var(--red); border-color: var(--red); }
.native-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.native-card p { font-size: 14.5px; color: var(--mut); line-height: 1.7; }

/* creator band */
.creator-band {
  background: linear-gradient(120deg, var(--amber-dim), transparent 60%), var(--panel);
  border: 1px solid #3a2f1a; border-radius: 20px; padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.creator-band h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; max-width: 20ch; }
.creator-band p { color: var(--mut); margin-top: 10px; max-width: 44ch; font-size: 15px; }
.creator-band .price { color: var(--amber); font-weight: 700; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 52px; }
.price-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
}
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.credit-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.credit-row:last-child { border-bottom: none; }
.credit-row .cost { font-family: var(--mono); font-size: 12.5px; color: var(--amber); }
.credit-row .earn { font-family: var(--mono); font-size: 12.5px; color: #3ddc84; }
.free-note {
  margin-top: 18px; font-size: 13.5px; color: var(--mut); line-height: 1.6;
  padding: 14px 16px; background: var(--bg2); border-radius: 10px; border: 1px solid var(--line);
}
.free-note strong { color: var(--ink); }

/* FAQ */
.faq { max-width: 760px; }
details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--mono); color: var(--red); font-size: 20px;
  transition: transform .2s; flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--mut); font-size: 15px; line-height: 1.7; max-width: 62ch; }

/* final cta */
.final { text-align: center; padding: 110px 0 90px; }
.final h2 { margin: 0 auto; max-width: 24ch; }
.final .cta-row { justify-content: center; margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* footer */
footer {
  border-top: 1px solid var(--line); padding: 44px 0 60px;
  font-size: 13.5px; color: var(--mut);
}
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer a { color: var(--mut); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .flinks { display: flex; gap: 22px; }

/* ---------- creators page ---------- */
.offer-hero { padding: 60px 0 40px; }
.offer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 56px; }
.offer-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px;
  position: relative;
}
.offer-card.featured { border-color: var(--amber); box-shadow: 0 20px 80px -30px var(--amber-dim); }
.offer-card .badge {
  position: absolute; top: -12px; left: 28px; background: var(--amber); color: #17130a;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 99px; text-transform: uppercase;
}
.bigprice { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.bigprice .per { font-size: 15px; color: var(--mut); font-weight: 400; letter-spacing: 0; }
.offer-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.offer-card li { display: flex; gap: 12px; font-size: 14.5px; color: var(--mut); line-height: 1.55; }
.offer-card li::before { content: "▸"; color: var(--amber); flex-shrink: 0; }
.offer-card li strong { color: var(--ink); }
.anchor-note {
  font-family: var(--mono); font-size: 12.5px; color: var(--mut); margin-top: 14px; line-height: 1.7;
}
.anchor-note s { color: var(--red); }

.sample-box {
  margin-top: 60px; background: var(--panel); border: 1px dashed var(--amber);
  border-radius: 18px; padding: 36px; text-align: center;
}
.sample-box h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sample-box p { color: var(--mut); margin: 12px auto 24px; max-width: 52ch; font-size: 15px; }

.agency-row {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 28px; font-size: 15px;
}
.agency-row .muted { font-size: 13.5px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- extract tool (/extract) ---------- */
.tool-hero { padding: 40px 0 20px; }
.mode-tabs { display: flex; gap: 8px; margin: 28px 0 14px; }
.mode-tab {
  font-family: var(--mono); font-size: 13px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--mut); cursor: pointer;
  transition: all .15s;
}
.mode-tab.active { color: var(--ink); border-color: var(--red); background: var(--red-dim); }
.mode-tab .lock { color: var(--amber); font-size: 11px; margin-left: 6px; }

.input-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tool-input {
  flex: 1; min-width: 260px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 18px; color: var(--ink); font-family: var(--mono);
  font-size: 15px; outline: none; transition: border-color .15s;
}
.tool-input:focus { border-color: var(--red); }
textarea.tool-input { resize: vertical; min-height: 120px; line-height: 1.6; width: 100%; }
.input-hint { font-family: var(--mono); font-size: 12px; color: var(--mut); margin-top: 10px; }

/* channel search results */
.chan-results { margin-top: 16px; display: none; gap: 10px; grid-template-columns: 1fr; }
.chan-results.show { display: grid; }
.chan-card {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); cursor: pointer; transition: border-color .15s, background .15s;
}
.chan-card:hover { border-color: var(--red); background: var(--panel2); }
.chan-card img { width: 46px; height: 46px; border-radius: 99px; flex-shrink: 0; background: var(--panel2); object-fit: cover; }
.chan-card .avatar-fallback { width: 46px; height: 46px; border-radius: 99px; flex-shrink: 0; background: var(--red-dim); display: grid; place-items: center; font-family: var(--disp); font-weight: 800; color: var(--red); font-size: 18px; }
.chan-card .cinfo { overflow: hidden; }
.chan-card .cttl { font-weight: 700; font-size: 15px; }
.chan-card .cdesc { font-size: 12.5px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.chan-card .cgo { margin-left: auto; color: var(--amber); font-family: var(--mono); font-size: 12px; flex-shrink: 0; }

/* video list */
.videos-panel { margin-top: 28px; display: none; }
.videos-panel.show { display: block; }
.videos-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.videos-head .count { font-family: var(--mono); font-size: 13px; color: var(--mut); }
.videos-head .count b { color: var(--ink); }
.list-actions { display: flex; gap: 10px; align-items: center; }
.linkbtn { background: none; border: none; color: var(--amber); font-family: var(--mono); font-size: 12.5px; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }

.vlist { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.vitem {
  display: flex; align-items: center; gap: 13px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer;
}
.vitem:last-child { border-bottom: none; }
.vitem:hover { background: var(--panel); }
.vitem input { accent-color: var(--red); width: 17px; height: 17px; flex-shrink: 0; }
.vitem .vt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitem .vmeta { font-family: var(--mono); font-size: 11.5px; color: var(--mut); flex-shrink: 0; }
.vitem .vstate { font-family: var(--mono); font-size: 11px; flex-shrink: 0; }
.vstate.done { color: #3ddc84; } .vstate.fail { color: var(--red); } .vstate.pend { color: var(--mut); }

/* progress */
.progress-wrap { margin-top: 20px; display: none; }
.progress-wrap.show { display: block; }
.pbar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.pbar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber), var(--red)); transition: width .3s; }
.pstat { font-family: var(--mono); font-size: 12.5px; color: var(--mut); margin-top: 8px; }

/* output */
.out-panel { margin-top: 32px; display: none; }
.out-panel.show { display: block; }
.out-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.out-stats { font-family: var(--mono); font-size: 12.5px; color: var(--mut); }
.out-stats b { color: var(--amber); }
.out-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-toggle button {
  background: var(--panel); border: none; color: var(--mut); font-family: var(--mono);
  font-size: 12px; padding: 8px 13px; cursor: pointer;
}
.seg-toggle button.on { background: var(--red-dim); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.out-text {
  width: 100%; min-height: 340px; max-height: 560px; overflow-y: auto;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; color: var(--ink); font-family: var(--mono); font-size: 13px;
  line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}
/* extraction history */
.hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; }
.hist-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.hist-embed { position: relative; aspect-ratio: 16/9; background: var(--panel2); cursor: pointer; }
.hist-embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hist-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.hist-embed .playbadge {
  position: absolute; inset: 0; display: grid; place-items: center; transition: background .2s;
}
.hist-embed .playbadge span {
  width: 54px; height: 38px; background: #000000b0; border-radius: 10px;
  display: grid; place-items: center; transition: background .2s;
}
.hist-embed .playbadge span::after {
  content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent;
  border-bottom: 9px solid transparent; margin-left: 3px;
}
.hist-embed:hover .playbadge span { background: var(--red); }
.hist-embed .multi-badge {
  position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 11px;
  background: #000000c8; padding: 4px 9px; border-radius: 6px; color: var(--amber);
}
.hist-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hist-title {
  font-weight: 700; font-size: 14.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hist-meta { font-family: var(--mono); font-size: 11.5px; color: var(--mut); }
.hist-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.hist-actions .btn-sm { padding: 8px 14px; font-size: 13px; }
.linkbtn.danger { color: var(--mut); }
.linkbtn.danger:hover { color: var(--red); }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.err-box {
  margin-top: 16px; background: #2a1414; border: 1px solid var(--red); border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: #ffb4a8; display: none;
}
.err-box.show { display: block; }
.err-box code { font-family: var(--mono); font-size: 12px; color: var(--amber); }

@media (max-width: 820px) {
  .steps, .native-grid, .price-grid, .offer-grid { grid-template-columns: 1fr; }
  .player .screen { aspect-ratio: 16/9; }
  .chaprow .len { display: none; }
  section { padding: 64px 0; }
  .vitem .vmeta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chaprow { opacity: 1; transform: none; }
}
