/* Podcast: the section under the stories on the home page, /podcast/ and an episode's page.
   Plain CSS (no Tailwind build needed). Logical properties, so Arabic and English both work. */

:root {
  --pc-maroon: #4a0f20;
  --pc-maroon-deep: #220610;
  --pc-ink: #2b1720;
  --pc-muted: #705861;
  --pc-gold: #c9a24b;
  --pc-gold-light: #e8cb7d;
  --pc-gold-deep: #9a7627;
  --pc-paper: #faf7f2;
  --pc-gold-gradient: linear-gradient(135deg, #e8cb7d, #c9a24b 55%, #9a7627);
  --pc-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
}

/* ------------------------------------------------------------------ home section */
.pc-home {
  padding-block: 88px;
  background: linear-gradient(180deg, #faf7f2, #f5efe5);
  color: var(--pc-ink);
}
@media (min-width: 1024px) {
  .pc-home { padding-block: 120px; }
}

.pc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.pc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--pc-gold-deep);
}
.pc-eyebrow__rule { width: 44px; height: 1px; background: currentColor; }
.pc-eyebrow__icon { width: 20px; height: 20px; }
.pc-title {
  margin: 22px 0 0;
  font-family: var(--pc-display);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pc-maroon);
}
.pc-title--sm { margin: 0 0 36px; font-size: clamp(26px, 3vw, 40px); }
.pc-lede {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.8;
  color: var(--pc-muted);
}

/* Buttons */
.pc-btn,
.pc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--pc-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: filter 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pc-btn {
  background: var(--pc-gold-gradient);
  color: var(--pc-maroon-deep);
  box-shadow: 0 12px 30px rgba(201, 162, 75, 0.28);
}
.pc-btn:hover,
.pc-btn:focus-visible { filter: brightness(1.07); transform: translateY(-1px); }
.pc-btn-outline {
  border: 1px solid rgba(74, 15, 32, 0.35);
  color: var(--pc-maroon);
  background: transparent;
}
.pc-btn-outline:hover,
.pc-btn-outline:focus-visible { background: var(--pc-maroon); color: var(--pc-paper); }
.pc-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }
.pc-btn__icon--fill { fill: currentColor; }
.pc-btn:focus-visible,
.pc-btn-outline:focus-visible { outline: 2px solid var(--pc-gold); outline-offset: 3px; }

/* Featured episode: picture + dark panel */
.pc-feature {
  display: grid;
  margin-top: 56px;
  overflow: hidden;
  background: var(--pc-maroon-deep);
  color: var(--pc-paper);
  box-shadow: 0 30px 70px rgba(34, 6, 16, 0.25);
}
@media (min-width: 1024px) {
  .pc-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 520px; }
}
.pc-feature__media {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
}
.pc-feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.pc-feature__media:hover .pc-feature__img { transform: scale(1.04); }
/* The picture melts into the dark panel next to it */
.pc-feature__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 55%, rgba(34, 6, 16, 0.95));
}
[dir="ltr"] .pc-feature__fade { background: linear-gradient(to right, transparent 55%, rgba(34, 6, 16, 0.95)); }
@media (max-width: 1023px) {
  .pc-feature__fade,
  [dir="ltr"] .pc-feature__fade { background: linear-gradient(180deg, transparent 50%, rgba(34, 6, 16, 0.9)); }
}

