/*
 * NOWON Radio - Podcasts page.
 *
 * TABLE OF CONTENTS
 *  1. Latest episode
 *  2. Browse by show
 *  3. Episode archive
 *  4. Series and collections
 *  5. Listen anywhere
 *  6. Media queries
 */

/* ==========================================================================
   1. Latest episode
   ========================================================================== */
.latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px 60px;
}

.latest-head__text {
  flex: 1 1 640px;
  min-width: 0;
}

.latest-head__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.latest-head__new {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .15em;
}

.latest-head__show {
  margin-top: 24px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 15px;
}

.latest-head__title {
  margin-top: 12px;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 116px);
  line-height: .9;
  letter-spacing: -.05em;
}

.latest-figures {
  display: grid;
  flex: 0 1 420px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.latest-figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 16px 0 16px 16px;
  border-left: 1px solid var(--line);
}

.latest-figure:first-child {
  padding-left: 0;
  border-left: 0;
}

.latest-figure__value {
  margin: 0;
  font-weight: 900;
  font-size: 30px;
}

.latest-figure:first-child .latest-figure__value {
  color: var(--acc);
}

.latest-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 18px 24px;
  overflow: hidden;
  border: 1px solid var(--acc-25);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.latest-bar__skip {
  flex: none;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}

.latest-bar__play {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.latest-bar__play[aria-pressed="true"] {
  box-shadow: 0 0 0 8px var(--acc-20);
}

.latest-bar__time,
.latest-bar__total {
  flex: none;
  font-family: var(--mono);
  font-size: 14px;
}

.latest-bar__time {
  width: 60px;
  color: var(--acc);
}

.latest-bar__total {
  color: var(--ink-60);
}

.latest-wave {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 56px;
  cursor: pointer;
}

.latest-wave__canvas {
  width: 100%;
  height: 100%;
}

.latest-wave__mark {
  position: absolute;
  left: var(--position, 0%);
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(245, 237, 216, .5);
}

.latest-wave__head {
  position: absolute;
  left: var(--position, 18%);
  top: -8px;
  bottom: -8px;
  width: 3px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--cream);
  box-shadow: 0 0 12px rgba(245, 237, 216, .7);
  pointer-events: none;
}

.latest-bar__speed {
  flex: none;
  background: var(--bg);
}

.latest-bar__speed .segmented__item {
  height: 40px;
}

.chapter-scroll {
  margin-top: 20px;
}

.chapter-cards {
  display: flex;
  gap: 14px;
  height: 330px;
  min-width: 1100px;
}

.chapter-card {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface-2);
  text-align: left;
  transition: flex .6s var(--ease-fill), border-color .3s ease;
}

.chapter-card.is-active {
  flex: 3 1 0;
  border-color: var(--acc);
}

.chapter-card__art {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  height: 150px;
  filter: grayscale(1) brightness(.7);
  transition: filter .4s ease;
}

.chapter-card.is-active .chapter-card__art {
  filter: none;
}

.chapter-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-card__num {
  position: absolute;
  left: 14px;
  top: 12px;
  color: transparent;
  font-weight: 900;
  font-size: 54px;
  line-height: .85;
  letter-spacing: -.04em;
  -webkit-text-stroke: 1.5px var(--acc);
}

.chapter-card.is-active .chapter-card__num {
  color: var(--acc);
}

.chapter-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 14px 18px 18px;
}

.chapter-card__times {
  display: flex;
  justify-content: space-between;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
}

.chapter-card.is-active .chapter-card__times {
  color: var(--acc);
}

.chapter-card__name {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: font-size .4s ease;
}

.chapter-card.is-active .chapter-card__name {
  font-size: 26px;
  white-space: normal;
}

.chapter-card__text {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
}

.chapter-card__quote {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  overflow: hidden;
  color: var(--acc);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
}

.chapter-card.is-active .chapter-card__text,
.chapter-card.is-active .chapter-card__quote {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease .2s;
}

.chapter-card__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--progress, 0) * 1%);
  height: 4px;
  background: var(--acc);
}

.latest-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mentions {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface-2);
}

.mentions__label {
  flex: none;
  width: 110px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .2em;
}

.mentions__list {
  display: flex;
  flex: 1;
  gap: 22px;
  min-width: 0;
}

