*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #060606;
  --surface: rgba(14, 14, 14, .92);
  --surface-2: rgba(22, 22, 22, .95);
  --border: rgba(212, 175, 55, .14);
  --text: #f5f0e8;
  --muted: #8a8270;
  --accent: #d4af37;
  --accent2: #f0c14b;
  --gold-light: #f5e6a3;
  --accent-glow: rgba(212, 175, 55, 0.18);
  --green: #8fbc6a;
  --red: #e05555;
  --yellow: #ffd700;
  --radius: 12px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Login page ── */
.login-body {
  overflow: hidden;
}

.login-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% -10%, rgba(212, 175, 55, .16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(154, 123, 40, .1), transparent 50%);
}

.login-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: loginOrb 16s ease-in-out infinite;
}

.login-orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(212, 175, 55, .1);
  top: -10%;
  left: -5%;
}

.login-orb-2 {
  width: 260px;
  height: 260px;
  background: rgba(240, 193, 75, .07);
  bottom: -5%;
  right: -5%;
  animation-delay: -6s;
}

@keyframes loginOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
}

.login-spotlight {
  position: absolute;
  top: -30%;
  left: 50%;
  width: 60%;
  height: 80%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent, rgba(212, 175, 55, .08), transparent);
  filter: blur(50px);
  animation: loginSpot 10s ease-in-out infinite alternate;
}

@keyframes loginSpot {
  0% { opacity: .6; transform: translateX(-50%) rotate(-6deg); }
  100% { opacity: 1; transform: translateX(-50%) rotate(6deg); }
}

/* Faded logo art — transparent PNG */
.login-art {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.login-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-art-musisi {
  top: 4%;
  left: 2%;
  width: min(340px, 34vw);
  aspect-ratio: 1;
  opacity: 0;
  animation: artFadeIn 1.4s ease .1s forwards, artFloat 14s ease-in-out 1.5s infinite;
}

.login-art-musisi img {
  opacity: 0.22;
  filter: saturate(1.1) brightness(1.02);
}

.login-art-neon {
  bottom: 2%;
  right: 1%;
  width: min(380px, 38vw);
  aspect-ratio: 1;
  opacity: 0;
  animation: artFadeIn 1.4s ease .25s forwards, artFloatNeon 16s ease-in-out 1.5s infinite;
}

.login-art-neon img {
  opacity: 0.18;
  filter: saturate(1.05) brightness(1.02);
}

.login-art-center {
  top: 50%;
  left: 50%;
  width: min(520px, 55vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: artFadeInCenter 1.8s ease .05s forwards;
}

.login-art-center img {
  opacity: 0.06;
  filter: saturate(1) brightness(1.02);
}

@keyframes artFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes artFadeInCenter {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes artFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}

@keyframes artFloatNeon {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 6px); }
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

.login-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .5),
    0 0 40px rgba(212, 175, 55, .08),
    inset 0 1px 0 rgba(212, 175, 55, .12);
  animation: cardIn .6s cubic-bezier(.22, 1, .36, 1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-brand-image {
  width: min(240px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
}

.login-brand-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(212, 175, 55, .45);
  box-shadow: 0 0 20px rgba(212, 175, 55, .2);
  background: transparent;
}

.login-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px rgba(212, 175, 55, .3);
  animation: markPulse 3s ease-in-out infinite;
}

@keyframes markPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(212, 175, 55, .25); }
  50% { box-shadow: 0 8px 32px rgba(240, 193, 75, .4); }
}

.login-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.login-tag {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-top: .15rem;
}

.login-card h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: .9rem;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.field-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.login-card input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.login-card input::placeholder {
  color: rgba(138, 130, 112, .5);
}

.login-card input:focus {
  border-color: rgba(212, 175, 55, .5);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .12);
}

.error-banner {
  background: rgba(224, 85, 85, .1);
  border: 1px solid rgba(224, 85, 85, .35);
  color: #ff8a8a;
  font-size: .85rem;
  padding: .65rem .85rem;
  border-radius: var(--radius);
  animation: shakeIn .35s ease;
}

@keyframes shakeIn {
  0% { transform: translateX(-4px); opacity: 0; }
  50% { transform: translateX(3px); }
  100% { transform: translateX(0); opacity: 1; }
}

.btn-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--accent));
  color: #1a1408;
  border: none;
  border-radius: var(--radius);
  padding: .95rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  margin-top: .25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}

.btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, .25);
  filter: brightness(1.05);
}

.btn-signin:active {
  transform: scale(.98);
}

.btn-arrow {
  transition: transform .2s;
}

.btn-signin:hover .btn-arrow {
  transform: translateX(3px);
}

.login-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.demo-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.hint-icon {
  color: var(--accent);
  font-size: .7rem;
}

.hint {
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
  line-height: 1.5;
}

.hint strong {
  color: var(--gold-light);
  font-weight: 600;
}

.link-gold {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}

.link-gold:hover {
  color: var(--gold-light);
}

.login-credit {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .04em;
  opacity: .7;
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem 1.35rem 1.5rem;
  }

  .login-logo {
    font-size: 1.4rem;
  }

  .login-art-musisi,
  .login-art-neon {
    width: min(220px, 52vw);
    opacity: 0.85;
  }

  .login-art-musisi img,
  .login-art-neon img {
    opacity: 0.16;
  }

  .login-art-center {
    display: none;
  }
}

@media (max-width: 900px) {
  .login-art-musisi { left: -4%; top: 6%; }
  .login-art-neon { right: -6%; bottom: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .login-card,
  .login-mark,
  .login-orbs span,
  .login-spotlight,
  .login-art {
    animation: none;
  }

  .login-art-musisi img,
  .login-art-neon img,
  .login-art-center img {
    opacity: 0.18;
  }
}

/* Dashboard */
.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.venue-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dj-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.error {
  color: var(--red);
  font-size: 0.9rem;
}

/* Now Playing */
.now-playing {
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.now-playing-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.now-playing-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.now-playing h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.now-playing p {
  opacity: 0.85;
  margin-top: 0.25rem;
}

.btn-done {
  background: white;
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Queue Table */
.queue-section {
  margin-bottom: 2rem;
}

.queue-section h2,
.history-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--muted);
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.queue-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-2);
}

.queue-table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.song-title {
  font-weight: 600;
}

.song-artist {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.singer {
  font-weight: 500;
}

.time {
  color: var(--muted);
  font-size: 0.9rem;
}

.stars {
  color: var(--yellow);
  font-size: 0.9rem;
}

.stars-dim {
  color: var(--border);
}

.actions {
  display: flex;
  gap: 0.4rem;
}

.actions button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-play {
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
}

.btn-bump {
  background: rgba(124, 92, 252, 0.15);
  color: var(--accent);
}

.btn-remove {
  background: rgba(242, 85, 90, 0.15);
  color: var(--red);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem !important;
}

/* History */
.history-list {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
}

.history-item:first-child {
  border-top: none;
}

.history-song {
  flex: 1;
  font-weight: 500;
}

.history-singer {
  color: var(--muted);
  font-size: 0.9rem;
}

.history-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.status-completed {
  background: rgba(61, 214, 140, 0.15);
  color: var(--green);
}

.status-skipped {
  background: rgba(242, 85, 90, 0.15);
  color: var(--red);
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.inline-form {
  display: inline;
  margin: 0;
}

a.btn-ghost {
  text-decoration: none;
  display: inline-block;
}
