:root {
  --pink: #ff00bd;
  --cyan: #00ffff;
  --gold: #ffd700;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: #000; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh; overscroll-behavior: contain;
}

header {
  display: flex; justify-content: center; align-items: center;
  padding: 16px 12px 4px;
}
#logo {
  max-width: 70%;
  max-height: 26vh;
  object-fit: contain;
}

main {
  padding: 8px 16px 120px;
  max-width: 720px; margin: 0 auto;
}

.field { display: block; margin: 16px 0 10px; }
.field > span {
  display: block; font-size: 0.75rem; letter-spacing: 0.32em;
  font-weight: 700; margin-bottom: 7px;
}
.label-cyan { color: var(--cyan); text-shadow: 0 0 10px var(--cyan), 0 0 22px #00aaff88; }
.label-pink { color: var(--pink); text-shadow: 0 0 10px var(--pink), 0 0 22px #ff00bd88; }

input[type="text"], input[type="search"] {
  width: 100%;
  padding: 14px 14px;
  background: #111; color: #fff;
  border: 1px solid #333; border-radius: 10px;
  font-size: 1.05rem; font: inherit; font-weight: 500;
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: #555; }
input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 14px #00ffff55; }

ol#results { list-style: none; padding: 0; margin: 14px 0; }
#results li {
  padding: 14px 12px;
  border-bottom: 1px solid #1a1a1a;
  cursor: pointer;
  display: grid; gap: 3px;
  transition: background 0.1s;
}
#results li:active { background: #122; }
#results .artist { font-weight: 700; color: var(--cyan); font-size: 1rem; text-shadow: 0 0 4px #00ffff44; }
#results .title { font-size: 0.95rem; color: #fff; opacity: 0.92; }
#results .version { font-size: 0.8rem; color: var(--gold); opacity: 0.55; }
#results.empty::after {
  content: "(type something above)";
  display: block; padding: 20px; text-align: center; opacity: 0.3; font-style: italic;
}

#confirm-sheet {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: flex-end; justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#confirm-sheet.show { display: flex; }
.confirm-card {
  width: 100%; max-width: 560px;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 60px #ff00bd33;
  transform: translateY(100%);
  transition: transform 0.22s ease-out;
}
#confirm-sheet.show .confirm-card { transform: translateY(0); }
.confirm-label {
  font-size: 0.72rem; letter-spacing: 0.32em; font-weight: 700;
  color: var(--pink); text-shadow: 0 0 10px var(--pink), 0 0 22px #ff00bd88;
  margin-bottom: 10px;
}
.confirm-song {
  font-size: 1.15rem; font-weight: 700;
  color: var(--cyan); text-shadow: 0 0 6px #00ffff66;
  line-height: 1.25;
  margin-bottom: 6px;
  word-break: break-word;
}
.confirm-for { font-size: 0.95rem; opacity: 0.8; margin-bottom: 18px; }
.confirm-for span { color: var(--gold); font-weight: 600; text-shadow: 0 0 4px #ffd70044; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.btn-cancel, .btn-confirm {
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid #333; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn-cancel { background: #1a1a1a; color: #ccc; }
.btn-cancel:active { background: #232323; }
.btn-confirm {
  background: linear-gradient(90deg, #00ffff, var(--pink));
  color: #000; border-color: transparent;
  box-shadow: 0 0 18px #ff00bd66, 0 0 8px #00ffff66;
}
.btn-confirm:active { transform: translateY(1px); box-shadow: 0 0 12px #ff00bd66; }

#toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px);
  bottom: 24px;
  max-width: 80vw;
  background: linear-gradient(90deg, #00ffff, var(--pink));
  color: #000;
  padding: 14px 22px;
  border-radius: 30px;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 0 30px #ff00bd55, 0 0 12px #00ffff55;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: #c33; color: #fff; }