.mention {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink-60);
  transition: color .3s ease;
}

.mention.is-hit {
  color: var(--ink);
}

.mention__art {
  flex: none;
  width: 52px;
  height: 52px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  opacity: .45;
  transition: opacity .3s ease, border-color .3s ease;
}

.mention.is-hit .mention__art {
  border-color: var(--acc);
  opacity: 1;
}

.mention__text {
  min-width: 0;
}

.mention__title {
  display: block;
  font-size: 15px;
}

.mention__meta {
  display: block;
  color: var(--ink-60);
  font-size: 12px;
}

.up-next {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px 22px;
  border: 1px dashed var(--acc-35);
  border-radius: 18px;
}

.up-next__art {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.up-next__text {
  flex: 1;
  min-width: 0;
}

.up-next__label {
  display: block;
}

.up-next__title {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.up-next__meta {
  color: var(--ink-60);
  font-size: 12px;
}

/* ==========================================================================
   2. Browse by show
   ========================================================================== */
.browse-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.browse-figures {
  display: flex;
  gap: 30px;
  margin: 0;
}

.browse-figure {
  display: flex;
  flex-direction: column-reverse;
  text-align: right;
}

.browse-figure__value {
  margin: 0;
  font-weight: 900;
  font-size: 44px;
}

.browse-aside__nav {
  display: flex;
  gap: 8px;
}

.show-scroll {
  border-radius: 22px;
}

.show-panels {
  display: flex;
  gap: 10px;
  height: 680px;
  min-width: 1100px;
}

.show-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 22px;
  background: var(--surface-2);
  cursor: pointer;
  transition: flex .7s var(--ease-fill), border-color .3s ease;
}

.show-panel.is-open {
  flex: 5.5 1 0;
  border-color: var(--acc);
}

.show-panel__art {
  position: absolute;
  inset: -30px;
  filter: grayscale(1) brightness(.7);
  transform: translate(calc(var(--shift-x, 0) * -26px), calc(var(--shift-y, 0) * -26px)) scale(1.05);
  transition: transform .25s ease-out, filter .5s ease;
}

.show-panel.is-open .show-panel__art {
  filter: none;
}

.show-panel__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, .15) 15%, rgba(18, 17, 16, .97) 58%);
}

.show-panel__abbr {
  position: absolute;
  left: 20px;
  top: 18px;
  color: transparent;
  font-weight: 900;
  font-size: 64px;
  line-height: .85;
  letter-spacing: -.05em;
  transition: font-size .5s ease, color .5s ease;
  -webkit-text-stroke: 1.5px var(--acc);
}

.show-panel.is-open .show-panel__abbr {
  color: var(--acc);
  font-size: clamp(64px, 5.7vw, 110px);
}

.show-panel__next {
  position: absolute;
  right: 18px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acc);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}

.show-panel.is-open .show-panel__next {
  opacity: 1;
  visibility: visible;
}

.show-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

.show-panel__vertical {
  position: absolute;
  left: 22px;
  bottom: 30px;
  font-weight: 900;
  font-size: 26px;
  white-space: nowrap;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: 0 100%;
  transition: opacity .3s ease;
}

.show-panel__rail {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: opacity .3s ease;
}

.show-panel__rail-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--acc);
}

.show-panel.is-past .show-panel__rail-fill {
  width: 100%;
}

.show-panel.is-open .show-panel__vertical,
.show-panel.is-open .show-panel__rail {
  opacity: 0;
}

.show-panel__select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  border-radius: 22px;
}

.show-panel.is-open .show-panel__select {
  visibility: hidden;
}

