/* static/css/remix.css - G4, Remix any viral video (templates/remix.html). Site tokens with fallbacks, logical
   properties, phone first (390 px). */
.rx-wrap { max-width: 720px; margin: 0 auto; padding: 1.5rem 16px 6rem; box-sizing: border-box; color: var(--text, #1B1638); }
.rx-wrap [hidden] { display: none !important; }
.rx-hero { text-align: center; margin-bottom: 1rem; }
.rx-eyebrow { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: .78rem;
  font-weight: 800; color: #0E7490; background: #ECFEFF; border: 1px solid #A5F3FC; }
.rx-h1 { margin: .7rem 0 .4rem; font-size: clamp(1.6rem, 6.4vw, 2.4rem); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.rx-lead { margin: 0 auto; max-width: 560px; color: var(--text2, #4A4466); line-height: 1.5; }
.rx-card { background: var(--bg2, #fff); border: 1px solid var(--border, #E6E1F5); border-radius: 18px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 6px 22px rgba(27, 22, 56, .05); box-sizing: border-box; scroll-margin-top: 150px; }
.rx-label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.rx-row { display: flex; gap: 8px; }
.rx-input { flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--border, #E6E1F5); background: var(--bg3, #FAF9FF); color: var(--text, #1B1638); font: 600 .95rem var(--font, system-ui, sans-serif); }
.rx-input:focus { outline: none; border-color: var(--accent, #6D3BF5); box-shadow: 0 0 0 3px rgba(109, 59, 245, .15); }
.rx-go { min-height: 50px; padding: 0 18px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; white-space: nowrap;
  font: 900 .98rem/1.1 var(--font, system-ui, sans-serif); background: linear-gradient(135deg, #0891b2, #7c3aed);
  box-shadow: 0 10px 24px rgba(8, 145, 178, .25); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.rx-go[disabled] { opacity: .7; cursor: progress; }
.rx-go:focus-visible, .rx-tab:focus-visible { outline: 3px solid var(--accent, #6D3BF5); outline-offset: 2px; }
.rx-wide { width: 100%; margin-top: 10px; white-space: normal; text-align: center; }
.rx-full { background: linear-gradient(135deg, #8b5cf6, var(--accent, #6D3BF5)); }
.rx-price { font-size: .74rem; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.rx-err { margin: 8px 0 0; color: #B91C1C; font-weight: 700; font-size: .86rem; text-align: center; }
.rx-err a { color: inherit; }
.rx-legal { margin: 12px 0 0; font-size: .76rem; line-height: 1.5; color: var(--text3, #7A7394); }
.rx-h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 900; }
.rx-sub, .rx-fine { margin: 0 0 8px; font-size: .84rem; color: var(--text2, #4A4466); line-height: 1.45; }
.rx-fine { margin-top: 8px; font-size: .76rem; text-align: center; color: var(--text3, #7A7394); }
.rx-prog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rx-prog li { position: relative; padding-inline-start: 30px; font-weight: 700; color: var(--text3, #7A7394); }
.rx-prog li::before { content: ''; position: absolute; inset-inline-start: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #D9D2F5; box-sizing: border-box; }
.rx-prog li.now { color: var(--text, #1B1638); }
.rx-prog li.now::before { border-color: #0891b2; border-top-color: transparent; animation: rx-spin .8s linear infinite; }
.rx-prog li.ok { color: #15803D; }
.rx-prog li.ok::before { background: #16A34A; border-color: #16A34A; }
.rx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rx-stat { border: 1px solid var(--border, #E6E1F5); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.rx-stat b { display: block; font-size: 1.2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rx-stat span { font-size: .72rem; color: var(--text3, #7A7394); font-weight: 700; }
.rx-hook { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #ECFEFF; border: 1px solid #A5F3FC; }
.rx-hook-k { font-size: .72rem; font-weight: 900; color: #0E7490; text-transform: uppercase; letter-spacing: .04em; }
.rx-hook p { margin: 4px 0 0; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.rx-shots { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-shot { display: grid; grid-template-columns: 74px 1fr; gap: 12px; background: var(--bg2, #fff); border: 1px solid var(--border, #E6E1F5);
  border-radius: 16px; padding: 10px; }
.rx-thumb { width: 74px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #164e63, #4c1d95);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; }
.rx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-shot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.rx-role { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px;
  background: var(--bg3, #F3F0FF); color: var(--accent, #6D3BF5); }
.rx-role.hook { background: #FFF1F2; color: #BE123C; }
.rx-role.cta { background: #ECFDF3; color: #15803D; }
.rx-time { font-size: .74rem; font-weight: 800; color: var(--text3, #7A7394); font-variant-numeric: tabular-nums; }
.rx-bar { height: 5px; border-radius: 99px; background: var(--bg3, #F1EEFB); margin: 2px 0 6px; overflow: hidden; }
.rx-bar i { display: block; height: 100%; background: #0891b2; border-radius: 99px; }
.rx-attr { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--text2, #4A4466); overflow-wrap: anywhere; }
.rx-attr b { color: var(--text, #1B1638); }
.rx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 8px; }
.rx-tab { min-height: 40px; border-radius: 12px; border: 1.5px solid var(--border, #E6E1F5); background: var(--bg2, #fff);
  font: 800 .84rem system-ui; color: var(--text2, #4A4466); cursor: pointer; }
.rx-tab.on { border-color: var(--accent, #6D3BF5); color: var(--accent, #6D3BF5); background: var(--bg3, #F3F0FF); }
.rx-style { margin: 8px 0 0; font-size: .8rem; color: var(--text2, #4A4466); }
.rx-msg { margin: 0 0 10px; font-weight: 700; color: var(--text2, #4A4466); }
.rx-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rx-frame { aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--bg3, #F1EEFB); position: relative; }
.rx-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-frame.wait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  animation: rx-shine 1.4s linear infinite; }
.rx-result { margin-top: 12px; }
.rx-result video { display: block; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 14px; background: #000; aspect-ratio: 9 / 16; }
.rx-acts { display: flex; justify-content: center; margin-top: 10px; }
.rx-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border, #E6E1F5); background: var(--bg2, #fff);
  color: var(--text, #1B1638); font: 800 .88rem system-ui; text-decoration: none; display: inline-flex; align-items: center; }
.rx-upsell { margin-top: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #F5F3FF, #ECFEFF); border: 1px solid #DDD6FE; }
.rx-upsell p { margin: 0; font-size: .88rem; line-height: 1.5; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
@keyframes rx-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (max-width: 420px) {
  .rx-row { flex-direction: column; }
  .rx-go { width: 100%; }
  .rx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rx-stat b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .rx-prog li.now::before, .rx-frame.wait::after { animation: none; } }
