/* The type beat video maker (/youtube-beat-tool/). Uses the tokens of assets/css/style.css; nothing here changes other pages.
   Motion rules: only transform, opacity and (for the folding steps) grid rows move; everything stops for prefers-reduced-motion. */

.bt {
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ok: #5fdc93;
  --wave-idle: rgba(228, 210, 198, .30);
  --wave-played: rgba(228, 210, 198, .92);
  --wave-fill: #ff2b2b;
  --card: linear-gradient(180deg, rgba(228, 210, 198, .055), rgba(228, 210, 198, .022));
}

/* ───────────────────────────── page head and layout */
.bt-page { padding-top: clamp(20px, 3vw, 36px); }
.bt-head { max-width: 1180px; }
.bt-head .crumbs { margin-bottom: 14px; }
.bt-head h1 { margin: 8px 0 12px; font-size: clamp(44px, 7.4vw, 78px); }
.bt-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.bt-facts li { padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px; background: rgba(228, 210, 198, .03); color: var(--ash-dim); font-size: 12.5px; letter-spacing: .03em; }
.bt-facts li::before { content: "✦"; margin-right: 8px; color: var(--blood-hot); }
.bt-wrap { margin: 26px auto 70px; }
.bt-alert { margin: 0 0 16px; padding: 14px 16px; border: 1.5px solid rgba(255, 43, 43, .55); border-radius: 12px; background: rgba(200, 16, 28, .12); color: #ffb3b3; font-weight: 600; animation: bt-rise .4s var(--ease) both; }
.bt-alert[hidden] { display: none; }

.bt-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.bt-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.bt-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
/* a window shorter than the stage column (the result makes it taller): the column scrolls inside itself, it never gets cut off */
@media (max-height: 860px) { .bt-side { max-height: calc(100vh - var(--header-h) - 28px); margin: -4px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(228, 210, 198, .25) transparent; } }

/* ───────────────────────────── a step card: it folds into one line once it is done */
.bt-step {
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  transition: border-color .35s, box-shadow .35s;
  animation: bt-rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms);
}
.bt-step.is-next { border-color: rgba(255, 43, 43, .5); box-shadow: 0 0 0 1px rgba(255, 43, 43, .1), 0 24px 56px -30px rgba(200, 16, 28, .7); }
.bt-step__head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; user-select: none; }
.bt-step__head h2 { flex: none; margin: 0; font: 700 13px/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; text-shadow: none; color: var(--ash); }
.bt-step__sum { flex: 1; min-width: 0; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; color: var(--ash-dim); font-size: 13px; opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .35s var(--ease); }
.bt-step:not(.is-open) .bt-step__sum:not(:empty) { opacity: 1; transform: none; }
.bt-step__toggle { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; color: var(--ash-dim); cursor: pointer; transition: background .2s, color .2s; }
.bt-step__sum:not(:empty) + .bt-step__toggle { margin-left: 0; }
.bt-step__toggle:hover { background: rgba(228, 210, 198, .09); color: var(--ash); }
.bt-step__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.bt-step.is-open .bt-step__toggle svg { transform: rotate(180deg); }

.bt-n { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blood); color: #fff; font: 700 13px/1 var(--font-body); transition: background .35s, transform .5s var(--spring); }
.bt-n i { font-style: normal; transition: opacity .2s, transform .3s var(--ease); }
.bt-n svg { position: absolute; width: 16px; height: 16px; fill: none; stroke: #07210f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s .1s var(--ease); }
.bt-step.is-done .bt-n { background: var(--ok); transform: scale(1.08); }
.bt-step.is-done .bt-n i { opacity: 0; transform: scale(.3); }
.bt-step.is-done .bt-n svg { stroke-dashoffset: 0; }

/* folding: the height animates through grid rows (no JS measuring); closed content cannot be tabbed into */
.bt-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.bt-step.is-open > .bt-collapse { grid-template-rows: 1fr; }
.bt-collapse__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; overflow: hidden; padding: 0 16px; visibility: hidden; opacity: 0; transition: opacity .3s, padding .45s var(--ease), visibility 0s .45s; }
.bt-step.is-open .bt-collapse__in { padding: 4px 16px 18px; visibility: visible; opacity: 1; transition: opacity .4s .08s, padding .45s var(--ease), visibility 0s; }

