/* Tarjetas y reproductor adaptados del Canal TV al panel de noticias. */
.story-tv .video-card {
  position: relative;
  min-width: 0;
  scroll-snap-align: start;
}

.story-tv .video-card__trigger {
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.story-tv .video-card__trigger:focus-visible {
  outline: none;
}

.story-tv .video-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  background: #151515;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.story-tv .video-card__image::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  content: "";
  pointer-events: none;
}

.story-tv .video-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  filter: saturate(.78) contrast(1.04);
  transition: filter .25s ease, transform .35s ease;
}

.story-tv .video-card:hover .video-card__image {
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .48);
  transform: translateY(-3px);
}

.story-tv .video-card:focus-within .video-card__image {
  border-color: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 18px 38px rgba(0, 0, 0, .48);
  transform: translateY(-3px);
}

.story-tv .video-card:hover .video-card__image img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.035);
}

.story-tv .video-card__play {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  background: rgba(7, 7, 7, .72);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.story-tv .video-card__play svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.story-tv .video-card__copy {
  padding: 13px 2px 0;
}

.story-tv .video-card__category {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .54);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.story-tv .video-card h4 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-video-modal.video-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 64px);
}

.story-video-modal.video-modal[hidden] {
  display: none;
}

.story-video-modal .video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(20px) brightness(.3);
  backdrop-filter: blur(20px) brightness(.3);
}

.story-video-modal .video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100dvh - clamp(48px, 8vw, 128px));
  color: #fff;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .72));
  animation: video-modal-enter .24s ease-out both;
}

.story-video-modal .video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .88);
}

.story-video-modal .video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.story-video-modal .video-modal__close {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: -20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  background: #fff;
  color: #080808;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.story-video-modal .video-modal__close:hover,
.story-video-modal .video-modal__close:focus-visible {
  outline: none;
  background: #f1f1f1;
  transform: scale(1.06);
}

.story-video-modal .video-modal__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .32), 0 10px 28px rgba(0, 0, 0, .45);
}

.story-video-modal .video-modal__close svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.story-video-modal .video-modal__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: start;
  gap: 24px;
  padding-top: 18px;
}

.story-video-modal .video-modal__copy {
  min-width: 0;
  padding: 0 2px;
}

.story-video-modal .video-modal__copy p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.story-video-modal .video-modal__copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.story-video-modal .video-modal__meta .program-audio-player {
  justify-self: end;
}


.story-tv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.story-tv .video-card__category { color: #64748b; margin: 0 0 6px !important; font-size: .72rem !important; line-height: 1.2 !important; }
.story-tv .video-card h4 { color: #111; margin: 0 !important; font-size: .98rem !important; line-height: 1.35 !important; font-weight: 600 !important; }
.story-tv .video-card:focus-within .video-card__image { box-shadow: 0 0 0 3px #64748b; }
.story-tv .story-latest-header { grid-template-columns: minmax(12px, 1fr) minmax(0, auto) minmax(12px, 1fr); }
.story-tv .story-latest-header h2 { overflow-wrap: anywhere; }
.story-video-modal.video-modal { z-index: 510; }
.story-video-modal.video-modal .video-modal__dialog { overflow-y: auto; max-height: calc(100dvh - 80px); padding: 22px; animation: none; }
.story-video-modal.video-modal .video-modal__close { top: 0; right: 0; }
.story-video-modal.video-modal .video-modal__meta { grid-template-columns: minmax(0, 1fr); }
.story-video-modal.video-modal .program-audio-player { justify-self: stretch; }
@media (max-width: 768px) {
  .story-video-modal.video-modal {
    padding: 18px 14px;
  }

  .story-video-modal .video-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 36px);
  }

  .story-video-modal .video-modal__frame {
    border-radius: 5px;
  }

  .story-video-modal .video-modal__close {
    top: -18px;
    right: -2px;
    width: 40px;
    height: 40px;
    padding: 11px;
  }

  .story-video-modal .video-modal__meta {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-right: 46px;
  }

  .story-video-modal .video-modal__copy {
    padding: 0;
  }

  .story-video-modal .video-modal__meta .program-audio-player {
    justify-self: stretch;
  }

  .story-video-modal .video-modal__copy h2 {
    font-size: 1.05rem;
  }

  .story-video-modal.video-modal .video-modal__dialog { max-height: calc(100dvh - 36px); padding: 20px 0; }
  .story-video-modal.video-modal .video-modal__close { top: 0; right: 0; }
  .story-tv .video-card__copy { padding-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-tv .video-card__image, .story-tv .video-card__image img, .story-video-modal.video-modal .video-modal__close { transition: none; }
}
