/* ============================================================
   NOW BAR (hero)
   ============================================================ */

.now-bar {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: var(--s-4) var(--s-6) var(--s-6);
}
/* Single active set → hero presentation across full row. */
.now-bar:has(.now-card:only-child) {
  grid-template-columns: 1fr;
}

.now-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-5) var(--s-6);
  background: var(--surface-1);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  isolation: isolate;
}
/* Per-stage colored aura behind the card. */
.now-card::before {
  content: '';
  position: absolute;
  inset: -40% -20% 40% -20%;
  background: radial-gradient(
    ellipse 60% 60% at 20% 30%,
    var(--stage-color, var(--accent)),
    transparent 70%
  );
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}
.now-card .img {
  width: 88px;
  height: 88px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  flex: 0 0 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.now-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.now-card .meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.now-card .stage {
  font-family: var(--font-menu);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--stage-color, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.now-card .stage::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 12px var(--live);
  animation: livePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.4);
  }
}
.now-card .dj {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: var(--s-1);
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.now-card .time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg-dim);
  margin-top: var(--s-2);
  letter-spacing: 0.04em;
}
.now-card .countdown {
  color: var(--accent);
  font-weight: 500;
}
.now-card.tappable {
  cursor: pointer;
}
.now-card.tappable:hover {
  background: var(--surface-2);
}
.now-card .now-expanded {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  animation: nowExpandIn var(--dur-2) var(--ease-out) both;
}
@keyframes nowExpandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.now-card .now-links {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.now-card .now-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.now-card .now-link:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.now-card .now-link.sc { border-color: rgba(255, 184, 156, 0.5); }
.now-card .now-link.sp { border-color: rgba(134, 231, 178, 0.5); }
.now-card .progress > i { transition: width var(--dur-3) var(--ease-out); }
.now-card .progress {
  height: 4px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-top: var(--s-3);
  position: relative;
}
.now-card .progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--stage-color, var(--accent)),
    var(--accent-2)
  );
  border-radius: inherit;
  transition: width var(--dur-3) var(--ease-out);
  position: relative;
}
.now-card .progress > i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  background-size: 60px 100%;
  animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: -60px 0;
  }
  100% {
    background-position: 320px 0;
  }
}

/* Empty state. */
.now-card.empty-now {
  grid-template-columns: 1fr;
  text-align: center;
  padding: var(--s-8) var(--s-6);
  color: var(--fg-dim);
  font-family: var(--font-menu);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.empty-now .next-hint {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-list);
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--fg-soft);
  letter-spacing: normal;
  text-transform: none;
}
.empty-now .next-hint strong {
  color: var(--accent);
  font-weight: 700;
}

.now-card .up-next {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}
.now-card .up-next .lbl {
  font-family: var(--font-menu);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  margin-bottom: var(--s-2);
}
.now-card .up-next ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.now-card .up-next li {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--text-sm);
}
.now-card .up-next li .t {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-soft);
  flex: 0 0 48px;
  letter-spacing: 0.04em;
}
.now-card .up-next li .n {
  color: var(--fg-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   DAY TABS — pill segmented control
   ============================================================ */

/* ============================================================
   PUBLIC BOARD LAYOUT — viewport-locked flex column
   ============================================================
   The whole public page locks to viewport height so only the timetable
   (.board-shell) scrolls. Day-tabs, stage-nav and "now playing" stay
   pinned at the top — no fighting page-vs-board scroll on mobile. */
body.board-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.board-page header.site,
body.board-page .now-bar,
body.board-page .day-tabs-wrap {
  flex: 0 0 auto;
}
/* Cap the hero so a long up-next list never starves the timetable below. */
body.board-page .now-bar {
  max-height: 32vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
body.board-page .now-bar::-webkit-scrollbar {
  width: 4px;
}
@media (max-width: 720px) {
  body.board-page .now-bar {
    max-height: 28vh;
  }
}
body.board-page .board {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--safe-bottom);
}

header.site {
  position: static;
  border-bottom: 0;
}

.day-tabs-wrap {
  padding: var(--s-3) var(--s-6);
  overflow-x: auto;
  scrollbar-width: none;
  background: linear-gradient(
    180deg,
    rgba(13, 24, 31, 0.92) 0%,
    rgba(13, 24, 31, 0.7) 80%,
    rgba(13, 24, 31, 0.4) 100%
  );
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(0, 198, 194, 0.18);
}
.day-tabs-wrap::-webkit-scrollbar {
  display: none;
}
.day-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.day-tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-5);
  min-height: 36px;
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out);
}
.day-tab:hover {
  color: var(--fg);
}
.day-tab.active {
  background: var(--accent);
  color: var(--bg);
}
.day-tab .wkd {
  opacity: 0.6;
  font-weight: 500;
}
.day-tab.active .wkd {
  opacity: 0.85;
}
/* Today's tab — pulsing dot to call attention to it regardless of which
   tab is currently selected. Stacks with .active when today is selected. */