/* ───────────────────────────── fields */
.bt-step .field { display: grid; gap: 8px; min-width: 0; }
.bt-label, .bt-step .field > label { font: 700 11px/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash-dim); }
.bt-label i, .field label i { font-weight: 400; letter-spacing: .02em; text-transform: none; }
.bt-step .field small, .bt-countrow small, .bt-panel small { color: var(--ash-dim); font-size: 12.5px; line-height: 1.5; transition: color .3s; }
.bt-step small.warn { color: #ffb36b; }
.bt-step small.bad { color: #ff7a7a; }
.bt-step .hint { margin: 0; }
.bt-step .hint:empty { display: none; }
.bt-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 4px; }
.bt-step .hint.is-busy { animation: bt-breathe-text 1.1s ease-in-out infinite alternate; }

.bt-step input[type="text"], .bt-step input[type="number"], .bt-step input[type="url"], .bt-step select, .bt-step textarea,
.bt-yt select, .bt-yt input[type="time"], .bt-yt input[type="date"] {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--bg-2); color: var(--ash); font: 500 15px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s, background .2s;
}
.bt-step textarea { padding: 12px 14px; resize: vertical; font: 500 14px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.bt-step select, .bt-yt select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--ash-dim) 50%), linear-gradient(135deg, var(--ash-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.bt-step input:hover, .bt-step select:hover, .bt-step textarea:hover, .bt-yt select:hover, .bt-yt input:hover { border-color: rgba(228, 210, 198, .45); }
.bt-step input:focus, .bt-step select:focus, .bt-step textarea:focus, .bt-yt select:focus, .bt-yt input:focus { outline: 0; border-color: var(--blood-hot); box-shadow: 0 0 0 3px rgba(255, 43, 43, .2); }
.bt-step ::placeholder { color: rgba(171, 151, 141, .5); }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.bt-flash { animation: bt-flash 1.1s var(--ease); }          /* a field the page just rewrote for the visitor */

/* ───────────────────────────── drop zones */
.bt-drop {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 30px 18px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line-strong); border-radius: 16px;
  background: radial-gradient(120% 110% at 50% 0%, rgba(200, 16, 28, .11), transparent 70%);
  transition: border-color .25s, background .25s, transform .3s var(--ease), box-shadow .3s;
}
.bt-drop[hidden] { display: none; }
.bt-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bt-drop__icon { width: 46px; height: 46px; fill: none; stroke: var(--blood-hot); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: bt-float 3.6s ease-in-out infinite; }
.bt-drop__main { font: 700 16px/1.3 var(--font-body); color: var(--ash); }
.bt-drop__hint { max-width: 38ch; font-size: 13px; line-height: 1.5; color: var(--ash-dim); }
.bt-drop:hover, .bt-drop:focus-within { border-color: var(--blood-hot); transform: translateY(-2px); box-shadow: 0 20px 46px -24px rgba(255, 43, 43, .75); }
.bt-drop.is-over { border-style: solid; border-color: var(--blood-hot); background: radial-gradient(120% 110% at 50% 0%, rgba(255, 43, 43, .26), rgba(200, 16, 28, .06) 75%); transform: scale(1.015); box-shadow: 0 0 0 5px rgba(255, 43, 43, .16), 0 24px 54px -22px rgba(255, 43, 43, .8); }
.bt-drop.is-over .bt-drop__icon { animation: bt-bounce .5s var(--spring) infinite alternate; }

.bt-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--ash-dim); font-size: 14px; word-break: break-word; }
.bt-file b { color: var(--ash); }
.bt-link { padding: 0; border: 0; background: none; color: var(--ash-dim); font: 600 13px/1.4 var(--font-body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; transition: color .2s; }
.bt-link:hover { color: var(--ash); }
#beat-info, #pic-info { display: grid; gap: 14px; }
#beat-info:not([hidden]), #pic-info:not([hidden]) { animation: bt-rise .5s var(--ease) both; }
#beat-info[hidden], #pic-info[hidden] { display: none; }

.bt-bpm { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.bt-mini { min-width: 46px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ash); font: 700 14px/1 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.bt-mini:hover { border-color: var(--ash); background: rgba(228, 210, 198, .07); }
.bt-mini:active { transform: scale(.94); }
.bt-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bt-ideas[hidden] { display: none; }
.bt-ideas span { font-size: 12.5px; color: var(--ash-dim); }

/* ───────────────────────────── chips, segmented choice, tabs */
.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-chips:empty { display: none; }
.bt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ash); font: 600 13px/1 var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.bt-chip:hover { border-color: var(--ash); }
.bt-chip:active { transform: scale(.95); }
.bt-chip[aria-pressed="true"] { border-color: var(--blood-hot); background: rgba(200, 16, 28, .24); }
.bt-chip.is-new { animation: bt-pop .45s var(--spring) both; }
.bt-chip--artist { cursor: default; padding-right: 6px; border-color: rgba(255, 43, 43, .5); background: rgba(200, 16, 28, .16); }
.bt-chip--artist button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .3); color: var(--ash); font: 700 14px/1 var(--font-body); cursor: pointer; transition: background .2s; }
.bt-chip--artist button:hover { background: var(--blood); }
.bt-chip--artist .bt-chip__name { width: auto; height: auto; padding: 0; border-radius: 0; background: none; font: inherit; cursor: pointer; }
.bt-chips--ghost .bt-chip { border-style: dashed; color: var(--ash-dim); font-weight: 500; }
.bt-chips--ghost .bt-chip::before { content: "+"; font-weight: 700; color: var(--blood-hot); }
.bt-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.bt-seg { display: inline-flex; width: fit-content; max-width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: rgba(6, 3, 4, .6); }
.bt-seg label { cursor: pointer; }
.bt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bt-seg span { display: block; padding: 10px 14px; font: 700 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ash-dim); transition: background .25s, color .25s; }
.bt-seg input:checked + span { background: var(--blood); color: #fff; }
.bt-seg input:focus-visible + span { outline: 2px solid var(--blood-hot); outline-offset: -2px; }

.bt-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-tabs button { padding: 10px 15px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ash-dim); font: 700 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.bt-tabs button:hover { color: var(--ash); }
.bt-tabs button[aria-selected="true"] { border-color: var(--blood-hot); background: rgba(200, 16, 28, .2); color: var(--ash); }
.bt-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; animation: bt-rise .4s var(--ease) both; }
.bt-panel[hidden] { display: none; }

