:root {
  --bg: #120e0d;
  --surface: #1c1613;
  --surface-hi: #241c18;
  --border: #33281f;
  --text-hi: #f5ede7;
  --text-lo: #a89a92;
  --red: #e8483a;
  --red-dim: #7a2d26;
  --teal: #39c5bb;
  --teal-dim: #1f5a55;

  --font-display: 'IBM Plex Mono', ui-monospace, monospace;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.5;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--teal); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  color: var(--red);
}

.brand-sub {
  color: var(--text-lo);
  font-size: 0.85rem;
}

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 700px 320px at 15% -10%, rgba(232, 72, 58, 0.14), transparent 60%),
    radial-gradient(ellipse 600px 300px at 100% 0%, rgba(57, 197, 187, 0.10), transparent 60%);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.hero-lede {
  color: var(--text-lo);
  max-width: 52ch;
  margin: 0 0 28px;
  font-size: 1.02rem;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-form input[type="text"] {
  flex: 1 1 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-hi);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.search-form input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.search-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.search-form button:hover { background: #f15b4c; }
.search-form button:focus-visible { outline: 2px solid var(--text-hi); outline-offset: 2px; }

.verified-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-lo);
  font-size: 0.88rem;
}

/* ---------- section shared ---------- */

main.wrap { padding: 48px 24px 24px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.section-count {
  font-family: var(--font-display);
  color: var(--text-lo);
  font-size: 0.85rem;
}

.section-note {
  color: var(--text-lo);
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 22px;
}

.empty-state {
  color: var(--text-lo);
  padding: 32px 0;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ---------- catalog grid / ticket cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.cover-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cover-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-2px);
}

.cover-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* perforated left edge - the "ticket" signature */
.cover-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-image: linear-gradient(var(--border) 60%, transparent 0%);
  background-size: 1px 6px;
  background-repeat: repeat-y;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
  background: var(--surface-hi);
  border: 1px solid var(--border);
}

.card-catalog {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
}

.card-artist {
  color: var(--text-lo);
  font-size: 0.85rem;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}

.badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-lo);
}

.badge-verified {
  color: var(--teal);
  border-color: var(--teal-dim);
}

.badge-pending {
  color: #d9a441;
  border-color: #5a4823;
}

/* ---------- submit form ---------- */

.submit-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.82rem;
  color: var(--text-lo);
}

.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-hi);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.submit-form button {
  justify-self: start;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.submit-form button:hover { background: var(--red); color: #fff; }

.submit-feedback {
  font-size: 0.88rem;
  margin: 0;
  min-height: 1.2em;
}

.submit-feedback.ok { color: var(--teal); }
.submit-feedback.error { color: var(--red); }

/* ---------- detail overlay ---------- */

.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 5, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.detail-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-lo);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.detail-close:hover { color: var(--text-hi); }

.detail-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.detail-catalog {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.detail-artist { color: var(--text-lo); margin-bottom: 16px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  gap: 16px;
}

.detail-row dt { color: var(--text-lo); }
.detail-row dd { margin: 0; text-align: right; word-break: break-all; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 40px;
  color: var(--text-lo);
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-card { transition: none; }
}

.detail-overlay[hidden] {
  display: none;
}

/* ---------- notification bell ---------- */
.header-inner {
  position: relative;
}
.notif-bell-wrap {
  margin-left: auto;
  position: relative;
}
.notif-bell {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  position: relative;
  padding: 4px;
  line-height: 1;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  z-index: 20;
}
.notif-dropdown-head {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-lo);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.notif-list { padding: 6px; }
.notif-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover { background: var(--surface-hi); }
.notif-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-hi);
  flex-shrink: 0;
}
.notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-item-sub {
  font-size: 0.75rem;
  color: var(--text-lo);
}
.notif-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-lo);
  font-size: 0.85rem;
}

/* ---------- custom file picker (public submit form + admin) ---------- */
.file-picker { display: flex; align-items: center; gap: 10px; }
.file-picker input[type="file"] { display: none; }
.file-picker-btn {
  background: transparent;
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  white-space: nowrap;
}
.file-picker-btn:hover { background: var(--teal); color: #06201d; }
.file-picker-name {
  color: var(--text-lo);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
