/* Enseignements / podcasts — ambiance type catalogue streaming */
:root {
  --pod-bg: #0d0d0d;
  --pod-surface: #181818;
  --pod-surface-hover: #282828;
  --pod-text: #ffffff;
  --pod-muted: #b3b3b3;
  --pod-subtle: #6a6a6a;
  --pod-radius: 12px;
  --pod-radius-sm: 8px;
}

.pod-page {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--pod-bg);
  color: var(--pod-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.navbar-pod {
  background: rgba(13, 13, 13, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-pod .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar-pod .nav-link:hover {
  color: #fff !important;
}

.navbar-pod .nav-link.pod-active {
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--pod-accent, #1db954);
}

.navbar-pod .navbar-brand img {
  height: 40px;
  width: auto;
}

.btn-danger {
  background-color: #3d2a5c;
  border-color: #3d2a5c;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: #322348;
  border-color: #322348;
}

.pod-hero {
  position: relative;
  padding: 5.5rem 0 3rem;
  overflow: hidden;
}

.pod-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--pod-accent, #1db954) 35%, transparent) 0%,
      var(--pod-bg) 75%
    ),
    radial-gradient(ellipse 80% 60% at 50% -20%, color-mix(in srgb, var(--pod-accent, #1db954) 45%, transparent), transparent);
  pointer-events: none;
}

.pod-hero__inner {
  position: relative;
  z-index: 1;
}

.pod-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.pod-hero p {
  color: var(--pod-muted);
  max-width: 36rem;
  line-height: 1.6;
}

.pod-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* Grille séries */
.pod-show-card {
  display: block;
  background: var(--pod-surface);
  border-radius: var(--pod-radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
  height: 100%;
}

.pod-show-card:hover {
  background: var(--pod-surface-hover);
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.pod-show-card__cover {
  aspect-ratio: 1;
  border-radius: var(--pod-radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pod-show-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pod-show-card__title {
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.pod-show-card__sub {
  font-size: 0.8rem;
  color: var(--pod-muted);
  margin: 0;
  line-height: 1.4;
}

.pod-show-card__meta {
  font-size: 0.72rem;
  color: var(--pod-subtle);
  margin-top: 0.5rem;
}

/* Page série */
.pod-show-header {
  position: relative;
  padding: 5rem 0 2rem;
  overflow: hidden;
}

.pod-show-header__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--show-accent, #1db954) 40%, transparent) 0%,
      var(--pod-bg) 65%
    );
  opacity: 0.95;
  pointer-events: none;
}

.pod-show-header__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-end;
}

.pod-show-header__cover {
  width: 200px;
  max-width: 42vw;
  flex-shrink: 0;
  border-radius: var(--pod-radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.pod-show-header__cover img {
  width: 100%;
  display: block;
}

.pod-show-header__label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pod-muted);
}

.pod-show-header h1 {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  margin: 0.35rem 0;
  line-height: 1.05;
}

.pod-show-header__author {
  color: var(--pod-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.pod-show-header__desc {
  color: var(--pod-muted);
  max-width: 42rem;
  line-height: 1.65;
  font-size: 0.92rem;
}

.pod-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--show-accent, #1db954);
  color: #0a0a0a !important;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.pod-btn-play:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
  color: #0a0a0a !important;
}

.pod-ep-table {
  background: var(--pod-surface);
  border-radius: var(--pod-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.pod-ep-row {
  display: grid;
  grid-template-columns: 2rem 2.25rem 1fr auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.pod-ep-row:last-child {
  border-bottom: none;
}

.pod-ep-row:hover {
  background: var(--pod-surface-hover);
  color: inherit;
}

.pod-ep-row__idx {
  font-size: 0.85rem;
  color: var(--pod-subtle);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pod-ep-row__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.pod-ep-row:hover .pod-ep-row__play {
  opacity: 1;
}

.pod-ep-row__play i {
  margin-left: 2px;
}

.pod-ep-row__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.pod-ep-row__sub {
  font-size: 0.78rem;
  color: var(--pod-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pod-ep-row__meta {
  font-size: 0.75rem;
  color: var(--pod-subtle);
  white-space: nowrap;
}

@media (max-width: 576px) {
  .pod-ep-row {
    grid-template-columns: 2rem 2rem 1fr;
  }
  .pod-ep-row__play {
    opacity: 1;
  }
  .pod-ep-row__meta {
    grid-column: 3;
    justify-self: start;
  }
  .pod-ep-row__meta + .pod-ep-row__meta {
    grid-column: 3;
  }
}

/* Page épisode */
.pod-ep-page {
  padding-top: 5.5rem;
  padding-bottom: 4rem;
}

.pod-ep-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.pod-ep-hero__cover {
  width: 180px;
  border-radius: var(--pod-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.pod-ep-hero__cover img {
  width: 100%;
  display: block;
}

.pod-ep-hero__breadcrumb a {
  color: var(--pod-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.pod-ep-hero__breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.pod-ep-hero h1 {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  margin: 0.5rem 0;
  line-height: 1.15;
}

.pod-ep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--pod-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.pod-audio-wrap {
  background: var(--pod-surface);
  border-radius: var(--pod-radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2rem;
}

.pod-audio-wrap audio {
  width: 100%;
  height: 40px;
  margin-top: 0.5rem;
}

.pod-ep-body {
  color: var(--pod-muted);
  line-height: 1.75;
  max-width: 42rem;
  font-size: 0.95rem;
}

.pod-ep-actions .btn-outline-light {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
}

.pod-footer-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--pod-subtle);
}

/* Recherche (hub + série) */
.pod-search {
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.pod-search--wide {
  max-width: 42rem;
}

.pod-search .input-group {
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--pod-surface);
}

.pod-search .form-control {
  background: transparent;
  border: none;
  color: var(--pod-text);
  padding: 0.75rem 1.15rem;
  font-size: 0.95rem;
}

.pod-search .form-control::placeholder {
  color: var(--pod-subtle);
}

.pod-search .form-control:focus {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--pod-text);
}

.pod-search .btn-pod-search {
  background: var(--pod-accent, #1db954);
  color: #0a0a0a;
  border: none;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1.35rem;
}

.pod-search .btn-pod-search:hover {
  filter: brightness(1.08);
  color: #0a0a0a;
}

.pod-search-results {
  font-size: 0.88rem;
  color: var(--pod-muted);
  margin-bottom: 1.25rem;
}

.pod-episode-hits {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pod-episode-hits__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pod-hit-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
  border-radius: var(--pod-radius-sm);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.pod-hit-row:hover {
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.pod-hit-row__cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.pod-hit-row__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pod-hit-row__meta {
  font-size: 0.72rem;
  color: var(--pod-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.pod-hit-row__title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}

.pod-hit-row__sub {
  font-size: 0.8rem;
  color: var(--pod-muted);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}