.pc-feature__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 28px;
}
@media (min-width: 1024px) {
  .pc-feature__text { padding: 64px 56px; }
}
.pc-feature__line {
  position: absolute;
  top: 0;
  inset-inline: 28px;
  height: 3px;
  background: var(--pc-gold-gradient);
}
@media (min-width: 1024px) {
  .pc-feature__line { inset-inline: 56px; }
}
.pc-feature__kicker { margin: 0; font-size: 15px; color: rgba(250, 247, 242, 0.7); }
.pc-feature__num {
  margin: 8px 0 0;
  font-family: var(--pc-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  color: var(--pc-gold);
}
.pc-feature__title {
  margin: 20px 0 0;
  font-family: var(--pc-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.3;
}
.pc-feature__title a { color: #fff; text-decoration: none; }
.pc-feature__title a:hover { color: var(--pc-gold-light); }
.pc-feature__lede {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(250, 247, 242, 0.8);
}
.pc-feature .pc-btn { margin-top: 32px; }

.pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 22px 0 0;
  font-size: 15px;
  color: rgba(250, 247, 242, 0.65);
}
.pc-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.pc-meta__icon { width: 17px; height: 17px; color: var(--pc-gold); }
.pc-meta--light { margin-top: 26px; }

/* Play button and small chips over pictures */
.pc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 104px;
  height: 104px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pc-gold-gradient);
  color: var(--pc-maroon-deep);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 12px rgba(201, 162, 75, 0.2), 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.pc-play__icon { width: 38px; height: 38px; fill: currentColor; margin-left: 5px; }
.pc-play--sm {
  width: 60px;
  height: 60px;
  background: rgba(34, 6, 16, 0.55);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.pc-play--sm .pc-play__icon { width: 22px; height: 22px; margin-left: 3px; }
a:hover .pc-play { transform: translate(-50%, -50%) scale(1.08); }
a:hover .pc-play--sm { background: var(--pc-gold); color: var(--pc-maroon-deep); border-color: var(--pc-gold); }

.pc-chip {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(34, 6, 16, 0.75);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.pc-chip--dark { bottom: 24px; inset-inline-end: 24px; padding: 9px 14px; font-size: 14px; }
.pc-chip__icon { width: 14px; height: 14px; }

.pc-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 6px 10px;
  background: var(--pc-maroon-deep);
  color: var(--pc-gold-light);
  font-family: var(--pc-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

/* Episode cards */
.pc-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pc-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
}
@media (min-width: 1280px) {
  .pc-grid--page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pc-grid--page { margin-top: 0; }

.pc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(74, 15, 32, 0.08);
  color: var(--pc-ink);
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pc-card:hover,
.pc-card:focus-visible {
  box-shadow: 0 20px 44px rgba(34, 6, 16, 0.14);
  transform: translateY(-3px);
  outline: none;
}
.pc-card:focus-visible { box-shadow: 0 0 0 2px var(--pc-gold); }
.pc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pc-maroon-deep);
}
.pc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.pc-card:hover .pc-card__img { transform: scale(1.05); }
.pc-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 6, 16, 0.15), rgba(34, 6, 16, 0.45));
}
.pc-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.pc-card__title {
  font-family: var(--pc-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pc-maroon);
}
.pc-card:hover .pc-card__title { color: var(--pc-gold-deep); }
.pc-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pc-muted);
}

/* ------------------------------------------------------------------ list / episode pages */
.pc-page { padding-block: 72px 96px; background: var(--pc-paper); }
.pc-more { padding-block: 0 104px; background: var(--pc-paper); }
.pc-empty { margin: 0; padding: 48px 0; text-align: center; font-size: 18px; color: var(--pc-muted); }

.pc-player {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--pc-maroon-deep);
  box-shadow: 0 30px 70px rgba(34, 6, 16, 0.25);
}
.pc-player__line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 1;
  height: 3px;
  background: var(--pc-gold-gradient);
}
.pc-player iframe,
.pc-player video { display: block; }

.pc-body {
  max-width: 760px;
  margin: 48px auto 0;
  font-size: 18px;
  line-height: 2;
  color: var(--pc-ink);
}
.pc-body p { margin: 0 0 1.1em; }
.pc-back { max-width: 760px; margin: 40px auto 0; }

.pc-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
}
.pc-pages__link,
.pc-pages__gap {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--pc-maroon);
  text-decoration: none;
}
.pc-pages__link:hover { background: #f5efe5; }
.pc-pages__link--on { background: var(--pc-maroon); color: var(--pc-paper); }
.pc-pages__link--on:hover { background: var(--pc-maroon); }

@media (prefers-reduced-motion: reduce) {
  .pc-card, .pc-card__img, .pc-feature__img, .pc-play, .pc-btn { transition: none; }
}
