.text-dim { color: var(--ink-dim); }
.small { font-size: 0.8rem; }

.login-body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  width: min(380px, 100%);
  padding: 32px;
  border-width: 3px;
  box-shadow: var(--shadow-hard-blue), inset 0 2px 0 0 rgba(255, 255, 255, 0.06);
  position: relative;
  justify-self: center;
  align-self: center;
  margin: auto;
}

.login-body .site-footer {
  position: absolute;
  inset-inline: 16px;
  bottom: 0;
  margin: 0 auto;
}
.discord-login-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), #5865f2;
}
.discord-login-btn:hover { filter: brightness(1.08); }

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, var(--sky) 10px 20px);
}

.tabs-inline {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.tabs-inline .tab-btn {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
#proposals-count-badge,
#dedications-count-badge,
#creator-requests-count-badge {
  display: inline-block;
  margin-left: 5px;
  background: var(--red);
  color: var(--bg);
  border-radius: var(--radius-pill);
  padding: 1px 6px;
  font-size: 0.68rem;
}

.tabs-inline .tab-btn.active {
  color: var(--bg);
  background: var(--sky);
  border-color: var(--sky);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-dim);
}

.form input, .form select, .form textarea,
.upload-row input:not([type="file"]), .upload-row select, .upload-row textarea {
  background: var(--bg-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.form input:focus, .form select:focus, .form textarea:focus,
.upload-row input:focus, .upload-row select:focus, .upload-row textarea:focus {
  outline: none;
  border-color: var(--sky);
}

.upload-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-dim);
}

input[type="file"] {
  background: var(--bg-raised);
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type="file"]:hover {
  border-color: var(--sky);
  color: var(--ink);
}
input[type="file"].dragover {
  border-color: var(--sky);
  border-style: solid;
  background: var(--sky-deep);
  color: var(--sky);
}
input[type="file"]::file-selector-button {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--blue);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 12px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  filter: brightness(1.08);
}

.primary-btn {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--blue);
  color: var(--ink);
  border: 2px solid var(--bg);
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px 0 0 var(--line);
}
.primary-btn:hover { filter: brightness(1.08); }
.primary-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--line); }

.mascot-say-card {
  display: flex;
  gap: 10px;
  padding: 14px;
  align-items: center;
}
.mascot-say-card input {
  flex: 1;
  min-width: 0;
}
.mascot-say-card .primary-btn {
  flex-shrink: 0;
  padding: 11px 18px;
}
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 0 var(--line); }

.secondary-btn {
  background: var(--bg-raised);
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.secondary-btn:hover { border-color: var(--sky); color: var(--sky); }

.danger-btn {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red-deep);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.danger-btn:hover { background: var(--red-deep); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.form-error {
  background: var(--red-deep);
  border: 1px solid rgba(255, 92, 114, 0.4);
  color: var(--red-ink);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.form-success {
  background: var(--sky-deep);
  border: 1px solid rgba(95, 208, 255, 0.4);
  color: var(--sky);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 2px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar .brand-mark {
  padding: 0 6px 18px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nav-btn:hover { color: var(--ink); background: var(--bg-card); }
.nav-btn.active { color: var(--bg); background: var(--sky); }

a.nav-btn {
  display: block;
  text-decoration: none;
  margin-bottom: 10px;
  border: 1.5px solid var(--line);
}
a.nav-btn:hover { color: var(--ink); border-color: var(--ink-dim); background: transparent; }

.nav-spacer { flex: 1; }

.admin-player {
  padding: 12px;
  margin: 4px 0 14px;
  border-width: 2px;
}
.admin-player .row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.admin-player-info input[type="range"] {
  width: 100%;
  accent-color: var(--sky);
}
.mini-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 55%), var(--blue);
  color: var(--ink);
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 0 var(--line);
}
.mini-play-btn:active { transform: translate(1px, 1px); box-shadow: none; }

.user-pill {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-raised);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  font-size: 0.78rem;
  color: var(--ink-dim);
  font-weight: 600;
}
.user-pill #current-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
}
.user-pill-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-pill .username { color: var(--sky); font-weight: 800; text-transform: uppercase; }
.user-pill .secondary-btn { padding: 4px 10px; font-size: 0.72rem; }

.content {
  flex: 1;
  padding: 28px 32px;
  padding-bottom: 100px;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.view { display: none; }
.view.active { display: block; }

.view h2 {
  margin-top: 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  font-size: 1.3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 18px;
  border-width: 2px;
  box-shadow: var(--shadow-hard);
}
.stat-card .label {
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.stat-card .value {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 6px;
  font-family: var(--mono);
}

.regie-floating-reactions {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 200;
}
.regie-floating-reaction {
  position: absolute;
  bottom: 0;
  font-size: 1.8rem;
  animation: regie-float-reaction-up 2.6s ease-out forwards;
}
@keyframes regie-float-reaction-up {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 1; transform: translateY(-10vh) scale(1); }
  100% { transform: translateY(-90vh) scale(1.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .regie-floating-reaction { animation-duration: 0.6s !important; }
}

.regie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.regie-panel {
  padding: 20px;
  border-width: 2px;
}
.regie-panel h3 {
  margin: 0 0 14px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 800;
}

.transport-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.progress-track {
  flex: 1;
  height: 6px;
  background: var(--bg-raised);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  width: 0%;
}
.time-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-dim);
  min-width: 40px;
  font-weight: 700;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.mic-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.big-mic-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--blue);
  color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--line);
}
.big-mic-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--line); }
.big-mic-btn.active { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%), var(--red); }
.big-mic-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.sound-btn {
  background: var(--bg-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.sound-btn:hover { border-color: var(--sky); color: var(--sky); }

.playlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--line);
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.playlist-row .idx { color: var(--ink-faint); font-family: var(--mono); width: 20px; font-weight: 700; }
.playlist-row .grow { flex: 1; }
.playlist-row.is-pub { color: var(--amber); border-left-color: var(--amber); }
.playlist-row.is-jingle { color: var(--sky); border-left-color: var(--sky); }

.table-wrap {
  overflow-x: auto;
}
.identity-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.identity-cell img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.identity-cell .identity-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}
.identity-cell .identity-unknown {
  color: var(--ink-faint);
  font-style: italic;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.data-table th, table.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data-table th {
  color: var(--ink-faint);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table.data-table select {
  background: var(--bg-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}
table.data-table select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
table.data-table .btn-row {
  flex-wrap: wrap;
}
table.data-table .secondary-btn,
table.data-table .danger-btn {
  font-size: 0.72rem;
  padding: 6px 9px;
  white-space: nowrap;
}

.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.toast {
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 320px;
  box-shadow: 4px 4px 0 0 var(--line);
}
.toast.warn { border-color: var(--amber); box-shadow: 4px 4px 0 0 var(--amber); }
.toast.error { border-color: var(--red); box-shadow: 4px 4px 0 0 var(--red); }

.upload-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 0 0 rgba(255, 255, 255, 0.05);
}
.upload-row label { min-width: 140px; }

.upload-submit-btn {
  margin-left: auto;
  white-space: nowrap;
}

.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
  margin-bottom: 8px;
}

.muted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
  margin-bottom: 8px;
}
