/* ClipForge — Vice-City-after-dark theme. Near-black, gold + money green.
   No Rockstar assets, logos, or fonts. */
:root {
  --bg: #08080d;
  --panel: #12121b;
  --panel2: #1a1a28;
  --line: #2a2a3d;
  --text: #f2f0e6;
  --dim: #9a97a8;
  --gold: #ffc61a;
  --gold-dim: #8a6d14;
  --green: #3ddc68;
  --green-dark: #14532d;
  --red: #ff5470;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--gold); }
header.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #10101a, #0a0a10);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-weight: 900; letter-spacing: 2px; font-size: 22px;
        text-transform: uppercase; color: var(--text); text-decoration: none; }
.logo .star { color: var(--gold); }
.logo .forge { color: var(--green); }
.badge-pro {
  background: var(--gold); color: #111; font-weight: 800; font-size: 12px;
  padding: 3px 9px; border-radius: 3px; letter-spacing: 1px;
}
.badge-free {
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: 12px;
  padding: 3px 9px; border-radius: 3px; letter-spacing: 1px; font-weight: 700;
}
main { max-width: 1080px; margin: 0 auto; padding: 28px 18px 70px; }

.hero { text-align: center; padding: 42px 10px 8px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 0 0 14px;
  text-transform: uppercase; font-weight: 900; letter-spacing: 1px;
}
.hero h1 .gold { color: var(--gold); }
.hero h1 .green { color: var(--green); }
.hero p.sub { color: var(--dim); font-size: 18px; max-width: 640px;
             margin: 0 auto 8px; }
.wanted-row { color: var(--gold); font-size: 26px; letter-spacing: 8px;
              margin: 10px 0 2px; }
.wanted-cap { color: var(--dim); font-size: 12px; letter-spacing: 3px;
              text-transform: uppercase; }

