/* Discover page — inherits tokens and chrome from home.css */

.discover-page { background: var(--ink); }

.disc-head { padding-top: calc(60px + 8vh); }

.disc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}
.disc-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--acid); }
.disc-head .lede { margin-top: 20px; }

.disc-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.disc-select, .disc-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 242, 232, 0.05);
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.disc-select:focus-within, .disc-search:focus-within { border-color: var(--acid); background: rgba(245, 242, 232, 0.08); }
.disc-select svg, .disc-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); pointer-events: none; }
.disc-select svg { position: absolute; right: 16px; }
.disc-search svg { margin-left: 16px; }

.disc-select select {
  appearance: none;
  -webkit-appearance: none;
  height: 100%;
  padding: 0 44px 0 20px;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.disc-select select:focus-visible { outline: none; }
.disc-select select option { color: #000; }

.disc-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 18px 0 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1rem;
}
.disc-search input::placeholder { color: var(--quiet); }
.disc-search input:focus-visible { outline: none; }
.disc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.lanes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lane {
  height: 40px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 240ms var(--ease-out), background 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lane:hover { color: var(--text); border-color: var(--line-2); }
.lane.is-active { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.lane:active { transform: scale(0.96); transition-duration: 120ms; }

.disc-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; min-height: 40px; }
.disc-counts { color: var(--quiet); font-size: 0.92rem; }
.disc-counts b { color: var(--text); font-weight: 600; }

/* list */
.disc-list { margin-top: 28px; min-height: 40vh; }

.day {
  position: sticky;
  top: 74px;
  z-index: 5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 12px;
  margin-top: 26px;
  background: linear-gradient(180deg, var(--ink) 70%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.day:first-child { margin-top: 0; }
.day h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.03em; }
.day h2 small { margin-left: 10px; color: var(--quiet); font-family: var(--font-text); font-weight: 600; font-size: 0.85rem; letter-spacing: 0; }
.day.is-tonight h2 { color: var(--text); }
.day.is-tonight h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(240, 87, 38, 0.16); vertical-align: 2px; }
.day span { color: var(--quiet); font-size: 0.85rem; font-weight: 600; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  transition: background 240ms var(--ease-out);
}
.row:hover, .row:focus-visible { background: rgba(245, 242, 232, 0.05); }

.row-time { display: grid; line-height: 1.1; }
.row-time b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.row-time small { color: var(--quiet); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.row-main { display: grid; gap: 4px; min-width: 0; }
.row-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title .fest { margin-left: 8px; color: var(--acid); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
.row-venue { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-venue b { color: var(--text); font-weight: 500; }

.row-meta { display: flex; align-items: center; gap: 6px; }
.chip { color: var(--quiet); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.chip-src { color: var(--muted); }
.chip-src.ra { border-color: rgba(206, 165, 151, 0.4); color: var(--rose); }
.chip-src.edm { border-color: rgba(200, 245, 0, 0.35); color: var(--acid); }
.row-arrow { width: 18px; height: 18px; margin-left: 4px; fill: none; stroke: var(--quiet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-out), stroke 240ms var(--ease-out); }
.row:hover .row-arrow { transform: translate(2px, -2px); stroke: var(--acid); }

.disc-empty { padding: 48px 0; color: var(--muted); text-align: center; font-size: 1.05rem; }
.disc-empty b { display: block; margin-bottom: 8px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }

.disc-skeleton { display: grid; gap: 12px; }
.disc-skeleton div { height: 70px; border-radius: 14px; background: linear-gradient(90deg, rgba(245, 242, 232, 0.04), rgba(245, 242, 232, 0.09), rgba(245, 242, 232, 0.04)); background-size: 200% 100%; animation: shimmer 1400ms linear infinite; }

.disc-foot { display: grid; gap: 22px; padding: 72px 0 40px; color: var(--quiet); font-size: 0.9rem; line-height: 1.55; max-width: 62ch; }
.disc-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.disc-foot a:hover { color: var(--acid); }

@media (max-width: 860px) {
  .disc-head { padding-top: calc(56px + 5vh); }
  .disc-controls { grid-template-columns: 1fr; }
  .disc-select select { width: 100%; }
  .day { top: 66px; }
  .row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 8px; margin: 0 -8px; }
  .row-meta { grid-column: 2; justify-content: flex-start; margin-top: 2px; }
  .row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row-venue { white-space: normal; }
  .row-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .disc-skeleton div { animation: none; }
}
