:root {
  color-scheme: dark;
  --bg: #08080b;
  --panel: rgba(18, 18, 24, 0.82);
  --text: #f7f5ff;
  --muted: #aaa6b8;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #9d6cff;
  --pink: #ff4fa3;
  --cyan: #48e5ff;
  --danger: #ff7596;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  font-family: Inter, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(157, 108, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 80% 75%, rgba(72, 229, 255, 0.08), transparent 32rem),
    linear-gradient(145deg, #08080b, #0d0c13 55%, #07070a);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  top: -12rem;
  left: -8rem;
  background: var(--violet);
}

.ambient-two {
  right: -11rem;
  bottom: -14rem;
  background: var(--cyan);
}

.player-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1220px);
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.wordmark span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(157, 108, 255, 0.35), rgba(255, 79, 163, 0.2));
  letter-spacing: 0;
}

.logout-button,
.text-button {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.logout-button:hover,
.text-button:hover {
  color: var(--text);
  border-color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions form {
  margin: 0;
}

.header-actions a.logout-button {
  display: inline-block;
  text-decoration: none;
}

.player-shell {
  display: grid;
  place-items: center;
  width: min(calc(100% - clamp(40px, 10vw, 128px)), 1600px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 48px 0 84px;
}

.screen {
  width: 100%;
  min-width: 0;
  text-align: center;
  animation: screen-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen.is-screen-exiting {
  animation: screen-out 420ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.search-screen {
  max-width: 1400px;
}

.choice-screen,
.loading-screen {
  max-width: 920px;
}

.senior-screen {
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  height: calc(100vh - 230px);
  min-height: 420px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

h1,
h2,
p {
  margin-top: 0;
}

.search-screen h1,
.choice-screen h2,
.loading-screen h2 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 8vw, 6.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.search-screen h1 {
  display: flex;
  flex-direction: column;
  gap: 0.22em;
  margin-bottom: 0;
  color: #d0d89e;
  background: linear-gradient(90deg, #b8c077 0%, #eef3b4 48%, #cfd898 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(7.6rem, 18vw, 21rem);
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 0 28px rgba(208, 216, 158, 0.18);
  -webkit-text-fill-color: transparent;
}

.search-screen h1 span {
  display: block;
  width: max-content;
  margin-inline: auto;
  white-space: nowrap;
}

.lead {
  margin-bottom: 40px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.search-form {
  --search-action-width: min(760px, 92vw);
  width: min(100%, 760px);
  margin: clamp(22px, 6vh, 78px) auto 0;
}

.search-field {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 16px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: clamp(2.2rem, 4.8vw, 3rem);
  line-height: 1.05;
  text-align: center;
  outline: 0;
}

.search-field input::placeholder {
  color: #777382;
}

.search-button,
.senior-mode-button,
.primary-button {
  border: 0;
  border-radius: 14px;
  color: #08080b;
  background: linear-gradient(135deg, #fff, #d8cdfa);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.search-button {
  display: block;
  width: var(--search-action-width);
  min-height: 58px;
  margin: 24px auto 0;
  padding: 0 30px;
  font-size: clamp(1.35rem, 4vw, 2.4rem);
}

.senior-mode-button {
  display: block;
  width: calc(var(--search-action-width) / 2);
  margin: clamp(48px, 10vh, 116px) auto 0;
  padding: 0;
  background: transparent;
  line-height: 0;
}

.senior-mode-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.stop-playback-button {
  display: block;
  min-width: 150px;
  margin: 16px auto 0;
  padding: 13px 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 8, 11, 0.62);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.stop-playback-button:hover {
  color: #08080b;
  border-color: #fff;
  background: #fff;
}

.search-button:hover,
.senior-mode-button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(157, 108, 255, 0.25);
}

.search-button:disabled,
.senior-mode-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.primary-button {
  padding: 16px 26px;
}

.primary-button.compact {
  margin: 22px auto 0;
}

.inline-error,
.form-error {
  margin: 18px auto 0;
  color: var(--danger);
  line-height: 1.6;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 10px auto 42px;
}

.choice-button {
  display: grid;
  place-items: center;
  width: clamp(112px, 16vw, 158px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(157, 108, 255, 0.34), rgba(255, 79, 163, 0.12));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  font-weight: 800;
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.choice-button:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--cyan);
  box-shadow: 0 24px 60px rgba(72, 229, 255, 0.14);
}

.senior-count {
  margin: 0 auto 18px;
  color: var(--muted);
}

.senior-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 12px;
  width: min(100%, 1100px);
  min-height: 0;
  margin: 0 auto 28px;
  overflow: auto;
  padding: 4px;
}

.senior-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.senior-result-meta {
  min-width: 0;
}

.senior-result-artist,
.senior-result-track {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.senior-result-artist {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
}

.senior-result-track {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

.senior-play-button {
  min-width: 96px;
  min-height: 48px;
  padding: 0 22px;
}

.senior-play-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.loading-screen {
  max-width: 100%;
}

.loading-screen h2 {
  width: 100%;
  margin-inline: auto;
  font-size: clamp(9.6rem, 30vw, 28.5rem);
  line-height: 0.98;
  text-align: center;
}

.loading-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  white-space: nowrap;
}

.disc-loader {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #16141e 0 7px, #252031 8px 10px);
  box-shadow: 0 0 70px rgba(157, 108, 255, 0.22);
  animation: spin 2.8s linear infinite;
}

.disc-loader::after {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.disc-loader span {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(72, 229, 255, 0.24);
  border-radius: 50%;
}

.progress-track {
  width: min(100%, 480px);
  height: 3px;
  margin: 0 auto 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 4%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 600ms ease;
}

.play-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 65vh;
  place-items: center;
}

.player-page.is-playing {
  overflow: hidden;
}

.player-page.is-playing .player-shell {
  height: calc(100svh - 84px);
  min-height: 0;
  padding-block: clamp(14px, 3vh, 32px);
}

.player-page.is-playing .play-screen {
  height: 100%;
  min-height: 0;
}

.player-page.is-playing .page-signature {
  display: none;
}

.sound-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(60vw, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: breathe 3s ease-in-out infinite;
}

.sound-orbit::before,
.sound-orbit::after {
  position: absolute;
  border: 1px solid rgba(157, 108, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.sound-orbit::before {
  inset: 14%;
}

.sound-orbit::after {
  inset: 28%;
}

.track-reveal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(12px);
  pointer-events: none;
  transition:
    opacity 1.4s ease,
    transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1.4s ease;
}

.track-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.artist-name {
  margin-bottom: 18px;
  color: var(--cyan);
  width: 100%;
  font-size: clamp(3.6rem, 9.6vw, 7.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.track-title {
  width: 100%;
  max-width: 100%;
  margin: 0 auto clamp(18px, 4vh, 44px);
  padding: 0;
  font-size: clamp(9.6rem, 30vw, 28.5rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-align: center;
}

.track-title-main {
  display: block;
  width: 100%;
  margin-inline: auto;
}

.track-title-main-line {
  display: block;
  width: max-content;
  margin-inline: auto;
  white-space: nowrap;
}

.track-title-suffix {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.track-title-suffix-line {
  display: block;
  width: max-content;
  margin-inline: auto;
}

.track-title-suffix {
  margin-top: 0.18em;
  font-size: 0.78em;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.not-found-screen {
  display: grid;
  min-height: 65vh;
  place-items: center;
  cursor: pointer;
  outline: 0;
}

.not-found-screen h2 {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  color: var(--pink);
  font-size: clamp(9.6rem, 30vw, 28.5rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease;
}

.not-found-screen h2 span {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  white-space: nowrap;
}

.not-found-screen.is-visible h2 {
  opacity: 1;
  transform: none;
  filter: none;
}

.play-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.finish-button {
  min-width: 150px;
  padding: 16px 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 8, 11, 0.65);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.finish-button:hover {
  color: #08080b;
  border-color: #fff;
  background: #fff;
}

.finish-button:disabled {
  cursor: wait;
  opacity: 0.5;
}

.page-signature {
  position: fixed;
  right: 18px;
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 480px);
}

.login-card {
  padding: clamp(32px, 8vw, 62px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.login-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem, 9vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.login-copy {
  margin-bottom: 34px;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-form input {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.login-form .primary-button {
  margin-top: 8px;
}

.settings-page {
  display: grid;
  min-height: 100vh;
  align-items: start;
  justify-items: center;
  padding: 24px;
}

.settings-shell {
  width: min(100%, 1280px);
}

.settings-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.settings-card-alias-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  overflow: hidden;
}

.settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.settings-heading h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.settings-back {
  text-decoration: none;
}

.settings-main-back {
  color: var(--cyan);
}

.settings-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.settings-copy,
.settings-version,
.settings-form p,
.update-form p {
  color: var(--muted);
  line-height: 1.35;
}

.settings-version {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.settings-version strong {
  color: var(--cyan);
}

.update-notice {
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid rgba(72, 229, 255, 0.32);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(72, 229, 255, 0.08);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0;
}

.settings-form,
.update-form {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.settings-form h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.15;
}

.settings-form-header,
.settings-inline-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.settings-form-header .primary-button,
.settings-inline-action .primary-button {
  min-height: 44px;
  padding: 10px 20px;
}

.settings-form label,
.update-form label {
  font-weight: 800;
}

.settings-form input[type="password"],
.update-form input[type="file"],
.settings-message-add-form input,
.settings-message-add-form textarea,
.alias-search-form input,
.alias-add-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.settings-message-add-form textarea {
  min-height: 4.6em;
  resize: vertical;
  line-height: 1.35;
}

.password-inline-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.password-inline-fields label {
  display: grid;
  gap: 5px;
}

.update-form p {
  margin: 0;
}

.settings-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.settings-message-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.settings-message-card h2,
.settings-message-card p {
  margin: 0;
}

.settings-message-card h2 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
}

.settings-message-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.settings-message-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.settings-message-add-form .primary-button {
  min-height: 40px;
  padding: 8px 16px;
}

.settings-message-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-message-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin: 0;
  padding: 5px 8px 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.settings-message-chip span {
  overflow: hidden;
  max-width: 24rem;
  text-overflow: ellipsis;
  white-space: pre-line;
}

.settings-message-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #08080b;
  background: var(--text);
  cursor: pointer;
}

.settings-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4em;
  margin-top: 3.2em;
}

.settings-tab-button {
  border-color: rgba(72, 229, 255, 0.9);
  color: #061015;
  background: var(--cyan);
  text-decoration: none;
}

.alias-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.alias-panel.alias-panel-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.alias-fixed-head {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
}

.alias-panel h2,
.alias-panel h3,
.alias-panel p {
  margin: 0;
}

.alias-panel h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.15;
}

.alias-panel p,
.alias-empty,
.alias-search-form label,
.alias-add-form label {
  color: var(--muted);
  line-height: 1.35;
}

.alias-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.alias-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alias-stats span {
  padding: 6px 10px;
  border: 1px solid rgba(72, 229, 255, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(72, 229, 255, 0.07);
  font-size: 0.92rem;
  font-weight: 800;
}

.alias-search-form,
.alias-add-form {
  display: grid;
  gap: 3px;
}

.alias-search-form > div,
.alias-add-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.alias-search-form .primary-button,
.alias-add-form .primary-button {
  min-height: 30px;
  padding: 5px 10px;
  line-height: 1.1;
}

.alias-search-form input {
  border-color: rgba(255, 255, 255, 0.65);
  color: #07080b;
  background: #e6e6e6;
}

.alias-search-form input::placeholder {
  color: rgba(7, 8, 11, 0.58);
}

.alias-add-form input {
  padding: 5px 8px;
  line-height: 1.15;
}

.alias-add-form label {
  font-size: 0.82rem;
  line-height: 1.15;
}

.alias-track-list,
.alias-error-list {
  display: grid;
  gap: 5px;
  align-content: start;
  align-items: start;
}

.alias-scroll-body {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  align-content: start;
  align-items: start;
  min-height: 0;
  margin-top: 7px;
  overflow-y: auto;
  padding-right: 6px;
}

.alias-error-panel {
  margin-top: 8px;
  align-self: start;
}

.alias-track-card,
.alias-error-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: start;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 8, 11, 0.42);
}

.alias-error-card {
  align-items: center;
  line-height: 1.15;
}

.alias-track-main {
  min-width: 0;
}

.alias-add-form {
  align-self: start;
}

.alias-artist {
  color: var(--cyan) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.alias-track-card h3,
.alias-error-card h3 {
  margin: 0 0 3px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.12;
}

.alias-track-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 117, 150, 0.32);
  border-radius: 999px;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.alias-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.alias-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.alias-chip span {
  overflow: hidden;
  max-width: 16rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alias-chip button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #08080b;
  background: var(--text);
  cursor: pointer;
}

.alias-error-card strong {
  color: var(--pink);
}

.alias-error-panel {
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
}

.alias-error-panel p,
.alias-error-panel h2,
.alias-error-panel h3 {
  line-height: 1.15;
}

.alias-error-panel h2 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.alias-error-panel p {
  font-size: 0.82rem;
}

.alias-error-panel .alias-empty {
  margin-top: 2px;
}

.admin-logout-form {
  margin-top: 16px;
  text-align: right;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes screen-out {
  from { opacity: 1; transform: none; filter: none; }
  to { opacity: 0; transform: translateY(-18px); filter: blur(8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@media (max-width: 680px) {
  .player-header {
    width: min(100% - 28px, 1220px);
    min-height: 70px;
  }

  .wordmark {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }

  .wordmark span {
    width: 31px;
    height: 31px;
    margin-right: 7px;
  }

  .logout-button {
    font-size: 0.78rem;
  }

  .player-shell {
    width: min(calc(100% - 32px), 1600px);
    min-height: calc(100vh - 110px);
    padding: 42px 0 64px;
  }

  .choice-screen h2 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .search-screen h1 {
    font-size: clamp(6.4rem, 21vw, 12rem);
  }

  .search-field {
    border-radius: 18px;
  }

  .search-field input {
    padding: 8px 12px;
    font-size: clamp(2rem, 8vw, 2.7rem);
    text-align: center;
  }

  .search-button {
    width: var(--search-action-width);
    min-height: 54px;
  }

  .senior-mode-button {
    width: calc(var(--search-action-width) / 2);
    margin-top: clamp(42px, 9vh, 88px);
  }

  .choice-list {
    gap: 12px;
  }

  .senior-result {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .senior-result-artist,
  .senior-result-track {
    white-space: normal;
  }

  .choice-button {
    width: min(36vw, 132px);
  }

  .track-title {
    margin-bottom: 40px;
    padding: 0;
    font-size: clamp(9rem, 54vw, 18rem);
  }

  .not-found-screen h2 {
    font-size: clamp(9rem, 54vw, 18rem);
  }

  .sound-orbit {
    width: 86vw;
  }

  .page-signature {
    display: none;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-message-grid {
    grid-template-columns: 1fr;
  }

  .alias-panel-heading,
  .settings-form-header,
  .settings-inline-action,
  .settings-message-add-form,
  .alias-track-card,
  .alias-error-card,
  .alias-search-form > div,
  .alias-add-form > div,
  .password-inline-fields {
    grid-template-columns: 1fr;
  }

  .alias-panel-heading {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