/* contacts */
.bt-rows { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.bt-row { display: grid; grid-template-columns: minmax(130px, 190px) 1fr auto; gap: 8px; align-items: start; animation: bt-rise .35s var(--ease) both; }
.bt-row .bt-row__label { grid-column: 1 / -1; }
.bt-row__x { width: 50px; min-height: 50px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ash-dim); font: 700 18px/1 var(--font-body); cursor: pointer; transition: border-color .2s, color .2s; }
.bt-row__x:hover { border-color: var(--blood-hot); color: var(--ash); }
.bt-row small { grid-column: 2; margin-top: -2px; }
.bt-view { display: grid; gap: 6px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.bt-view b { font: 700 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash-dim); }
.bt-view pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #cdbdb2; }
.bt-view pre:empty::before { content: "Nothing yet: add at least one way to reach you."; color: var(--ash-dim); font-family: var(--font-body); }
.bt-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12.5px; color: var(--ash-dim); }
.bt-saved svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* licence cards */
.bt-lics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.bt-lic { position: relative; display: grid; gap: 4px; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.bt-lic input { position: absolute; opacity: 0; pointer-events: none; }
.bt-lic b { font: 700 14px/1.3 var(--font-body); color: var(--ash); }
.bt-lic span { font-size: 12.5px; line-height: 1.45; color: var(--ash-dim); }
.bt-lic:hover { border-color: var(--ash); transform: translateY(-1px); }
.bt-lic.is-on { border-color: var(--blood-hot); background: rgba(200, 16, 28, .18); }
.bt-lic:focus-within { outline: 2px solid var(--blood-hot); outline-offset: 2px; }

/* ───────────────────────────── style and texts */
.bt-ai { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bt-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.bt-check input { width: 20px; height: 20px; accent-color: var(--blood); }
.bt-aistatus { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 3, 4, .5); transition: border-color .3s, background .3s; }
.bt-aistatus.is-listening { border-color: rgba(255, 43, 43, .45); background: rgba(200, 16, 28, .09); }
.bt-aistatus.is-ok { border-color: rgba(95, 220, 147, .4); }
.bt-aistatus .hint { flex: 1; }
.bt-listen { display: none; align-items: flex-end; gap: 3px; flex: none; height: 20px; margin-top: 1px; }
.bt-aistatus.is-listening .bt-listen { display: flex; }
.bt-listen i { width: 4px; height: 100%; border-radius: 2px; background: var(--blood-hot); transform-origin: bottom; animation: bt-listen 1s ease-in-out infinite; }
.bt-listen i:nth-child(2) { animation-delay: -.2s; } .bt-listen i:nth-child(3) { animation-delay: -.45s; } .bt-listen i:nth-child(4) { animation-delay: -.7s; }
.bt-note { font-size: 12.5px; color: var(--ash-dim); }
.bt-note summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.bt-note p { margin: 8px 0 0; line-height: 1.55; }

.bt-variants { display: grid; gap: 6px; }
.bt-variant { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font: 500 14px/1.35 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ash); transition: border-color .2s, background .2s; }   /* (shop.css styles every label inside .field as a small caption) */
.bt-variant input { accent-color: var(--blood); }
.bt-variant span { min-width: 0; word-break: break-word; }
.bt-variant em { font-style: normal; font-size: 12px; color: var(--ash-dim); white-space: nowrap; }
.bt-variant.is-on { border-color: var(--blood-hot); background: rgba(200, 16, 28, .13); }
.bt-variant:hover { border-color: var(--line-strong); }
.bt-copyrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bt-countrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bt-copy { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--ash); font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .15s; }
.bt-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-copy:hover { border-color: var(--ash); background: rgba(228, 210, 198, .07); }
.bt-copy:active { transform: scale(.95); }
.bt-copy.is-copied { border-color: rgba(95, 220, 147, .7); background: rgba(95, 220, 147, .14); color: var(--ok); }
.bt-copyrow .bt-copy { min-height: 50px; }