.forge-box {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: 10px;
  padding: 22px; margin: 30px auto 10px; max-width: 720px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.forge-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.length-label {
  flex: 1 1 100%; display: flex; align-items: center; gap: 10px;
  color: var(--dim); font-size: 14px; font-weight: 700;
  letter-spacing: .4px;
}
.length-label select {
  background: #0b0b13; border: 1px solid var(--line); color: var(--text);
  border-radius: 6px; padding: 10px 12px; font-size: 15px; cursor: pointer;
}
input[type="url"], input[type="text"] {
  flex: 1 1 340px; background: #0b0b13; border: 1px solid var(--line);
  color: var(--text); border-radius: 6px; padding: 14px 14px; font-size: 16px;
}
input[type="file"] { color: var(--dim); font-size: 14px; padding: 10px 0; }
button.go, .btn-go {
  background: linear-gradient(180deg, var(--gold), #e0a400); color: #131313;
  border: 0; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 24px; border-radius: 6px; font-size: 16px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button.go:hover, .btn-go:hover { filter: brightness(1.08); }
.btn-green { background: linear-gradient(180deg, var(--green), #22a347);
             color: #06130a; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.or { text-align: center; color: var(--dim); margin: 14px 0 4px;
      font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.fineprint { color: var(--dim); font-size: 13px; text-align: center;
             margin-top: 12px; }
.error {
  background: #2b0f18; border: 1px solid var(--red); color: #ffb3c1;
  padding: 12px 16px; border-radius: 6px; max-width: 720px; margin: 18px auto;
}

.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
          gap: 14px; margin: 44px 0 8px; }
.step-card { background: var(--panel); border: 1px solid var(--line);
             border-radius: 8px; padding: 18px; }
.step-card h3 { margin: 0 0 8px; text-transform: uppercase; font-size: 15px;
                letter-spacing: 1px; }
.step-card h3 span { color: var(--gold); }
.step-card p { color: var(--dim); margin: 0; font-size: 14px; line-height: 1.5; }

h2.section { text-transform: uppercase; letter-spacing: 1px; margin: 34px 0 6px; }
p.lede { color: var(--dim); margin-top: 0; }

/* job progress */
.progress { list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
            padding: 0; margin: 22px 0; }
.progress li {
  border: 1px solid var(--line); color: var(--dim); border-radius: 20px;
  padding: 8px 14px; font-size: 13px; letter-spacing: .5px;
  text-transform: uppercase; font-weight: 700;
}
.progress li.active { border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset; }
.progress li.done { border-color: var(--green-dark); color: var(--green); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
pre.log {
  background: #050508; border: 1px solid var(--line); border-radius: 6px;
  color: #7ee2a0; font-size: 12px; padding: 14px; overflow-x: auto;
  max-height: 240px; overflow-y: auto; white-space: pre-wrap;
}

/* results */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 18px; margin-top: 22px; }
.card { background: var(--panel); border: 1px solid var(--line);
        border-radius: 10px; overflow: hidden; display: flex;
        flex-direction: column; }
.card video { width: 100%; aspect-ratio: 9 / 16; max-height: 480px;
              background: #000; object-fit: contain; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column;
              gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 19px; text-transform: uppercase;
           letter-spacing: .5px; }
.stars { color: var(--gold); font-size: 22px; letter-spacing: 3px; }
.stars .lbl { color: var(--dim); font-size: 11px; letter-spacing: 2px;
              text-transform: uppercase; margin-left: 6px; }
.meta { color: var(--dim); font-size: 13px; }
.reason { color: var(--dim); font-size: 12.5px; line-height: 1.45; flex: 1; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.btn-dl { background: var(--gold); color: #131313; font-weight: 800;
          padding: 10px 16px; border-radius: 5px; text-decoration: none;
          font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.btn-soon { background: var(--panel2); color: var(--dim);
            border: 1px dashed var(--line); padding: 10px 12px;
            border-radius: 5px; font-size: 12.5px; cursor: not-allowed; }
.locked-visual {
  aspect-ratio: 9 / 16; max-height: 480px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: repeating-linear-gradient(45deg, #101018, #101018 14px, #0c0c13 14px, #0c0c13 28px);
  padding: 20px;
}
.wanted-stamp {
  border: 3px solid var(--gold); color: var(--gold); font-weight: 900;
  letter-spacing: 4px; padding: 6px 14px; transform: rotate(-6deg);
  text-transform: uppercase; font-size: 20px;
}
.banner {
  border: 1px solid var(--gold-dim); background: #1c1807; color: #ffe9a3;
  border-radius: 8px; padding: 14px 18px; margin-top: 18px; font-size: 15px;
}
.banner.green { border-color: var(--green-dark); background: #0a1a10;
                color: #a7f3c0; }
.price { font-size: 44px; font-weight: 900; color: var(--gold); }

/* submit form: clipper handle */
.forge-box input.handle-input { flex: 1 1 100%; }

/* homepage Most Wanted strip */
.board-strip {
  background: var(--panel); border: 1px solid var(--gold-dim);
  border-radius: 10px; padding: 18px 22px; margin: 26px auto 6px;
  max-width: 720px; text-align: center;
}
.strip-head { font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
              color: var(--gold); font-size: 17px; }
.strip-bounty { color: var(--dim); margin: 8px 0 4px; font-size: 14.5px; }
.strip-bounty strong { color: var(--text); }
.strip-grid { display: grid; gap: 8px; margin: 14px 0 6px; text-align: left; }
.strip-item {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; color: var(--text);
}
.strip-item:hover { border-color: var(--gold-dim); }
.strip-rank { color: var(--gold); font-weight: 900; font-size: 17px; }
.strip-title { font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-meta { color: var(--dim); font-size: 12.5px; margin-left: auto;
              white-space: nowrap; }
.strip-empty { color: var(--dim); font-size: 15px; margin: 12px 0 4px; }
.strip-link { margin: 8px 0 0; font-size: 14px; }

/* results: WANTED poster row */
.poster-row { display: flex; gap: 12px; padding: 12px 16px 0; }
.poster-thumb { width: 84px; aspect-ratio: 9 / 16; object-fit: cover;
                border: 1px solid var(--gold-dim); border-radius: 4px;
                background: #000; }
.poster-actions { display: flex; flex-direction: column; gap: 8px;
                  align-items: flex-start; justify-content: center; }
.btn-board {
  background: transparent; border: 1px solid var(--gold-dim); color: var(--gold);
  font-weight: 800; padding: 10px 14px; border-radius: 5px; cursor: pointer;
  font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.btn-board:hover { border-color: var(--gold); }
.on-board { color: var(--green); font-weight: 800; font-size: 13.5px;
            text-transform: uppercase; letter-spacing: .5px; padding: 10px 0; }

/* Most Wanted board page */
.board-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.board-row {
  display: flex; gap: 16px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.board-row.fame { border-color: var(--gold-dim); }
.board-rank { font-size: 26px; font-weight: 900; color: var(--gold);
              min-width: 52px; text-align: center; }
.board-thumb { width: 64px; aspect-ratio: 9 / 16; object-fit: cover;
               border: 1px solid var(--gold-dim); border-radius: 4px;
               background: #000; }
.board-body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.board-body h3 { margin: 0; font-size: 18px; text-transform: uppercase;
                 letter-spacing: .5px; }
.board-body .stars { font-size: 18px; }
.rank-chip { color: var(--gold); font-weight: 800; letter-spacing: 1px; }
.board-heat { text-align: center; min-width: 104px; }
.heat-count { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.heat-btn {
  background: linear-gradient(180deg, #ff9d2e, #e05d00); color: #170b00;
  border: 0; font-weight: 900; padding: 9px 14px; border-radius: 5px;
  cursor: pointer; font-size: 13.5px; text-transform: uppercase;
  letter-spacing: .5px;
}
.heat-btn:hover { filter: brightness(1.1); }
.heat-given { color: var(--dim); font-size: 12.5px; font-weight: 700;
              text-transform: uppercase; letter-spacing: 1px; }
.fame-stamp { color: var(--gold); font-weight: 900; letter-spacing: 2px;
              font-size: 17px; min-width: 64px; text-align: center; }
ul.ticks { line-height: 1.9; color: var(--text); padding-left: 20px; }
footer { color: #55536a; text-align: center; font-size: 12.5px;
         padding: 30px 12px 40px; }

/* =====================================================================
   LEONIDA SUNSET POLISH — painterly key-art layer over the base theme.
   Original sunset system (hot pink -> orange -> gold -> teal); no
   Rockstar assets. Everything below is additive / overriding skin.
   ===================================================================== */
:root {
  --pink: #ff5e8a;
  --orange: #ff8a3d;
  --teal: #1fc8bc;
  --sunset: linear-gradient(94deg, #ff5e8a 0%, #ff8a3d 34%,
            #ffc61a 58%, #1fc8bc 100%);
}

/* painterly grain over the whole site */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
::selection { background: rgba(255, 138, 61, .45); }

/* topbar: brand mark + sunset hairline */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 198, 26, .4), 0 2px 10px rgba(0, 0, 0, .55);
}
header.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--sunset); opacity: .9;
}

/* gradient text (with safe fallback to solid gold) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .sunset, .wanted-row, .price,
  .step-card h3 span, .board-list .board-row:first-child .board-rank {
    background: var(--sunset);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}

/* hero cover band — painterly sunset street art behind the headline,
   dark cinematic overlay keeps the type crisp */
.hero-cover {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(6, 6, 12, .82) 0%,
      rgba(6, 6, 12, .68) 46%, rgba(8, 8, 13, .92) 100%) padding-box,
    url("img/hero-sunset.jpg") center 30% / cover padding-box,
    var(--sunset) border-box;
  padding: 46px 18px 30px; margin-top: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.hero-cover h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.hero-cover p.sub {
  color: #d8d5c8; text-shadow: 0 1px 14px rgba(0, 0, 0, .65);
}
.hero-cover .wanted-cap {
  color: #efe9d8; text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}

/* kickers + duotone section headers with a sunset rule */
.kicker {
  color: var(--gold); font-size: 12px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase; margin: 8px 0 0;
}
h2.section { letter-spacing: 2px; }
h2.section::after {
  content: ""; display: block; width: 72px; height: 3px;
  border-radius: 2px; background: var(--sunset); margin-top: 9px;
}

/* forge box: sunset spine instead of the flat gold rule */
.forge-box { position: relative; border-top-color: transparent; }
.forge-box::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 4px; border-radius: 10px 10px 0 0; background: var(--sunset);
}

/* primary CTAs: sunset sweep on hover */
button.go, .btn-go, .btn-dl {
  transition: transform .15s ease, box-shadow .15s ease,
              background .15s ease, filter .15s ease;
}
button.go:hover, .btn-go:hover, .btn-dl:hover {
  background: var(--sunset); color: #17110a; filter: none;
  box-shadow: 0 8px 26px rgba(255, 110, 80, .35);
  transform: translateY(-1px);
}

/* banners (incl. the bounty card): sunset gradient border */
.banner {
  border: 1px solid transparent;
  background: linear-gradient(#1c1807, #1c1807) padding-box,
              var(--sunset) border-box;
}
.banner.green {
  background: linear-gradient(#0a1a10, #0a1a10) padding-box,
              var(--sunset) border-box;
}
.bounty-card { display: flex; align-items: center; gap: 14px;
               font-size: 16px; }
.bounty-mark {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 198, 26, .4), 0 4px 14px rgba(0, 0, 0, .45);
}

/* homepage board strip: gradient frame + warm glow */
.board-strip {
  border: 1px solid transparent;
  background:
    radial-gradient(120% 170% at 50% -40%, rgba(255, 138, 61, .16),
      rgba(255, 94, 138, .05) 46%, rgba(0, 0, 0, 0) 72%) padding-box,
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--sunset) border-box;
}

/* cards + board rows: gentle lift, #1 row wears the sunset frame */
.card { transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.board-list .board-row:first-child {
  border: 1px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              var(--sunset) border-box;
}

/* locked clips: a little sunset haze behind the WANTED stamp */
.locked-visual {
  background:
    radial-gradient(90% 60% at 50% 38%, rgba(255, 94, 138, .16),
      rgba(255, 138, 61, .06) 55%, rgba(0, 0, 0, 0) 76%),
    repeating-linear-gradient(45deg, #101018, #101018 14px,
      #0c0c13 14px, #0c0c13 28px);
}

/* footer sunset hairline */
footer::before {
  content: ""; display: block; width: min(720px, 82%); height: 2px;
  margin: 0 auto 22px; border-radius: 2px;
  background: var(--sunset); opacity: .5;
}

@media (max-width: 560px) {
  .hero-cover { padding: 38px 14px 24px; }
  .bounty-mark { width: 40px; height: 40px; }
  .kicker { letter-spacing: 3px; }
}

/* Director's Cut + adaptive outcomes */
.swap-form, .outcome-form { display: grid; gap: 8px; }
.swap-form select, .outcome-form select, .outcome-form input,
.editor-panel select, .editor-panel input[type="text"],
.editor-panel textarea, #transcript-search {
  width: 100%; background: #0b0b13; border: 1px solid var(--line);
  color: var(--text); border-radius: 6px; padding: 10px 11px; font-size: 14px;
}
.outcome-box, .editor-box {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: var(--panel2);
}
.outcome-box summary, .editor-box summary {
  cursor: pointer; color: var(--gold); font-weight: 800;
}
.outcome-form { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.outcome-form .wide { grid-column: 1 / -1; }
.outcome-form label, .editor-controls label {
  display: flex; flex-direction: column; gap: 6px; color: var(--dim);
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
}
.task-list { display: grid; gap: 8px; margin-top: 14px; }
.task-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}
.task-status { text-transform: uppercase; font-size: 12px; font-weight: 900; }
.status-done { color: var(--green); }
.status-error { color: var(--red); }
.status-queued, .status-running { color: var(--gold); }
.score-line { color: var(--gold); font-weight: 800; font-size: 13.5px; }
.excerpt {
  margin: 0; color: var(--text); background: #0b0b13; border-left: 3px solid var(--gold);
  padding: 9px 11px; font-size: 13.5px; line-height: 1.45;
}
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-chips span {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px;
  color: var(--dim); font-size: 12px; font-weight: 700;
}
.adapt-note { color: var(--green); font-size: 12.5px; margin: 0; }
.quick-forge { display: grid; gap: 8px; }
.custom-editor {
  background: var(--panel); border: 1px solid var(--gold-dim);
  border-radius: 12px; padding: 16px; margin-top: 16px;
}
.editor-panel { display: grid; gap: 14px; margin-top: 12px; }
.editor-stage {
  position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16;
  max-height: 560px; margin: 0 auto; overflow: hidden; background: #000;
  border: 1px solid var(--gold-dim); border-radius: 10px;
}
.editor-video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
  transition: transform .12s ease;
}
.editor-caption-preview {
  position: absolute; left: 8%; right: 8%; z-index: 3; text-align: center;
  color: #fff; font-weight: 900; font-size: 20px; line-height: 1.2;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none;
}
.caption-pos-bottom { bottom: 15%; }
.caption-pos-middle { top: 46%; }
.caption-pos-top { top: 8%; }
.caption-style-highlight {
  background: rgba(255, 198, 26, .92); color: #111; text-shadow: none;
  padding: 5px 8px; border-radius: 4px;
}
.caption-style-clean { font-weight: 700; text-shadow: 1px 1px 3px #000; }
.caption-size-small { font-size: 16px; }
.caption-size-large { font-size: 25px; }
.editor-controls { display: grid; gap: 13px; }
.timeline-wrap { display: grid; gap: 8px; }
.timeline-track {
  position: relative; height: 14px; border-radius: 999px;
  background: #050508; border: 1px solid var(--line); overflow: hidden;
}
.timeline-selected { position: absolute; top: 0; bottom: 0; background: var(--sunset); }
.editor-panel input[type="range"] { width: 100%; accent-color: var(--gold); min-height: 34px; }
.time-grid, .recipe-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
}
.check-label { flex-direction: row !important; align-items: center; }
.check-label input { width: auto; }
.editor-submit { justify-self: start; border: 0; cursor: pointer; }
#transcript-search { margin: 14px 0 10px; }
.transcript-list {
  display: grid; gap: 6px; max-height: 430px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  background: var(--panel);
}
.transcript-line {
  display: flex; gap: 10px; text-align: left; width: 100%;
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 11px; cursor: pointer; font-size: 14px;
}
.transcript-line:hover { border-color: var(--gold-dim); }
.transcript-time { color: var(--gold); font-weight: 900; min-width: 44px; }
@media (max-width: 560px) {
  .outcome-form { grid-template-columns: 1fr; }
  .editor-stage { width: 100%; }
  .editor-panel { gap: 10px; }
}
