:root { --font-family-base: system-ui, "Leelawadee UI", Tahoma, sans-serif; }
body { margin: 0; }
.site {
  min-height: 100dvh;
  color-scheme: light;
  --ink: #211d37;
  --muted: #605d72;
  --paper: #f7f6fc;
  --line: #e5e1f0;
  --purple: #5942d5;
  --purple-hover: #4932bd;
  --mint: #b7ffe4;
  --radius: 20px;
  font: 16px/1.6 var(--font-family-base);
  color: var(--ink);
  background: var(--paper);
}

.site, .site *, .site *::before, .site *::after { box-sizing: border-box; }

.site [hidden] { display: none !important; }
.site button, .site input { font: inherit; }
.site button { cursor: pointer; }
.site a { color: inherit; }
.site p, .site h1, .site h2 { margin: 0; }
.site :focus-visible { outline: 3px solid #805fff; outline-offset: 4px; }

.wrap { width: min(100% - 72px, 1060px); margin-inline: auto; }

.site-header { background: #16152c; border-bottom: 1px solid #ffffff14; color: #fff; }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.34rem; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #171633; background: var(--mint); }
.help-link { display: inline-flex; align-items: center; gap: 8px; color: #e1dcef; font-weight: 650; text-decoration: none; }
.help-link:hover { color: var(--mint); }
.icon-question { display: grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 .78rem/1 system-ui, sans-serif; }
.icon-download { position: relative; display: inline-block; width: 18px; height: 17px; flex: 0 0 18px; border-bottom: 2px solid currentColor; border-radius: 1px; }
.icon-download::before { content: ""; position: absolute; top: 0; left: 8px; height: 10px; border-left: 2px solid currentColor; }
.icon-download::after { content: ""; position: absolute; left: 5px; top: 4px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hero {
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 64%, #412c83a6, transparent 58%),
    radial-gradient(ellipse at 30% 100%, #2e2452, transparent 60%),
    #16152c;
}
.hero-inner { min-height: 426px; padding: 56px 0 118px; display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 28px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.35rem, 6.1vw, 5.25rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 850; }
.hero h1 span { color: var(--mint); }
.hero-copy p { color: #d9d3ed; font-size: clamp(1.03rem, 2vw, 1.15rem); max-width: 470px; margin-top: 21px; line-height: 1.75; text-wrap: pretty; }
.art { position: relative; isolation: isolate; min-height: 252px; }
.orbit { position: absolute; inset: 18% 2%; border: 1px solid #d8cbff24; border-radius: 50%; transform: rotate(-18deg); }
.orbit-inner { inset: 24% 11%; border-color: #bfbcff1f; }
.film { position: absolute; width: 64%; aspect-ratio: 1.44; border-radius: 21px; }
.film-back { top: 7%; left: 21%; transform: rotate(13deg); background: linear-gradient(145deg, #a899fa5c, #392c6d24); border: 1px solid #d8c6ff68; box-shadow: inset 0 1px 0 #e8d9ff33; }
.film-front { top: 13%; left: 14%; rotate: -9deg; background: linear-gradient(145deg, #3e3265, #20183a); border: 1px solid #b8a5f67a; padding: 9px 10px 12px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 26px 48px #0c071e9c, inset 0 1px 0 #ffffff38; }
.film-toolbar { display: flex; gap: 4px; padding: 3px 2px 0; }
.film-toolbar i { width: 4px; height: 4px; border-radius: 50%; background: #c4b6ee9c; }
.film-screen {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(ellipse at 88% 83%, #b7ffe4 0, #81d4f2 24%, transparent 52%), linear-gradient(136deg, #161656 5%, #6953ef 48%, #a18aff 68%, #94e6e9);
}
.film-light { position: absolute; width: 112%; height: 83%; left: -14%; bottom: -24%; border-radius: 50%; transform: rotate(-21deg); background: linear-gradient(0deg, #3822a1, #7d69fa 48%, #c5bcff); box-shadow: 0 -12px 48px #beaeff8a; }
.play-disc { z-index: 1; width: 59px; height: 59px; display: grid; place-items: center; border: 1px solid #ffffffab; border-radius: 50%; color: #fff; background: #1d1a5a49; box-shadow: 0 12px 23px #1f105b5c, inset 0 1px 0 #ffffff66; backdrop-filter: blur(10px); }
.play-disc span { width: 0; height: 0; margin-left: 4px; border: 10px solid transparent; border-right: 0; border-left: 15px solid currentColor; }
.film-timeline { width: 100%; height: 3px; background: #ffffff2a; border-radius: 3px; position: relative; }
.film-timeline div { width: 38%; height: 100%; border-radius: inherit; background: #c4b4ff; }
.film-timeline i { position: absolute; top: -1px; left: 37%; height: 5px; width: 5px; border-radius: 50%; background: #fff; }
.art-file { position: absolute; top: 64%; right: 8%; color: #1c2741; background: #b7ffe4; border: 1px solid #e2fff4; transform: rotate(8deg); border-radius: 12px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; font: 800 .88rem/1.4 system-ui, sans-serif; box-shadow: 0 13px 32px #10062a73; }
.art-file .icon-download { scale: .85; }
.art-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #a890ff; box-shadow: 0 0 17px #b29bff; }
.art-spark-top { left: 84%; top: 21%; }
.art-spark-bottom { left: 8%; top: 71%; width: 5px; height: 5px; background: #b7ffe4; }

.workspace { position: relative; margin-top: -70px; }
.download-card { position: relative; padding: 26px 28px 22px; border: 1px solid #e5e0f1; border-radius: var(--radius); background: #fff; box-shadow: 0 14px 36px #20114111, 0 2px 6px #21164209; }
.download-card label { display: block; margin-bottom: 9px; font-weight: 800; font-size: 1.04rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.input-shell { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 59px; padding: 6px 7px 6px 16px; border: 1px solid #d8d2e9; border-radius: 13px; background: #faf9ff; transition: border-color .16s, box-shadow .16s; }
.input-shell:focus-within { border-color: #785bee; box-shadow: 0 0 0 3px #785bee24; }
.input-shell.invalid { border-color: #b73c5b; }
.input-shell input { width: 100%; min-width: 0; padding: 5px 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.input-shell input::placeholder { color: #716b83; opacity: 1; }
.icon-link { width: 19px; height: 17px; flex: 0 0 19px; position: relative; color: #7665ad; transform: rotate(-35deg); }
.icon-link::before, .icon-link::after { content: ""; position: absolute; top: 5px; width: 12px; height: 8px; border: 1.7px solid currentColor; border-radius: 8px; }
.icon-link::before { left: 0; }
.icon-link::after { right: 0; }
.paste-button, .secondary-button { border: 0; border-radius: 8px; padding: 8px 12px; background: #eeeafd; color: #48339d; font-weight: 760; white-space: nowrap; text-decoration: none; }
.paste-button:hover, .secondary-button:hover { background: #e5ddfb; }
.download-button { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 25px; border: 0; border-radius: 13px; color: #fff; background: var(--purple); font-weight: 800; box-shadow: 0 4px 10px #4932bd33; transition: background .16s, translate .16s; }
.download-button:hover { background: var(--purple-hover); }
.download-button:active { translate: 0 1px; }
.site button:disabled { opacity: .65; cursor: wait; }
.form-meta { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.link-note { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }
.icon-shield { position: relative; width: 14px; height: 15px; flex: 0 0 14px; border: 1.5px solid #462fa0; border-radius: 4px 4px 8px 8px; }
.icon-shield::before { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 3px; border: solid #462fa0; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.detected { background: #f0ebff; border-radius: 999px; color: #4d35a1; padding: 1px 9px; font-size: .85rem; font-weight: 750; }
.status { margin-top: 18px; padding: 13px 14px; border: 1px solid #e4ddfb; border-radius: 12px; background: #f7f4ff; display: flex; align-items: center; gap: 12px; }
.status[data-state="error"] { background: #fff1f4; border-color: #f3cbd5; }
.status[data-state="success"] { background: #edfbf5; border-color: #c9eddd; }
.status-symbol { display: grid; place-items: center; flex: 0 0 27px; height: 27px; background: #e9e1fa; border-radius: 50%; color: #47339a; font-weight: 800; }
.status[data-state="error"] .status-symbol { background: #f8d6df; color: #8d273e; }
.status[data-state="success"] .status-symbol { background: #caefdf; color: #176f54; }
.status-content { flex: 1; min-width: 0; }
.status-content p { color: var(--muted); overflow-wrap: anywhere; font-size: .91rem; }
.site progress { width: min(270px, 100%); accent-color: var(--purple); height: 10px; display: block; margin-top: 5px; }
.noscript { margin-top: 15px; color: #8d273e; }

.supported { display: flex; align-items: center; gap: 16px; margin: 23px 0 49px; color: var(--muted); font-size: .94rem; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; list-style: none; margin: 0; padding: 0; }
.platforms li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; background: #fff; border: 1px solid #e7e2f4; border-radius: 999px; color: #2f2946; font-size: .88rem; font-weight: 760; }
.platform-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: white; font: 800 17px/1 Arial, sans-serif; }
.tiktok { background: #17151e; text-shadow: -1px 0 #30e8e4, 1px 1px #fc5383; }
.facebook { background: #1469ed; padding-top: 2px; }
.instagram { position: relative; background: radial-gradient(circle at 15% 96%, #ffcf71, #f95080 50%, #813bd4 92%); }
.instagram::before { content: ""; width: 12px; height: 12px; border: 1.2px solid #fff; border-radius: 4px; }
.instagram::after { content: ""; position: absolute; width: 5px; height: 5px; border: 1.2px solid #fff; border-radius: 50%; }
.help { border-top: 1px solid var(--line); padding: 34px 0 51px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; scroll-margin-top: 15px; }
.help h2 { font-size: 1.58rem; font-weight: 820; line-height: 1.3; }
.help-intro p { color: var(--muted); line-height: 1.75; margin-top: 9px; max-width: 290px; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 12px 2px; font-weight: 775; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: 0 0 22px; color: #5841c1; font-weight: 500; font-size: 1.23rem; line-height: 1; text-align: center; }
.questions details[open] summary::after { content: "−"; }
.questions details p { padding: 0 24px 14px 2px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); color: #4d465f; font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; padding: 18px 0; font-weight: 750; }
.site-footer span { color: var(--muted); font-weight: 500; }

@media (max-width: 810px) {
  .wrap { width: calc(100% - 44px); }
  .hero-inner { gap: 5px; min-height: 375px; padding-top: 46px; padding-bottom: 100px; }
  .hero h1 { font-size: clamp(2.8rem, 7.1vw, 4.5rem); }
  .art { min-height: 196px; }
  .film { width: 75%; }
  .film-back { left: 20%; }
  .film-front { left: 10%; }
  .art-file { right: 4%; }
  .help { gap: 25px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; }
  .hero-inner { display: block; min-height: 0; padding: 36px 0 85px; }
  .hero h1 { font-size: clamp(2.65rem, 10.8vw, 3.8rem); }
  .hero-copy p { max-width: 420px; margin-top: 14px; }
  .art { display: none; }
  .workspace { margin-top: -54px; }
  .download-card { padding: 17px 15px; border-radius: 16px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .input-shell { min-height: 55px; padding-left: 12px; gap: 7px; }
  .download-button { min-height: 51px; }
  .link-note { font-size: .81rem; gap: 5px; }
  .detected { font-size: .75rem; padding-inline: 6px; }
  .supported { display: grid; gap: 8px; margin: 18px 0 28px; }
  .platforms { gap: 6px; }
  .platforms li { font-size: .82rem; }
  .help { grid-template-columns: 1fr; padding: 25px 0 32px; gap: 18px; }
  .help-intro p { max-width: initial; }
  .status { align-items: start; flex-wrap: wrap; gap: 8px; padding: 10px; }
  .status-content { flex-basis: calc(100% - 40px); }
  .status .secondary-button { margin-left: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .site, .site *, .site *::before, .site *::after { scroll-behavior: auto !important; transition: none !important; }
}

.site .input-shell > input { height: auto; border-radius: 0; padding-inline: 0; box-shadow: none; }
.site .input-shell > input:focus { border: 0; box-shadow: none; outline: 0; }
.site .form-row > .download-button { font-size: 1rem; min-width: 154px; height: auto; }
.site .input-shell > .paste-button { min-height: 38px; height: auto; }



.media-preview { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 17px; }
.preview-heading, .preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-heading { margin-bottom: 10px; }
.preview-heading h2 { font-size: 1.02rem; font-weight: 800; }
.media-count { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid #251d46;
  border-radius: 14px;
  overflow: hidden;
  background: #16152c;
  color: #eeeafd;
}
.media-frame video, .media-frame img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(60vh, 540px);
  object-fit: contain;
}
.media-frame video { min-width: min(100%, 175px); min-height: 170px; }
.preview-error { padding: 1rem; text-align: center; font-size: .9rem; }
.preview-footer { margin-top: 12px; }
.file-facts { display: flex; gap: 7px; flex-wrap: wrap; font: 650 .82rem/1.45 var(--font-family-base); color: var(--ink); }
.file-facts span { padding: 4px 9px; border-radius: 8px; background: #efedf7; }
.gallery-controls { display: flex; gap: 6px; }
.preview-note, .provider-link { font-size: .84rem; }
.preview-note { margin-top: 8px; color: var(--muted); }
.provider-link { display: inline-block; margin-top: 6px; font-weight: 650; }
@media (max-width: 570px) {
  .media-frame { min-height: 155px; }
  .media-frame video, .media-frame img { max-height: min(55vh, 465px); }
}

.site button, .site input { font-family: inherit; }
.site button { cursor: pointer; }
.site button:disabled { cursor: default; opacity: .65; }
.site [hidden] { display: none !important; }