/* the YouTube-like search result */
.bt-search { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 3, 4, .55); }
.bt-search canvas { width: 150px; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.bt-search__time { position: absolute; left: 118px; top: 74px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .82); color: #fff; font: 600 10.5px/1.5 var(--font-body); }
.bt-search__text { display: grid; align-content: start; gap: 3px; min-width: 0; }
.bt-search__text b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 600 14px/1.35 var(--font-body); color: var(--ash); }
.bt-search__text span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.45; color: var(--ash-dim); }

/* ───────────────────────────── the stage */
.bt-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; border: 1px solid var(--line-strong); border-radius: 18px; background: #000; box-shadow: 0 34px 80px -46px rgba(200, 16, 28, .8); transition: box-shadow .5s, border-color .3s; }
.bt-stage > canvas, .bt-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.bt-stage > video[hidden] { display: none; }
.bt-stage > canvas { transition: opacity .4s, filter .6s; }
.bt-stage[data-state="empty"] > canvas { opacity: 0; }
.bt-stage > canvas.is-reveal { animation: bt-reveal .8s var(--ease) both; }
.bt-stage[data-state="done"] { border-color: rgba(95, 220, 147, .5); box-shadow: 0 34px 80px -40px rgba(95, 220, 147, .35); }
.bt-stage.is-over { border-color: var(--blood-hot); box-shadow: 0 0 0 5px rgba(255, 43, 43, .16), 0 34px 80px -36px rgba(255, 43, 43, .9); }

.bt-stage__empty { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; color: var(--ash-dim); cursor: pointer; background: radial-gradient(60% 70% at 50% 38%, rgba(200, 16, 28, .2), transparent 72%); transition: opacity .45s; animation: bt-breathe 4.2s ease-in-out infinite; }
.bt-stage__empty::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(228, 210, 198, .22); border-radius: 12px; transition: border-color .25s; }
.bt-stage__empty:hover::before { border-color: var(--blood-hot); }
.bt-stage__empty svg { width: 38px; height: 38px; fill: none; stroke: var(--blood-hot); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: bt-float 3.6s ease-in-out infinite; }
.bt-stage__empty b { font: 700 15px/1.3 var(--font-body); color: var(--ash); }
.bt-stage__empty span { font-size: 13px; }
.bt-stage:not([data-state="empty"]) .bt-stage__empty { opacity: 0; pointer-events: none; animation: none; }

.bt-fit[hidden] { display: none; }
.bt-fit { animation: bt-rise .4s var(--ease) both; }

/* ───────────────────────────── making the video */
.bt-make { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 12px; background: radial-gradient(circle at 50% 44%, rgba(6, 3, 4, .5), rgba(6, 3, 4, .9)); -webkit-backdrop-filter: blur(7px) saturate(1.15); backdrop-filter: blur(7px) saturate(1.15); animation: bt-fade .35s both; transition: opacity .6s; }
.bt-make[hidden] { display: none; }
.bt-make.is-leaving { opacity: 0; }
.bt-make__core { position: relative; width: clamp(88px, 27%, 124px); aspect-ratio: 1; }
.bt-ring { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.bt-ring circle { fill: none; stroke-width: 7; }
.bt-ring__bg { stroke: rgba(228, 210, 198, .16); }
.bt-ring__fg { stroke: var(--blood-hot); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 7px rgba(255, 43, 43, .85)); transition: stroke .5s; }
.bt-ring__tick { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(90deg); transform-origin: 60px 60px; }
.bt-make.is-done .bt-ring__fg { stroke: var(--ok); filter: drop-shadow(0 0 9px rgba(95, 220, 147, .8)); }
.bt-make.is-done .bt-ring__tick { stroke: var(--ok); animation: bt-tick .55s .12s var(--ease) forwards; }
.bt-make.is-done .bt-make__core { animation: bt-pop .6s var(--spring); }
.bt-make__pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(20px, 3.2vw, 28px)/1 var(--font-body); font-variant-numeric: tabular-nums; color: #fff; transition: opacity .2s; }
.bt-make.is-done .bt-make__pct { opacity: 0; }
.bt-make__text { margin: 0; text-align: center; font: 600 14px/1.3 var(--font-body); color: var(--ash); }
.bt-stages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bt-stages li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ash-dim); font: 700 10.5px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transition: border-color .3s, background .3s, color .3s; }
.bt-stages li.is-active { border-color: var(--blood-hot); background: rgba(200, 16, 28, .32); color: #fff; animation: bt-pulse 1.3s ease-in-out infinite; }
.bt-stages li.is-done { border-color: rgba(95, 220, 147, .5); color: var(--ok); }
.bt-stages li.is-done::before { content: "✓ "; }
.bt-eq { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: min(80%, 380px); height: 36px; transition: opacity .3s; }
.bt-eq i { flex: 1; max-width: 9px; height: calc(var(--h, .15) * 100%); min-height: 3px; border-radius: 3px; background: linear-gradient(180deg, #ff7a7a, #c8101c); transition: height .1s linear; }
.bt-make.is-done .bt-eq { opacity: 0; }
.bt-make.is-done #make-cancel { visibility: hidden; }
.bt-burst { position: absolute; left: 50%; top: 44%; width: 0; height: 0; pointer-events: none; }
.bt-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ok)); animation: bt-burst .9s var(--ease) forwards; }

