:root {
  --bg: #111111;
  --card: #1d1d1d;
  --card2: #242424;
  --text: #f3f0e8;
  --muted: #bdb5a7;
  --line: #3a3a3a;
  --accent: #f4c04f;
  --accent2: #f07b3f;
  --bad: #ff6f61;
  --good: #64d39b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #342412, var(--bg) 42%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 18px 60px; }
.hero { padding: 28px 0 20px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.6rem, 8vw, 6rem); line-height: .9; margin: 0; }
.lede { max-width: 780px; font-size: 1.2rem; color: var(--muted); }
.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
}
.lookup-card { margin-bottom: 20px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
.row { display: flex; gap: 10px; align-items: center; }
input {
  width: min(260px, 100%);
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.05rem;
  padding: 13px 14px;
}
button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: #f3f0e8;
  color: #111;
  font-weight: 800;
  padding: 13px 16px;
  cursor: pointer;
}
button:hover { transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.hint { color: var(--muted); font-size: .95rem; }
.grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 20px; }
.hidden { display: none; }
.image-frame { background: #e3e5e4; border-radius: 18px; overflow: hidden; aspect-ratio: 1/1; display: grid; place-items: center; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
h2 { font-size: 2rem; margin: 16px 0 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-wrap: anywhere; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trait { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--muted); background: rgba(255,255,255,.03); font-size: .88rem; }
.status-block { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(0,0,0,.18); }
.status-block p { margin: 6px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.player { margin-top: 18px; }
.song-list { display: grid; gap: 10px; margin: 12px 0; }
.song {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.035);
}
.song-title { font-weight: 800; }
.song-meta { color: var(--muted); font-size: .9rem; }
audio { width: 100%; margin: 12px 0 14px; }
.fineprint { margin-top: 20px; color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; align-items: stretch; }
  input { width: 100%; }
}

.song-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.song-art {
  width: 52px; height: 52px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); flex: 0 0 auto;
}
.now-playing {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  background: rgba(0,0,0,.22); margin: 12px 0;
}
.now-art {
  width: 92px; height: 92px; object-fit: cover; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); flex: 0 0 auto;
}
.now-title { font-weight: 900; font-size: 1.15rem; }
@media (max-width: 520px) {
  .song { align-items: stretch; }
  .song-left { align-items: center; }
  .song-art { width: 46px; height: 46px; }
  .now-art { width: 72px; height: 72px; }
}

/* WEB3 JUKEBOX ADDITIONS START */
select {
  width: min(260px, 100%);
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.05rem;
  padding: 13px 14px;
}
@media (max-width: 820px) {
  select { width: 100%; }
}
/* WEB3 JUKEBOX ADDITIONS END */

/* WEB3 UX FIX START */
.access-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.collection-card h2 {
  margin-top: 4px;
}
.collection-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
  margin: 0;
}
.mini-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.mini-input-row input {
  flex: 1;
  width: auto;
  min-width: 0;
}
.hidden-controls {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
select {
  width: min(260px, 100%);
  background: #0d0d0d;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1.05rem;
  padding: 13px 14px;
}
@media (max-width: 820px) {
  .access-chooser {
    grid-template-columns: 1fr;
  }
  .mini-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .mini-input-row input {
    width: 100%;
  }
}
/* WEB3 UX FIX END */

/* SHOW CATALOG FIX START */
#accessPanel {
  margin-top: 20px;
}
#accessPanel:has(#collectibleCard.hidden) {
  grid-template-columns: 1fr;
}
#collectibleCard.hidden {
  display: none;
}
/* SHOW CATALOG FIX END */

/* WALLET WARNING STYLE START */
.wallet-warning {
  border: 1px solid rgba(244,192,79,.42);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 18px 0 0;
  background: rgba(244,192,79,.08);
  color: var(--muted);
  line-height: 1.45;
}
.wallet-warning strong {
  color: var(--text);
}
.wallet-warning code {
  color: var(--accent);
  font-weight: 800;
}
/* WALLET WARNING STYLE END */
