/* ============ DoloHype portal — design system ============ */
:root {
  --bg0: #0b0a14;
  --bg1: #171233;
  --violet: #7c3aed;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --text: #eeeaf8;
  --muted: #a49cc4;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);
  --danger: #f43f5e;
  --ok: #34d399;
  --radius: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}
body.start, body.dash, body.auth {
  background:
    radial-gradient(1200px 700px at 15% -10%, #2a1657 0%, transparent 55%),
    radial-gradient(1000px 800px at 110% 20%, #4c1d5f 0%, transparent 50%),
    radial-gradient(900px 900px at 50% 120%, #1e1b4b 0%, transparent 55%),
    linear-gradient(160deg, var(--bg0) 0%, var(--bg1) 55%, #0e1230 100%);
  background-attachment: fixed;
}
code, .kv code { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; }

/* --- animated glows --- */
.bg-glows { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 18s ease-in-out infinite alternate; }
.g1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 65%); }
.g2 { width: 40vw; height: 40vw; right: -10vw; top: 22vh; background: radial-gradient(circle, rgba(236, 72, 153, 0.42), transparent 65%); animation-delay: -6s; }
.g3 { width: 36vw; height: 36vw; left: 30vw; bottom: -16vw; background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%); animation-delay: -12s; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, -3vh, 0) scale(1.12); } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* ============ Start page ============ */
.start { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 48px 20px 40px; }
.brand { text-align: center; margin-bottom: 26px; }
.brand-row { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 14px; }
.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 700; letter-spacing: 0.06em; margin: 0;
  background: linear-gradient(92deg, #fff 10%, #c4b5fd 45%, #f9a8d4 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(124, 58, 237, 0.35));
}
.wordmark span { background: linear-gradient(92deg, #a78bfa, #f472b6 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark.small { font-size: 24px; text-decoration: none; }
.tagline { color: var(--muted); font-size: 15px; margin: 8px 0 0; letter-spacing: 0.02em; }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--glass-border); color: var(--muted);
}
.live-pill.on { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.55); color: #fda4af; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.live-pill.on .live-dot { background: var(--danger); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }
.listeners { font-size: 12.5px; color: var(--muted); }

