:root {
  --ink: #f7f5fb;
  --muted: #b8aecb;
  --subtle: #766b8c;
  --body: #171027;
  --panel: #211737;
  --panel-light: #291d42;
  --line: #392b57;
  --teal: #0d4f63;
  --green: #3ddc84;
  --green-dark: #0c3a27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 78% 4%, #293353 0, transparent 28rem), var(--body);
  font-family: "DM Sans", sans-serif;
}
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 31px 0 23px; border-bottom: 1px solid rgba(92, 72, 129, .34); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font: 700 20px "Space Grotesk", sans-serif; text-decoration: none; letter-spacing: -.04em; }
.brand span span { color: #6bd6dc; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #e0fbfa; background: var(--teal); border-radius: 9px; font-size: 19px; }
.version, .eyebrow, .status-pill, .card-number { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.version { letter-spacing: .16em; }
.hero { display: flex; justify-content: space-between; gap: 30px; padding: 72px 0 66px; }
.hero-copy { max-width: 700px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: #75d6db; font-weight: 700; }
.eyebrow span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 14px var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 23px; font: 600 clamp(39px, 6vw, 72px)/1.03 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
h1 em { color: #77dfe1; font-style: normal; }
.hero-text { max-width: 530px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero-note { align-self: flex-end; display: flex; gap: 14px; margin-bottom: 9px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.hero-note p { margin: 0; }
.hero-note strong { color: var(--ink); font-weight: 500; }
.note-icon { color: var(--green); font-size: 30px; line-height: .8; }
.workspace { padding: 31px 34px 34px; background: linear-gradient(125deg, rgba(42, 29, 66, .96), rgba(29, 22, 51, .96)); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .16); }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 9px; color: var(--subtle); }
h2 { margin-bottom: 29px; font: 600 25px "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.status-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; color: #a8f2c9; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .22); border-radius: 100px; }
.status-dot, .online-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
.playlist-form label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.input-row { display: flex; gap: 11px; }
.input-wrap { position: relative; flex: 1; }
input[type="url"] { width: 100%; height: 54px; padding: 0 44px; color: var(--ink); background: #161027; border: 1px solid #453461; border-radius: 9px; outline: none; font: 15px "DM Sans", sans-serif; transition: border-color .2s, box-shadow .2s; }
input[type="url"]:focus { border-color: #68d6db; box-shadow: 0 0 0 3px rgba(104, 214, 219, .13); }
input[type="url"]::placeholder { color: #665a7c; }
.input-icon { position: absolute; top: 18px; left: 17px; color: #c23849; font-size: 12px; }
.clear-button { position: absolute; top: 11px; right: 9px; width: 32px; height: 32px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 23px; cursor: pointer; }
.clear-button:hover { background: var(--panel-light); color: white; }
button, .secondary-button { font: 600 14px "DM Sans", sans-serif; cursor: pointer; }
.primary-button { min-width: 190px; color: var(--green-dark); background: var(--green); border: 0; border-radius: 9px; transition: transform .2s, filter .2s; }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button span, .secondary-button span { margin-left: 12px; font-size: 18px; }
.form-message { min-height: 21px; margin: 9px 0 0; color: #ff9aa8; font-size: 13px; }
.form-message.success { color: #9bf1bd; }
.playlist-result { display: flex; align-items: center; gap: 14px; margin-top: 9px; padding: 15px; background: rgba(61, 220, 132, .07); border: 1px solid rgba(61, 220, 132, .2); border-radius: 10px; }
.result-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green-dark); background: var(--green); border-radius: 50%; font-weight: 700; }
.result-copy { flex: 1; }
.result-copy p { margin: 0; }
.result-label { color: #9bf1bd; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.result-value { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.secondary-button { display: inline-flex; align-items: center; padding: 10px 14px; color: var(--ink); background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-radius: 7px; text-decoration: none; white-space: nowrap; }
.secondary-button:hover { background: rgba(255, 255, 255, .14); }
.download-button { min-width: 160px; min-height: 43px; margin-left: auto; }
.download-button:disabled { cursor: wait; filter: saturate(.5); opacity: .75; }
.options { display: flex; gap: 38px; margin-top: 22px; }
.option-card { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; }
.checkmark { position: relative; width: 17px; height: 17px; border: 1px solid #67577f; border-radius: 4px; }
.option-card input:checked + .checkmark { background: var(--teal); border-color: #72d9dd; }
.option-card input:checked + .checkmark::after { position: absolute; top: 1px; left: 5px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.option-card span:last-child { display: grid; gap: 2px; }
.option-card small { color: var(--subtle); font-size: 11px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.info-card { min-height: 160px; padding: 24px 27px; background: rgba(35, 23, 55, .68); border: 1px solid rgba(57, 43, 87, .7); border-radius: 14px; }
.card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.card-heading h3 { margin: 0; font: 600 16px "Space Grotesk", sans-serif; }
.card-number { color: #6b5c83; }
.muted-value { margin-bottom: 7px; color: var(--muted); font-size: 15px; }
.support-text { margin: 0; color: var(--subtle); font-size: 12px; }
footer { display: flex; justify-content: space-between; padding: 37px 0 32px; color: var(--subtle); font-size: 12px; }
footer p { margin: 0; }
.footer-mark { color: #74dadd; margin-right: 6px; }
.separator { margin: 0 7px; color: #514267; }
.footer-help { display: flex; align-items: center; gap: 8px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 560px); }
  .topbar { padding-top: 20px; }
  .hero { display: block; padding: 50px 0 42px; }
  h1 { font-size: 43px; }
  .hero-note { margin-top: 28px; }
  .workspace { padding: 24px 18px; }
  .input-row { display: block; }
  .primary-button { width: 100%; height: 52px; margin-top: 10px; }
  .options { display: grid; gap: 15px; }
  .playlist-result { align-items: flex-start; flex-wrap: wrap; }
  .playlist-result .secondary-button { width: 100%; justify-content: center; }
  .download-button { width: 100%; margin-left: 0; }
  .info-grid { grid-template-columns: 1fr; }
  footer { display: block; line-height: 2; }
  .footer-help { margin-top: 8px; }
}
