:root {
  --c-bg: #0f1419;
  --c-card: #171d23;
  --c-text: #f7f8f8;
  --c-muted: #9aa4ad;
  --c-line: rgba(255, 255, 255, .12);
  --c-main: #1ed760;
  --c-main-dark: #18b954;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  --container: 760px;
  --gutter: 20px;
  --ff-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--c-text);
  font-family: var(--ff-base);
  background:
    radial-gradient(circle at top left, rgba(30, 215, 96, .18), transparent 36%),
    linear-gradient(135deg, #0b0f13 0%, var(--c-bg) 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =================================
   Layout
================================= */

.app {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-block: 72px;
}

/* =================================
   Navigation
================================= */

.siteNav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.siteNav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--c-line);
  border-radius: 999px;
}

.siteNav a.is-current {
  color: #06100a;
  background: var(--c-main);
  border-color: var(--c-main);
}

/* =================================
   Hero
================================= */

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 5px 14px;
  color: var(--c-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid rgba(30, 215, 96, .35);
  border-radius: 999px;
}

.hero__title {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero__lead {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* =================================
   Tool
================================= */

.tool {
  padding: clamp(22px, 5vw, 42px);
  background: rgba(23, 29, 35, .88);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tool__label,
.result__label {
  display: block;
  margin-bottom: 10px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 700;
}

.tool__inputGroup {
  position: relative;
}

.tool__input {
  width: 100%;
  min-height: 58px;
  padding: 0 50px 0 18px;
  color: var(--c-text);
  background: #0d1217;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  outline: none;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}

.tool__input:focus,
.result__textarea:focus {
  border-color: rgba(30, 215, 96, .78);
  box-shadow: 0 0 0 4px rgba(30, 215, 96, .12);
}

.tool__clearButton {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--c-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.tool__status {
  min-height: 24px;
  margin: 12px 0 14px;
  color: var(--c-muted);
  font-size: 14px;
}

.tool__status.is-error {
  color: #ff9c9c;
}

.tool__status.is-success {
  color: var(--c-main);
}

/* =================================
   Result
================================= */

.result {
  margin-top: 16px;
}

.result__meta {
  display: none;
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
}

.result__meta.is-show {
  display: block;
}

.result__textarea {
  width: 100%;
  min-height: 112px;
  padding: 16px 18px;
  color: var(--c-text);
  line-height: 1.7;
  resize: vertical;
  background: #0d1217;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  outline: none;
}

.result__textarea--playlist {
  min-height: 360px;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* =================================
   Button
================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #06100a;
  font-weight: 800;
  background: var(--c-main);
  border: 0;
  border-radius: 999px;
  transition: transform .2s ease-out, background-color .2s ease-out;
}

.button--sub {
  color: var(--c-text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--c-line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

/* =================================
   Note
================================= */

.note {
  margin-top: 26px;
  color: var(--c-muted);
  font-size: 14px;
}

.note summary {
  cursor: pointer;
  color: var(--c-text);
  font-weight: 700;
}

/* =================================
   Footer
================================= */

.footer {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: 0 0 30px;
  text-align: center;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer__nav a {
  color: var(--c-muted);
  font-size: 14px;
  text-decoration: none;
}

.footer__copy {
  font-size: 12px;
  color: var(--c-muted);
}

/* =================================
   Footer - Tools Navigation
================================= */

.footer__tools {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}

.footer__toolsTitle {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--c-text);
  font-weight: 700;
  letter-spacing: .05em;
}

.footer__toolsLinks {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__toolsLinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #06100a;
  text-decoration: none;
  background: var(--c-main);
  border-radius: 999px;
  transition: transform .2s ease-out, background-color .2s ease-out;
}

/* hover */
@media (hover: hover) and (pointer: fine) {
  .footer__toolsLinks a:hover {
    background: var(--c-main-dark);
    transform: translateY(-1px);
  }
}

/* SP */
@media (max-width: 768px) {
  .footer__toolsLinks {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer__toolsLinks a {
    width: 100%;
  }
}

/* =================================
   Hover
================================= */

@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover {
    background: var(--c-main-dark);
    transform: translateY(-1px);
  }

  .button--sub:not(:disabled):hover {
    background: rgba(255, 255, 255, .13);
  }
}

/* =================================
   Responsive
================================= */

@media (max-width: 768px) {
  .app {
    padding-block: 42px;
  }

  .hero {
    text-align: left;
  }

  .result__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

/* =================================
   Static Pages
================================= */

.page__body {
  margin-top: 34px;
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.9;
}

.page__body h2 {
  margin: 42px 0 14px;
  color: var(--c-text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  letter-spacing: -.02em;
}

.page__body p {
  margin: 0;
}

.page__body p + p {
  margin-top: 1em;
}

.page__body ul {
  margin: 14px 0 0;
  padding-left: 1.4em;
}

.page__body li {
  padding-left: .25em;
}

.page__body li + li {
  margin-top: .45em;
}

.page__body a {
  color: var(--c-main);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.page__date {
  margin-top: 42px !important;
  color: var(--c-text);
  font-weight: 700;
}

/* =================================
   Back Link
================================= */

.page__back {
  margin: 42px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}

.page__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  color: #06100a;
  font-weight: 800;
  text-decoration: none;
  background: var(--c-main);
  border-radius: 999px;
  transition: transform .2s ease-out, background-color .2s ease-out;
}

.page__back a::before {
  content: "←";
  font-weight: 900;
}

@media (hover: hover) and (pointer: fine) {
  .page__back a:hover {
    background: var(--c-main-dark);
    transform: translateY(-1px);
  }
}

@media (max-width: 768px) {
  .page__body {
    font-size: 15px;
    line-height: 1.85;
  }

  .page__body h2 {
    margin-top: 34px;
  }

  .page__back a {
    width: 100%;
    justify-content: center;
  }
}

/* =================================
   About - Spotify Link
================================= */

.about__spotify {
  margin-top: 10px;
}

.about__spotify a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--c-main);
  text-decoration: none;
}

.about__spotify a::before {
  content: "♪";
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .about__spotify a:hover {
    opacity: .75;
  }
}