/* ───────────────────────────── the beat's waveform and the numbers */
.bt-wave { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); animation: bt-rise .55s var(--ease) both; }
.bt-wave[hidden] { display: none; }
.bt-wave canvas { display: block; width: 100%; height: 58px; cursor: pointer; touch-action: none; }
.bt-play { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(180deg, #e3222d, #b30d18); color: #fff; box-shadow: 0 10px 24px -10px rgba(200, 16, 28, .9); cursor: pointer; transition: transform .2s var(--spring), box-shadow .2s; }
.bt-play:hover { transform: scale(1.08); }
.bt-play:active { transform: scale(.94); }
.bt-play svg { position: absolute; width: 20px; height: 20px; fill: #fff; transition: opacity .2s, transform .25s var(--spring); }
.bt-play__pause { opacity: 0; transform: scale(.4); }
.bt-play.is-playing .bt-play__play { opacity: 0; transform: scale(.4); }
.bt-play.is-playing .bt-play__pause { opacity: 1; transform: none; }
.bt-play.is-playing { animation: bt-ping 1.6s ease-out infinite; }
.bt-time { min-width: 72px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ash-dim); }

.bt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bt-stats[hidden] { display: none; }
.bt-stats li { display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(228, 210, 198, .03); animation: bt-rise .5s var(--ease) both; min-width: 0; }
.bt-stats li:nth-child(2) { animation-delay: .06s; } .bt-stats li:nth-child(3) { animation-delay: .12s; } .bt-stats li:nth-child(4) { animation-delay: .18s; }
.bt-stats span { font: 700 10px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ash-dim); }
.bt-stats b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1.2 var(--font-body); color: var(--ash); font-variant-numeric: tabular-nums; }

/* ───────────────────────────── the button and the result */
.bt-makearea { display: grid; gap: 12px; }
.bt-go { position: relative; overflow: hidden; gap: 12px; min-height: 58px; font-size: 14px; letter-spacing: .12em; transition: transform .2s var(--ease), box-shadow .3s, opacity .3s, filter .3s; }
.bt-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-go:disabled { filter: saturate(.25) brightness(.8); box-shadow: none; opacity: .6; cursor: not-allowed; transform: none; }
.bt-go.is-ready { animation: bt-glow 2.8s ease-in-out infinite; }
.bt-go.is-ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); animation: bt-sheen 3.6s ease-in-out infinite; pointer-events: none; }
.bt-go:active:not(:disabled) { transform: scale(.985); }

.bt-result { display: grid; gap: 12px; padding: 16px; border: 1px solid rgba(95, 220, 147, .4); border-radius: 16px; background: linear-gradient(180deg, rgba(95, 220, 147, .1), rgba(95, 220, 147, .03)); animation: bt-pop .6s var(--spring) both; }
.bt-result[hidden] { display: none; }
.bt-result .hint { margin: 0; }
.bt-result__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 15px/1.3 var(--font-body); color: var(--ash); }
.bt-result__title svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ok); fill: none; stroke: #07210f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: bt-draw .5s .25s var(--ease) forwards; }
.bt-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-cta .btn { flex: 1 1 150px; padding: 0 14px; letter-spacing: .1em; white-space: nowrap; }
.bt-cta .btn small { margin-left: 8px; font-weight: 600; letter-spacing: .03em; text-transform: none; opacity: .75; }
.bt-go[hidden] { display: none; }
.bt-cta .btn--red { animation: bt-ping-red 1.8s .8s ease-out 2; }
.bt-upload { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(95, 220, 147, .22); }
.bt-upload__head { margin: 0; font: 700 11px/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash-dim); }
.bt-upload__steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: up; }
.bt-upload__steps li { position: relative; display: grid; gap: 8px; padding-left: 34px; counter-increment: up; font-size: 14px; line-height: 1.5; color: var(--ash); }
.bt-upload__steps li::before { content: counter(up); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(228, 210, 198, .12); color: var(--ash); font: 700 12px/1 var(--font-body); }
.bt-upload__steps .btn { width: fit-content; gap: 8px; }
.bt-upload__steps .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-copies { display: flex; flex-wrap: wrap; gap: 8px; }

