/* ==========================================================================
   RIDDIM — Home, Charts, Podcasts
   ========================================================================== */

/* Home hero ---------------------------------------------------------------- */
.hero {
  padding-block: clamp(34px, 5vw, 64px) clamp(52px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(46px, 7.4vw, 100px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lede { margin-top: 22px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__art { position: relative; }
.hero__art::before {
  content: "";
  position: absolute;
  inset: 10% -5% -5% 14%;
  z-index: -1;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  transform: rotate(3deg);
}
.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}
.hero__frame .cover { aspect-ratio: 1; }
.hero__frame .cover__mark { font-size: 38cqw; }
.hero__play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transition: transform var(--dur-2) var(--ease), background var(--dur-1) var(--ease);
}
.hero__play:hover { transform: scale(1.05); background: var(--gold-2); }
.hero__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
}
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 11px;
}

/* Continue listening ------------------------------------------------------- */
.resume {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-900);
}
.resume .cover { width: 52px; height: 52px; flex: none; border-radius: 9px; }
.resume__main { min-width: 0; flex: 1; }
.resume__title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume__meta { color: var(--muted); font-size: 12px; }
.resume__bar {
  height: 3px;
  margin-top: 7px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.resume__bar span { display: block; height: 100%; background: var(--gold); }

/* Charts feature ----------------------------------------------------------- */
.charts-feature {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.chart-panel {
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.chart-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.chart-panel__title { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1; }
.chart-panel__meta { margin-top: 6px; color: var(--muted-2); font-size: 11px; }

.chart-list { display: flex; flex-direction: column; }
.chart-row {
  display: grid;
  grid-template-columns: 38px 18px 46px minmax(0, 1fr) auto 34px;
  gap: 12px;
  align-items: center;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
}
.chart-row:first-child { border-top: 0; }
.chart-row__rank {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--muted-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.chart-row__move {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
}
.chart-row__move.up { color: var(--success); }
.chart-row__move.down { color: var(--danger); }
.chart-row__cover { width: 46px; height: 46px; overflow: hidden; border-radius: 8px; }
.chart-row__main { min-width: 0; }
.chart-row__title {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-row__artist {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-row__extra { color: var(--muted-2); font-size: 11px; text-align: right; }
.chart-row__play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.chart-row__play:hover { background: var(--ink-800); color: var(--gold); }

/* Editorial note */
.editorial-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-md);
  background: var(--ink-900);
}
.editorial-note__title { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.1; }
.editorial-note p { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.editorial-note__list { display: grid; gap: 12px; margin-top: 18px; }
.editorial-note__item { display: flex; gap: 10px; }
.editorial-note__num { color: var(--gold); font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.editorial-note__item strong { display: block; font-size: 13px; font-weight: 600; }
.editorial-note__item span { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Sponsored slot ----------------------------------------------------------- */
.sponsor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.012);
}
.sponsor__label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sponsor__text { margin-top: 5px; color: var(--muted); font-size: 13.5px; }
.sponsor__text strong { color: var(--paper); font-weight: 600; }
.sponsor .btn { flex: none; }

/* Originals ---------------------------------------------------------------- */
.original-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-900);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.original-card:hover { border-color: var(--line-2); background: var(--ink-850); }
.original-card .cover { width: 96px; flex: none; border-radius: var(--r-sm); }
.original-card__main { min-width: 0; display: flex; flex-direction: column; }
.original-card__kind { color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.original-card__title { margin-top: 5px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.original-card__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.original-card__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--muted-2); font-size: 11px; }

/* Page head ---------------------------------------------------------------- */
.page-head { padding-block: clamp(40px, 6vw, 76px) clamp(24px, 3vw, 44px); }
.page-head__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-head__lede { margin-top: 18px; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Segmented control -------------------------------------------------------- */
.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--ink-900);
}
.segmented button {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.segmented button:hover { color: var(--paper); }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink-950); }

/* Charts page -------------------------------------------------------------- */
.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.chart-source {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 11px;
}
.chart-source strong { color: var(--muted); font-weight: 600; }

.chart-full .chart-row {
  grid-template-columns: 48px 20px 56px minmax(0, 1fr) 110px 64px 38px;
  padding-block: 12px;
}
.chart-full .chart-row__cover { width: 56px; height: 56px; }
.chart-full .chart-row__peak { color: var(--muted-2); font-size: 11px; text-align: right; }

.method {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-900);
}
.method__title { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.method p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.method strong { color: var(--paper); }

/* Podcasts ----------------------------------------------------------------- */
.podcast-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(226, 176, 74, 0.06), transparent 55%), var(--ink-900);
}
.podcast-hero .cover { border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.podcast-hero__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.podcast-hero__desc { margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.podcast-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.show-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.show-card__art { position: relative; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.show-card__art .cover { transition: transform var(--dur-3) var(--ease); }
.show-card:hover .show-card__art .cover { transform: scale(1.035); }
.show-card__title { margin-top: 12px; font-size: 15px; font-weight: 600; }
.show-card__meta { margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.show-card__desc {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-list { border-top: 1px solid var(--line); }
.episode-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.episode-row__num { color: var(--muted-2); font-family: var(--font-display); font-size: 22px; text-align: right; }
.episode-row__title { font-size: 14px; font-weight: 600; }
.episode-row__meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
.episode-row__date { color: var(--muted-2); font-size: 11.5px; }
.episode-row__play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--paper);
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.episode-row__play:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

a.show-card { display: block; text-decoration: none; color: inherit; }
a.show-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.show-card__img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: inherit; }
.ad-slide__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
