:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4f4;
  background: #0d0d0f;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(
    circle at top,
    #242429 0,
    #111114 38%,
    #09090b 100%
  );
  min-height: 100vh;
  color: #f4f4f4;
}
button,
input {
  font: inherit;
}
button,
a {
  transition: 0.16s ease;
}
a {
  text-decoration: none;
  color: inherit;
}
.guest-shell {
  width: min(720px, 100%);
  margin: auto;
  padding: 28px 16px 80px;
}
.hero-card {
  padding: 28px 6px 22px;
}
.hero-card h1,
.login-panel h1 {
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 0.98;
  margin: 0.35rem 0 1rem;
  letter-spacing: -0.055em;
}
.hero-card p {
  color: #b8b8bf;
  font-size: 1.04rem;
  margin: 0;
  max-width: 520px;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: #a8ffb0;
}
.panel {
  background: rgba(24, 24, 28, 0.92);
  border: 1px solid #303036;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.search-panel label,
.login-form label {
  display: block;
  font-size: 0.82rem;
  color: #c9c9ce;
  margin: 0 0 8px;
}
.search-wrap input,
.login-form input {
  width: 100%;
  border: 1px solid #3a3a42;
  background: #111114;
  color: white;
  border-radius: 14px;
  padding: 15px 16px;
  outline: none;
}
.search-wrap input:focus,
.login-form input:focus {
  border-color: #6fe87a;
  box-shadow: 0 0 0 3px rgba(111, 232, 122, 0.12);
}
.status-text {
  min-height: 29px;
  padding: 10px 2px 2px;
  color: #9d9da6;
  font-size: 0.9rem;
}
.success-text {
  color: #8bf294;
}
.error-text {
  color: #ff9696;
}
.results {
  display: grid;
  gap: 10px;
}
.track-card,
.admin-track {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #303036;
  background: #17171b;
  border-radius: 15px;
  padding: 10px;
}
.track-card img,
.admin-track img,
.cover-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #28282e;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.track-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.track-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-copy span,
.track-copy small {
  color: #9d9da6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wish-btn,
.primary-btn,
.primary-small {
  border: 0;
  background: #73eb7e;
  color: #0b160c;
  font-weight: 800;
  border-radius: 11px;
  padding: 10px 12px;
  cursor: pointer;
}
.wish-btn:hover,
.primary-btn:hover,
.primary-small:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none !important;
}
.wish-btn.done {
  background: #2f4933;
  color: #baf8c0;
}
.closed-panel {
  text-align: center;
  padding: 36px 18px;
}
.closed-panel h2 {
  margin-top: 0;
}
.login-shell {
  width: min(520px, 100%);
  margin: auto;
  padding: 9vh 16px;
}
.wide-shell {
  width: min(800px, 100%);
}
.login-form {
  display: grid;
  gap: 12px;
}
.primary-btn {
  padding: 13px 16px;
  margin-top: 4px;
}
.error-box {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #3a1c20;
  color: #ffb5bb;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #28282e;
  background: rgba(12, 12, 14, 0.9);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}
.admin-topbar nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.secondary-btn {
  border: 1px solid #3a3a42;
  border-radius: 10px;
  padding: 8px 10px;
  color: #d7d7dc;
  font-size: 0.86rem;
}
.secondary-btn:hover {
  border-color: #666;
}
.admin-grid {
  width: min(1180px, 100%);
  margin: auto;
  padding: 20px 16px 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.now-panel {
  grid-column: 1/-1;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 1.08rem;
}
.pill {
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 999px;
  background: #303036;
  color: #cfcfd5;
}
.good-pill {
  background: #17371c;
  color: #9ff0a8;
}
.warn-pill {
  background: #49361a;
  color: #ffd899;
}
.muted-pill {
  background: #29292f;
}
.now-playing {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 8px;
}
.now-playing img,
.now-playing .cover-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 13px;
  object-fit: cover;
}
.now-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.now-copy strong {
  font-size: 1.25rem;
}
.now-copy span,
.now-copy small {
  color: #a4a4ad;
}
.progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #33333a;
  overflow: hidden;
  margin: 6px 0 2px;
  appearance: none;
}
.progress::-webkit-progress-bar {
  background: #33333a;
}
.progress::-webkit-progress-value {
  background: #72e97d;
}
.progress::-moz-progress-bar {
  background: #72e97d;
}
.admin-list {
  display: grid;
  gap: 9px;
}
.admin-track {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}
.admin-track img,
.admin-track .cover-placeholder {
  width: 52px;
  height: 52px;
}
.actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.actions button {
  border: 1px solid #3b3b43;
  background: #242429;
  color: #e9e9ed;
  border-radius: 9px;
  padding: 8px 9px;
  cursor: pointer;
}
.actions .primary-small {
  border: 0;
  background: #73eb7e;
  color: #0c170d;
}
.actions .danger-small {
  color: #ff9f9f;
}
.playing-track {
  border-color: #5ecb68;
  box-shadow: 0 0 0 1px rgba(94, 203, 104, 0.16);
}
.played-track {
  opacity: 0.66;
}
.empty-state {
  color: #96969f;
  padding: 18px 4px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #1d3320;
  color: #bcf6c1;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.bad-toast {
  background: #452126;
  color: #ffc0c5;
}
.check-list {
  display: grid;
  gap: 8px;
}
.check-row {
  display: grid;
  grid-template-columns: 14px 180px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 11px;
  background: #17171b;
}
.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.check-dot.ok {
  background: #70e77b;
}
.check-dot.bad {
  background: #ff737d;
}


@media (max-width: 800px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-track {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .actions {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
  .track-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .track-card .wish-btn {
    grid-column: 2;
    justify-self: start;
  }
  .track-card img,
  .track-card .cover-placeholder {
    width: 52px;
    height: 52px;
  }
  .check-row {
    grid-template-columns: 14px 1fr;
  }
  .check-row span:last-child {
    grid-column: 2;
  }
  .hero-card {
    padding-top: 18px;
  }
}
