/* ==========================================================================
   ANTILAG — landing page
   Dark matte aesthetic, 175 BPM heartbeat (342.86ms), bold corner telemetry,
   GPU-composited animations only (transform / opacity — zero CSS blur filters).
   ========================================================================== */
:root {
  --bg: #0d0d0d;
  --panel: rgba(11, 11, 14, 0.94);
  --ink: #dfe8ff;
  --ink-2: rgba(223, 232, 255, 0.72);
  --ink-3: rgba(223, 232, 255, 0.22);
  --blue: #a8c2f4;
  --hot: #ff2a07;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dot: 'Doto', var(--mono);
  --pad: clamp(18px, 2.8vw, 42px);
  --player-h: 58px;
  --bpm-175: 342.86ms;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--ink); }

body {
  font-family: var(--mono);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }
::selection { background: var(--hot); color: #000; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Stage (native aspect-ratio artwork + drift + parallax + embers) ---- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.bg-wrap {
  position: absolute;
  width: 112%;
  height: 112%;
  top: -6%;
  left: -6%;
  will-change: transform;
}

.bg-drift {
  width: 100%;
  height: 100%;
  animation: bg-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-drift {
  0%   { transform: translate3d(-1.2%, -0.8%, 0) scale(1); }
  50%  { transform: translate3d(0.8%, 0.6%, 0) scale(1.035); }
  100% { transform: translate3d(1.2%, -0.6%, 0) scale(1.015); }
}

.bg { display: block; width: 100%; height: 100%; }
.bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.72;
}

/* subtle 175 BPM crimson accent pulse around viewport edges (opacity only) */
.pulse-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 56%, rgba(255, 42, 7, 0.16) 100%);
  animation: beat-glow var(--bpm-175) cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: opacity;
}

/* subtle dark vignette behind the centre column */
.stage::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 68% 76% at 50% 50%, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0.6) 100%);
}

/* ---- 175 BPM Heartbeat (342.86ms) --------------------------------------- */
@keyframes beat-dot {
  0%   { transform: scale(1.28); opacity: 1; }
  45%  { transform: scale(0.92); opacity: 0.55; }
  100% { transform: scale(1); opacity: 0.85; }
}
@keyframes beat-glow {
  0%   { opacity: 0.75; }
  55%  { opacity: 0.18; }
  100% { opacity: 0.35; }
}

.beat-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: 1px;
  background: var(--hot);
  animation: beat-dot var(--bpm-175) cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform, opacity;
}

/* ---- Turbo spooling loader ---------------------------------------------- */
.boot {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  animation: boot-failsafe 0s 3.5s forwards;
}
.boot.js { animation: none; }
.boot.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.boot.gone { display: none; }
@keyframes boot-failsafe { to { visibility: hidden; } }

