/* lofi.stream — original Flowza-inspired schedule UI. Not the shared b3 player. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/lofidotstream-jakarta.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #f0f1f6;
  --paper: #ffffff;
  --ink: #111114;
  --ink-2: #2a2b31;
  --mute: #6b6e76;
  --mute-2: #8b8e97;
  --line: #eceef3;
  --line-2: #e3e5ed;
  --purple: #6f65f2;
  --purple-deep: #584ee0;
  --purple-soft: #efedfe;
  --blue: #5b7cff;
  --blue-soft: #e8eeff;
  --live-row: #f5f3ff;
  --shadow: 0 28px 64px rgba(24, 28, 46, .08), 0 4px 14px rgba(24, 28, 46, .04), 0 0 0 1px rgba(24, 28, 46, .05);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 30;
}
.skip:focus { top: 12px; }

/* ——— Top bar ——— */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  font-size: 15.5px;
  letter-spacing: -.02em;
  flex: 0 0 auto;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.top nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  font-weight: 540;
  color: var(--mute);
}
.top nav a:hover { color: var(--ink); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.top-actions .ghost {
  font-size: 14px;
  font-weight: 540;
  color: var(--mute);
  padding: 8px 12px;
}
.top-actions .ghost:hover { color: var(--ink); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 640;
  letter-spacing: -.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: #000; color: #fff; }
.btn-line {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(24, 28, 46, .04);
}
.btn-line:hover { border-color: #cfd2dc; color: var(--ink); }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  color: var(--mute);
}
.btn-icon:hover { background: var(--bg); color: var(--ink); }
.btn.is-on .play-ic, .btn:not(.is-on) .pause-ic { display: none; }
.btn.is-on .pause-ic, .btn:not(.is-on) .play-ic { display: block; }

/* ——— Hero ——— */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 36px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-soft);
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 740;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--ink);
}
.lede {
  max-width: 420px;
  margin: 18px auto 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--mute);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mute-2);
  font-size: 12.5px;
  font-weight: 520;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.facts li svg {
  width: 14px;
  height: 14px;
  color: var(--purple);
  opacity: .85;
}

/* ——— Stage / product card ——— */
.stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px 88px;
}
.board {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

/* Rail */
.rail {
  background: #fbfbfd;
  border-right: 1px solid var(--line);
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 18px;
  font-weight: 720;
  font-size: 13.5px;
  letter-spacing: -.02em;
}
.rail-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.rail-k {
  margin: 0 8px 8px;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.block-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.block-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--mute);
  min-width: 0;
}
.block-btn .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--line);
}
.block-btn .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-btn:hover { background: #f3f4f9; color: var(--ink-2); }
.block-btn.is-on {
  background: var(--purple);
  color: #fff;
  font-weight: 640;
}
.block-btn.is-on:hover { background: var(--purple-deep); color: #fff; }
.rail-foot {
  margin-top: auto;
  padding: 18px 8px 4px;
  font-size: 11.5px;
  color: var(--mute-2);
  line-height: 1.45;
}

/* Pane */
.pane {
  padding: 20px 22px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pane-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pane-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -.03em;
  flex: 0 0 auto;
}
.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  min-width: 0;
  width: 200px;
  color: var(--mute);
}
.search:focus-within { border-color: #c9cce0; box-shadow: 0 0 0 3px var(--purple-soft); }
.search svg { width: 14px; height: 14px; flex: 0 0 auto; }
.search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.search input::placeholder { color: var(--mute-2); }

.block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.block-art {
  width: 120px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--line);
  box-shadow: 0 0 0 1px rgba(24, 28, 46, .06);
}
.block-copy { min-width: 0; }
.block-copy h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.block-copy p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--mute);
}

.progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.bar {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  cursor: pointer;
}
.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  pointer-events: none;
}
.times {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--mute-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.group-k {
  font-size: 13.5px;
  font-weight: 680;
  letter-spacing: -.01em;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-deep);
  font-size: 11px;
  font-weight: 700;
}

