:root {
  --bg0: #08000f;
  --bg1: #15001f;
  --bg2: #2a083f;
  --card: rgba(255, 255, 255, .105);
  --card-strong: rgba(255, 255, 255, .15);
  --line: rgba(255, 255, 255, .2);
  --line-soft: rgba(255, 255, 255, .1);
  --text: #fff8fd;
  --muted: rgba(255, 248, 253, .72);
  --soft: rgba(255, 248, 253, .54);
  --hot: #ff4db8;
  --pink: #ff7bd5;
  --violet: #8f5bff;
  --cyan: #47e7ff;
  --gold: #ffd36f;
  --ok: #64f5c8;
  --danger: #ff5470;
  --shadow: 0 28px 90px rgba(0, 0, 0, .48);
  --radius: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 77, 184, .44), transparent 24rem),
    radial-gradient(circle at 86% 12%, rgba(71, 231, 255, .24), transparent 20rem),
    radial-gradient(circle at 50% 95%, rgba(143, 91, 255, .34), transparent 28rem),
    linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 46%, var(--bg2) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
  content: "18 · PAULA · 18 · PAULA · 18 · PAULA · 18 · PAULA";
  position: fixed;
  left: -8vw;
  right: -8vw;
  bottom: 2vh;
  z-index: -1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(58px, 12vw, 180px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255,255,255,.035);
  transform: rotate(-6deg);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(14px);
  opacity: .8;
  pointer-events: none;
}
.orb-a { width: 22rem; height: 22rem; left: -7rem; top: 4rem; background: rgba(255,77,184,.34); }
.orb-b { width: 18rem; height: 18rem; right: -5rem; top: 8rem; background: rgba(71,231,255,.18); }
.orb-c { width: 24rem; height: 24rem; left: 38%; bottom: -12rem; background: rgba(143,91,255,.28); }

.sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 38%, rgba(255,255,255,.72) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.62) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(255,211,111,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 82%, rgba(255,123,213,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 46%, rgba(71,231,255,.68) 0 1px, transparent 2px);
}

.wrap {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hero { text-align: center; padding: 26px 0 20px; }
.hero.compact { padding-bottom: 12px; }
.hero-glass {
  position: relative;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 38px;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 5vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.055)),
    radial-gradient(circle at 50% 0%, rgba(255,211,111,.16), transparent 24rem);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
}
.hero-glass::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-72%);
  pointer-events: none;
}
.hero-glass::after {
  content: "♪";
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  top: clamp(12px, 3vw, 26px);
  font-size: clamp(38px, 7vw, 86px);
  color: rgba(255,255,255,.12);
  transform: rotate(12deg);
}

.kicker, .eyebrow {
  margin: 0;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
}
.side-line {
  width: min(18vw, 160px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}

h1 {
  margin: 10px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(54px, 11vw, 128px);
  line-height: .9;
  letter-spacing: -.055em;
}
h1 span {
  text-shadow: 0 16px 38px rgba(0,0,0,.42);
}
h1 strong {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: clamp(78px, 14vw, 148px);
  height: clamp(78px, 14vw, 148px);
  border-radius: 35% 65% 43% 57% / 52% 36% 64% 48%;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(38px, 7vw, 76px);
  letter-spacing: -.08em;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.65), transparent 22%),
    linear-gradient(135deg, var(--hot), var(--violet) 58%, var(--cyan));
  box-shadow:
    0 24px 70px rgba(255,77,184,.34),
    0 0 0 1px rgba(255,255,255,.24) inset;
  transform: rotate(-7deg);
}
h1 strong::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: inherit;
}

.hero-copy {
  color: var(--muted);
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.mini-rules {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.mini-rules span {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
}

.grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 20px; align-items: start; }
.party-grid { margin-top: 2px; }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.065)),
    rgba(255,255,255,.045);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}
.request-card::after, .queue-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  right: -72px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(255,77,184,.18), transparent 66%);
  pointer-events: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.card h2 {
  margin: 4px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.vinyl-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle, var(--gold) 0 8%, transparent 9% 18%, rgba(255,255,255,.13) 19% 20%, transparent 21%),
    repeating-radial-gradient(circle, rgba(255,255,255,.32) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #09030f, #281436);
  box-shadow: 0 16px 30px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.16);
}
.vinyl-icon span { display: block; width: 100%; height: 100%; border-radius: inherit; background: radial-gradient(circle at 34% 26%, rgba(255,255,255,.35), transparent 20%); }

.pulse-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 8px rgba(100,245,200,.1), 0 0 24px rgba(100,245,200,.7);
}

.field-label {
  display: block;
  margin: 15px 0 8px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.searchbar { display: flex; gap: 10px; align-items: stretch; }
input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(7,0,13,.42);
  color: var(--text);
  outline: none;
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
input::placeholder { color: rgba(255,255,255,.44); }
input:focus {
  border-color: rgba(255,123,213,.84);
  box-shadow: 0 0 0 4px rgba(255,77,184,.14), inset 0 1px 0 rgba(255,255,255,.08);
}

button, .button-link {
  appearance: none;
  border: 0;
  min-height: 50px;
  border-radius: 18px;
  padding: 13px 18px;
  color: white;
  background:
    linear-gradient(135deg, var(--hot), var(--violet) 58%, var(--cyan));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(143,91,255,.26);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
button:hover, .button-link:hover { transform: translateY(-1px); filter: brightness(1.07); }
button:active, .button-link:active { transform: translateY(0); }
button.secondary {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: none;
}
button.danger { background: linear-gradient(135deg, #ff315d, #a91f45); box-shadow: 0 12px 28px rgba(255,49,93,.18); }
button:disabled { opacity: .52; cursor: not-allowed; transform: none; }

.status {
  margin: 14px 0;
  min-height: 23px;
  color: var(--ok);
  font-weight: 900;
  font-size: 14px;
}
.status.error { color: var(--danger); }

.results, .queue { display: grid; gap: 12px; }
.track {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.052));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.track img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 17px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.title {
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.small { font-size: 13px; color: var(--muted); }
.title .small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 7px;
  color: #18000f;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.queue .track { grid-template-columns: 40px 58px minmax(0, 1fr) auto; }
.num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #17001e;
  background: linear-gradient(135deg, var(--gold), #ff8bdc);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(255,211,111,.16);
}
.notice {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(0,0,0,.14);
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.adminbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.admin-list-card { margin-top: 20px; }
.hidden { display: none !important; }
.footer { text-align: center; color: var(--soft); font-size: 13px; margin-top: 20px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .queue-card { order: 2; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 22px, 1180px); padding-top: 16px; }
  .hero-glass { border-radius: 30px; }
  .side-line { display: none; }
  .mini-rules { justify-content: stretch; }
  .mini-rules span { flex: 1 1 auto; text-align: center; }
  .searchbar { flex-direction: column; }
  .track { grid-template-columns: 56px minmax(0, 1fr); }
  .track img { width: 56px; height: 56px; }
  .track button { grid-column: 1 / -1; width: 100%; }
  .queue .track { grid-template-columns: 36px 52px minmax(0, 1fr); }
  .queue .track img { width: 52px; height: 52px; }
  .queue .track button { grid-column: 1 / -1; }
  button, .button-link { width: 100%; }
}

.admin-login-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}
.pin-label {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255,255,255,.75);
}
.pin-input {
  width: 130px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255,255,255,.09);
  outline: none;
  font-weight: 800;
}
.admin-states {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.pill {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 800;
}
.danger-soft {
  border-color: rgba(255, 93, 132, .45) !important;
}

.track-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.track-actions button {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .track-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