.show-panel__info {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.show-panel.is-open .show-panel__info {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease .2s, transform .55s ease .2s, visibility 0s;
}

.show-panel__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.show-panel__face {
  flex: none;
  width: 52px;
  height: 52px;
  border: 2px solid var(--acc);
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, #3a3732 0 6px, #2a2824 6px 12px);
}

.show-panel__host {
  font-size: 16px;
}

.show-panel__host-label {
  display: block;
  color: rgba(245, 237, 216, .7);
  font-size: 13px;
}

.show-panel__tags {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.show-panel__eps,
.show-panel__freq {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  white-space: nowrap;
}

.show-panel__eps {
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  letter-spacing: .15em;
}

.show-panel__freq {
  border: 1px solid rgba(245, 237, 216, .35);
  font-family: var(--mono);
}

.show-panel__name {
  margin-top: 18px;
  font-weight: 900;
  font-size: 72px;
  line-height: .9;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.show-panel__line {
  max-width: 720px;
  margin-top: 10px;
  color: var(--ink-75);
  font-size: 16px;
  line-height: 1.5;
}

.show-panel__wave {
  width: 100%;
  height: 36px;
  margin-top: 16px;
}

.show-panel__eps-list {
  margin-top: 14px;
  border-top: 1px solid rgba(245, 237, 216, .15);
}

.show-ep {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 11px 0;
  border-bottom: 1px solid rgba(245, 237, 216, .1);
  text-align: left;
}

.show-ep__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--acc);
  border-radius: 50%;
  color: var(--acc);
  font-size: 12px;
}

.show-ep[aria-pressed="true"] .show-ep__icon {
  background: var(--acc);
  color: var(--ink-dark);
}

.show-ep__title {
  font-size: 16px;
}

.show-ep[aria-pressed="true"] .show-ep__title {
  color: var(--acc);
}

.show-ep__meta {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 12px;
}

.show-ep__len {
  width: 60px;
  text-align: right;
}

.show-ep__bar {
  position: absolute;
  left: 58px;
  bottom: -1px;
  width: calc((100% - 58px) * var(--progress, 0) / 100);
  height: 2px;
  background: var(--acc);
}

.show-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.show-panel__subscribe,
.show-panel__all {
  height: 52px;
}

.show-panel__subscribe {
  padding: 0 24px;
  font-weight: 900;
}

.show-panel__subscribe[aria-pressed="true"] {
  background: var(--cream);
}

.show-panel__all {
  padding: 0 22px;
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   3. Episode archive
   ========================================================================== */
.archive-head {
  margin-bottom: 30px;
}

.archive-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.archive-tools__clear {
  height: 44px;
  padding: 0 16px;
  font-size: 12px;
}

.archive-tools__clear[hidden],
.month[hidden],
.ep-row[hidden],
.archive-none[hidden] {
  display: none;
}

.archive-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  height: 56px;
  padding: 0 20px;
  border: 1.5px solid var(--acc-35);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}

.archive-search__icon {
  color: var(--acc);
}

.archive-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.archive-search__input::placeholder {
  color: var(--ink-60);
}

.archive-search:focus-within {
  border-color: var(--acc);
}

.archive-section {
  scroll-margin-top: 110px;
}

.month {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 50px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.month__name {
  color: transparent;
  font-weight: 900;
  font-size: clamp(64px, 5.7vw, 110px);
  line-height: .85;
  letter-spacing: -.05em;
  -webkit-text-stroke: 2px var(--acc);
}

.month__meta {
  margin-top: 8px;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 13px;
}

.month-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 18px;
}

.month-cal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 10px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.month-cal__day.has-episode {
  background: var(--acc-25);
  color: var(--acc);
}

.month-cal__day.is-lit {
  background: var(--acc);
  color: var(--ink-dark);
  transform: scale(1.25);
}

.month__rows {
  min-width: 0;
}

.ep-row {
  border-bottom: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: background .25s ease;
}

.ep-row:hover,
.ep-row:focus-within {
  background: var(--surface-2);
}

.ep-row__main {
  display: grid;
  grid-template-columns: 56px 60px minmax(0, 1fr) minmax(0, 200px) 80px;
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.ep-row__play {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
}

.ep-row:hover .ep-row__play,
.ep-row:focus-within .ep-row__play,
.ep-row.is-playing .ep-row__play {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink-dark);
}

.ep-row__day {
  font-weight: 900;
  font-size: 30px;
}

.ep-row.is-playing .ep-row__day {
  color: var(--acc);
}

.ep-row__title {
  font-size: 19px;
}

.ep-row__show {
  color: var(--acc);
  font-size: 13px;
}

.ep-row__len {
  color: rgba(245, 237, 216, .7);
  font-family: var(--mono);
  font-size: 13px;
}

.ep-row__more {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .4s ease, visibility 0s linear .4s;
}

.ep-row:hover .ep-row__more,
.ep-row:focus-within .ep-row__more {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .4s ease, visibility 0s;
}

.ep-row__detail {
  min-height: 0;
  padding: 0 16px 0 162px;
  overflow: hidden;
}

.ep-row:hover .ep-row__detail,
.ep-row:focus-within .ep-row__detail {
  padding-bottom: 20px;
}

.ep-row__desc {
  color: var(--ink-75);
  font-size: 15px;
  line-height: 1.6;
}

.ep-row__wave {
  width: 100%;
  height: 34px;
  margin-top: 14px;
}

.ep-row__chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ep-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  border-radius: var(--radius-pill);
  font-size: 12px;
}

