:root {
  --accent: #db9c96;
  --accent2: #cc3366;
  --bg: #0d0e10;
  --ink: #ffffff;
  --muted: #a0a5ad;
  --card: #191b1e;
  --line: #2b2e34;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 120px; }
.wrap.narrow { max-width: 460px; padding-top: 8vh; }

/* header — white pill like the main site nav */
.site-head { text-align: center; padding: 34px 16px 10px; }
.brand-pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #111; border-radius: 26px; padding: 14px 30px;
}
.brand-pill img.logo { max-height: 52px; max-width: 220px; display: block; }
.logo-solo { max-height: 110px; max-width: 300px; display: inline-block; border-radius: 14px; }
.brand-pill .brand-name { font-weight: 700; font-size: 22px; letter-spacing: .01em; color: #111; }
.brand-pill .wave { color: #111; font-size: 20px; line-height: 1; }
.site-head .tagline { color: var(--muted); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; margin-top: 14px; }

.event-hero { text-align: center; margin: 26px 0 8px; }
.event-hero h1 { font-weight: 600; font-size: clamp(30px, 5vw, 46px); letter-spacing: .01em; }
.event-hero .date { color: var(--muted); margin-top: 6px; letter-spacing: .08em; }
.event-hero .note { max-width: 560px; margin: 14px auto 0; color: var(--ink); font-weight: 300; }
.rule { width: 64px; height: 3px; background: var(--accent); margin: 20px auto; border-radius: 3px; }

/* cards & buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 14px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 24px; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn.small { padding: 7px 15px; font-size: 13px; }
.btn.danger { background: transparent; color: #e07a70; border: 1px solid #5a3532; }
.btn.danger:hover { background: #b0483f; color: #fff; border-color: #b0483f; }
.center { text-align: center; }

input[type=text], input[type=password], input[type=date], input[type=url], textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: var(--bg); color: var(--ink); font-family: inherit;
  color-scheme: dark;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 5px; }
.error { background: #2a1715; border: 1px solid #5a3532; color: #eda49c; border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.success { background: #16241a; border: 1px solid #2e4d36; color: #9fd3ab; border-radius: 10px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }

/* message list */
.track { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.track:last-child { border-bottom: 0; }
.track .num { color: var(--muted); font-size: 13px; width: 22px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.track .play {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: transparent; color: var(--accent); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.track .play:hover, .track.playing .play { background: var(--accent); color: #fff; }
.track .meta { flex: 1; min-width: 0; }
.track .title { font-weight: 500; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track .sub { color: var(--muted); font-size: 12.5px; }
.track.playing .title { color: var(--accent); }
.track .dl { flex: none; color: var(--muted); font-size: 18px; padding: 6px; }
.track .dl:hover { color: var(--accent); text-decoration: none; }

/* sticky player */
.playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--card);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.4);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none;
}
.playerbar.active { display: block; }
.playerbar .inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.playerbar .ctl { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 15px; cursor: pointer; flex: none; }
.playerbar .skip { background: transparent; color: var(--ink); border: 0; font-size: 17px; cursor: pointer; flex: none; padding: 6px; }
.playerbar .info { min-width: 0; flex: none; width: 180px; }
.playerbar .info .t { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playerbar .info .d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.playerbar input[type=range] { flex: 1; accent-color: var(--accent); }
@media (max-width: 560px) { .playerbar .info { width: 110px; } }

/* admin bits */
.admin-nav { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-nav .spacer { flex: 1; }
.admin-nav .brand-name { font-weight: 600; font-size: 19px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #16241a; color: #9fd3ab; }
.pill.warn { background: #2b2314; color: #e5c27a; }
.pill.mut { background: #24262b; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: none; }
.grow { flex: 1 !important; min-width: 200px; }
.copybox { display: flex; gap: 8px; align-items: center; background: rgba(219,156,150,.08); border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.copybox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone {
  border: 2px dashed var(--line); border-radius: 16px; padding: 34px; text-align: center;
  color: var(--muted); transition: all .15s; cursor: pointer; background: var(--card);
}
.dropzone.drag { border-color: var(--accent); background: rgba(219,156,150,.06); color: var(--accent); }
.footer { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 40px; }

/* video messages */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 14px 0; }
.video-tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.video-tile video { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; background: #000; }
.video-tile .video-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.video-tile .title { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-tile .dl { color: var(--muted); font-size: 17px; }
.video-tile .dl:hover { color: var(--accent); text-decoration: none; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
h2.section { font-weight: 600; font-size: 22px; margin: 26px 0 8px; }
