/* ── LAYOUT ── */
.scheduler-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
  position: relative;
  z-index: 5;
}

/* ── PAGE HEADER ── */
.page-header {
  position: relative;
  z-index: 5;
  padding: 3rem 1.25rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 0.4rem;
}
.page-header p { font-size: 0.8rem; color: var(--muted); }

/* ── BUILDER STEPS ── */
.build-step {
  background: var(--surface);
  border: 1px solid rgba(200, 255, 0, 0.08);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.build-step-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.step-badge {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(200, 255, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--acid);
  flex-shrink: 0;
}
.step-badge.done {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--deep);
}

.step-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.step-body { padding: 0 1.25rem 1.25rem; }

/* ── INPUTS ── */
.field-input {
  width: 100%;
  background: var(--mid);
  border: 1px solid rgba(154, 123, 191, 0.25);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: var(--acid); }

/* ── SEARCH ── */
.search-wrap { padding: 0 1.25rem 0.75rem; }
.search-wrap .field-input { font-size: 0.78rem; }

/* ── ARTIST LIST ── */
.artist-list {
  border-top: 1px solid rgba(200, 255, 0, 0.06);
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.artist-list::-webkit-scrollbar { width: 3px; }
.artist-list::-webkit-scrollbar-track { background: transparent; }
.artist-list::-webkit-scrollbar-thumb { background: rgba(200,255,0,0.2); }

.artist-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(200, 255, 0, 0.05);
  cursor: pointer;
  min-height: 58px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.artist-row:last-child { border-bottom: none; }
.artist-row:hover { background: var(--surface2); }
.artist-row.selected { background: rgba(200, 255, 0, 0.05); }

.av {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: cover;
  background: var(--mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.artist-info { flex: 1; min-width: 0; }

.artist-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.artist-meta {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; }

.tag {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  border: 1px solid rgba(200, 255, 0, 0.2);
  padding: 0.1rem 0.4rem;
}

.check-box {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(154, 123, 191, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.selected .check-box {
  background: var(--acid);
  border-color: var(--acid);
}
.check-box svg { display: none; }
.selected .check-box svg { display: block; }

.sel-count {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1.25rem;
}

/* ── BUTTONS ── */
.sched-btn-primary {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--acid);
  color: var(--deep);
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sched-btn-primary:disabled { opacity: 0.3; cursor: not-allowed; }
.sched-btn-primary:active:not(:disabled) { opacity: 0.85; }

.sched-btn-secondary {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(154, 123, 191, 0.3);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  margin-top: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}
.sched-btn-secondary:hover { border-color: var(--acid); color: var(--acid); }
.sched-btn-secondary:active { opacity: 0.8; }

.sched-btn-share {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--acid);
  border: 1px solid rgba(200, 255, 0, 0.35);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.75rem;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.sched-btn-share:hover { background: rgba(200,255,0,0.07); }
.sched-btn-share:active { opacity: 0.8; }

.share-confirm {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  background: rgba(200, 255, 0, 0.07);
  border: 1px solid rgba(200,255,0,0.2);
  padding: 0.6rem 1rem;
  margin-top: 0.6rem;
  text-align: center;
}

/* ── SPINNER ── */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10,0,16,0.3);
  border-top-color: var(--deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── ERROR ── */
.error-msg {
  padding: 0.75rem 1rem;
  background: rgba(255, 60, 172, 0.08);
  border: 1px solid rgba(255, 60, 172, 0.3);
  color: #ff9dd8;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

/* ── SCHEDULE OUTPUT ── */
.day-block { border-bottom: 1px solid rgba(200, 255, 0, 0.06); }
.day-block:last-child { border-bottom: none; }

.day-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  padding: 1rem 1.25rem 0.4rem;
}

.stage-block { padding: 0.6rem 1.25rem 0.85rem; }

.stage-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sdot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.sdot-main { background: #C8FF00; }
.sdot-bolt { background: #ff3cac; }
.sdot-tba  { background: #7b2fff; }

.slot-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--mid);
  border: 1px solid rgba(200, 255, 0, 0.06);
  margin-bottom: 0.5rem;
  transition: border-color 0.15s;
}
.slot-card:last-child { margin-bottom: 0; }
.slot-card:hover { border-color: rgba(200, 255, 0, 0.15); }

.slot-time {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--acid);
  border: 1px solid rgba(200, 255, 0, 0.25);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 48px;
  text-align: center;
  margin-top: 2px;
}

.slot-av {
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 0;
}

.slot-info { flex: 1; min-width: 0; }

.slot-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.slot-country {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.slot-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }

.slot-tag {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  border: 1px solid rgba(200, 255, 0, 0.2);
  padding: 0.1rem 0.4rem;
}

.slot-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
  padding-top: 2px;
  transition: color 0.15s;
}
.slot-link:hover { color: var(--acid); }

.empty-schedule {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── PERSON LEGEND ── */
#person-legend {
  padding: 0.5rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── READONLY HEADER ── */
.readonly-header {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hidden { display: none; }

@media (max-width: 480px) {
  .page-header { padding: 2rem 1.25rem 1rem; }
}
