.page-crumbs-wrap,
.ep-hero-wrap { width: min(1204px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }

.ep-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  margin: 12px 0 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #E5E5E8;
}
.ep-hero__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ep-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 24px;
  background: #EDEDED;
  color: #5C5C5C;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.ep-hero h1 {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #1a1a1f;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.ep-hero__lead { margin: 0; font-size: 17px; line-height: 1.55; color: #595966; max-width: 46ch; text-wrap: pretty; }
.ep-hero .hero-btns { margin-top: 4px; }

.ep-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #F0F0EE;
  box-shadow: 0 8px 28px rgba(20, 20, 30, .06);
}
.ep-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ep-hero__poster {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ep-hero__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
  pointer-events: none;
}
.ep-hero__play svg { width: 20px; height: 20px; margin-left: 3px; }
.ep-hero__poster:hover .ep-hero__play,
.ep-hero__poster:focus-visible .ep-hero__play { transform: scale(1.06); }

.ep-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ep-video-modal[hidden] { display: none; }
.ep-video-modal__overlay { position: absolute; inset: 0; background: rgba(20, 20, 24, .82); }
.ep-video-modal__wrap { position: relative; display: flex; align-items: start; gap: 24px; width: min(960px, 100%); }
.ep-video-modal__box {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.ep-video-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.ep-video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ep-video-modal__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #F3F3F3;
  color: #757575;
  cursor: pointer;
}
.ep-video-modal__close svg { width: 14px; height: 14px; }

@media (max-width: 1200px) {
  .page-crumbs-wrap,
  .ep-hero-wrap { width: min(864px, calc(100% - 48px)); }
}
@media (max-width: 900px) {
  .ep-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; padding-bottom: 32px; }
  .ep-hero__copy { gap: 14px; }
  .ep-hero__lead { max-width: none; }
}
@media (max-width: 700px) {
  .page-crumbs-wrap,
  .ep-hero-wrap { width: calc(100% - 24px); }
  .ep-hero h1 { letter-spacing: 0; }
  .ep-hero__lead { font-size: 15px; }
  .ep-hero__media { border-radius: 18px; }
  .ep-hero__play { width: 60px; height: 60px; }
  .ep-video-modal__wrap { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .ep-video-modal__close { align-self: flex-end; }
}