/* Queue table */
.queue-wrap {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
  -webkit-overflow-scrolling: touch;
}
.queue {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.queue th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 560;
  color: var(--mute-2);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
}
.queue td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}
.queue tr:last-child td { border-bottom: 0; }
.queue tbody tr {
  cursor: pointer;
  transition: background .12s ease;
}
.queue tbody tr:hover td { background: #f7f7fb; }
.queue tbody tr.is-live td { background: var(--live-row); }
.queue tbody tr.is-live { box-shadow: inset 3px 0 0 var(--purple); }
.queue tbody tr[hidden] { display: none; }
.col-track { width: auto; }
.col-album { width: 28%; }
.col-time { width: 68px; }
.col-status { width: 86px; }
.th-time, .col-time, td.time { text-align: right; font-variant-numeric: tabular-nums; color: var(--mute); font-size: 12.5px; font-weight: 560; }
.track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.track img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--line);
}
.track .ttl {
  font-weight: 630;
  letter-spacing: -.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.album {
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  background: #f3f4f8;
  color: var(--mute);
  letter-spacing: .01em;
}
.status.is-live {
  background: var(--purple-soft);
  color: var(--purple-deep);
}
.status.is-next {
  background: var(--blue-soft);
  color: #3553d6;
}
.status.is-live.is-pulse {
  animation: livepulse 1.8s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 101, 242, .0); }
  50% { box-shadow: 0 0 0 4px rgba(111, 101, 242, .16); }
}

.empty {
  display: none;
  padding: 28px 8px;
  text-align: center;
  color: var(--mute);
  font-size: 14px;
}
.empty.is-shown { display: block; }

/* ——— About / FAQ / footer ——— */
.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 24px 48px;
  text-align: center;
}
.about h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 740;
  letter-spacing: -.03em;
}
.about > p {
  margin: 0 auto;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
}
.faq {
  margin: 36px auto 0;
  text-align: left;
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 2px;
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -.015em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-right: 1.5px solid var(--mute-2);
  border-bottom: 1.5px solid var(--mute-2);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
.faq details p {
  margin: 0 0 16px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  border-top: 1px solid var(--line-2);
  color: var(--mute);
  font-size: 13px;
}
.site-foot .brand { color: var(--ink); }
.credit { flex: 1 1 240px; }
.site-foot nav {
  display: flex;
  gap: 16px;
  color: var(--mute);
  font-weight: 540;
}
.site-foot nav a:hover { color: var(--ink); }

/* ——— 404 ——— */
.miss {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
}
.miss h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 740;
  letter-spacing: -.035em;
}
.miss p { color: var(--mute); margin: 0 0 24px; }

/* ——— Responsive ——— */
@media (max-width: 880px) {
  .top nav { display: none; }
  .board { grid-template-columns: 1fr; }
  .rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 14px 12px;
  }
  .rail-brand, .rail-foot { display: none; }
  .rail-k { margin: 0 2px 8px; }
  .block-nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .block-nav::-webkit-scrollbar { display: none; }
  .block-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 7px 12px 7px 8px;
  }
  .col-album, .th-album { display: none; }
  .search { width: 160px; }
}

@media (max-width: 640px) {
  .top { padding: 14px 16px 4px; }
  .top-actions .ghost { display: none; }
  .hero { padding: 40px 16px 28px; }
  .hero h1 { letter-spacing: -.035em; }
  .stage { padding: 4px 12px 64px; }
  .board { border-radius: 16px; }
  .pane { padding: 16px 14px 14px; gap: 14px; }
  .pane-head { flex-wrap: wrap; }
  .pane-head h2 { font-size: 18px; }
  .tools { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .search { flex: 1 1 160px; width: auto; min-width: 0; }
  .block-art { width: 96px; height: 54px; }
  .col-status { width: 72px; }
  .about, .miss { padding-left: 16px; padding-right: 16px; }
  .site-foot { padding: 24px 16px 40px; }
}

@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 140px; }
  .facts { gap: 6px 14px; font-size: 12px; }
  .col-status, .th-status { display: none; }
  .track img { width: 32px; height: 32px; }
  .block-art { width: 80px; height: 46px; }
  .search { flex: 1 1 100%; width: 100%; }
  .transport { margin-left: auto; }
  .block-nav { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status.is-live.is-pulse { animation: none; }
  .btn { transition: none; }
}
