/* ---------------------------------------------------------------
   PlaylistDirectory — gig-poster direction
   ink violet / electric violet / chartreuse punch
--------------------------------------------------------------- */
:root {
  --ink: #17142a;
  --ink-soft: #4d4966;
  --bg: #f1f0f7;
  --surface: #ffffff;
  --line: #dcd9ea;
  --violet: #5b2ee5;
  --violet-deep: #3d1da3;
  --punch: #c9f158;        /* chartreuse — the OPEN stamp */
  --green: #17864f;
  --red: #ce3d4b;
  --amber: #a06a00;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--violet); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-head {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: #fff; text-decoration: none; letter-spacing: -.02em;
}
.logo span { color: var(--punch); }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: #efedff; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: rgba(255,255,255,.1); }
.site-nav .nav-btn { background: var(--punch); color: var(--ink); font-weight: 600; }
.site-nav .nav-btn:hover { background: #d8fa74; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    padding: 10px; cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding-bottom: 12px;
  }
  .site-nav a { padding: 12px; font-size: 1.02rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- flash ---------- */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash-ok    { background: #e2f6e9; color: var(--green); }
.flash-error { background: #fbe4e6; color: var(--red); }
.flash-info  { background: #e9e4fb; color: var(--violet-deep); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .kicker {
  display: inline-block; background: var(--punch); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  transform: rotate(-1.5deg);
}
.hero h1 { max-width: 640px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; margin-top: 20px; }
.hero-search input { flex: 1; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.6rem; display: block; }
.hero-stats .stat span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- ticket-stub playlist cards (signature) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin: 22px 0; }
.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  text-decoration: none; color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ticket:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(23,20,42,.12); }
.ticket-top { display: flex; gap: 14px; padding: 14px; align-items: center; }
.ticket-top img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--line); flex-shrink: 0; }
.ticket-top .no-art {
  width: 72px; height: 72px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--ink));
  display: flex; align-items: center; justify-content: center;
  color: var(--punch); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
}
.ticket h3 { margin: 0 0 2px; }
.ticket .owner { color: var(--ink-soft); font-size: .88rem; }
/* perforated tear line */
.ticket-tear {
  border-top: 2px dashed var(--line);
  margin: 0 14px; position: relative;
}
.ticket-tear::before, .ticket-tear::after {
  content: ""; position: absolute; top: -8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
}
.ticket-tear::before { left: -22px; }
.ticket-tear::after  { right: -22px; }
.ticket-bottom {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 14px; font-size: .85rem; color: var(--ink-soft);
  flex-wrap: wrap;
}
.stamp {
  font-family: var(--font-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .06em; padding: 3px 10px; border-radius: 6px;
  transform: rotate(-2deg);
}
.stamp-open     { background: var(--punch); color: var(--ink); }
.stamp-external { background: #e9e4fb; color: var(--violet-deep); }
.stamp-collab   { background: var(--ink); color: var(--punch); }
.stamp-closed   { background: var(--line); color: var(--ink-soft); }
.tag {
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 999px; font-size: .8rem;
}
.tracks-count { margin-left: auto; white-space: nowrap; }

/* ---------- forms ---------- */
form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
label.field small { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], input[type=url], select, textarea {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet);
}
textarea { min-height: 110px; resize: vertical; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--violet); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 22px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--violet-deep); }
.btn-punch { background: var(--punch); color: var(--ink); }
.btn-punch:hover { background: #d8fa74; }
.btn-ghost { background: transparent; color: var(--violet); border: 1.5px solid var(--violet); }
.btn-ghost:hover { background: #efeafd; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #a92f3b; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .9rem;
}
.checks input { accent-color: var(--violet); }

/* ---------- panels / detail ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 18px 0;
}
.playlist-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.playlist-head img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; }
.playlist-head .meta { flex: 1; min-width: 240px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.spotify-embed { border: 0; width: 100%; height: 352px; border-radius: 12px; }
.subs-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.subs-table th, .subs-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.subs-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.status-pill { font-weight: 600; font-size: .82rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-pending  { background: #fdf1d7; color: var(--amber); }
.status-approved { background: #e2f6e9; color: var(--green); }
.status-declined { background: #fbe4e6; color: var(--red); }

/* directory filter bar */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin: 18px 0;
}
.filter-bar input[type=text] { flex: 1; min-width: 160px; width: auto; }
.filter-bar select { width: auto; }

/* how-it-works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0 40px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step b { font-family: var(--font-display); display: block; margin-bottom: 4px; }

/* footer */
.site-foot { background: var(--ink); color: #cfcbe4; margin-top: 56px; padding: 34px 0 20px; }
.foot-row { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-foot strong { color: #fff; font-family: var(--font-display); }
.site-foot p { max-width: 380px; font-size: .92rem; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: #cfcbe4; text-decoration: none; }
.site-foot a:hover { color: var(--punch); }
.foot-note { margin-top: 22px; font-size: .8rem; color: #8b86a8; }

@media (max-width: 560px) {
  .playlist-head img { width: 100px; height: 100px; }
  .hero { padding: 36px 0 28px; }
  .hero-search { flex-direction: column; }
  .subs-table thead { display: none; }
  .subs-table td { display: block; border: 0; padding: 4px 0; }
  .subs-table tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
}

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

.img-dead { visibility: hidden; }
