.mono {
  font-family: var(--mono);
}

.hero--compact {
  padding: 20px;
}

.podcast-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 14px;
  align-items: start;
}

.episodes-panel,
.episode-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(11, 16, 32, 0.08);
  overflow: hidden;
}

.panel-head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(11, 16, 32, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

.panel-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-row {
  padding: 12px 16px 0;
}

.filter-row input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.14);
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
}

.episodes-list {
  padding: 12px 10px 14px;
  display: grid;
  gap: 10px;
  max-height: min(70vh, 720px);
  overflow: auto;
}

.episode-item {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition:
    transform 120ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.episode-item:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 16, 32, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

.episode-item.is-selected {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.episode-item__title {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.episode-item__meta {
  margin: 0;
  color: rgba(11, 16, 32, 0.68);
  font-size: 0.92rem;
  line-height: 1.4;
}

.episode-panel {
  padding: 16px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

.empty-state p {
  margin: 0;
  color: rgba(11, 16, 32, 0.72);
  line-height: 1.6;
}

.episode-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.episode-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  letter-spacing: -0.03em;
  font-weight: 860;
}

.episode-meta {
  margin: 0;
  color: rgba(11, 16, 32, 0.72);
  line-height: 1.5;
}

.episode-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.player {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.player audio {
  width: 100%;
}

.player-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-controls .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.track-label {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: rgba(11, 16, 32, 0.78);
}

.player-status {
  min-height: 1.2rem;
  margin-top: 8px;
  font-size: 0.88rem;
  color: rgba(11, 16, 32, 0.64);
}

.player-status[data-tone="ok"] {
  color: rgba(5, 128, 93, 0.88);
}

.player-status[data-tone="warn"] {
  color: rgba(161, 98, 7, 0.92);
}

.player-status[data-tone="error"] {
  color: rgba(190, 18, 60, 0.92);
}

.track-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.track-chip {
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.track-chip.is-active {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.1);
}

.details-block {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(11, 16, 32, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.details-block summary {
  cursor: pointer;
  font-weight: 900;
}

.transcript {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.line {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.line__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.speaker {
  font-family: var(--mono);
  font-weight: 900;
  color: rgba(11, 16, 32, 0.84);
}

.responds {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: rgba(11, 16, 32, 0.6);
}

.line__text {
  margin: 8px 0 0;
  line-height: 1.6;
  color: rgba(11, 16, 32, 0.8);
}

.artifacts {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.artifact-link {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(11, 16, 32, 0.85);
}

.artifact-link:hover {
  border-color: rgba(11, 16, 32, 0.2);
}

.artifact-name {
  font-family: var(--mono);
  font-weight: 800;
}

.artifact-hint {
  color: rgba(11, 16, 32, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .podcast-layout {
    grid-template-columns: 1fr;
  }

  .episodes-list {
    max-height: none;
  }
}