.bt-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(6, 3, 4, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: bt-dock .4s var(--ease) both; }
.bt-dock[hidden] { display: none; }

/* ───────────────────────────── many beats and pictures */
/* the real file inputs sit beside their drop zones (a zone is a label for its input): invisible, but the zone shows when the input is focused */
.bt-fileinput { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.bt-fileinput:focus-visible + .bt-drop { border-color: var(--blood-hot); box-shadow: 0 0 0 4px rgba(255, 43, 43, .2); }
.bt-active { display: grid; gap: 12px; padding-top: 4px; }
.bt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bt-actions [hidden] { display: none; }
.bt-more { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 10px 14px; border: 1.5px dashed var(--line-strong); border-radius: 12px; color: var(--ash); font: 700 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.bt-more svg { width: 16px; height: 16px; fill: none; stroke: var(--blood-hot); stroke-width: 2.2; stroke-linecap: round; }
.bt-more:hover { border-color: var(--blood-hot); background: rgba(200, 16, 28, .1); }
.bt-more:active { transform: scale(.97); }
.bt-more[hidden] { display: none; }

.bt-queue { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bt-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.bt-q.is-new, .bt-g.is-new { animation: bt-pop .4s var(--spring) both; }
.bt-q__main { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: transparent; color: var(--ash); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.bt-q__main:hover { border-color: var(--line-strong); }
.bt-q.is-active .bt-q__main { border-color: var(--blood-hot); background: rgba(200, 16, 28, .14); }
.bt-q.is-making .bt-q__main { border-color: rgba(95, 220, 147, .65); background: rgba(95, 220, 147, .08); }
.bt-q__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(228, 210, 198, .12); font: 700 11.5px/1 var(--font-body); }
.bt-q__thumb { display: block; width: 46px; height: 26px; border-radius: 5px; border: 1px solid var(--line); background: #000; }
.bt-q__text { display: grid; gap: 1px; min-width: 0; }
.bt-q__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1.3 var(--font-body); }
.bt-q__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.3 var(--font-body); color: var(--ash-dim); }
.bt-q__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ash-dim); transition: background .3s; }
.bt-q.is-ready .bt-q__dot { background: var(--ok); }
.bt-q.is-reading .bt-q__dot { background: var(--blood-hot); animation: bt-pulse 1.1s ease-in-out infinite; }
.bt-q.is-listening .bt-q__dot { background: #ffb36b; animation: bt-pulse 1.1s ease-in-out infinite; }
.bt-q.is-error .bt-q__dot { background: #ff5a5a; }
.bt-q__x { width: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: transparent; color: var(--ash-dim); font: 700 18px/1 var(--font-body); cursor: pointer; transition: border-color .2s, color .2s; }
.bt-q__x:hover { border-color: var(--blood-hot); color: var(--ash); }

.bt-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bt-g { position: relative; }
.bt-g__pick { display: block; width: 100%; padding: 0; overflow: hidden; border: 2px solid var(--line); border-radius: 10px; background: #000; cursor: pointer; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.bt-g__pick canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.bt-g__pick:hover { border-color: var(--ash); transform: translateY(-2px); }
.bt-g.is-used .bt-g__pick { border-color: var(--blood-hot); box-shadow: 0 0 0 3px rgba(255, 43, 43, .22); }
.bt-g__count { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, .78); color: #fff; font: 700 10.5px/1.6 var(--font-body); pointer-events: none; }
.bt-g__x { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; font: 700 13px/1 var(--font-body); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.bt-g:hover .bt-g__x, .bt-g__x:focus-visible { opacity: 1; }
.bt-g__x:hover { background: var(--blood); }
@media (hover: none) { .bt-g__x { opacity: 1; } }

.bt-switch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); animation: bt-rise .4s var(--ease) both; }
.bt-switch[hidden] { display: none; }
.bt-switch button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ash); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.bt-switch button:hover { border-color: var(--ash); background: rgba(228, 210, 198, .08); }
.bt-switch button:active { transform: scale(.92); }
.bt-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bt-switch span { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.3 var(--font-body); color: var(--ash); }
.bt-editing { margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 43, 43, .3); border-radius: 12px; background: rgba(200, 16, 28, .1); color: var(--ash-dim); font-size: 13px; line-height: 1.45; }
.bt-editing[hidden] { display: none; }
.bt-editing b { color: var(--ash); }

