:root {
  color-scheme: dark;
  --bg: #0d1820;
  --panel: #14232d;
  --panel-deep: #101e27;
  --line: #34454d;
  --text: #f3f6f5;
  --muted: #afc0c6;
  --green: #b5f263;
  --ink: #132017;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 20% 0%, #162e34, transparent 58%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid #293e46; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.identity { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .075em; font-size: .9rem; }
.identity-light { color: #c4d2d0; font-weight: 550; }
.guide { color: var(--muted); font-size: .9rem; }
.guide:hover, .text-button:hover { color: white; }
.intro { padding: clamp(48px, 7.5vw, 96px) 0 38px; }
.intro h1 { margin: 0; max-width: 860px; font-weight: 760; font-size: clamp(2.7rem, 6.6vw, 5.8rem); line-height: .99; letter-spacing: -.076em; }
.intro h1 span { color: var(--green); }
.intro p { color: var(--muted); line-height: 1.65; margin: 21px 0 0; max-width: 510px; }
.studio { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(19px, 3vw, 30px); box-shadow: 0 16px 44px #060d1430; }
h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.18rem; }
.presets { border: 0; padding: 0; margin: 26px 0 19px; display: grid; gap: 10px; }
.presets legend { padding: 0; margin-bottom: 11px; color: var(--muted); font-size: .9rem; }
.preset { display: block; cursor: pointer; position: relative; }
.preset input { opacity: 0; position: absolute; inset: 0 auto auto 0; }
.preset-body { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-deep); }
.preset:hover .preset-body { border-color: #76928b; }
.preset input:focus-visible + .preset-body { outline: 2px solid var(--green); outline-offset: 3px; }
.preset input:checked + .preset-body { background: #223429; border-color: #8dbc60; }
.preset input:disabled + .preset-body { opacity: .68; cursor: default; }
.platform-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #253940; color: #d6e4e1; border-radius: 9px; font-size: 1.3rem; }
.preset input:checked + .preset-body .platform-icon { background: #354e31; color: var(--green); }
.preset strong, .preset small { display: block; }
.preset small { margin-top: 3px; color: var(--muted); font-size: .85rem; }
.radio-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #708087; }
.preset input:checked + .preset-body .radio-dot { border-color: var(--green); background: radial-gradient(circle, var(--green) 36%, transparent 41%); }
.format { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; border-top: 1px solid var(--line); padding-top: 16px; font-size: .9rem; color: var(--muted); }
.format strong { color: var(--text); font-size: .85rem; }
.muted { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.button { border-radius: 10px; border: 1px solid transparent; min-height: 46px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; text-align: center; font-size: .94rem; font-weight: 700; }
.primary { background: var(--green); color: var(--ink); }
.primary:hover:not(:disabled) { background: #cbff91; }
.primary:disabled { background: #344940; color: #c0cec6; }
.secondary { background: #21343d; border-color: #455d66; color: var(--text); }
.secondary:hover { background: #304750; }
#convert { width: 100%; margin-top: 5px; }
.media-heading, .file-row, .job-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.text-button { border: 0; background: transparent; color: var(--green); padding: 5px 0; font-size: .9rem; font-weight: 650; }
.drop { display: grid; place-content: center; place-items: center; gap: 7px; width: 100%; min-height: 307px; margin-top: 22px; border: 1px dashed #58716f; border-radius: 14px; padding: 20px 12px; background: radial-gradient(ellipse at 50% 35%, #203a3c, #12212b 67%); color: var(--text); }
.drop:hover, .drop.dragging { background: #1b352f; border-color: var(--green); }
.drop:disabled { opacity: .66; }
.upload-icon { width: 55px; height: 55px; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: #a0ed581c; margin-bottom: 7px; }
.drop strong { font-size: 1.12rem; }
.drop span:not(.upload-icon), .drop small { color: var(--muted); }
.drop small { font-size: .85rem; margin-top: 5px; }
.source, .result, .job { margin-top: 22px; }
.player { background: #081218; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.player video { display: block; max-height: 330px; width: 100%; object-fit: contain; }
.player p { margin: 22px 12px; text-align: center; }
.file-row { margin-top: 12px; }
.file-row strong { min-width: 0; overflow-wrap: anywhere; }
.file-row button { flex: none; }
.details { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.details div { background: var(--panel-deep); padding: 9px 11px; overflow-wrap: anywhere; }
.details dt { color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.details dd { font-size: .9rem; margin: 0; }
.notice { color: #ffdfae; line-height: 1.5; font-size: .9rem; margin: 14px 0 0; }
.job, .result { border-top: 1px solid var(--line); padding-top: 18px; }
.job-row { color: var(--muted); font-size: .9rem; }
progress { display: block; width: 100%; height: 13px; margin: 12px 0 5px; accent-color: var(--green); }
.result .player { margin: 12px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.guide-section { margin-top: 66px; max-width: 720px; scroll-margin-top: 22px; }
.guide-section h2 { margin-bottom: 13px; }
.guide-section details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.guide-section summary { line-height: 1.4; }
.guide-section p { margin: 10px 0 4px; color: var(--muted); line-height: 1.6; }
.footer { padding: 35px 0 24px; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .media { grid-row: 1; }
  .drop { min-height: 213px; }
  .intro { padding: 45px 0 28px; }
  .guide-section { margin-top: 44px; }
  .top-inner { min-height: 63px; }
}
