/* Remix: upload a clip, pick the part, tap who changes, pick what they get, remix. */

/* ---- upload ---- */
.remix-drop { margin: 26px 0 0; max-width: 900px; }
.remix-drop-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 260px; padding: 32px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--ink); border-radius: 2px; background: var(--panel);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.remix-drop-zone:hover, .remix-drop-zone.is-dragging { background: #fbffc4; box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.remix-drop-zone:has(input:focus-visible) { outline: 3px solid #ff5b2e; outline-offset: 3px; }
.remix-drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.remix-drop-zone[hidden] { display: none; }
.remix-drop-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border: 2px solid var(--ink); border-radius: 50%; background: var(--tape); }
.remix-drop-icon .icon { width: 30px; height: 30px; }
.remix-drop-title { font: 700 24px/1.2 var(--body); letter-spacing: -.5px; }
.remix-drop-or { font-size: 14px; color: var(--mute); }
.remix-drop-zone small { margin-top: 10px; font-size: 13px; color: var(--mute); }
/* A file that can't be used: the zone shakes once, and the reason shows right under it. */
.remix-drop-zone.is-wrong { border-color: var(--signal); animation: remix-shake .35s; }
.remix-drop-message { margin: 10px 0 0; padding: 11px 14px; border: 1.5px solid var(--signal); background: #fbece8; color: #7d2216; font-size: 14px; font-weight: 650; line-height: 1.4; }
@keyframes remix-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes remix-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: none; } }
/* Phones have nothing to drop. */
@media (pointer: coarse) { .remix-drop-or { display: none; } }
.remix-upload-progress { padding: 34px 24px; border: 1px solid var(--ink); background: var(--panel); }
.remix-upload-progress[hidden] { display: none; }
.remix-progress { position: relative; height: 14px; border: 1.5px solid var(--ink); background: #fff; overflow: hidden; }
.remix-progress i { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: var(--tape); border-right: 1.5px solid var(--ink); transition: width .2s; }
/* Uploaded, while the server makes a preview: the full bar keeps moving. */
.remix-upload-progress.is-working .remix-progress i { background: repeating-linear-gradient(-45deg, var(--tape) 0 8px, #d4df1d 8px 16px) 0 0 / 22.63px 22.63px; animation: remix-stripes 1s linear infinite; }
.remix-upload-progress p { margin-top: 12px; font-size: 14px; font-weight: 650; }
/* The part picker, a dark editor as in a phone video app: a big preview, play controls, then the
   clip's timeline: a light ruler over its frames, a yellow frame around the part with a chunky
   handle at each end and its length on it, the rest dimmed, and a white playhead with the time on
   its knob. --from, --to and --now are fractions of the clip; each handle sits outside the part,
   in a gutter as wide as itself (--edge). */
.remix-trim { padding: 18px 20px 20px; border: 1.5px solid var(--ink); background: #121210; color: #fff; box-shadow: 4px 4px 0 var(--ink); overflow-x: clip; scroll-margin-top: 12px; }
.remix-trim[hidden] { display: none; }
.remix-trim-head { margin-bottom: 14px; }
.remix-trim-head h2 { font: 700 21px/1.3 var(--body); letter-spacing: -.5px; text-transform: none; color: #fff; }
.remix-trim-head h2:focus { outline: none; }
.remix-trim-head p { margin-top: 2px; color: #b8b7ab; font-size: 14px; }
.remix-trim-preview { position: relative; width: 100%; aspect-ratio: var(--trim-aspect, 16 / 9); max-height: min(56vh, 540px); border-radius: 4px; background: #000; overflow: hidden; }
.remix-trim-preview video { display: block; width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
/* While the preview is paused, a play button in its middle, as in any player. Taps go through to the video. */
.remix-trim-big-play { position: absolute; inset: 0; display: grid; place-items: center; width: 68px; height: 68px; margin: auto; border-radius: 50%; background: rgb(18 18 16 / .7); box-shadow: 0 0 0 1.5px rgb(255 255 255 / .55); color: #fff; pointer-events: none; transition: opacity .15s; }
.remix-trim-big-play .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.remix-trim-player.is-playing .remix-trim-big-play, .remix-trim-player:has([data-dragging]) .remix-trim-big-play { opacity: 0; }
.remix-trim-controls { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.remix-trim-play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tape); color: var(--ink); cursor: pointer; }
.remix-trim-play .icon { width: 18px; height: 18px; fill: currentColor; }
.remix-trim-play-part { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px 0 13px; border: 1.5px solid rgb(255 255 255 / .35); border-radius: 999px; background: none; color: #fff; font: 700 13px/1 var(--body); cursor: pointer; }
.remix-trim-play-part:hover { border-color: var(--tape); color: var(--tape); }
.remix-trim-play-part .icon { width: 13px; height: 13px; fill: currentColor; }
.remix-trim-play:focus-visible, .remix-trim-play-part:focus-visible, .remix-trim-back:focus-visible { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-trim-timeline {
  --from: 0; --to: 1; --now: 0; --axis: calc(100% - 2 * var(--edge, 22px));
  position: relative; padding-top: 24px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
/* A light ruler: a labeled mark every few seconds and a short one between. */
.remix-trim-ruler { position: absolute; top: 0; left: var(--edge, 22px); right: var(--edge, 22px); height: 22px; }
.remix-trim-ruler i { position: absolute; bottom: 3px; left: calc(var(--at) * 100%); width: 1px; height: 4px; background: rgb(255 255 255 / .3); }
.remix-trim-ruler i.is-major { height: 7px; background: rgb(255 255 255 / .55); }
.remix-trim-ruler b { position: absolute; bottom: 10px; left: 0; color: #9a998d; font: 600 10.5px/1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(-50%); }
.remix-trim-track { position: relative; height: 62px; }
.remix-trim-strip { position: absolute; inset: 3px var(--edge, 22px); display: flex; overflow: hidden; background: #34342d; }
.remix-trim-strip canvas { display: block; flex: 1 1 0; min-width: 0; height: 100%; }
.remix-trim-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .66) calc(var(--from) * 100%), transparent 0 calc(var(--to) * 100%), rgb(0 0 0 / .66) 0); }
.remix-trim-part { position: absolute; top: 0; bottom: 0; left: calc(var(--edge, 22px) + var(--axis) * var(--from)); width: calc(var(--axis) * (var(--to) - var(--from))); border-block: 3px solid var(--tape); cursor: grab; }
.remix-trim-timeline[data-dragging="part"] .remix-trim-part { cursor: grabbing; }
.remix-trim-part:focus-visible { outline: 3px solid #ff5b2e; outline-offset: 3px; }
/* The part's length, on it. At either limit it turns yellow and says so. */
.remix-trim-length { position: absolute; z-index: 1; top: 8px; left: clamp(var(--edge, 22px), calc(var(--edge, 22px) + var(--axis) * var(--from) + 6px), calc(100% - var(--edge, 22px) - 74px)); padding: 4px 7px; border-radius: 4px; background: rgb(18 18 16 / .82); color: #fff; font: 800 12px/1 var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.remix-trim-length.is-limit { background: var(--tape); color: var(--ink); animation: remix-pop .25s ease-out; }
/* A part too narrow to hold its length shows it just after its end handle, or near the clip's end,
   just before its start handle. */
.remix-trim-length[data-place="after"] { left: calc(2 * var(--edge, 22px) + var(--axis) * var(--to) + 6px); }
.remix-trim-length[data-place="before"] { left: auto; right: calc(100% - var(--axis) * var(--from) + 6px); }
/* Where the price steps up: a dotted line across the part, with a coin under it. */
.remix-trim-joins { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.remix-trim-joins i { position: absolute; top: 3px; bottom: 3px; left: calc(var(--edge, 22px) + var(--axis) * var(--at)); margin-left: -1px; border-left: 2px dotted #fff; filter: drop-shadow(0 0 1px rgb(0 0 0 / .9)); animation: remix-pop .25s ease-out; }
.remix-trim-joins i::after { content: "$"; position: absolute; bottom: -12px; left: -9px; display: grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid #121210; border-radius: 50%; background: var(--tape); color: var(--ink); font: 900 9.5px/1 var(--body); }
.remix-trim-handle { position: absolute; z-index: 2; top: 0; bottom: 0; display: grid; place-items: center; width: var(--edge, 22px); background: var(--tape); color: var(--ink); cursor: ew-resize; transition: background-color .12s; }
.remix-trim-handle::before { content: ""; width: 6px; height: 22px; border-inline: 2px solid currentColor; }
/* Room for a fingertip around each handle, mostly outward, so a touch near either edge of the
   part takes the handle and the part between stays easy to grab. */
.remix-trim-handle::after { content: ""; position: absolute; inset: -8px -6px -8px -10px; }
.remix-trim-handle.is-end::after { inset: -8px -10px -8px -6px; }
@media (pointer: coarse) {
  .remix-trim-handle::after { inset: -10px -6px -10px -16px; }
  .remix-trim-handle.is-end::after { inset: -10px -16px -10px -6px; }
}
.remix-trim-handle.is-start { left: calc(var(--axis) * var(--from)); border-radius: 8px 0 0 8px; }
.remix-trim-handle.is-end { left: calc(var(--edge, 22px) + var(--axis) * var(--to)); border-radius: 0 8px 8px 0; }
.remix-trim-handle:focus-visible { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-trim-timeline[data-dragging="start"] .is-start, .remix-trim-timeline[data-dragging="end"] .is-end { background: #fff; }
/* The playhead: a white line through the ruler and the frames, under a knob with the time on it.
   Only the knob, with room around it for a fingertip, takes drags; the line lets them through. */
.remix-trim-playhead { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--edge, 22px) + var(--axis) * var(--now)); width: 0; pointer-events: none; }
.remix-trim-playhead::after { content: ""; position: absolute; top: 20px; bottom: -3px; left: -1px; width: 2px; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.remix-trim-now { position: absolute; z-index: 1; top: 0; left: 0; min-width: 50px; height: 22px; padding: 0 7px; border-radius: 11px; background: #fff; color: var(--ink); font: 800 11.5px/22px var(--body); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 1px 4px rgb(0 0 0 / .5); pointer-events: auto; cursor: grab; }
.remix-trim-now::after { content: ""; position: absolute; inset: -10px -8px -3px; }
.remix-trim-playhead:focus-visible { outline: none; }
.remix-trim-playhead:focus-visible .remix-trim-now { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-trim-timeline[data-dragging="now"] .remix-trim-now { background: var(--tape); cursor: grabbing; }
/* A handle, the part or the knob grabbed by a finger or mouse shows no keyboard ring; keys bring it back. */
.remix-trim-timeline[data-pointer] :focus-visible, .remix-trim-timeline[data-pointer] .remix-trim-playhead:focus-visible .remix-trim-now { outline: none; }
/* Shown only once the part is long enough for its price to step up. */
.remix-trim-price { min-height: 19px; margin: 16px 0 0; color: #c9c8bc; font-size: 13px; line-height: 1.45; }
.remix-trim-actions { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.remix-trim-actions .btn.primary { min-height: 50px; padding: 12px 26px; font-size: 14px; box-shadow: none; }
.remix-trim-back { min-height: 44px; padding: 0 2px; border: 0; background: none; color: #d6d5c9; font: 650 13px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remix-trim-back:hover { color: #fff; }
.remix-drop + .remix-fine { margin-top: 12px; }
.remix-steps-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 760px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 650; }
.remix-steps-strip li { display: flex; align-items: center; gap: 8px; }
.remix-steps-strip span { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 800; }
.remix-recent { margin-top: 42px; }
.remix-recent h2 { font: 700 21px/1.35 var(--body); letter-spacing: -.5px; text-transform: none; }

/* ---- editor ---- */
.remix-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .85fr); gap: 28px; align-items: start; margin-top: 6px; }
.remix-stage { position: sticky; top: 18px; min-width: 0; }
.remix-player {
  position: relative; aspect-ratio: var(--remix-ratio, 9 / 16); width: min(100%, calc(72vh * var(--remix-aspect, .5625)));
  margin: 0 auto; background: #121210; border: 2px solid var(--ink); overflow: hidden;
}
.remix-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #121210; }
.remix-overlay { position: absolute; inset: 0; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.remix-box {
  position: absolute; padding: 0; margin: 0; cursor: pointer; border: 2px solid rgb(255 255 255 / .92); border-radius: 6px;
  background: rgb(18 18 16 / .06); box-shadow: 0 0 0 1px rgb(0 0 0 / .45); transition: border-color .12s, background-color .12s;
}
.remix-box span {
  position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 4px; min-width: 24px; height: 24px; padding: 0 7px;
  border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; white-space: nowrap; justify-content: center;
}
.remix-box span .icon { width: 13px; height: 13px; stroke-width: 2.8; }
.remix-box:hover, .remix-box:focus-visible { border-color: var(--tape); background-color: rgb(244 255 56 / .12); outline: none; }
.remix-box.is-selected { border: 3px solid var(--tape); background-color: rgb(244 255 56 / .14); box-shadow: 0 0 0 2px var(--ink); }
.remix-box.is-selected span { background: var(--tape); }
.remix-add { position: absolute; z-index: 2; width: 0; height: 0; }
.remix-add[hidden] { display: none; }
.remix-add-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 3px solid var(--ink); border-radius: 50%; background: var(--tape); box-shadow: 0 0 0 2px #fff; }
.remix-add-card { position: absolute; top: 16px; left: -20px; width: 190px; padding: 12px; border: 1.5px solid var(--ink); background: var(--panel); box-shadow: 3px 3px 0 var(--ink); }
.remix-add.is-left .remix-add-card { left: auto; right: -20px; }
.remix-add-card p { margin-bottom: 9px; font-size: 13px; font-weight: 750; }
.remix-add-card .row { gap: 6px; flex-wrap: wrap; }
.remix-controls { display: flex; align-items: center; gap: 12px; width: min(100%, 560px); margin: 12px auto 0; }
.remix-play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--tape); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.remix-play .icon { width: 18px; height: 18px; margin-left: 2px; }
.remix-pause { display: block; width: 14px; height: 16px; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.remix-controls input[type=range] { flex: 1; min-width: 0; accent-color: var(--ink); }
.remix-time { flex: none; min-width: 42px; text-align: right; font: 600 12px/1 ui-monospace, monospace; color: var(--mute); }
.remix-stage-hint { width: min(100%, 560px); margin: 10px auto 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--mute); }
.remix-stage-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 380px; padding: 30px; text-align: center; border: 2px solid var(--ink); background: var(--panel); }
.remix-stage-wait b { font: 700 21px/1.3 var(--body); letter-spacing: -.5px; }
.remix-stage-wait p { max-width: 320px; font-size: 14px; color: var(--mute); }
.remix-stage-wait .loading-spinner { width: 28px; height: 28px; }
.remix-stage-wait.is-failed { border-color: var(--signal); }
/* Making the remix: over the paused video, a card with a bar that fills stage by stage (the
   current stage moves) and the stages in words. */
.remix-progress-card { position: absolute; inset: auto 12px 12px; padding: 16px; border: 1.5px solid var(--ink); background: rgb(255 253 245 / .97); box-shadow: 3px 3px 0 var(--ink); }
.remix-progress-title { display: block; margin-bottom: 10px; font: 700 18px/1.3 var(--body); letter-spacing: -.3px; }
.remix-progress-bar { position: relative; height: 10px; margin-bottom: 12px; border-radius: 999px; background: #e9e7dc; overflow: hidden; }
.remix-progress-bar i { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink); transition: width .4s, left .4s; }
.remix-progress-bar i.is-now { background: repeating-linear-gradient(-45deg, var(--tape) 0 8px, #d4df1d 8px 16px) 0 0 / 22.63px 22.63px; animation: remix-stripes 1s linear infinite; }
@keyframes remix-stripes { to { background-position: 22.63px 0; } }
.remix-progress-card ol { display: grid; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; }
.remix-progress-card li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--mute); }
.remix-progress-card li.now { color: var(--ink); font-weight: 750; }
.remix-progress-card li.done { color: var(--ink); }
.remix-progress-card li .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.remix-progress-card li .loading-spinner { width: 16px; height: 16px; }
.remix-dot { display: block; width: 10px; height: 10px; margin: 0 3px; border: 1.5px solid var(--line); border-radius: 50%; }
.remix-progress-card p { font-size: 12px; color: var(--mute); }
/* Original or remix: one switch under the video, and a tag on the video saying which shows. */
.remix-compare { display: flex; width: min(100%, 320px); margin: 14px auto 0; padding: 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--panel); }
.remix-compare button { flex: 1; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 750 14px/1 var(--body); cursor: pointer; }
.remix-compare button.is-active { background: var(--tape); box-shadow: inset 0 0 0 1.5px var(--ink); }
.remix-compare button:focus-visible { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-player[data-showing]::before { content: attr(data-showing); position: absolute; z-index: 1; top: 10px; left: 10px; padding: 6px 11px; border-radius: 999px; background: rgb(18 18 16 / .8); color: #fff; font: 750 12px/1 var(--body); pointer-events: none; }

/* ---- the three steps ---- */
.remix-panel { min-width: 0; }
.remix-panel > .warn-box { margin-bottom: 14px; }
.remix-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.remix-step { padding: 18px; border: 1px solid var(--ink); background: var(--panel); }
.remix-step[aria-current="step"] { box-shadow: 4px 4px 0 var(--ink); }
.remix-step header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.remix-step h2 { font: 700 19px/1.3 var(--body); letter-spacing: -.4px; text-transform: none; }
.remix-step-num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 13px; font-weight: 900; background: #fff; }
.remix-step[aria-current="step"] .remix-step-num, .remix-step.is-done .remix-step-num { background: var(--tape); }
.remix-step-num .icon { width: 15px; height: 15px; stroke-width: 3; }
.remix-step .cast-options, .remix-step .product-options { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.remix-shot + .remix-shot { margin-top: 14px; }
.remix-shot h4 { margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.remix-shot h4 small { margin-left: 4px; font-weight: 500; color: var(--mute); }
.remix-choice + .remix-choice { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.remix-choice h3 { margin-bottom: 10px; font: 700 14px/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.remix-step .product-option-name small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 500; color: var(--mute); }
.remix-choice .remix-fine { margin-top: 10px; }
.remix-wait-note { font-size: 13px; line-height: 1.55; color: var(--mute); }
.remix-wait-note + .btn { margin-top: 10px; }
.remix-step .remix-wait-note:not(:first-child) { margin-top: 10px; }
/* Several people: a row each, who they are, then what they become in one scrolling line. */
.remix-people-changes { display: grid; gap: 14px; }
.remix-person-change header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.remix-person-face { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; overflow: hidden; background: #f1f0ea; color: var(--mute); }
.remix-person-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.remix-person-face .icon { width: 18px; height: 18px; }
.remix-step .product-options.remix-person-looks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76px; overflow-x: auto; padding: 0 5px 7px 0; overscroll-behavior-x: contain; }
.remix-wearers { margin-top: 14px; }
.remix-wearers-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.remix-quality { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.remix-quality label { position: relative; cursor: pointer; }
.remix-quality input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.remix-quality span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); background: #fff; }
.remix-quality b { font-size: 14px; }
.remix-quality small { font-size: 11px; color: var(--mute); }
.remix-quality input:checked + span { border-color: var(--ink); background: #fbffc4; box-shadow: 2px 2px 0 var(--ink); }
.remix-quality input:focus-visible + span { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-quality input:disabled + span { opacity: .55; cursor: default; }
.remix-go { display: grid; gap: 8px; }
.remix-go .remix-generate { width: 100%; min-height: 56px; font-size: 16px; }
.remix-generate-dot { opacity: .55; }
[data-brand] .remix-go .remix-generate:disabled { background: #e8e6da; color: #8a897c; border-color: #b9b7aa; box-shadow: none; transform: none; cursor: not-allowed; }
/* The box confirming that everyone the remix changes agreed, ticked before Remix. */
.remix-agree { display: grid; gap: 4px; padding: 10px 12px; border: 1.5px solid var(--line); background: #fff; }
.remix-agree:has(input:checked) { border-color: var(--ink); background: #fbffc4; }
.remix-agree label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.remix-agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.remix-agree input:focus-visible { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-agree input:disabled, .remix-agree input:disabled + span { opacity: .55; cursor: default; }
.remix-agree a { justify-self: start; margin-left: 28px; font-size: 12px; font-weight: 700; color: var(--ink); }
.remix-blocker { font-size: 13px; font-weight: 650; }
.remix-fine { font-size: 12px; line-height: 1.5; color: var(--mute); }
.remix-demo { padding: 9px 12px; border: 1px dashed var(--line); background: #fbfaf3; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
/* What the price covers: each person's edits, then following everyone, priced on the right. */
.remix-costs { display: grid; margin: 0 0 4px; padding: 0; border-top: 1.5px solid var(--ink); list-style: none; }
.remix-costs li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 650; }
.remix-costs li span { min-width: 0; }
.remix-costs small { display: block; margin-top: 2px; color: var(--mute); font-size: 12px; font-weight: 550; }
.remix-costs b { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.remix-result-panel { padding: 20px; border: 1px solid var(--ink); background: var(--panel); }
.remix-result-panel h2 { display: flex; align-items: center; gap: 10px; font: 700 22px/1.25 var(--body); letter-spacing: -.5px; text-transform: none; }
.remix-ready-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--tape); animation: remix-pop .35s ease-out; }
.remix-ready-mark .icon { width: 17px; height: 17px; stroke-width: 3; }
.remix-result-panel > p { margin: 6px 0 16px; font-size: 14px; color: var(--mute); }
.remix-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.remix-result-actions > .note { flex-basis: 100%; }
.remix-again { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.remix-again h3 { margin-bottom: 10px; font: 700 17px/1.3 var(--body); letter-spacing: -.3px; text-transform: none; }
.remix-again-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.remix-again-option { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 700 14px/1.25 var(--body); text-align: left; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s, background-color .15s; }
.remix-again-option:hover { background: #fbffc4; box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }
.remix-again-option:focus-visible { outline: 3px solid #ff5b2e; outline-offset: 2px; }
.remix-again-option .icon { flex: none; width: 20px; height: 20px; }
.remix-again-new { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.remix-again-new .icon { width: 16px; height: 16px; }
.remix-summary { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.remix-summary img, .remix-summary > .icon { width: 70px; height: 90px; object-fit: contain; background: #f1f0ea; border: 1px solid var(--line); }
.remix-summary span { font-size: 22px; font-weight: 900; }
.remix-result-panel .remix-summary + p { font-size: 14px; font-weight: 650; }

@media (max-width: 960px) {
  .remix-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .remix-stage { position: static; }
  .remix-player { width: min(100%, calc(62vh * var(--remix-aspect, .5625))); }
}
@media (max-width: 600px) {
  .remix-drop-zone { min-height: 210px; }
  .remix-drop-title { font-size: 21px; }
  .remix-trim { padding: 14px 12px 16px; }
  .remix-trim-preview { max-height: 46vh; }
  .remix-trim-actions { flex-direction: column; align-items: stretch; }
  .remix-trim-actions .btn.primary { width: 100%; }
  .remix-step { padding: 14px; }
  .remix-step h2 { font-size: 18px; }
  .remix-add-card { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .remix-drop-zone, .remix-box, .remix-progress i, .remix-progress-bar i, .remix-trim-handle, .remix-again-option { transition: none; }
  .remix-drop-zone.is-wrong, .remix-trim-length.is-limit, .remix-trim-joins i, .remix-progress-bar i.is-now, .remix-ready-mark, .remix-upload-progress.is-working .remix-progress i { animation: none; }
}