.bt-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bt-res { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 3, 4, .4); transition: border-color .25s; animation: bt-rise .45s var(--ease) both; }
.bt-res.is-playing { border-color: rgba(95, 220, 147, .6); }
.bt-res__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.bt-res__main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ash); text-align: left; cursor: pointer; }
.bt-res__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(95, 220, 147, .18); color: var(--ok); font: 700 11.5px/1 var(--font-body); }
.bt-res__name { display: grid; gap: 1px; min-width: 0; }
.bt-res__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1.3 var(--font-body); }
.bt-res__name small { color: var(--ash-dim); font-size: 12px; }
.bt-res__dl { padding: 7px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--ash); font: 700 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: border-color .2s, background .2s; white-space: nowrap; }
.bt-res__dl:hover { border-color: var(--ash); background: rgba(228, 210, 198, .07); }
.bt-res__copies { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 34px; }
.bt-copy--mini { min-height: 32px; padding: 0 10px; font-size: 11px; }
.bt-copy--mini svg { width: 14px; height: 14px; }

/* while a batch is made the left column cannot be touched: the videos are made from what it shows now */
.bt.is-busy .bt-steps { pointer-events: none; opacity: .55; transition: opacity .3s; }

/* ───────────────────────────── small screens: one column, the stage comes after the first two steps */
@media (max-width: 959px) {
  .bt-layout { grid-template-columns: 1fr; gap: 14px; }
  .bt-steps { display: contents; }
  .bt-step[data-n="1"] { order: 1; } .bt-step[data-n="2"] { order: 2; }
  .bt-side { order: 3; position: static; max-height: none; overflow: visible; margin: 0; padding: 0; }
  .bt-step[data-n="3"] { order: 4; } .bt-step[data-n="4"] { order: 5; }
  .bt-step__head { padding: 14px; }
  .bt-step__sum { display: none; }
  .bt-step__toggle { margin-left: auto !important; }
}
@media (max-width: 640px) {
  .bt-row { grid-template-columns: 1fr auto; }
  .bt-row select { grid-column: 1 / -1; }
  .bt-row small { grid-column: 1 / -1; }
  .bt-variant { grid-template-columns: auto 1fr; }
  .bt-variant em { grid-column: 2; }
  .bt-search { grid-template-columns: 112px minmax(0, 1fr); }
  .bt-search canvas { width: 112px; }
  .bt-search__time { left: 84px; top: 52px; }
  .bt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-wave { grid-template-columns: auto minmax(0, 1fr); }
  .bt-time { grid-column: 1 / -1; text-align: left; margin-top: -4px; }
  .bt-stages li { padding: 4px 8px; font-size: 10px; }
  .bt-q__main { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bt-q__thumb { display: none; }
  .bt-res__copies { padding-left: 0; }
  .bt-page { padding-bottom: 76px; }
}

/* ───────────────────────────── keyframes */
@keyframes bt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bt-breathe-text { from { opacity: .45; } to { opacity: 1; } }
@keyframes bt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bt-pop { 0% { opacity: 0; transform: scale(.82); } 100% { opacity: 1; transform: none; } }
@keyframes bt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes bt-bounce { from { transform: translateY(0) scale(1); } to { transform: translateY(-8px) scale(1.12); } }
@keyframes bt-breathe { 0%, 100% { background-color: rgba(200, 16, 28, 0); } 50% { background-color: rgba(200, 16, 28, .1); } }
@keyframes bt-reveal { from { opacity: 0; transform: scale(1.06); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bt-flash { 0% { border-color: var(--blood-hot); box-shadow: 0 0 0 4px rgba(255, 43, 43, .42); background: rgba(200, 16, 28, .22); } 100% { box-shadow: 0 0 0 0 rgba(255, 43, 43, 0); } }
@keyframes bt-listen { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes bt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 43, 43, .5); } 50% { box-shadow: 0 0 0 6px rgba(255, 43, 43, 0); } }
@keyframes bt-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 43, 43, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 43, 43, 0); } }
@keyframes bt-ping-red { 0% { box-shadow: 0 0 0 0 rgba(255, 43, 43, .7), 0 10px 30px -10px rgba(200, 16, 28, .85); } 100% { box-shadow: 0 0 0 16px rgba(255, 43, 43, 0), 0 10px 30px -10px rgba(200, 16, 28, .85); } }
@keyframes bt-glow { 0%, 100% { box-shadow: 0 10px 30px -10px rgba(200, 16, 28, .85), inset 0 1px 0 rgba(255, 255, 255, .25); } 50% { box-shadow: 0 16px 44px -8px rgba(255, 43, 43, .95), inset 0 1px 0 rgba(255, 255, 255, .3); } }
@keyframes bt-sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes bt-tick { to { stroke-dashoffset: 0; } }
@keyframes bt-draw { to { stroke-dashoffset: 0; } }
@keyframes bt-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.2); } }
@keyframes bt-dock { from { transform: translateY(100%); } to { transform: none; } }

