/* Shared styling for the Audio landing page and its sub-pages. */
.al-page {
  width: min(1200px, calc(100% - var(--page-gutter-desktop)));
  margin: 0 auto;
  padding: var(--page-pad-top) 0 var(--page-pad-bottom);
}

.al-intro {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 20px;
}

.al-tabs {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.al-tab {
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.al-tab.active {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent);
}

.al-tab.al-tab-split-left {
  margin-left: 12px;
  position: relative;
}

.al-tab.al-tab-split-left::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: rgba(74, 61, 64, 0.28);
}

.al-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 18px;
}

.al-eyebrow,
.al-btn,
.al-meta,
.al-count,
.al-show-count,
.al-tracknum {
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.al-intro-copy {
  margin-top: 10px;
  color: var(--copy-ink);
  line-height: 1.6;
  max-width: 74ch;
}

/* Landing page cards */
.al-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.al-cat-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.al-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.al-cat-card h2 {
  font-size: 26px;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.al-cat-card p {
  color: var(--copy-ink);
  line-height: 1.55;
  flex: 1;
}

.al-cat-card .al-meta {
  margin-top: 12px;
}

/* Toolbar */
.al-toolbar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.al-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-view-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.al-view-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.al-view-btn.active {
  background: #2a2726;
  color: #fff;
  border-color: #2a2726;
}

.al-view-sep {
  width: 1px;
  height: 24px;
  background: rgba(74, 61, 64, 0.25);
}

.al-search {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 13px;
  padding: 10px;
  width: min(460px, 100%);
}

.al-count,
.al-meta,
.al-show-count {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.al-admin-note {
  margin-top: 8px;
  border: 1px solid rgba(116, 66, 0, 0.42);
  border-radius: 10px;
  background: rgba(255, 247, 228, 0.82);
  color: #6b3f00;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 10px;
}

/* Shows (Archives / Extended Universe) */
.al-shows,
.al-albums {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.al-show {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.al-show-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}

.al-show-name {
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.al-show-head .al-chevron {
  margin-left: auto;
  transition: transform 0.15s ease;
  color: var(--muted);
  font-size: 14px;
}

.al-show-head[aria-expanded="true"] .al-chevron {
  transform: rotate(90deg);
}

.al-episodes {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  max-height: 60vh;
  overflow: auto;
}

.al-episodes[hidden] {
  display: none;
}

.al-episode,
.al-track {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.al-ep-main {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 180px;
}

.al-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-summary-wrap {
  width: 100%;
  display: grid;
  gap: 8px;
}

.al-summary-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.al-summary-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
}

.al-summary-btn.active {
  background: #2a2726;
  border-color: #2a2726;
  color: #fff;
}

.al-summary-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--copy-ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  padding: 10px;
  max-height: 240px;
  overflow: auto;
}

.al-summary-line {
  margin: 0 0 8px;
}

.al-summary-timeline-row {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.al-summary-time-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.al-summary-time-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
}

.al-summary-time-sep {
  color: var(--muted);
  font-weight: 700;
}

.al-summary-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.al-summary-keyword-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
}

.al-summary-disclaimer {
  margin-top: 10px;
  color: #7a5c62;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.al-search-controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.al-popular-keywords {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.al-popular-keywords-label {
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.al-popular-keyword-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 9px;
  cursor: pointer;
}

.al-bestof-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #8c2d12;
  background: #ffe6d7;
  color: #8c2d12;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.al-ep-main strong {
  font-size: 15px;
  line-height: 1.3;
}

.al-slugline {
  margin-top: 6px;
  color: var(--copy-ink);
  font-size: 12px;
  line-height: 1.45;
  font-style: italic;
}

.al-ep-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.al-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.al-btn.primary {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent);
}

/* Albums */
.al-album {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  padding: 0;
}

.al-albums-divider {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74, 61, 64, 0), rgba(74, 61, 64, 0.36) 18%, rgba(74, 61, 64, 0.36) 82%, rgba(74, 61, 64, 0));
  margin: 2px 6px 8px;
}

.al-album-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.al-album-head h2 {
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.al-tracks {
  margin-top: 0;
  display: grid;
  gap: 8px;
}

.al-tracknum {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
}

.al-empty {
  padding: 14px;
  color: var(--muted);
}

.al-search-match-row {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.al-search-match-label {
  color: var(--muted);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.al-search-match-text {
  color: var(--copy-ink);
  font-size: 12px;
  line-height: 1.45;
}

.al-search-match-hit {
  background: #ffe58f;
  color: #452b00;
  border-radius: 4px;
  padding: 0 2px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .al-page {
    width: min(1200px, calc(100% - var(--page-gutter-tablet)));
  }

  .al-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .al-intro,
  .al-card {
    padding: 14px;
  }

  .al-show-name {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .al-page {
    width: min(1200px, calc(100% - var(--page-gutter-mobile)));
  }

  .al-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .al-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
  }

  .al-cards {
    grid-template-columns: 1fr;
  }

  .al-intro,
  .al-card {
    padding: 12px;
  }

  .al-toolbar {
    align-items: stretch;
  }

  .al-view-controls,
  .al-view-group {
    width: 100%;
  }

  .al-view-btn {
    min-height: 42px;
    padding: 10px 12px;
  }

  .al-search {
    width: 100%;
    min-height: 42px;
  }

  .al-search-controls {
    align-items: stretch;
  }

  .al-summary-controls {
    width: 100%;
  }

  .al-summary-btn,
  .al-summary-time-btn,
  .al-popular-keyword-chip {
    min-height: 38px;
    padding: 8px 10px;
  }

  .al-show-head {
    min-height: 48px;
    padding: 15px 14px;
  }

  .al-episode,
  .al-track {
    padding: 12px;
    gap: 12px;
  }

  .al-ep-main {
    min-width: 100%;
  }

  .al-slugline {
    display: none;
  }

  .al-ep-actions {
    width: 100%;
    margin-left: 0;
    gap: 9px;
  }

  .al-btn {
    min-height: 42px;
    padding: 10px 12px;
    justify-content: center;
  }
}