.boot__inner {
  display: flex; flex-direction: column; align-items: center;
  width: min(82vw, 280px);
}
.turbo { position: relative; width: min(64vw, 224px); aspect-ratio: 1; }
.turbo__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.turbo__track { stroke: rgba(223, 232, 255, 0.14); stroke-width: 7; stroke-linecap: butt; }
.turbo__redline { stroke: rgba(255, 42, 7, 0.32); stroke-width: 7; stroke-linecap: butt; }
.turbo__arc { stroke: var(--blue); stroke-width: 7; stroke-linecap: butt; transition: stroke 0.18s ease; }
.turbo.hot .turbo__arc { stroke: var(--hot); }
.turbo__housing { stroke: rgba(223, 232, 255, 0.22); stroke-width: 2; fill: rgba(16, 16, 20, 0.85); }
.turbo__housing-inner { stroke: rgba(223, 232, 255, 0.1); stroke-width: 1; }
.turbo__wheel { color: var(--ink); transform-origin: 130px 130px; will-change: transform; }
.turbo.hot .turbo__wheel { color: #fff; }

.turbo__scale {
  position: absolute; left: 16%; right: 16%; bottom: 4%;
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.turbo__scale span:last-child { color: var(--hot); }

.boot__readout {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.boot__bar-val {
  font-family: var(--dot); font-weight: 900;
  font-size: clamp(44px, 10vw, 58px);
  line-height: 1;
  color: var(--ink);
  transition: color 0.18s ease;
}
.turbo-hot .boot__bar-val { color: var(--hot); }
.boot__unit { font-size: 12px; letter-spacing: 0.22em; color: var(--ink-2); }
.boot__msg { margin-top: 8px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-2); }

/* ---- Bold Corner Telemetry HUD ------------------------------------------ */
.hud {
  position: fixed; left: 0; right: 0; z-index: 10;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud--top { top: 0; padding-top: max(var(--pad), env(safe-area-inset-top)); }
.hud--bottom {
  bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: clamp(14px, 2vw, 26px);
}

.tele {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.tele--right { align-items: flex-end; text-align: right; }

.tele__line {
  font-size: clamp(12px, 1.05vw, 17px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(223, 232, 255, 0.88);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tele__line em { font-style: normal; color: var(--hot); margin: 0 2px; }
.tele__brand {
  font-size: clamp(15px, 1.3vw, 21px);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2em;
}
.tele__brand span, .tele__hot { color: var(--hot); }

.tele__actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.hud-btn {
  font: 700 clamp(10px, 0.82vw, 13px)/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--ink-3);
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.hud-btn b { color: var(--hot); }
.hud-btn:hover, .hud-btn:focus-visible { border-color: var(--hot); color: #fff; }
.hud-btn--vault { border-color: rgba(255, 42, 7, 0.6); }
.hud-btn--vault:hover, .hud-btn--vault:focus-visible { background: var(--hot); color: #0a0a0a; }
.hud-btn[aria-pressed='true'] b { color: var(--ink-2); }
.hud-btn:active { transform: scale(0.97); }
.hud-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- Centre column ------------------------------------------------------ */
.center {
  position: relative; z-index: 5;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 16px calc(var(--player-h) + 115px);
}

.logo {
  margin: 0;
  width: min(82vw, 620px);
  position: relative;
  line-height: 0;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.ready .logo { opacity: 1; transform: translate3d(0, 0, 0); }

.logo img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 28px 80px -24px rgba(255, 42, 7, 0.48);
}

.logo::before, .logo::after {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/logo.jpg') center / 100% 100%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.logo::before { animation: glitch-a 7s steps(1, end) infinite; }
.logo::after  { animation: glitch-b 7s steps(1, end) infinite; }

@keyframes glitch-a {
  0%, 92%, 100% { opacity: 0; transform: translate3d(0, 0, 0); clip-path: inset(0); }
  93% { opacity: 1; clip-path: inset(12% 0 66% 0); transform: translate3d(-12px, 0, 0); }
  95% { opacity: 1; clip-path: inset(56% 0 24% 0); transform: translate3d(9px, 0, 0); }
  97% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 93%, 100% { opacity: 0; transform: translate3d(0, 0, 0); clip-path: inset(0); }
  94% { opacity: 1; clip-path: inset(70% 0 10% 0); transform: translate3d(10px, 0, 0); }
  96% { opacity: 1; clip-path: inset(20% 0 68% 0); transform: translate3d(-7px, 0, 0); }
  98% { opacity: 0; }
}

/* ---- Social Links ------------------------------------------------------- */
.links {
  list-style: none;
  margin: clamp(28px, 5vh, 48px) 0 0;
  padding: 0;
  width: min(92vw, 560px);
  display: grid; gap: 10px;
}

.links li {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ready .links li { opacity: 1; transform: translate3d(0, 0, 0); }
.ready .links li:nth-child(1) { transition-delay: 0.08s; }
.ready .links li:nth-child(2) { transition-delay: 0.15s; }
.ready .links li:nth-child(3) { transition-delay: 0.22s; }

.link {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  grid-template-columns: auto 24px 1fr 16px;
  align-items: center; gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(11, 11, 13, 0.88);
  border: 1px solid var(--ink-3);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.22s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.link::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.link:hover::before, .link:focus-visible::before { transform: scaleX(1); }
.link:hover, .link:focus-visible { color: #0a0a0a; border-color: var(--hot); }
.link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.link:active { transform: scale(0.988); }

.link__n { font-size: 11px; color: var(--ink-2); transition: color 0.2s ease; }
.link__icon svg { display: block; width: 24px; height: 24px; }
.link__name {
  font-family: var(--dot); font-weight: 900;
  font-size: clamp(21px, 3.3vw, 27px);
  letter-spacing: 0.06em; line-height: 1;
  white-space: nowrap;
}
.link__handle { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); transition: color 0.2s ease; }
.link__arrow svg { display: block; width: 16px; height: 16px; transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1); }

.link:hover .link__n, .link:hover .link__handle,
.link:focus-visible .link__n, .link:focus-visible .link__handle { color: rgba(10, 10, 10, 0.74); }
.link:hover .link__arrow svg, .link:focus-visible .link__arrow svg { transform: translate3d(3px, -3px, 0); }

/* ---- Bottom Bar Audio Player + Tracklist Drawer ------------------------- */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: calc(var(--player-h) + env(safe-area-inset-bottom));
  padding: 0 max(16px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 1.5fr) auto;
  align-items: center;
  gap: 16px;
  background: rgba(10, 10, 12, 0.96);
  border-top: 1px solid rgba(255, 42, 7, 0.55);
}

.player__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__cover {
  width: 40px; height: 40px; flex: none;
  object-fit: cover;
  border: 1px solid var(--ink-3);
  background: #0d0d10;
}

.player__controls { display: flex; align-items: center; gap: 4px; flex: none; }
.pl-btn {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.pl-btn svg { width: 14px; height: 14px; }
.pl-btn:hover { color: var(--hot); }
.pl-btn--play {
  width: 34px; height: 34px;
  border-color: var(--hot);
  background: var(--hot);
  color: #0a0a0a;
}
.pl-btn--play:hover { color: #0a0a0a; opacity: 0.9; }
.pl-btn--play .ic-pause { display: none; }
.pl-btn--play.is-playing .ic-play { display: none; }
.pl-btn--play.is-playing .ic-pause { display: block; }

.player__meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.player__badge {
  flex: none;
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  padding: 2px 5px;
  background: var(--hot); color: #0a0a0a;
}
.player__title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.player__center { display: flex; align-items: center; gap: 12px; min-width: 0; }
.scrub { position: relative; flex: 1; height: 22px; display: flex; align-items: center; }
.scrub__track {
  position: relative; width: 100%; height: 4px;
  background: rgba(223, 232, 255, 0.18);
  overflow: hidden;
}
.scrub__fill {
  position: absolute; inset: 0;
  background: var(--hot);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}
.scrub__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}

.player__time {
  flex: none;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.player__right { display: flex; align-items: center; gap: 14px; }
.player__viz { display: block; width: 118px; height: 28px; }

.pl-drawer-btn {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-3);
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.pl-drawer-btn b { color: var(--hot); margin-left: 4px; }
.pl-drawer-btn:hover, .pl-drawer-btn[aria-expanded='true'] {
  border-color: var(--hot);
  background: var(--hot);
  color: #0a0a0a;
}
.pl-drawer-btn:hover b, .pl-drawer-btn[aria-expanded='true'] b { color: #0a0a0a; }

/* Tracklist Drawer */
.drawer {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--player-h) + env(safe-area-inset-bottom) + 8px);
  z-index: 29;
  width: min(calc(100vw - 32px), 440px);
  max-height: min(52vh, 380px);
  display: flex; flex-direction: column;
  background: rgba(11, 11, 14, 0.97);
  border: 1px solid rgba(255, 42, 7, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.drawer.is-open { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }

.drawer__head {
  padding: 12px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  border-bottom: 1px solid var(--ink-3);
  color: var(--ink-2);
}
.drawer__head em { font-style: normal; color: var(--hot); }

.track-list {
  list-style: none; margin: 0; padding: 6px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}

.track-row {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 36px 1fr auto;
  align-items: center; gap: 12px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  font: 700 12px/1.2 var(--mono);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.track-row:hover { background: rgba(223, 232, 255, 0.06); border-color: var(--ink-3); }
.track-row.is-active { background: rgba(255, 42, 7, 0.16); border-color: var(--hot); }
.track-row__idx { font-size: 11px; color: var(--ink-2); }
.track-row__art { width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--ink-3); }
.track-row__title { text-transform: uppercase; letter-spacing: 0.08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row__tag, .track-row__meta { font-size: 10px; letter-spacing: 0.12em; color: var(--ink-2); }
.track-empty { padding: 18px 12px; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-2); text-align: center; }

/* ---- Dubplate Vault Modal ----------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(5, 5, 7, 0.84);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  will-change: opacity;
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__box {
  width: min(100%, 520px);
  max-height: 86svh;
  display: flex; flex-direction: column;
  overflow-y: auto;
  background: #0d0d10;
  border: 1px solid var(--hot);
  padding: 22px;
  transform: translate3d(0, 12px, 0);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), width 0.2s ease;
  will-change: transform;
}
.modal__box.is-admin { width: min(100%, 680px); }
.modal.is-open .modal__box { transform: translate3d(0, 0, 0); }

.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-3);
}
.modal__title {
  margin: 0;
  font-size: 14px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.modal__title em { font-style: normal; color: var(--hot); }
.modal__close {
  background: transparent; border: 1px solid var(--ink-3); color: var(--ink);
  width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer;
}
.modal__close:hover { border-color: var(--hot); color: var(--hot); }

.modal__desc {
  margin: 16px 0;
  font-size: 11px; line-height: 1.6; letter-spacing: 0.12em; color: var(--ink-2);
}

.vault-form { display: flex; gap: 8px; }
.vault-input {
  flex: 1;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--ink);
  background: #070709;
  border: 1px solid var(--ink-3);
  padding: 12px 14px;
}
.vault-input:focus { outline: none; border-color: var(--hot); }
.vault-submit {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.18em;
  color: #0a0a0a;
  background: var(--hot);
  border: 1px solid var(--hot);
  padding: 0 18px;
  cursor: pointer;
}
.vault-submit:hover { opacity: 0.9; }
.vault-err {
  min-height: 18px;
  margin: 12px 0 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--hot);
}

.vault-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 12px;
}
.vault-bar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vault-tabs { display: flex; gap: 4px; }
.vault-tab {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--ink-3);
  padding: 9px 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.vault-tab:hover { border-color: var(--hot); color: var(--ink); }
.vault-tab.is-active { background: var(--hot); border-color: var(--hot); color: #0a0a0a; }

.vault-status { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink); }
.vault-list { max-height: 46svh; padding: 0; }
.vault-item { display: flex; align-items: center; gap: 6px; }
.vault-item .track-row { flex: 1; min-width: 0; }
.vault-dl {
  flex: none;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink-3);
  padding: 11px 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.vault-dl:hover { border-color: var(--hot); background: var(--hot); color: #0a0a0a; }

/* ---- Admin Panel inside Dubplate Vault ---------------------------------- */
.admin-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  background: #08080b;
  border: 1px solid var(--ink-3);
}
.admin-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.admin-label { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink-2); }
.admin-pass-wrap { display: flex; gap: 6px; }
.admin-pass-wrap .vault-input { min-width: 0; padding: 10px 10px; font-size: 12px; }
.admin-pass-wrap .hud-btn { padding: 8px 9px; font-size: 10px; flex: none; }

.admin-checks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 2px;
}
.admin-checks-actions { display: flex; gap: 6px; }
.admin-mini {
  font: 700 10px/1 var(--mono); letter-spacing: 0.14em;
  color: var(--ink-2); background: transparent;
  border: 1px solid var(--ink-3); padding: 4px 8px; cursor: pointer;
}
.admin-mini:hover { border-color: var(--hot); color: var(--ink); }

.admin-checks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px;
  max-height: 150px; overflow-y: auto;
  padding: 8px;
  background: #050507;
  border: 1px solid rgba(223, 232, 255, 0.12);
}
.admin-check {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}
.admin-check:hover { background: rgba(223, 232, 255, 0.05); border-color: var(--ink-3); }
.admin-check input { accent-color: var(--hot); width: 14px; height: 14px; cursor: pointer; flex: none; }
.admin-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }

.admin-submit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-save { padding: 11px 16px; }
.admin-msg { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--hot); }

.admin-keys-head {
  margin: 16px 0 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink-2);
}
.admin-keys {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 180px; overflow-y: auto;
}
.admin-key-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: #08080b;
  border: 1px solid var(--ink-3);
}
.admin-key-info { min-width: 0; }
.admin-key-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-key-meta { display: block; margin-top: 2px; font-size: 10px; letter-spacing: 0.12em; color: var(--ink-2); }
.admin-key-del:hover { background: var(--hot); color: #0a0a0a; border-color: var(--hot); }

@media (max-width: 600px) {
  .admin-row { grid-template-columns: 1fr; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 820px) {
  .player { grid-template-columns: 1fr auto; gap: 10px; }
  .player__center { display: none; }
  .player__viz { width: 72px; }
}

@media (max-width: 600px) {
  .hud--top { flex-direction: column; gap: 10px; }
  .tele--right { align-items: flex-start; text-align: left; }
  .hud--bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tele--bottom { display: none; }
  .link { grid-template-columns: 22px 1fr 16px; gap: 12px; padding: 15px 16px; }
  .link__n { display: none; }
  .player__viz { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo, .links li { opacity: 1 !important; transform: none !important; }
}
