/* ==========================================================================
   NERVE — minimal redesign
   home → click → player | watcher
   ========================================================================== */

:root {
  --bg:       #000;
  --ink:      #ffffff;
  --dim:      rgba(255, 255, 255, 0.55);
  --faint:    rgba(255, 255, 255, 0.18);

  --pink:     #ff10f0;
  --cyan:     #00f0ff;
  --green:    #28ff75;
  --yellow:   #ffe600;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }

/* ==========================================================================
   BACKGROUND VIDEO + OVERLAYS
   ========================================================================== */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.85);
}
.bg__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 65% at 50% 45%, rgba(0,0,0,0.10), rgba(0,0,0,0.55) 95%),
    linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.55) 100%);
}
.bg__scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 3px,
    rgba(0,0,0,0.14) 4px,
    rgba(0,0,0,0.14) 5px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* slightly darker on sub-views so cards still pop, but not pitch black */
body[data-view="player"]  .bg video,
body[data-view="watcher"] .bg video { filter: saturate(1.1) brightness(0.6); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
}

.links { display: flex; gap: 18px; }
.link {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--dim);
  transition: color 0.18s, text-shadow 0.18s;
}
.link:hover { color: var(--ink); text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   VIEW SYSTEM
   ========================================================================== */
.view {
  position: fixed;
  inset: 0;
  padding-top: 70px;
  display: grid;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
body[data-view="home"]    .view--home,
body[data-view="player"]  .view--player,
body[data-view="watcher"] .view--watcher {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   HOME
   ========================================================================== */
.view--home {
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 32px;
  padding: 24px;
}

.logo {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--pink);
  text-shadow:
    0 0 12px var(--pink),
    0 0 32px var(--pink),
    0 0 72px rgba(255, 16, 240, 0.55);
  user-select: none;
  position: relative;
}
.logo::before, .logo::after {
  content: "NERVE";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
}
.logo::before { color: var(--cyan); transform: translate(-2px, 0); mix-blend-mode: screen; animation: glitchA 7s steps(1) infinite; }
.logo::after  { color: var(--yellow); transform: translate(2px, 0); mix-blend-mode: screen; animation: glitchB 7s steps(1) infinite; }
@keyframes glitchA { 0%,93%,100% { opacity: 0; } 94% { opacity: 0.7; transform: translate(-3px, 1px); } 96% { opacity: 0; } }
@keyframes glitchB { 0%,93%,100% { opacity: 0; } 95% { opacity: 0.7; transform: translate(3px, -1px); } 97% { opacity: 0; } }

.prompt {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--ink);
  opacity: 0.85;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-or {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink);
  opacity: 0.7;
}

.cta-btn {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.18em;
  padding: 18px 0;
  min-width: 280px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid currentColor;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, text-shadow 0.22s ease;
  position: relative;
  text-align: center;
  will-change: transform;
}
.cta-btn--watcher {
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.85);
  box-shadow: 0 0 18px rgba(255, 16, 240, 0.35), inset 0 0 24px rgba(255, 16, 240, 0.12);
}
.cta-btn--player {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.85);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35), inset 0 0 24px rgba(0, 240, 255, 0.12);
}

/* "pop" hover: lift, scale, brighter glow — text stays in its neon color */
.cta-btn:hover { transform: translateY(-4px) scale(1.04); }
.cta-btn--watcher:hover {
  background: rgba(255, 16, 240, 0.14);
  text-shadow: 0 0 16px var(--pink), 0 0 32px rgba(255, 16, 240, 0.7);
  box-shadow: 0 0 38px rgba(255, 16, 240, 0.6), inset 0 0 36px rgba(255, 16, 240, 0.22);
}
.cta-btn--player:hover {
  background: rgba(0, 240, 255, 0.14);
  text-shadow: 0 0 16px var(--cyan), 0 0 32px rgba(0, 240, 255, 0.7);
  box-shadow: 0 0 38px rgba(0, 240, 255, 0.6), inset 0 0 36px rgba(0, 240, 255, 0.22);
}
.cta-btn:active { transform: translateY(-1px) scale(1.01); }

.watermark {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  filter: saturate(1.4);
  animation: wm 5s ease-in-out infinite;
}
@keyframes wm {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.20; }
}
body:not([data-view="home"]) .watermark { display: none; }


