/* The Monsoon Road — OST page.
   Extends styles.css (tokens, .site-header, .row, .btn) with the page-specific
   layout: the intro, the 53-cell route strip, the dark "now playing" console,
   the grouped tracklist, and the closing quote. Loaded only on /ost/. */

.nav-current {
  color: var(--red);
  border-bottom: 2px solid var(--red);
}

/* ------------------------------------------------------------------ intro */

.ost-intro {
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--rule);
}

.ost-intro-title {
  flex: 3 1 480px;
  min-width: 0;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ost-intro-title h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ost-intro-copy {
  flex: 2 1 340px;
  min-width: 0;
  padding: var(--pad-y) var(--pad-x);
  border-left: var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
}

.ost-intro-copy p { font-size: 18px; line-height: 1.6; }

.ost-cta-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* .btn-outline is white-on-white here — it's built for the homepage's red hero
   panel. This is the same shape, inked for a light background. */
.btn-outline-ink {
  border: var(--rule);
  color: var(--ink);
  padding: 16px 28px;
}
.btn-outline-ink:hover { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------------ route */

.ost-route {
  padding: 28px var(--pad-x) 32px;
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ost-route-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.ost-route-head h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ost-route-status {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.ost-heard {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ost-heard strong { color: var(--ink); font-weight: 800; }

.ost-reset {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
}
.ost-reset:hover { color: var(--red); }

.ost-grid-wrap { overflow-x: auto; }

.ost-grid {
  display: grid;
  grid-template-columns: repeat(53, minmax(20px, 1fr));
  column-gap: 2px;
  row-gap: 6px;
  min-width: 900px;
}

.ost-grid-label {
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  border-left: var(--rule);
  padding: 0 0 4px 6px;
}
.ost-grid-label .stage-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ost-grid-label .stage-name.is-current { color: var(--red); }
.ost-grid-label .stage-days {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.ost-cell {
  grid-row: 2;
  height: 44px;
  min-width: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: #d7d3d3;
}
.ost-cell:hover { background: var(--lime); }
.ost-cell.is-heard { background: var(--ink); }
.ost-cell.is-current { background: var(--red); }

/* ----------------------------------------------------------------- player */

.ost-player {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--rule);
}

.ost-player-main {
  flex: 1 1 420px;
  min-width: 0;
  padding: 40px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ost-player-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ost-player-meta .ost-stage { color: var(--lime); }
.ost-player-meta .ost-num { color: rgba(255, 255, 255, 0.5); white-space: nowrap; }

.ost-player-track { display: flex; flex-direction: column; gap: 12px; }
.ost-player-track h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ost-player-track p { font-size: 19px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }

.ost-transport {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Nav buttons sit below the embed, not beside it — the compact Spotify widget
   needs its full column width or it crops the track title. */
.ost-embed-wrap { width: 100%; }
#ost-embed { display: block; width: 100%; }

.ost-controls { display: flex; align-items: center; gap: 16px; }

.ost-nav-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.ost-nav-btn:hover { background: rgba(255, 255, 255, 0.12); }

.ost-hint { margin: 0; font-size: 12px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45); }

.ost-player-quote {
  flex: 1.4 1 460px;
  min-width: 0;
  padding: 40px var(--pad-x);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ost-player-quote-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}
.ost-player-quote-meta .ost-chapter { font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.ost-player-quote-meta .ost-source { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

.ost-player-quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  text-wrap: pretty;
}

/* -------------------------------------------------------------- tracklist */

.ost-track-group .row-label { display: flex; flex-direction: column; gap: 6px; }
.ost-track-days {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.ost-track-group h3 { font-size: 24px; }
.ost-track-dates { font-size: 14px; color: var(--muted); }

.ost-track-body { display: flex; flex-direction: column; padding: 0; }

.ost-track-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 18px var(--pad-x);
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.ost-track-body .ost-track-row:last-child { border-bottom: none; }
.ost-track-row:hover { background: var(--lime); }
.ost-track-row.is-current { background: color-mix(in srgb, var(--red) 14%, var(--bg)); }

.ost-track-num { font-size: 14px; font-weight: 800; padding-top: 3px; color: var(--muted); }
.ost-track-row.is-current .ost-track-num { color: var(--red); }
.ost-track-row.is-heard .ost-track-num { color: var(--ink); }

.ost-track-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ost-track-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ost-track-title .artist { font-weight: 400; color: var(--muted); }
.ost-track-quote {
  font-size: 14px;
  line-height: 1.5;
  color: #4a4644;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ost-track-ch {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 4px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- close */

.ost-closing {
  background: var(--red);
  color: var(--white);
  padding: clamp(40px, 7vw, 96px) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ost-closing .quote {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.ost-closing .track-tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .ost-track-row { padding: 16px var(--pad-x); }
}

@media (max-width: 640px) {
  .ost-intro-copy { border-left: none; border-top: var(--rule); }
  .ost-player-quote { border-left: none; border-top: 2px solid rgba(255, 255, 255, 0.15); }
  .ost-track-row { grid-template-columns: 32px minmax(0, 1fr); }
  .ost-track-ch { display: none; }
  .ost-nav-btn { width: 48px; }
}