.ep-chapter__time {
  color: var(--acc);
  font-family: var(--mono);
}

.archive-none {
  padding: 40px 0;
  color: var(--ink-60);
  font-size: 16px;
}

/* ==========================================================================
   4. Series and collections
   ========================================================================== */
.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.collection {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  border-radius: 20px;
  transition: border-color .3s ease;
}

.collection:hover,
.collection:focus-within,
.collection.is-on {
  border-color: var(--acc);
}

.collection__art,
.collection__shade,
.collection__tint {
  position: absolute;
  inset: 0;
}

.collection__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection__shade {
  background: linear-gradient(180deg, rgba(18, 17, 16, .7) 0, rgba(18, 17, 16, 0) 16%, rgba(18, 17, 16, 0) 35%, rgba(18, 17, 16, .95));
}

.collection__tint {
  background: linear-gradient(180deg, var(--acc-07), var(--acc) 75%);
  opacity: 0;
  transition: opacity .4s ease;
}

.collection:hover .collection__tint,
.collection:focus-within .collection__tint,
.collection.is-on .collection__tint {
  opacity: 1;
}

.collection__top {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
}

.collection__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  transition: color .3s ease;
}

.collection:hover .collection__top,
.collection:focus-within .collection__top,
.collection.is-on .collection__top,
.collection:hover .collection__body,
.collection:focus-within .collection__body,
.collection.is-on .collection__body {
  color: var(--ink-dark);
}

.collection__title {
  font-weight: 900;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1;
  letter-spacing: -.03em;
}

.collection__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.collection__play {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .15em;
}

.collection__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--ink-dark);
  font-size: 12px;
}

.collection:hover .collection__icon,
.collection:focus-within .collection__icon,
.collection.is-on .collection__icon {
  background: var(--ink-dark);
  color: var(--acc);
}

/* ==========================================================================
   5. Listen anywhere
   ========================================================================== */
.listen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.listen-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-top: 26px;
}

.listen-form__input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 22px;
  border: 1.5px solid rgba(245, 237, 216, .25);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 15px;
}

.listen-form__input::placeholder {
  color: var(--ink-60);
}

.listen-form__input:focus {
  border-color: var(--acc);
  outline: 0;
}

.listen-form__send {
  height: 58px;
  font-weight: 900;
}

.app-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1.5px solid rgba(245, 237, 216, .1);
  border-radius: 18px;
  background: var(--surface-2);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.app-link:hover {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink-dark);
}

.app-link__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 900;
  font-size: 20px;
  transition: background .3s ease, color .3s ease;
}

.app-link:hover .app-link__icon {
  background: var(--ink-dark);
  color: var(--acc);
}

.app-link__text {
  min-width: 0;
}

.app-link__name {
  display: block;
  font-size: 17px;
}

.app-link__note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.app-link__arrow {
  margin-left: auto;
  font-size: 18px;
}

/* ==========================================================================
   6. Media queries (widest first)
   ========================================================================== */
@media (max-width: 1599.98px) {
  .mentions {
    flex-wrap: wrap;
  }

  .mentions__label {
    width: 100%;
  }

  .show-panel__name {
    font-size: 56px;
  }
}

@media (max-width: 1299.98px) {
  .ep-row__main {
    grid-template-columns: 48px 44px minmax(0, 1fr) 70px;
  }

  .ep-row__show {
    display: none;
  }

  .ep-row__detail {
    padding-left: 128px;
  }
}

@media (max-width: 1099.98px) {
  .latest-bar__skip {
    display: none;
  }

  .month {
    grid-template-columns: minmax(0, 1fr);
  }

  .month-cal {
    max-width: 360px;
  }
}