/* ==========================================================================
   SUB-VIEW HEADER + PAGER (shared by player & watcher)
   ========================================================================== */
.view--player, .view--watcher {
  grid-template-rows: auto 1fr auto;
  padding: 78px 32px 18px;
  gap: 18px;
}
.view--player  { grid-template-rows: auto 1fr auto auto; gap: 14px; padding-bottom: 14px; }
.view--watcher { grid-template-rows: auto 1fr auto;      gap: 14px; padding: 70px 24px 14px; }

/* watcher disclaimer */
.disclaimer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.view__head {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 12px;
}
.back {
  justify-self: start;
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--dim);
  padding: 8px 12px;
  border: 1px solid var(--faint);
  transition: color 0.18s, border-color 0.18s;
}
.back::before { content: "\2039"; margin-right: 8px; font-size: 14px; }
.back:hover   { color: var(--ink); border-color: var(--ink); }

.view__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.4em;
  text-align: center;
  color: var(--ink);
}
body[data-view="player"]  .view__title { color: var(--cyan); text-shadow: 0 0 14px rgba(0, 240, 255, 0.6); }
body[data-view="watcher"] .view__title { color: var(--pink); text-shadow: 0 0 14px rgba(255, 16, 240, 0.6); }

.view__count {
  justify-self: end;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.pager__btn {
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--dim);
  padding: 8px 16px;
  border: 1px solid var(--faint);
  transition: color 0.18s, border-color 0.18s;
}
.pager__btn:hover:not(:disabled)    { color: var(--ink); border-color: var(--ink); }
.pager__btn:disabled                { opacity: 0.25; cursor: not-allowed; }
.pager__num {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink);
  min-width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-content: center;
  align-items: stretch;
  min-height: 0;
}

@media (max-width: 1280px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   BOUNTY CARD (player)
   ========================================================================== */
.bounty {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto auto auto;
  aspect-ratio: 1 / 1;
  gap: 6px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--faint);
  padding: 0 0 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: cardIn 0.4s ease both;
  min-width: 0;
  overflow: hidden;
}
.bounty:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.18);
  transform: translateY(-3px);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bounty__media {
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--faint);
  min-height: 0;
}
.bounty__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.1);
}

.bounty__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--dim);
  padding: 10px 14px 0;
}
.bounty__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--ink);
  padding: 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bounty__brief {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--dim);
  padding: 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bounty__prize {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--green);
  text-shadow: 0 0 14px rgba(40, 255, 117, 0.45);
  padding: 4px 14px 0;
}

.bounty__cta {
  margin: 6px 14px 0;
  padding: 10px 0;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.bounty__cta:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.55);
}

/* ==========================================================================
   WATCHER 2-COLUMN LAYOUT (form + feed)
   ========================================================================== */
.watcher-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 1240px);
  max-height: 540px;
  margin-top: 36px;
  justify-self: center;
  align-self: start;
  min-height: 0;
  align-items: stretch;
}
.watcher-cols > * { min-height: 0; }

/* ==========================================================================
   REQUEST FORM (watcher view)
   ========================================================================== */
.request {
  width: 100%;
  padding: 18px 22px 20px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--faint);
  display: grid;
  gap: 14px;
  align-content: start;
  animation: cardIn 0.4s ease both;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}
.request::-webkit-scrollbar { width: 6px; }
.request::-webkit-scrollbar-thumb { background: var(--faint); }

.request__lead {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.request__limit {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--pink);
  opacity: 0.7;
  margin-top: -8px;
}

.request__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field          { display: grid; gap: 6px; min-width: 0; }
.field--full    { grid-column: 1 / -1; }

.field__lbl {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--dim);
}

.field__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--faint);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
  border-radius: 0;
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.32); }
.field__input:hover        { border-color: rgba(255, 255, 255, 0.32); }
.field__input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 16, 240, 0.28);
  background: rgba(255, 16, 240, 0.04);
}
.field__input:invalid:not(:placeholder-shown) { border-color: rgba(255, 31, 58, 0.7); }

.field__textarea {
  resize: none;
  font-family: inherit;
  line-height: 1.45;
  min-height: 84px;
}