.day-tab.today {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 56, 85, 0.55);
}
.day-tab.today::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: livePulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.day-tab.today.active {
  box-shadow: inset 0 0 0 1px transparent;
}
.day-tab.today.active::before {
  background: var(--bg);
  box-shadow: 0 0 6px rgba(13, 24, 31, 0.6);
}

/* ============================================================
   TIME-GRID BOARD
   ============================================================ */

.board {
  padding: var(--s-4) var(--s-6) calc(var(--safe-bottom) + var(--s-12));
}
.board-shell {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0;
  position: relative;
}
/* Only the public board makes .board-shell the sole vertical scroller —
   the admin uses page-level scroll for predictable resize-drag behaviour. */
body.board-page .board-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
body.board-page .board-shell::-webkit-scrollbar {
  width: 6px;
}
body.board-page .board-shell::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--r-pill);
}

/* Hour gutter */
.time-gutter {
  position: relative;
  height: calc(var(--lane-header-h) + var(--window-h, 600px));
  font-family: var(--font-mono);
  border-right: 1px dashed var(--line);
  padding-right: var(--s-3);
}
.time-gutter .hour {
  position: absolute;
  left: 0;
  right: var(--s-3);
  text-align: right;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  transform: translateY(-50%);
  white-space: nowrap;
}

.lanes-wrap {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--s-3);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.lanes-wrap::-webkit-scrollbar {
  height: 6px;
}
.lanes-wrap::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--r-pill);
}

/* ============================================================
   STAGE NAV (mobile) — pill row above lanes + edge-fade hints
   ============================================================ */

.stage-nav {
  display: none;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* Sits above the scroll container — never moves out of view on mobile,
     so the stage picker is always reachable. */
  flex: 0 0 auto;
  background: linear-gradient(
    180deg,
    rgba(13, 24, 31, 0.92) 0%,
    rgba(13, 24, 31, 0.7) 80%,
    rgba(13, 24, 31, 0.4) 100%
  );
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(0, 198, 194, 0.18);
}
.stage-nav::-webkit-scrollbar {
  display: none;
}
.stage-pill {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg-soft);
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-snap-align: start;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.stage-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage-color, var(--accent));
  box-shadow: 0 0 8px var(--stage-color, var(--accent));
  flex-shrink: 0;
}
.stage-pill:hover {
  color: var(--fg);
  background: var(--surface-2);
}
.stage-pill.active {
  background: var(--surface-strong);
  color: var(--fg);
  border-color: var(--stage-color, var(--accent));
  box-shadow: 0 0 0 1px var(--stage-color, var(--accent)),
    0 0 16px -4px var(--stage-color, var(--accent));
}

/* Lanes-frame wraps lanes-wrap so the edge-fade overlays stay pinned to the
   visible viewport edge (lanes-wrap itself is the scroll container). */
.lanes-frame {
  position: relative;
  min-width: 0;
}
.lanes-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 5;
  transition: opacity var(--dur-2) var(--ease-out);
}
.lanes-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
  opacity: var(--lanes-left-fade, 0);
}
.lanes-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
  opacity: var(--lanes-right-fade, 0);
}

@media (max-width: 720px) {
  .stage-nav {
    display: flex;
  }
}
/* Edge fades only on mobile — desktop shows all lanes. */
@media (min-width: 721px) {
  .lanes-fade {
    display: none;
  }
}
.lanes-grid {
  display: grid;
  grid-template-columns: repeat(var(--stage-count, 4), minmax(220px, 1fr));
  gap: var(--s-3);
  padding-left: var(--s-3);
  position: relative;
  min-width: max-content;
}

/* Stage lane */
.lane {
  position: relative;
  scroll-snap-align: start;
}
.lane-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(13, 24, 31, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: var(--r-md) var(--r-md) 0 0;
  height: var(--lane-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: var(--text-lg);
  text-transform: uppercase;
  color: var(--fg);
}
.lane-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--stage-color, var(--accent)) 0%,
    var(--stage-color, var(--accent)) 60%,
    transparent 100%
  );
  opacity: 0.85;
}
.lane-header .name {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lane-header .name::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stage-color, var(--accent));
  box-shadow: 0 0 16px var(--stage-color, var(--accent)),
    0 0 4px var(--stage-color, var(--accent));
  flex-shrink: 0;
}

.lane-body {
  position: relative;
  height: var(--window-h, 600px);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--px-per-hour) - 1px),
      rgba(255, 255, 255, 0.06) calc(var(--px-per-hour) - 1px),
      rgba(255, 255, 255, 0.06) var(--px-per-hour)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--px-per-hour) / 2 - 1px),
      rgba(255, 255, 255, 0.025) calc(var(--px-per-hour) / 2 - 1px),
      rgba(255, 255, 255, 0.025) calc(var(--px-per-hour) / 2)
    );
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: background-color var(--dur-2) var(--ease-out);
}
.lane-body.sortable-over {
  background-color: rgba(149, 206, 189, 0.06);
}

