.media-pulse {
  padding: clamp(34px, 5vw, 64px) 0;
  background: var(--paper);
}

.media-pulse + .ticker {
  margin-top: 0;
}

.media-pulse__heading {
  display: grid;
  align-items: end;
  gap: 22px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  margin-bottom: 26px;
}

.media-pulse__heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-transform: uppercase;
}

.media-pulse__heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.media-pulse__heading .media-pulse__description {
  max-width: 680px;
  margin-top: clamp(16px, 2vw, 24px);
  color: var(--ink);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.5;
}

.media-pulse__grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
}

.media-reel,
.instagram-live {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 169, 51, 0.58);
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(11, 11, 11, 0.15);
}

.media-reel {
  aspect-ratio: 1;
  min-height: 0;
  color: white;
}

.media-reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
  object-fit: contain;
}

.media-reel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 34%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.38), transparent 60%);
  content: "";
  pointer-events: none;
}

.media-reel__top,
.media-reel__content {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 32px);
  left: clamp(18px, 3vw, 32px);
}

.media-reel__top {
  top: clamp(18px, 3vw, 30px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.media-label,
.media-muted {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 5px;
  background: rgba(11, 11, 11, 0.82);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.media-muted {
  border-color: rgba(214, 169, 51, 0.65);
  color: var(--gold);
}

.media-reel__content {
  bottom: clamp(88px, 10vw, 112px);
  max-width: min(78%, 620px);
}

.media-reel__content > span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-reel__content h3 {
  max-width: 600px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.97;
  text-transform: uppercase;
}

.media-reel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.82rem;
  font-weight: 850;
  text-underline-offset: 5px;
}

.media-reel__transport,
.media-reel__playlist {
  position: absolute;
  z-index: 3;
  bottom: clamp(14px, 2.3vw, 22px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-reel__transport {
  left: clamp(14px, 2.4vw, 24px);
}

.media-reel__playlist {
  right: clamp(14px, 2.4vw, 24px);
}

.media-reel__toggle,
.media-reel__item {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.78);
  color: white;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.media-reel__toggle:hover,
.media-reel__toggle:focus-visible,
.media-reel__item:hover,
.media-reel__item:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.media-reel__item[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.media-reel__item[hidden] {
  display: none;
}

.media-reel__counter {
  display: inline-flex;
  min-width: 48px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.media-reel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.instagram-live {
  display: flex;
  min-height: clamp(440px, 48vw, 620px);
  flex-direction: column;
  background: white;
  color: var(--ink);
}

.instagram-live__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: white;
}

.instagram-live__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.instagram-live__mark {
  display: grid;
  width: auto;
  min-width: 96px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 900;
  place-items: center;
}

.instagram-live__identity > div {
  min-width: 0;
}

.instagram-live__identity > div strong,
.instagram-live__identity > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instagram-live__identity > div strong {
  font-size: 0.88rem;
}

.instagram-live__identity > div span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
}

.instagram-live__status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instagram-live__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35b76f;
  box-shadow: 0 0 0 4px rgba(53, 183, 111, 0.16);
  content: "";
}

.instagram-live__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f6f6f6;
}

.instagram-live__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 510px;
  border: 0;
  background: white;
}

.instagram-live__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.instagram-live__footer small {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.35;
}

.instagram-live__footer a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-underline-offset: 4px;
}

@media (max-width: 920px) {
  .media-pulse__heading,
  .media-pulse__grid {
    grid-template-columns: 1fr;
  }

  .media-pulse__heading p {
    max-width: 680px;
  }

  .instagram-live {
    width: min(100%, 620px);
    min-height: 620px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .media-pulse {
    padding-block: 30px;
  }

  .media-pulse__heading {
    gap: 12px;
  }

  .media-reel__top {
    top: 14px;
    right: 14px;
    left: 14px;
  }

  .media-reel__content {
    right: 14px;
    bottom: 78px;
    left: 14px;
    max-width: 78%;
  }

  .media-reel__content h3 {
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 5.8vw, 1.75rem);
  }

  .media-reel__content > span,
  .media-reel__link {
    font-size: 0.63rem;
  }

  .media-label,
  .media-muted {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 0.57rem;
  }

  .media-reel__transport,
  .media-reel__playlist {
    bottom: 10px;
    gap: 5px;
  }

  .media-reel__transport {
    left: 10px;
  }

  .media-reel__playlist {
    right: 10px;
  }

  .media-reel__counter {
    display: none;
  }

  .instagram-live {
    min-height: 580px;
  }

  .instagram-live__status {
    display: none;
  }

  .instagram-live__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-reel__toggle,
  .media-reel__item {
    transition: none;
  }
}