.field__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pink) 50%),
                    linear-gradient(135deg, var(--pink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}
.field__select option { background: #000; color: var(--ink); }

.field__counter {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-align: right;
}

.request__submit {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.55);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.1s;
}
.request__submit:hover {
  background: var(--pink);
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 28px rgba(255, 16, 240, 0.55);
}
.request__submit:active { transform: translateY(1px); }

/* ==========================================================================
   ATTACH (image upload widget)
   ========================================================================== */
.attach {
  display: block;
  background: rgba(0, 0, 0, 0.55);
  border: 1px dashed var(--faint);
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s, background-color 0.18s;
  outline: none;
}
.attach:hover,
.attach:focus-visible,
.attach.is-drag {
  border-color: var(--pink);
  background: rgba(255, 16, 240, 0.06);
}

.attach__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 6px 0;
}
.attach__cta {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.55);
}
.attach__hint {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.attach__filled {
  display: flex;
  align-items: center;
  gap: 12px;
}
.attach__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--faint);
  background: #000;
  flex-shrink: 0;
}
.attach__name {
  flex: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attach__remove {
  font-family: "Audiowide", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--dim);
  padding: 6px 10px;
  border: 1px solid var(--faint);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s, border-color 0.18s;
}
.attach__remove:hover { color: var(--pink); border-color: var(--pink); }

/* ==========================================================================
   FEED (recent requests panel — right column)
   ========================================================================== */
.feed {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--faint);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  animation: cardIn 0.4s ease both;
  position: relative;
}

.feed__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--faint);
  background: rgba(0, 0, 0, 0.5);
}
.feed__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.5);
}
.feed__count {
  font-family: "Audiowide", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border: 1px solid var(--faint);
}
.feed__clear {
  font-family: "Audiowide", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--dim);
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--faint);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}
.feed__clear:hover:not(:disabled) {
  color: var(--pink);
  border-color: var(--pink);
}
.feed__clear:disabled { opacity: 0.35; cursor: not-allowed; }
.feed__clear.is-armed {
  color: #000 !important;
  background: var(--pink);
  border-color: var(--pink);
}

.feed__list {
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}
.feed__list::-webkit-scrollbar { width: 6px; }
.feed__list::-webkit-scrollbar-thumb { background: var(--faint); }

.feed__empty {
  position: absolute;
  inset: 50px 0 0 0;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  font-weight: 300;
  pointer-events: none;
}

/* ---- a single request card in the feed ---- */
.frq {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--faint);
  padding: 10px;
  transition: border-color 0.18s, background-color 0.18s;
  animation: cardIn 0.3s ease both;
}
.frq--no-image { grid-template-columns: minmax(0, 1fr); }
.frq:hover { border-color: rgba(255, 16, 240, 0.5); background: rgba(255, 16, 240, 0.04); }
.frq--seed { opacity: 0.92; }

.frq__media {
  width: 60px;
  height: 60px;
  background: #000;
  border: 1px solid var(--faint);
  overflow: hidden;
  align-self: start;
  flex-shrink: 0;
}
.frq__media img { width: 100%; height: 100%; object-fit: cover; }

.frq__body { display: grid; gap: 4px; min-width: 0; }
.frq__meta-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.frq__handle {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.frq__time {
  font-family: "Audiowide", sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--dim);
  flex-shrink: 0;
}
.frq__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.frq__brief {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.frq__meta-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.frq__money {
  display: flex;
  align-items: baseline;
  min-width: 0;
}
.frq__prize {
  color: var(--green);
  text-shadow: 0 0 8px rgba(40, 255, 117, 0.4);
}
.frq__dur {
  color: var(--cyan);
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--faint);
}

