:root {
  color-scheme: dark;
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  color: #f7f4ff;
  background: #11101a;
  --muted: #bcb5cf;
  --violet: #c5b2ff;
  --line: #343047;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(ellipse 680px 430px at 50% 100px, #2d1f4c 0%, transparent 83%),
    linear-gradient(180deg, #15121f 0%, #11101a 80%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden], .symbols { display: none !important; }
:focus-visible { outline: 2px solid #daceff; outline-offset: 3px; }
svg {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.topbar { border-bottom: 1px solid #a99ac123; background: #12101bd9; }
.top-inner {
  max-width: 1200px; min-height: 69px; margin: auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 760; letter-spacing: -.045em; }
.brand-accent { color: #b99cff; }
.help-link { color: var(--muted); font-size: .875rem; text-decoration: none; display: flex; align-items: center; gap: 7px; padding: 10px 0; white-space: nowrap; }
.help-link:hover { color: #fff; }
.help-link svg { width: 17px; height: 17px; }
main { max-width: 1000px; margin: auto; padding: 0 24px; }
.intro { text-align: center; padding: 57px 0 31px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; color: #e0d8f0; border: 1px solid #79699572; background: #201934ac; border-radius: 999px; font-size: .8rem; font-weight: 650; }
.youtube, .youtube-music { width: 15px; height: 11px; display: inline-grid; place-items: center; border-radius: 4px; background: #ff566a; }
.youtube-music { height: 15px; border-radius: 50%; outline: 1px solid #ff8998; outline-offset: 1px; width: 13px; height: 13px; }
.youtube::after, .youtube-music::after { content: ""; margin-left: 1px; border-left: 4px solid #fff; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }
h1 { font-size: clamp(2rem, 5.4vw, 3.65rem); letter-spacing: -.065em; line-height: 1.23; margin: 17px 0 12px; font-weight: 830; }
h1 span { color: var(--violet); background: linear-gradient(92deg, #ded0ff, #ae8bff); background-clip: text; -webkit-text-fill-color: transparent; }
.mobile-break { display: none; }
.intro p { margin: 0; color: #d2c9e4; line-height: 1.7; }
.converter {
  position: relative; max-width: 752px; margin: auto; padding: 28px;
  background: linear-gradient(155deg, #241e34, #1b1727 62%);
  border-radius: 23px; border: 1px solid #4b3e64;
  box-shadow: 0 24px 65px #08061075, inset 0 1px #c7a9ff20;
}
.label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-weight: 700; font-size: .9375rem; }
.label svg { color: var(--violet); width: 18px; height: 18px; }
.url-row { display: flex; align-items: stretch; gap: 9px; margin-bottom: 21px; }
input[type="url"], select { border: 1px solid var(--line); border-radius: 10px; color: #f7f4ff; background: #15121f; width: 100%; min-height: 49px; padding: 10px 13px; }
input[type="url"] { min-width: 0; }
input::placeholder { color: #aaa0be; opacity: 1; }
.paste { display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; color: #e9defe; background: #312648; border: 1px solid #594775; border-radius: 10px; padding: 0 13px; font-size: .875rem; font-weight: 650; }
.paste:hover { background: #3b2d58; }
.paste svg { width: 17px; height: 17px; }
fieldset { margin: 0 0 19px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.format { display: grid; position: relative; justify-items: center; gap: 3px; padding: 10px 5px; background: #191524; border: 1px solid #3a324c; border-radius: 11px; cursor: pointer; }
.format:hover { background: #2a223b; }
.format:has(:checked) { background: #352653; border-color: #b49aff; box-shadow: inset 0 0 0 1px #b49aff65; }
.format:has(:focus-visible) { outline: 2px solid #daceff; outline-offset: 3px; }
.format input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.format svg { color: var(--violet); width: 18px; height: 18px; }
.format strong { font-size: .9375rem; }
.format small { color: #cec4de; font-size: .75rem; white-space: nowrap; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; pointer-events: none; right: 17px; top: 19px; width: 8px; height: 8px; border: solid #d2c1ff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
select { appearance: none; padding-right: 34px; }
.field-note { color: var(--muted); margin: 7px 0 16px; font-size: .8125rem; }
.primary { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; border: 0; border-radius: 11px; padding: 12px; color: #1a102d; background: linear-gradient(102deg, #c9b6ff, #ae91ff); font-weight: 780; box-shadow: 0 5px 19px #a47af52e; text-decoration: none; }
.primary:hover { filter: brightness(1.08); }
.status { border-radius: 9px; padding: 11px 13px; background: #322647; color: #f2e8ff; font-size: .9rem; margin: 13px 0 0; line-height: 1.55; }
.status[data-error="true"] { color: #ffd5df; background: #452334; }
.result { margin-top: 10px; }
.permission { display: flex; justify-content: center; align-items: start; gap: 7px; color: var(--muted); font-size: .8125rem; margin: 15px auto 0; text-align: left; line-height: 1.5; }
.permission svg { width: 16px; height: 16px; margin-top: 2px; }
.guide { max-width: 752px; margin: 46px auto 42px; scroll-margin-top: 22px; }
.guide h2 { text-align: center; font-size: 1.35rem; margin: 0 0 15px; }
.guide ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guide li { display: flex; align-items: flex-start; gap: 9px; padding: 14px 12px; border-radius: 12px; background: #1b1727; border: 1px solid #332a46; }
.guide-icon { color: var(--violet); background: #302343; border-radius: 8px; display: grid; place-items: center; width: 32px; height: 32px; flex: none; }
.guide-icon svg { width: 17px; height: 17px; }
.guide h3 { font-size: .875rem; margin: 0 0 4px; }
.guide p { font-size: .8125rem; color: var(--muted); margin: 0; }
footer { text-align: center; border-top: 1px solid #282337; color: #a69abb; padding: 19px; font-size: .8rem; }
@media (max-width: 640px) {
  .top-inner { padding: 0 17px; min-height: 62px; }
  .brand img { width: 33px; height: 33px; }
  .brand { font-size: 1.03rem; gap: 7px; }
  main { padding: 0 15px; }
  .intro { padding: 38px 0 24px; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .mobile-break { display: initial; }
  .converter { padding: 17px 14px; border-radius: 17px; }
  .intro p { max-width: 32rem; margin: auto; }
  .guide { margin-top: 33px; }
  .guide ol { grid-template-columns: 1fr; }
}
@media (max-width: 350px) {
  .paste { padding: 0 8px; }
  .paste svg { display: none; }
  .formats { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
