.music-admin {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 40px) 56px;
  box-sizing: border-box;
  font-family: "Outfit", system-ui, sans-serif;
}

.music-admin__head h1 {
  margin: 6px 0 8px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.music-admin__kicker {
  margin: 0;
  color: #00ff9d;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.music-admin__lead {
  margin: 0 0 18px;
  color: rgba(234, 242, 255, 0.74);
  max-width: 85ch;
}

.music-admin__lead code {
  font-size: 0.88em;
  color: rgba(0, 255, 157, 0.85);
  background: rgba(0, 255, 157, 0.08);
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

.music-admin__badge {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 255, 157, 0.95);
  border: 1px solid rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.1);
  vertical-align: middle;
}

.music-admin__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.music-admin__toolbar-spacer {
  flex: 1 1 120px;
  min-width: 0;
}

.music-admin__signed-in {
  font-size: 0.78rem;
  color: rgba(234, 242, 255, 0.55);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walkup-gate {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  text-align: center;
}

.walkup-gate__title {
  margin: 8px 0 12px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
}

.walkup-gate__msg {
  min-height: 1.35em;
  margin: 0 0 10px;
  color: rgba(255, 180, 120, 0.92);
  font-size: 0.9rem;
}

.walkup-gate__msg:empty {
  display: none;
}

.walkup-gate__lead {
  margin: 0 0 20px;
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.walkup-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.walkup-gate .is-hidden {
  display: none !important;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn--primary {
  border-color: rgba(0, 255, 157, 0.46);
  background: rgba(0, 255, 157, 0.14);
  color: #00ff9d;
}

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn--file {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.btn--file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.music-admin__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 10px 12px;
}

.stat-pill__label {
  display: block;
  font-size: 0.72rem;
  color: rgba(234, 242, 255, 0.62);
}

.stat-pill__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.stat-pill__value--on {
  color: #00ff9d;
}

.stat-pill__value--off {
  color: rgba(255, 255, 255, 0.72);
}

.genre-section {
  margin-bottom: 24px;
}

.genre-section__title {
  margin: 0 0 8px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 255, 157, 0.88);
}

.track-list {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.track-list__head,
.track-row {
  display: grid;
  grid-template-columns:
    44px
    minmax(160px, 1.6fr)
    minmax(100px, 1fr)
    minmax(168px, auto)
    88px
    minmax(150px, 0.75fr);
  gap: 8px 14px;
  align-items: center;
  padding: 8px 12px;
}

.track-list__head {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-row {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 40%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.track-row:last-child {
  border-bottom: none;
}

.track-row__thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 22% 22%, rgba(0, 255, 157, 0.42), rgba(72, 32, 180, 0.72));
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.track-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-row__emoji {
  font-size: 1rem;
  font-weight: 700;
}

.track-row__main {
  min-width: 0;
}

.track-row__title {
  margin: 0 0 2px;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row__artist,
.track-row__tags,
.track-row__license {
  margin: 0;
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.track-row__license {
  font-size: 0.72rem;
  color: rgba(234, 242, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row__usage-col {
  min-width: 0;
}

.track-row__usage {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(0, 255, 157, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}

.track-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.toggle-switch--compact .toggle-switch__label {
  font-size: 0.72rem;
}

@media (max-width: 1020px) {
  .track-list__head {
    display: none;
  }

  .track-row {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 8px 10px;
    padding: 12px;
  }

  .track-row__thumb {
    grid-row: 1 / span 2;
  }

  .track-row__main {
    grid-column: 2;
  }

  .track-row__usage-col {
    grid-column: 1 / -1;
  }

  .track-row__chips {
    grid-column: 1 / -1;
  }

  .track-row__toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .track-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.usage-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(234, 242, 255, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.usage-chip:hover {
  background: rgba(255, 255, 255, 0.09);
}

.usage-chip--muted {
  opacity: 0.65;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle-switch__track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  position: relative;
  transition: background 0.2s ease;
}

.toggle-switch__thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  background: #fff;
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-switch__track {
  background: rgba(0, 255, 157, 0.65);
}

.toggle-switch input:checked + .toggle-switch__track .toggle-switch__thumb {
  transform: translateX(16px);
}

.toggle-switch__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(234, 242, 255, 0.86);
}

.action-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f6ff;
  border-radius: 10px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.action-btn--download {
  border-color: rgba(0, 255, 157, 0.34);
  color: #00ff9d;
}

.action-btn--remove {
  border-color: rgba(255, 90, 90, 0.34);
  color: #ff9c9c;
}

.track-dialog {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0f16;
  color: #fff;
  border-radius: 16px;
  padding: 0;
  width: min(94vw, 460px);
}

.track-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.track-form {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.track-form h2 {
  margin: 0;
  font-family: "Syne", system-ui, sans-serif;
}

.track-form p {
  margin: 0;
  color: rgba(234, 242, 255, 0.7);
  font-size: 0.88rem;
}

.track-form label {
  display: grid;
  gap: 5px;
  font-size: 0.8rem;
  color: rgba(234, 242, 255, 0.86);
}

.track-form input,
.track-form select {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0 10px;
}

.track-form select {
  cursor: pointer;
}

.track-form__checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.track-form__checkbox input {
  min-height: 1px;
  width: 16px;
  height: 16px;
  accent-color: #00ff9d;
}

.track-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}