/* ---- vote controls ---- */
.frq__votes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.vote {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--faint);
  cursor: pointer;
  transition: transform 0.12s, border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.vote::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  transition: border-color 0.18s;
}
.vote--up::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid var(--dim);
}
.vote--down::before {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--dim);
}
.vote:hover            { transform: translateY(-1px); }
.vote--up:hover        { border-color: var(--green); box-shadow: 0 0 10px rgba(40, 255, 117, 0.4); }
.vote--up:hover::before  { border-bottom-color: var(--green); }
.vote--down:hover      { border-color: #ff1f3a; box-shadow: 0 0 10px rgba(255, 31, 58, 0.4); }
.vote--down:hover::before { border-top-color: #ff1f3a; }

.vote.is-on.vote--up        { background: rgba(40, 255, 117, 0.16); border-color: var(--green); }
.vote.is-on.vote--up::before  { border-bottom-color: var(--green); }
.vote.is-on.vote--down      { background: rgba(255, 31, 58, 0.16); border-color: #ff1f3a; }
.vote.is-on.vote--down::before { border-top-color: #ff1f3a; }

.vote.is-pulse { animation: votePulse 0.32s ease; }
@keyframes votePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.22); }
}

.vote__count {
  font-family: "Audiowide", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.vote__count.is-pos { color: var(--green); text-shadow: 0 0 8px rgba(40, 255, 117, 0.5); }
.vote__count.is-neg { color: #ff1f3a; text-shadow: 0 0 8px rgba(255, 31, 58, 0.5); }

/* responsive: stack on small screens */
@media (max-width: 980px) {
  .watcher-cols { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(180px, 38vh); }
}

/* ==========================================================================
   CONFIRMATION MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(2px);
  animation: modalFade 0.22s ease both;
  padding: 20px;
}
.modal[hidden] { display: none; }
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__panel {
  background: #000;
  border: 1px solid var(--pink);
  box-shadow: 0 0 50px rgba(255, 16, 240, 0.4), inset 0 0 30px rgba(255, 16, 240, 0.06);
  padding: 24px 26px;
  width: 100%;
  max-width: 480px;
  display: grid;
  gap: 14px;
  animation: modalIn 0.28s cubic-bezier(.2,.7,.4,1.1) both;
}
@keyframes modalIn {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal__tag {
  background: var(--pink);
  color: #000;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  padding: 4px 10px;
}
.modal__close {
  font-family: "Audiowide", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
  padding: 6px 12px;
  border: 1px solid var(--faint);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.modal__close:hover { color: var(--ink); border-color: var(--ink); }

.modal__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}
.modal__brief {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dim);
  word-break: break-word;
}

.modal__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.modal__meta > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--faint);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.modal__k {
  font-family: "Audiowide", sans-serif;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--dim);
}
.modal__v {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--faint);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.modal__btn:hover {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 16px rgba(255, 16, 240, 0.3);
}
.modal__btn--share:hover {
  background: var(--pink);
  color: #000;
  box-shadow: 0 0 22px rgba(255, 16, 240, 0.55);
}

.modal__note {
  font-size: 12px;
  text-align: center;
  color: var(--dim);
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .request__grid { grid-template-columns: 1fr; }
  .modal__meta   { grid-template-columns: 1fr 1fr; }
  .modal__meta > div:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   FLOATING HEARTS (watcher view, right edge)
   ========================================================================== */
.hearts {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 6;
}
.heart {
  position: absolute;
  bottom: -24px;
  right: 40px;
  font-size: 22px;
  color: #ff1f3a;
  text-shadow: 0 0 10px #ff1f3a, 0 0 22px rgba(255, 31, 58, 0.6);
  animation: heartFloat var(--dur, 4.5s) ease-out forwards;
  opacity: 0;
  will-change: transform, opacity;
}
@keyframes heartFloat {
  0%   { transform: translate(0,    0)      scale(0.6); opacity: 0; }
  10%  { transform: translate(-4px, -8vh)   scale(0.9); opacity: 1; }
  50%  { transform: translate(-14px,-45vh)  scale(1.05); opacity: 0.95; }
  100% { transform: translate(-22px,-95vh)  scale(0.7);  opacity: 0; }
}

/* ==========================================================================
   AUDIO TOGGLE (corner button, appears once song has started)
   ========================================================================== */
.audio-toggle {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--faint);
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.audio-toggle:hover {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 16, 240, 0.3);
}
.audio-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation: audioPulse 1.1s ease-in-out infinite;
}
.audio-toggle.is-paused::before {
  background: var(--dim);
  box-shadow: none;
  animation: none;
}
@keyframes audioPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ==========================================================================
   MOD VIEW (admin overlay) — toggle with SHIFT+M or #mod
   ========================================================================== */
.modview {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  padding: 24px;
  animation: modalFade 0.22s ease both;
}
.modview[hidden] { display: none; }

.modview__panel {
  background: #050306;
  border: 1px solid var(--pink);
  box-shadow: 0 0 60px rgba(255, 16, 240, 0.4),
              inset 0 0 30px rgba(255, 16, 240, 0.05);
  width: 100%;
  max-width: 920px;
  max-height: 86vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: modalIn 0.28s cubic-bezier(.2,.7,.4,1.1) both;
}

.modview__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--faint);
  background: rgba(255, 16, 240, 0.05);
}
.modview__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255, 16, 240, 0.55);
  font-weight: 400;
}