/* the visitor asked for less motion: nothing loops, nothing slides, state changes are instant */
/* ------------------------------------------------------------------------------------------------ publish to YouTube */
.bt-yt { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(6, 3, 4, .45); animation: bt-rise .45s var(--ease) both; }
.bt-yt[hidden] { display: none; }
.bt-yt .hint { margin: 0; }
.bt-yt .hint:empty, .bt-yt .form-error:empty { display: none; }
.bt-yt__head { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 11px/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.bt-yt__head svg { width: 22px; height: 22px; fill: none; stroke: var(--blood-hot); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#yt-connect, #yt-main { display: grid; gap: 12px; }
#yt-connect[hidden], #yt-main[hidden], .bt-yt__panel[hidden] { display: none; }
#yt-connect .btn { width: fit-content; }
.bt-yt__legal { font-size: 12px; line-height: 1.55; color: var(--ash-dim); }
.bt-yt__certify { font-size: 12px; line-height: 1.55; }
.bt-yt__certify a, .bt-yt__check a { color: var(--ash); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.bt-yt__changes { white-space: pre-line; color: #f0c987; font-weight: 600; }
#yt-connect .btn:disabled { opacity: .45; cursor: not-allowed; }
.bt-yt__legal a { color: var(--ash); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.bt-yt__status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ash); }
.bt-yt__status .bt-link { margin-left: auto; }
.bt-yt__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 220, 147, .16); }
.bt-yt__panel { display: grid; gap: 12px; animation: bt-rise .35s var(--ease) both; }
.bt-yt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bt-yt__grid .bt-yt__wide { grid-column: 1 / -1; }
.bt-yt input, .bt-yt select { min-width: 0; max-width: 100%; }
@media (max-width: 420px) { .bt-yt__grid { grid-template-columns: minmax(0, 1fr); } }
.bt-yt__grid .field[hidden] { display: none; }
.bt-yt__grid .field { min-width: 0; }
.bt-yt input[type="time"], .bt-yt input[type="date"] { color-scheme: dark; }
.bt-yt select { text-overflow: ellipsis; }
.bt-yt__plan { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bt-yt__plan:empty { display: none; }
.bt-yt__plan li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ash); }
.bt-yt__plan .bt-yt__more { color: var(--ash-dim); }
.bt-yt__n { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: rgba(228, 210, 198, .12); color: var(--ash); font: 700 11px/1 var(--font-body); }
#yt-plan-note.is-error { color: #ffb3b3; font-weight: 600; }
.bt-yt__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ash); cursor: pointer; }
.bt-yt__check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blood); }
.bt-yt__check small { display: block; color: var(--ash-dim); font-size: 12px; }
.bt-yt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bt-yt__actions .btn[hidden] { display: none; }
.bt-yt__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bt-yt__list:empty, .bt-yt__list[hidden] { display: none; }
.bt-yt__row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 3, 4, .4); transition: border-color .25s; }
.bt-yt__row[data-status="uploading"] { border-color: rgba(255, 43, 43, .55); }
.bt-yt__row[data-status="done"] { border-color: rgba(95, 220, 147, .55); }
.bt-yt__row[data-status="error"] { border-color: rgba(255, 120, 120, .6); }
.bt-yt__body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.bt-yt__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ash); }
.bt-yt__state { font-size: 12.5px; line-height: 1.4; color: var(--ash-dim); }
.bt-yt__state.is-error { color: #ffb3b3; }
.bt-yt__bar { height: 6px; border-radius: 3px; background: rgba(228, 210, 198, .12); overflow: hidden; }
.bt-yt__bar[hidden] { display: none; }
.bt-yt__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--blood-hot); transition: width .25s linear; }
.bt-yt__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bt-yt__links:empty { display: none; }
.bt-yt__link { font-size: 12.5px; font-weight: 600; color: var(--ash); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.bt-yt__link:hover { text-decoration-color: var(--ash); }

@media (prefers-reduced-motion: reduce) {
  .bt *, .bt *::before, .bt *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .bt-go.is-ready::after { display: none; }
}