.onair-card { padding: 26px 26px 22px; position: relative; overflow: hidden; }
.onair-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.onair-badge {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 0.08em;
  color: #6b7280;
}
.onair-badge.live { color: #fb7185; text-shadow: 0 0 26px rgba(244, 63, 94, 0.65); }
.onair-sub { color: var(--muted); font-size: 13.5px; }

.track { display: flex; gap: 18px; align-items: center; margin-top: 18px; }
.art {
  width: 108px; height: 108px; border-radius: 16px; object-fit: cover; flex: none;
  background: #241b3f; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.track-meta { min-width: 0; }
.dj-line { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: #c4b5fd; margin-bottom: 6px; }
.dj-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; overflow: hidden;
}
.dj-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dj-avatar.has-pfp { display: none; }
.dj-pfp {
  width: 26px; height: 26px; border-radius: 50%; flex: none; object-fit: cover;
  border: 1.5px solid rgba(196, 181, 253, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.dj-pfp[hidden] { display: none; }
.song-title { font-size: clamp(19px, 3.4vw, 25px); font-weight: 700; line-height: 1.2; word-break: break-word; }
.song-artist { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* equalizer */
.eq { position: absolute; top: 22px; right: 24px; display: flex; gap: 4px; align-items: flex-end; height: 30px; opacity: 0; transition: opacity 0.4s; }
.eq.on { opacity: 1; }
.eq i { width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--violet)); animation: bounce 0.9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.eq i:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.eq i:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.eq i:nth-child(5) { height: 65%; animation-delay: 0.6s; }
.eq i:nth-child(6) { height: 90%; animation-delay: 0.75s; }
.eq i:nth-child(7) { height: 45%; animation-delay: 0.9s; }
@keyframes bounce { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

/* player */
.player { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.play-btn {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45); transition: transform 0.15s, box-shadow 0.15s;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(236, 72, 153, 0.5); }
.play-btn.playing { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.player-bar { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.player-label { font-size: 12px; letter-spacing: 0.16em; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.eq-mini { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq-mini i { width: 3px; background: var(--cyan); border-radius: 2px; animation: bounce 0.8s ease-in-out infinite; }
.eq-mini i:nth-child(1) { height: 60%; } .eq-mini i:nth-child(2) { height: 100%; animation-delay: .2s; } .eq-mini i:nth-child(3) { height: 45%; animation-delay: .4s; }
input[type='range'] { width: 100%; accent-color: var(--pink); }

/* schedule chips */
.schedule-card { padding: 20px 24px; margin-top: 18px; }
.schedule-card[hidden] { display: none; }
.card-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.03em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-hint { color: var(--muted); font-weight: 400; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: rgba(124, 58, 237, 0.18); border: 1px solid rgba(167, 139, 250, 0.4); color: #ddd6fe;
}
.chip.muted { background: rgba(255, 255, 255, 0.05); border-color: var(--glass-border); color: var(--muted); }
.chip.now { background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(124, 58, 237, 0.35)); border-color: var(--pink); color: #fbcfe8; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 24px; border-radius: 14px; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn.primary { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(236, 72, 153, 0.45); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--glass-border); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.danger { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.5); color: #fda4af; }
.btn.danger:hover { background: rgba(244, 63, 94, 0.3); }
.btn.discord { background: #5865f2; color: #fff; width: 100%; }
.btn.discord:hover { background: #4752c4; }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 34px; opacity: 0.75; }

/* ============ Discord banner (heavily advertised) ============ */
.discord-banner {
  position: relative; overflow: hidden; margin-top: 18px; padding: 22px 24px;
  background: linear-gradient(120deg, rgba(88, 101, 242, 0.34) 0%, rgba(124, 58, 237, 0.26) 45%, rgba(236, 72, 153, 0.2) 100%);
  border-color: rgba(139, 152, 255, 0.45);
  box-shadow: 0 20px 50px rgba(88, 101, 242, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation: discord-breathe 4.5s ease-in-out infinite;
}
@keyframes discord-breathe {
  0%, 100% { box-shadow: 0 18px 44px rgba(88, 101, 242, 0.26), inset 0 1px 0 rgba(255,255,255,0.12); }
  50%      { box-shadow: 0 24px 62px rgba(88, 101, 242, 0.46), inset 0 1px 0 rgba(255,255,255,0.18); }
}
.discord-glow {
  position: absolute; top: -60%; right: -10%; width: 55%; height: 220%;
  background: radial-gradient(circle, rgba(139, 152, 255, 0.5), transparent 65%);
  filter: blur(38px); pointer-events: none;
}
.discord-pulse {
  position: absolute; left: 24px; top: 26px; width: 10px; height: 10px; border-radius: 50%;
  background: #57f287; box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.7); animation: pulse 1.8s infinite;
}
.discord-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.discord-icon {
  width: 58px; height: 58px; flex: none; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #5865f2; color: #fff; box-shadow: 0 12px 28px rgba(88, 101, 242, 0.55);
}
.discord-icon svg { width: 32px; height: 32px; }
.discord-copy { flex: 1; min-width: 220px; }
.discord-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: #a5b4fc; }
.discord-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(19px, 3.4vw, 25px);
  font-weight: 700; line-height: 1.15; margin-top: 3px;
}
.discord-sub { color: #cdd2ff; font-size: 13.5px; margin-top: 5px; line-height: 1.45; }
.btn.discord-cta {
  background: #fff; color: #3131a8; font-weight: 700; padding: 14px 26px; border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); white-space: nowrap;
}
.btn.discord-cta:hover { transform: translateY(-2px); background: #f1f2ff; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36); }

/* ============ other socials ============ */
.social-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.social-chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.social-chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.13); border-color: rgba(167, 139, 250, 0.55); }
.social-chip svg { opacity: 0.9; }

/* ============ Auth pages ============ */
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 430px; padding: 36px 32px; text-align: center; }
.auth-logo { font-size: 44px; margin-bottom: 6px; }
.auth-card h1 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.alert {
  margin: 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; text-align: left;
  background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.45); color: #fecdd3;
}
.alert.info { background: rgba(34, 211, 238, 0.09); border-color: rgba(34, 211, 238, 0.4); color: #a5f3fc; }
.back-link { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.back-link:hover { color: var(--text); }
.pending-avatar { width: 76px; height: 76px; border-radius: 50%; border: 3px solid rgba(167, 139, 250, 0.6); margin-bottom: 10px; }

/* ============ Dashboard ============ */
.dash-head {
  position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 22px 20px 4px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.dash-head .brand-row { justify-content: flex-start; margin: 0; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.uavatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, 0.55); }
.userbox form { margin: 0; }

.dash { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 14px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border); transition: all 0.15s;
}
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

.card { padding: 24px; scroll-margin-top: 16px; }
.card .card-title { font-size: 18px; margin-bottom: 6px; }
.sub-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }

.kv { width: 100%; border-collapse: collapse; margin-top: 12px; }
.kv th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 9px 10px; width: 170px; vertical-align: top; }
.kv td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 14.5px; word-break: break-all; }
.kv code { background: rgba(0, 0, 0, 0.35); padding: 4px 8px; border-radius: 8px; font-size: 13.5px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

.mini {
  font-size: 11.5px; padding: 3px 9px; border-radius: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.09); border: 1px solid var(--glass-border); color: var(--text);
}
.mini:hover { background: rgba(255, 255, 255, 0.18); }

.badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: var(--muted); vertical-align: middle;
}
.badge.live { background: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.5); }
.badge.shift { background: rgba(34, 211, 238, 0.15); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, 0.4); }
.badge.ok { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.badge.off { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* slots grid */
.date-nav { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 14px; }
.slot {
  border-radius: 12px; padding: 10px 8px; cursor: pointer; text-align: center;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.045); color: var(--text);
  font-family: inherit; transition: all 0.12s;
}
.slot .slot-h { display: block; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.slot .slot-o { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.free:hover { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.55); transform: translateY(-1px); }
.slot.taken { background: rgba(124, 58, 237, 0.2); border-color: rgba(167, 139, 250, 0.45); cursor: not-allowed; }
.slot.taken .slot-o { color: #c4b5fd; font-weight: 600; }
.slot.taken.mine { background: rgba(236, 72, 153, 0.24); border-color: rgba(236, 72, 153, 0.6); cursor: pointer; }
.slot.taken.mine .slot-o { color: #fbcfe8; }
.slot.past { opacity: 0.35; cursor: not-allowed; }

/* clock */
.clock-status { font-size: 15.5px; color: var(--muted); margin: 12px 0 14px; }
.clock-status.on { color: #6ee7b7; }
.clock-elapsed { font-variant-numeric: tabular-nums; opacity: 0.85; }
.chip-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* admin tables */
.grid { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.grid th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.grid td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: middle; }
.grid tr.inactive td { opacity: 0.5; }
.row-actions { text-align: right; white-space: nowrap; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.inline-form input {
  flex: 1; min-width: 180px; padding: 11px 13px; border-radius: 11px; font-size: 14px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border); color: var(--text);
}
.inline-form input:focus { outline: none; border-color: rgba(167, 139, 250, 0.7); }

/* social links admin */
.social-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.social-field { display: flex; flex-direction: column; gap: 6px; }
.social-field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.social-field input {
  padding: 11px 13px; border-radius: 11px; font-size: 14px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border); color: var(--text);
}
.social-field input:focus { outline: none; border-color: rgba(167, 139, 250, 0.7); }
.social-field.primary { grid-column: 1 / -1; }
.social-field.primary input {
  border-color: rgba(88, 101, 242, 0.55);
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.14), rgba(124, 58, 237, 0.1));
  font-size: 15px; font-weight: 600;
}
.social-form .row-actions { grid-column: 1 / -1; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 80px);
  background: #111827; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 22px; border-radius: 13px; font-size: 14.5px; font-weight: 500;
  opacity: 0; transition: all 0.3s; z-index: 50; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: #7f1d1d; border-color: #f43f5e; }

@media (max-width: 640px) {
  .track { flex-direction: column; text-align: center; }
  .dj-line { justify-content: center; }
  .onair-card { padding: 20px 16px; }
  .eq { display: none; }
  .kv th { width: auto; display: block; padding-bottom: 2px; border: none; }
  .kv td { display: block; padding-top: 2px; }
  .grid thead { display: none; }
  .grid td { display: block; border: none; padding: 4px 0; }
  .grid tr { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .row-actions { text-align: left; }
}