@media (max-width: 767.98px) {
  .latest-head__new,
  .stat-label,
  .chapter-card__times,
  .mentions__label,
  .show-panel__eps,
  .show-panel__freq,
  .month-cal__day,
  .collection__top,
  .collection__art {
    font-size: 12px;
  }

  .latest-figure {
    padding-left: 10px;
  }

  .latest-figure__value {
    font-size: 22px;
  }

  .latest-figure .stat-label {
    letter-spacing: .04em;
  }

  .latest-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
  }

  .latest-bar__play {
    width: 60px;
    height: 60px;
  }

  .latest-wave {
    flex: 1 1 100%;
    order: 5;
  }

  .latest-bar__speed {
    margin-left: auto;
  }

  .latest-bar__speed .segmented__item {
    padding: 0 8px;
  }

  /* Chapters: a vertical accordion instead of a sideways board. */
  .chapter-scroll {
    overflow: visible;
  }

  .chapter-cards {
    flex-direction: column;
    gap: 8px;
    height: auto;
    min-width: 0;
  }

  .chapter-card,
  .chapter-card.is-active {
    flex: none;
  }

  .chapter-card__art {
    display: none;
  }

  .chapter-card.is-active .chapter-card__art {
    display: block;
    height: 110px;
  }

  .chapter-card__text,
  .chapter-card__quote {
    display: none;
  }

  .chapter-card.is-active .chapter-card__text,
  .chapter-card.is-active .chapter-card__quote {
    display: block;
    white-space: normal;
  }

  .mentions {
    padding: 16px;
  }

  .mentions__list {
    flex-direction: column;
    gap: 12px;
  }

  .up-next {
    padding: 16px;
  }

  .browse-aside {
    justify-content: space-between;
    width: 100%;
  }

  .browse-figure {
    text-align: left;
  }

  .browse-figure__value {
    font-size: 36px;
  }

  /* Shows: a vertical accordion, the open panel grows to its content. */
  .show-scroll {
    overflow: visible;
  }

  .show-panels {
    flex-direction: column;
    height: auto;
    min-width: 0;
  }

  .show-panel,
  .show-panel.is-open {
    flex: none;
  }

  .show-panel {
    height: 72px;
  }

  .show-panel.is-open {
    height: auto;
    padding: 96px 18px 20px;
  }

  .show-panel__abbr {
    left: 16px;
    top: 16px;
    font-size: 36px;
  }

  .show-panel.is-open .show-panel__abbr {
    font-size: 64px;
  }

  .show-panel__next {
    right: 14px;
    top: 16px;
  }

  .show-panel__vertical {
    left: 84px;
    top: 20px;
    bottom: auto;
    font-size: 22px;
    transform: none;
  }

  .show-panel__rail {
    bottom: 8px;
  }

  .show-panel__info {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: none;
  }

  .show-panel.is-open .show-panel__info {
    display: block;
  }

  .show-panel__tags {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .show-panel__name {
    font-size: 40px;
    white-space: normal;
  }

  .show-ep {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .show-ep__len {
    display: none;
  }

  .show-panel__subscribe,
  .show-panel__all {
    width: 100%;
  }

  .archive-tools {
    width: 100%;
  }

  .archive-search {
    width: 100%;
  }

  .ep-row__main {
    grid-template-columns: 44px 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 4px;
  }

  .ep-row__play {
    width: 44px;
    height: 44px;
  }

  .ep-row__day {
    font-size: 22px;
  }

  .ep-row__title {
    font-size: 16px;
    white-space: normal;
  }

  .ep-row__len {
    grid-column: 3;
    font-size: 12px;
  }

  .ep-row__detail {
    padding-right: 4px;
    padding-left: 4px;
  }

  .listen-form {
    flex-wrap: wrap;
  }

  .listen-form__input,
  .listen-form__send {
    flex: 1 1 100%;
  }

  .app-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-link {
    padding: 16px;
  }
}

@media (max-width: 379.98px) {
  .latest-figures {
    flex-basis: 100%;
  }

  .latest-figure__value {
    font-size: 18px;
  }

  .up-next__art {
    display: none;
  }

  .browse-aside {
    gap: 16px;
  }

  .show-panel__next {
    display: none;
  }

  .collection {
    aspect-ratio: auto;
    min-height: 340px;
  }
}
