/* The Rundown (public/js/rundown.js): what streamers talked about, written up. An editorial page over the site theme:
   a masthead with a date line, cards for takes and episodes, topic chips coloured by kind (--rd-k). */
.rundown-container { padding-bottom: 40px; }

/* Masthead */
.rd-mast { margin: 18px 0 16px; padding: 0 0 12px; border-bottom: 3px double var(--border-light, var(--border)); }
.rd-mast-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.rd-title { margin: 10px 0 4px; font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 0.95; font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; }
.rd-tagline { margin: 0 0 12px; max-width: 64ch; color: var(--text-secondary); font-size: 1.02rem; }
.rd-tabs { display: flex; gap: 6px; }
.rd-tab { padding: 7px 14px; border-radius: 999px; font-weight: 700; color: var(--text-secondary); text-decoration: none; border: 1px solid transparent; }
.rd-tab:hover { color: var(--text-primary); border-color: var(--border); }
.rd-tab.is-on { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--border); }

/* Headings, layout */
.rd-h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.08; font-weight: 900; letter-spacing: -0.02em; }
.rd-h2 { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 12px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.rd-h2 small { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.rd-main > .rd-h2:first-child { margin-top: 4px; }
.rd-h3 { margin: 0 0 4px; font-size: 1.18rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.rd-h3 a { color: inherit; text-decoration: none; }
.rd-h3 a:hover { text-decoration: underline; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.rd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.rd-box { padding: 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.rd-box .rd-h2 { margin-top: 0; }
.rd-quiet { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.rd-empty { padding: 34px 20px; text-align: center; border: 2px dashed var(--border); border-radius: 16px; color: var(--text-secondary); }
.rd-empty i { font-size: 1.8rem; margin-bottom: 8px; opacity: 0.7; }
.rd-empty p { margin: 6px auto 14px; max-width: 46ch; }
.rd-loadmore { display: block; margin: 16px auto 0; }
.rd-more-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 0.9rem; }
.rd-link { background: none; border: 0; padding: 0; color: var(--accent-light, var(--accent)); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.rd-crumbs { margin: 16px 0 0; font-size: 0.88rem; color: var(--text-secondary); }
.rd-crumbs a { color: inherit; }
.rd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live-red, #ef4444); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live-red, #ef4444) 25%, transparent); }

/* On air now */
.rd-onair { margin: 0 0 6px; }
.rd-onair .rd-h2 { margin-top: 0; }
.rd-onair-list { display: flex; gap: 10px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.rd-onair-item { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 320px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--bg-card);
  border: 1px solid var(--border); color: inherit; text-decoration: none; }
.rd-onair-item:hover { border-color: var(--live-red, #ef4444); }
.rd-onair-item img, .rd-onair-i { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--bg-tertiary); font-weight: 800; }
.rd-onair-t { display: flex; flex-direction: column; min-width: 0; }
.rd-onair-t small { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avatars and names */
.rd-av { flex: none; display: grid; place-items: center; width: var(--rd-av, 36px); height: var(--rd-av, 36px); border-radius: 50%; overflow: hidden; text-decoration: none;
  background: color-mix(in srgb, var(--rd-c, #64748b) 35%, var(--bg-tertiary)); color: var(--text-primary); font-weight: 800; }
.rd-av img { width: 100%; height: 100%; object-fit: cover; }
.rd-user { font-weight: 700; color: var(--text-primary); text-decoration: none; }
.rd-user:hover { text-decoration: underline; }
.rd-by { margin: 0 0 6px; font-size: 0.9rem; color: var(--text-secondary); }

/* Chips */
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; line-height: 1.3;
  color: var(--text-primary); text-decoration: none; background: color-mix(in srgb, var(--rd-k, #94a3b8) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rd-k, #94a3b8) 45%, transparent);
  overflow-wrap: anywhere; }
.rd-chip::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rd-k, #94a3b8); }
.rd-chip:hover, .rd-chip.is-on { background: color-mix(in srgb, var(--rd-k, #94a3b8) 30%, transparent); }
.rd-chip b { font-weight: 800; color: var(--text-secondary); }
.rd-chips-sm .rd-chip { font-size: 0.76rem; padding: 2px 8px; }

/* Cards */
.rd-card { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.rd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.rd-card-top time { flex: none; font-size: 0.8rem; color: var(--text-muted); }
.rd-take-body { display: flex; gap: 12px; }
.rd-take-text { flex: 1; min-width: 0; }
.rd-what { margin: 0 0 8px; color: var(--text-primary); line-height: 1.55; }
.rd-their { margin: 0 0 8px; line-height: 1.5; }
.rd-their span { margin-right: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.rd-quote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-tertiary); }
.rd-quote p { margin: 0; font-size: 1.04rem; font-style: italic; line-height: 1.5; }
.rd-quote .rd-quote-en, .rd-quote-en { margin: 4px 0 0; font-style: normal; font-size: 0.9rem; color: var(--text-secondary); }
.rd-quote footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 0.86rem; color: var(--text-secondary); }
.rd-quip { margin: 8px 0 0; color: var(--text-secondary); font-style: italic; line-height: 1.5; }
.rd-desk { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--text-primary); color: var(--bg-card);
  font-size: 0.68rem; font-weight: 900; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 1px; }
.rd-cross { margin: 8px 0 0; font-size: 0.88rem; color: var(--text-secondary); }
.rd-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.rd-kicker { font-size: 0.74rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light, var(--accent)); }
.rd-kicker-k { color: var(--rd-k, var(--accent)); }
.rd-logline { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.5; }
.rd-read { font-weight: 800; text-decoration: none; }
.rd-episode { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }

/* Chapters */
.rd-chapters { margin: 6px 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.rd-chapters li { display: flex; gap: 10px; align-items: baseline; }
.rd-stamp { flex: none; min-width: 3.4em; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-secondary); }
.rd-chapters a { text-decoration: none; }
.rd-chapters-big { font-size: 1rem; gap: 8px; }

/* Buttons and reactions */
.rd-watch { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.rd-watch .rd-stamp { min-width: 0; font-weight: 600; }
.rd-speak { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; }
.rd-speak:hover, .rd-speak.is-speaking { color: var(--accent-light, var(--accent)); border-color: var(--accent); }
.rd-react { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-react-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-tertiary);
  color: var(--text-primary); font: inherit; font-size: 0.9rem; cursor: pointer; }
.rd-react-btn b { font-size: 0.8rem; }
.rd-react-btn:hover { border-color: var(--border-light, var(--accent)); }
.rd-react-btn.is-mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--bg-tertiary)); }

/* Side boxes */
.rd-trend { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rd-trend li { display: flex; gap: 10px; align-items: flex-start; }
.rd-trend li > div { min-width: 0; }
.rd-trend-n { flex: none; width: 1.4em; font-size: 1.2rem; font-weight: 900; color: var(--text-muted); line-height: 1.4; }
.rd-trend-meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 0.82rem; color: var(--text-secondary); }
.rd-stack { display: inline-flex; }
.rd-stack i { display: grid; place-items: center; width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; overflow: hidden; border: 2px solid var(--bg-card);
  background: color-mix(in srgb, var(--rd-c, #64748b) 35%, var(--bg-tertiary)); font-size: 0.7rem; font-style: normal; font-weight: 800; }
.rd-stack i:first-child { margin-left: 0; }
.rd-stack img { width: 100%; height: 100%; object-fit: cover; }
.rd-voices { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rd-voices li { display: flex; gap: 10px; align-items: flex-start; }
.rd-voices li > div { min-width: 0; }
.rd-voice-name { margin: 0 0 4px; }
.rd-voice-name small { margin-left: 4px; color: var(--text-muted); font-size: 0.78rem; }
.rd-about p { margin: 0 0 8px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* Topic, episode and streamer pages */
.rd-page { max-width: 820px; }
.rd-page-head { margin: 8px 0 14px; }
.rd-deck { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.45; color: var(--text-primary); }
.rd-meta { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.rd-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; }
.rd-summary { margin: 0 0 8px; padding: 14px 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.rd-summary p { margin: 8px 0 0; line-height: 1.6; }
.rd-recap p { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.7; }
.rd-ep-who { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rd-ep-who .rd-by { margin: 2px 0 0; }
.rd-ep-react { border-top: 0; padding-top: 0; }
.rd-streamer-head { display: flex; align-items: center; gap: 16px; }
.rd-streamer-head .rd-h1 { margin: 0 0 4px; }
.rd-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.rd-line { margin: 0; padding: 14px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.rd-line blockquote { margin: 0; font-size: 1.05rem; font-style: italic; line-height: 1.45; }
.rd-line figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Topics index */
.rd-filters { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.rd-seg { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; background: var(--bg-tertiary); border: 1px solid var(--border); }
.rd-seg-btn { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; }
.rd-seg-btn.is-on { background: var(--bg-card); color: var(--text-primary); }
.rd-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.rd-topic-grid .rd-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-topic-card .rd-chip { align-self: flex-start; }
.rd-topic-card .rd-what { margin: 0; font-size: 0.94rem; color: var(--text-secondary); }

@media (max-width: 960px) {
  .rd-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-side { position: static; }
}
@media (max-width: 560px) {
  .rd-card { padding: 12px 13px; }
  .rd-take-who { display: none; }
  .rd-h3 { font-size: 1.08rem; }
  .rd-onair-item { min-width: 200px; }
  .rd-streamer-head { align-items: flex-start; }
}