/* ============================================================
   SLOT CARD
   ============================================================ */

.slot {
  position: absolute;
  left: 6px;
  right: 6px;
  background: var(--surface-2);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  overflow: hidden;
  min-height: 30px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.slot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--stage-color, var(--accent));
  border-radius: var(--r-pill);
  box-shadow: 0 0 8px var(--stage-color, var(--accent));
}
.slot:hover {
  background: var(--surface-3);
  box-shadow: var(--shadow-2);
}
.slot .img {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  flex: 0 0 32px;
  overflow: hidden;
  margin-left: var(--s-1);
}
.slot .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot .slot-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slot .row-1 {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  min-width: 0;
}
.slot .row-1 .dj {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}
.slot .row-2 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}
.slot .row-2 .time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.slot .genres {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
}
.slot .g-chip {
  flex-shrink: 0;
}
.slot .g-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--s-2);
  background: var(--surface-3);
  color: var(--fg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-menu);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.slot .links {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.slot .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  transition: background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.slot .link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.slot .link.sc {
  border-color: rgba(255, 184, 156, 0.55);
  color: var(--apricote);
}
.slot .link.sc:hover {
  background: var(--apricote);
  color: var(--bg);
  transform: translateY(-1px);
}
.slot .link.sp {
  border-color: rgba(134, 231, 178, 0.55);
  color: var(--lightgreen);
}
.slot .link.sp:hover {
  background: var(--lightgreen);
  color: var(--bg);
  transform: translateY(-1px);
}
.slot.short .row-2 {
  display: none;
}
.slot.short .row-1 .dj {
  font-size: var(--text-sm);
}
.slot.short .row-1 .time {
  font-size: 10px;
}
.slot.active {
  background: var(--surface-3);
  border-color: var(--stage-color, var(--accent));
  box-shadow: var(--shadow-2), var(--shadow-glow-stage);
}
.slot.active::before {
  width: 4px;
  box-shadow: 0 0 14px var(--stage-color, var(--accent));
}

/* ============================================================
   NOW LINE
   ============================================================ */

.now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.5px solid var(--live);
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 56, 85, 0.7));
}
.now-line .label {
  position: absolute;
  top: -12px;
  left: var(--s-3);
  background: var(--live);
  color: var(--white);
  font-family: var(--font-menu);
  font-size: 10px;
  font-weight: 900;
  padding: 2px var(--s-2);
  border-radius: var(--r-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 56, 85, 0.45);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.now-line .label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
  animation: livePulse 1.6s ease-in-out infinite;
}

/* ============================================================
   EMPTY BOARD
   ============================================================ */

.empty-board {
  grid-column: 1 / -1;
  padding: var(--s-8);
  text-align: center;
  color: var(--fg-dim);
  background: var(--surface-1);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  font-family: var(--font-menu);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============================================================
   MOBILE — narrow viewports
   ============================================================ */

@media (max-width: 720px) {
  .now-bar {
    padding: var(--s-3) var(--s-4) var(--s-5);
    gap: var(--s-3);
  }
  .now-card {
    padding: var(--s-4) var(--s-4);
    gap: var(--s-4);
    border-radius: var(--r-lg);
  }
  .now-card .img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
  }
  .now-card .dj {
    font-size: clamp(24px, 7vw, 34px);
  }

  .day-tabs-wrap {
    padding: var(--s-3) var(--s-4);
  }

  /* Edge-to-edge on phones — each lane fills the visible viewport so the
     DJ card uses the full width instead of a cramped 84vw column. */
  .board {
    padding: 0 0 calc(var(--safe-bottom) + var(--s-10));
  }
  .board-shell {
    grid-template-columns: 56px 1fr;
  }
  /* Each stage takes the full visible width (viewport minus the time gutter);
     users swipe between them. */
  .lanes-wrap {
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
  }
  .lanes-grid {
    grid-template-columns: repeat(var(--stage-count, 4), calc(100vw - 56px));
    gap: 0;
    padding-left: 0;
  }
}

/* ============================================================
   RESIZE HANDLE (admin only — bottom edge of slot card)
   ============================================================ */

.slot .resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-out);
  touch-action: none;
}
.slot:hover .resize-handle,
.slot.resizing .resize-handle {
  opacity: 1;
}
.slot.resizing {
  outline: 2px solid var(--stage-color, var(--accent));
  outline-offset: 1px;
  box-shadow: var(--shadow-2), var(--shadow-glow-stage);
  z-index: 7;
}
@media (pointer: coarse) {
  .slot .resize-handle {
    height: 16px;
    opacity: 0.55;
  }
}
