:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #fff7fb;
  --muted: #c9b8c9;
  --soft: #f8d9ee;
  --line: rgba(255, 113, 214, 0.28);
  --line-strong: rgba(255, 113, 214, 0.48);
  --pink: #ff4fc3;
  --pink-hot: #ff7bd8;
  --violet: #8b5cf6;
  --purple: #5b21b6;
  --black: #050306;
  --panel: rgba(16, 10, 20, 0.86);
  --field: rgba(7, 5, 10, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 79, 195, 0.24), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(139, 92, 246, 0.28), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(255, 219, 125, 0.11), transparent 26%),
    linear-gradient(135deg, #020102 0%, #100714 52%, #050306 100%);
  color: var(--ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

body::before {
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -160px;
  background: rgba(255, 79, 195, 0.12);
}

body::after {
  width: 260px;
  height: 260px;
  left: -120px;
  top: 18%;
  background: rgba(139, 92, 246, 0.12);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
}

.hero-panel {
  position: relative;
  width: min(100%, 980px);
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 58px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 113, 214, 0.11), transparent 45%),
    linear-gradient(315deg, rgba(139, 92, 246, 0.14), transparent 46%),
    transparent;
  box-shadow: none;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-panel::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 195, 0.22), transparent 68%);
}

.hero-panel::after {
  width: 170px;
  height: 170px;
  left: 28px;
  bottom: 28px;
  opacity: 0.34;
  background-image: radial-gradient(rgba(255, 255, 255, 0.82) 1px, transparent 1px);
  background-size: 13px 13px;
}

.logo-space {
  position: absolute;
  top: clamp(18px, 4vw, 34px);
  left: 50%;
  z-index: 2;
  width: min(196px, 46vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 113, 214, 0.5);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 113, 214, 0.16), rgba(139, 92, 246, 0.08)),
    rgba(2, 1, 4, 0.78);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(255, 79, 195, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.logo-space img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 10px rgba(255, 113, 214, 0.55))
    drop-shadow(0 0 26px rgba(255, 113, 214, 0.26));
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin-top: 148px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  padding: 0 28px 20px;
  text-align: center;
  color: white;
}

.brand p {
  margin: 0;
  color: var(--soft);
  line-height: 1.45;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 850;
  text-shadow: 0 0 18px rgba(255, 113, 214, 0.36);
}

.karaoke-form {
  display: grid;
  gap: 14px;
  padding: 0 28px 28px;
}

label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-weight: 780;
  font-size: 0.88rem;
}

label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 113, 214, 0.34);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(5, 2, 8, 0.72);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

textarea {
  height: 96px;
  max-height: 96px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 247, 251, 0.48);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--pink-hot);
  box-shadow:
    0 0 0 4px rgba(255, 79, 195, 0.12),
    0 0 22px rgba(255, 79, 195, 0.16);
}

button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow:
    0 14px 30px rgba(255, 79, 195, 0.22),
    0 0 28px rgba(255, 79, 195, 0.24);
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(255, 79, 195, 0.26),
    0 0 38px rgba(255, 79, 195, 0.32);
}

button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.song-results {
  display: grid;
  gap: 8px;
  max-height: 238px;
  margin: -4px 0 4px;
  padding: 10px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(6, 3, 9, 0.94);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(255, 79, 195, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 113, 214, 0.8) rgba(255, 255, 255, 0.06);
}

.song-results[hidden] {
  display: none;
}

.song-results li {
  padding: 13px 14px;
  cursor: pointer;
  border: 1px solid rgba(255, 113, 214, 0.12);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.song-results li:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 113, 214, 0.42);
  background: rgba(255, 79, 195, 0.11);
  box-shadow: 0 0 18px rgba(255, 79, 195, 0.12);
}

.song-results .no-results {
  color: var(--muted);
  cursor: default;
}

.form-message {
  margin: 18px 28px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 113, 214, 0.22);
  border-radius: 18px;
  background: rgba(255, 79, 195, 0.08);
  color: var(--soft);
  line-height: 1.45;
  font-weight: 700;
}

.form-message.is-error {
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.28);
}

#form-message {
  margin-top: 0;
}

.static-link {
  margin: 18px 28px 28px;
  text-align: center;
}

.static-link a {
  color: var(--pink-hot);
  font-weight: 850;
  text-decoration: none;
}

.static-link a:hover {
  text-decoration: underline;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 28px 0;
  color: rgba(255, 247, 251, 0.64);
  font-size: 0.76rem;
  line-height: 1.5;
}

.legal-footer a {
  color: var(--ink);
  font-weight: 760;
  text-decoration-color: rgba(255, 79, 195, 0.72);
  text-underline-offset: 4px;
}

.legal-footer .creator-link {
  color: rgba(255, 247, 251, 0.82);
}

.legal-footer .legal-link {
  flex: 0 0 auto;
  font-weight: 760;
  text-align: right;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 48px);
}

.legal-document {
  width: min(100%, 860px);
  margin: 0 auto;
  color: var(--ink);
}

.legal-header {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: clamp(28px, 5vw, 46px);
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 113, 214, 0.28);
}

.legal-header img {
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 113, 214, 0.5);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(2, 1, 4, 0.78);
  filter: drop-shadow(0 0 14px rgba(255, 113, 214, 0.42));
}

.legal-header p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 113, 214, 0.36);
}

.legal-document section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 113, 214, 0.16);
}

.legal-document h2 {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: clamp(1.08rem, 3vw, 1.35rem);
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: rgba(255, 247, 251, 0.78);
  line-height: 1.72;
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-document a {
  color: var(--ink);
  text-decoration-color: rgba(255, 79, 195, 0.72);
  text-underline-offset: 4px;
}

.legal-document-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 8px;
  color: rgba(255, 247, 251, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .page-shell {
    place-items: stretch;
    padding: 0;
  }

  .hero-panel {
    min-height: 100vh;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 18px;
  }

  .logo-space {
    width: min(260px, calc(100vw - 72px));
    top: 18px;
    border-radius: 50%;
  }

  .logo-space img {
    border-radius: 50%;
  }

  .card {
    width: min(100%, 390px);
    margin-top: min(292px, calc(100vw - 88px));
  }

  .brand {
    padding: 0 22px 18px;
  }

  .karaoke-form {
    padding: 0 22px 22px;
  }

  .form-message {
    margin-inline: 22px;
  }

  .legal-footer {
    margin-inline: 22px;
    font-size: 0.78rem;
  }

  .legal-shell {
    padding: 22px;
  }

  .legal-header {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .legal-header img {
    width: 58px;
    height: 58px;
  }

  .legal-document section {
    padding: 20px 0;
  }

  .legal-document-footer {
    font-size: 0.78rem;
  }
}