.modview__tabs {
  display: inline-flex;
  gap: 6px;
  justify-self: end;
}
.modtab {
  padding: 7px 14px;
  font-family: "Audiowide", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--faint);
  cursor: pointer;
  transition: color 0.18s, background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.modtab:hover            { color: var(--ink); border-color: var(--ink); }
.modtab.is-active        {
  color: #000;
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 16, 240, 0.5);
}

.modview__close {
  font-family: "Audiowide", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
  padding: 7px 14px;
  border: 1px solid var(--faint);
  background: transparent;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.modview__close:hover    { color: var(--pink); border-color: var(--pink); }

.modview__body {
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--faint) transparent;
}
.modview__body::-webkit-scrollbar       { width: 8px; }
.modview__body::-webkit-scrollbar-thumb { background: var(--faint); }

.modpane            { display: none; }
.modpane.is-active  { display: grid; gap: 12px; }

.modview__hint {
  padding: 10px 22px;
  border-top: 1px solid var(--faint);
  font-size: 11px;
  color: var(--dim);
  text-align: center;
  letter-spacing: 0.06em;
}

.modempty {
  padding: 32px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  border: 1px dashed var(--faint);
}

.moditem {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--faint);
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  transition: border-color 0.18s, background-color 0.18s, opacity 0.2s;
}
.moditem:hover { border-color: rgba(255, 16, 240, 0.4); }
.moditem.is-promoted { opacity: 0.45; pointer-events: none; }

.moditem__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.moditem__handle {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.moditem__src {
  font-family: "Audiowide", sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  padding: 3px 8px;
  border: 1px solid var(--faint);
  color: var(--dim);
  flex-shrink: 0;
}
.moditem__src.is-mod  { color: var(--pink);  border-color: rgba(255, 16, 240, 0.4); }
.moditem__src.is-user { color: var(--cyan);  border-color: rgba(0, 240, 255, 0.4); }

.moditem__title {
  font-family: "Audiowide", "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 400;
}
.moditem__brief {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--dim);
}
.moditem__meta {
  display: flex;
  gap: 14px;
  font-family: "Audiowide", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
}
.moditem__prize { color: var(--green); }
.moditem__dur   { color: var(--cyan);  }

.moditem__urlrow {
  display: flex;
  gap: 8px;
  align-items: center;
}
.modurl {
  flex: 1;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--faint);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
  border-radius: 0;
  min-width: 0;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.modurl::placeholder { color: rgba(255, 255, 255, 0.32); }
.modurl:focus        {
  border-color: var(--pink);
  box-shadow: 0 0 10px rgba(255, 16, 240, 0.25);
}

.moditem__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modbtn {
  padding: 8px 12px;
  font-family: "Audiowide", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  border: 1px solid var(--faint);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, color 0.18s, border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.modbtn:hover        { transform: translateY(-1px); }
.modbtn--promote     { color: var(--green); border-color: rgba(40, 255, 117, 0.4); }
.modbtn--promote:hover { background: var(--green); color: #000; box-shadow: 0 0 16px rgba(40, 255, 117, 0.45); }
.modbtn--save        { color: var(--cyan);  border-color: rgba(0, 240, 255, 0.4); }
.modbtn--save:hover  { background: var(--cyan);  color: #000; box-shadow: 0 0 14px rgba(0, 240, 255, 0.45); }
.modbtn--delete      { color: #ff1f3a;     border-color: rgba(255, 31, 58, 0.4); }
.modbtn--delete:hover{ background: #ff1f3a; color: #000; box-shadow: 0 0 14px rgba(255, 31, 58, 0.5); }

@media (max-width: 720px) {
  .modview          { padding: 12px; }
  .modview__head    { grid-template-columns: 1fr auto; padding: 12px 14px; gap: 10px; }
  .modview__tabs    { grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; }
  .moditem__urlrow  { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ==========================================================================
   small screens — allow vertical scroll on mobile only
   ========================================================================== */
@media (max-width: 720px) {
  html, body { overflow-y: auto; }
  .view, .view--home { position: relative; min-height: 100vh; }
  .top { position: relative; padding: 14px; gap: 10px; grid-template-columns: 1fr auto; }
  .links { justify-content: flex-end; }
  .view--player, .view--watcher { padding: 18px; }
}
