/*
=====================================================
 JaimeDiaz.TV — Centro Multimedia
 Namespace: .jdm-
=====================================================
*/

.jdm-page,
.jdm-page * {
  box-sizing: border-box;
}

.jdm-page {
  --jdm-navy: #071b36;
  --jdm-blue: #1768ac;
  --jdm-gold: #d99a2b;
  --jdm-text: #172033;
  --jdm-muted: #66758a;
  --jdm-border: rgba(15, 38, 70, .10);
  --jdm-shadow: 0 18px 48px rgba(8, 30, 58, .10);

  width: min(1180px, calc(100% - 28px));
  margin: 20px auto 42px;
  color: var(--jdm-text);
}

/* =====================================================
   Centro Multimedia — Avisos de acceso
   ===================================================== */

.jdm-access-page,
.jdm-access-page * {
  box-sizing: border-box;
}

.jdm-access-page {
  --access-navy: #071b36;
  --access-blue: #174e82;
  --access-gold: #dca13b;
  --access-text: #172033;
  --access-muted: #69788c;

  width: min(820px, calc(100% - 30px));
  margin: 30px auto 38px;
}

.jdm-access {
  position: relative;
  overflow: hidden;
  padding: 48px 42px 42px;
  border: 1px solid rgba(15, 38, 70, .10);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(23, 104, 172, .075),
      transparent 43%
    ),
    #fff;
  box-shadow: 0 20px 52px rgba(8, 30, 58, .11);
  text-align: center;
}

.jdm-access::before,
.jdm-access::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 78, 130, .055);
  border-radius: 999px;
  pointer-events: none;
}

.jdm-access::before {
  width: 270px;
  height: 270px;
  top: -170px;
  left: -95px;
}

.jdm-access::after {
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -145px;
}

.jdm-access__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 17px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--access-navy), #29466f);
  color: #f3c873;
  font-size: 27px;
  box-shadow: 0 14px 30px rgba(7, 27, 54, .18);
}

.jdm-access__eyebrow {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 8px;
  color: #9a752e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.jdm-access h1 {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  color: var(--access-text);
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.jdm-access p {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin: 13px auto 0;
  color: var(--access-muted);
  font-size: 14px;
  line-height: 1.65;
}

.jdm-access__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.jdm-access__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 0 17px;
  border: 1px solid rgba(15, 38, 70, .11);
  border-radius: 999px;
  background: #fff;
  color: #47586d;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    color .2s ease;
}

.jdm-access__button:hover {
  color: var(--access-blue);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(8, 30, 58, .10);
}

.jdm-access__button--primary {
  border-color: var(--access-navy);
  background: linear-gradient(135deg, var(--access-navy), #29466f);
  color: #fff;
  box-shadow: 0 12px 25px rgba(7, 27, 54, .16);
}

.jdm-access__button--primary:hover {
  color: #fff;
  box-shadow: 0 15px 29px rgba(7, 27, 54, .21);
}

@media (max-width: 560px) {
  .jdm-access-page {
    width: min(100% - 20px, 820px);
    margin: 19px auto 29px;
  }

  .jdm-access {
    padding: 39px 21px 34px;
    border-radius: 20px;
  }

  .jdm-access__icon {
    width: 63px;
    height: 63px;
    border-radius: 19px;
    font-size: 24px;
  }

  .jdm-access h1 {
    font-size: 28px;
  }

  .jdm-access__actions {
    display: grid;
  }

  .jdm-access__button {
    width: 100%;
  }
}

/* =====================================================
   Centro Multimedia — Contenedor del álbum
   ===================================================== */

.jdm-album-page {
  min-width: 0;
}

.jdm-section {
  margin-top: 30px;
}

.jdm-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.jdm-section__heading h2 {
  margin: 3px 0 0;
  color: var(--jdm-navy);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.jdm-section__kicker,
.jdm-kicker {
  display: block;
  color: var(--jdm-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.jdm-section__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f2f6fa;
  color: var(--jdm-navy);
  font-size: 12px;
  font-weight: 900;
}

/* =====================================================
   Centro Multimedia — Hero oficial consolidado
   ===================================================== */

.jdm-hero {
  display: grid;
  grid-template-columns:
    minmax(210px, 30%) minmax(0, 1fr);
  min-height: 205px;
  overflow: hidden;
  border: 1px solid var(--jdm-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--jdm-shadow);
}

.jdm-hero__media {
  min-height: 205px;
  background:
    linear-gradient(135deg, #102846, #27496e);
  background-size: cover;
  background-position: center;
}

.jdm-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
}

.jdm-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 7px;
  color: #536378;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.jdm-back:hover {
  color: var(--jdm-blue);
  text-decoration: none;
}

.jdm-hero .jdm-kicker {
  font-size: 10px;
}

.jdm-hero h1 {
  max-width: 760px;
  margin: 5px 0 7px;
  color: var(--jdm-navy);
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.jdm-hero__description {
  max-width: 680px;
  color: var(--jdm-muted);
  font-size: 12px;
  line-height: 1.42;
}

.jdm-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.jdm-hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--jdm-border);
  border-radius: 999px;
  background: #f8fafc;
  color: #34445a;
  font-size: 10px;
  font-weight: 850;
}

.jdm-hero__actions {
  margin-top: 14px;
}

.jdm-hero__button,
.jdm-replay__button,
.jdm-download-button,
.jdm-album-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.jdm-hero__button--primary {
  padding: 11px 16px;
  background: var(--jdm-navy);
  color: #fff;
}

.jdm-hero__button--primary:hover {
  background: #0c2d59;
  color: #fff;
  text-decoration: none;
}

/* VIDEOS */

.jdm-video-layout {
  display: grid;
  gap: 16px;
}

.jdm-video-layout--with-playlist {
  grid-template-columns: minmax(0, 1fr) 330px;
  transition:
    grid-template-columns .34s cubic-bezier(.22, .61, .36, 1);
}

.jdm-video-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.jdm-video-main {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--jdm-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--jdm-shadow);
  transition:
    width .34s cubic-bezier(.22, .61, .36, 1),
    box-shadow .28s ease;
}

.jdm-video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020814;
}

.jdm-video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.jdm-video-details {
  padding: 19px 21px 22px;
}

.jdm-video-details__provider {
  color: var(--jdm-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.jdm-video-details__title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-top: 7px;
}

.jdm-video-details__title-row h3 {
  margin: 0;
  color: var(--jdm-navy);
  font-size: clamp(19px, 2.5vw, 28px);
  line-height: 1.12;
}

.jdm-video-details__title-row span {
  flex: 0 0 auto;
  color: #68788e;
  font-size: 12px;
  font-weight: 850;
}

.jdm-video-details__description {
  margin-top: 10px;
  color: var(--jdm-muted);
  font-size: 14px;
  line-height: 1.6;
}

.jdm-video-playlist {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--jdm-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--jdm-shadow);
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(.999);
  transform-origin: right center;
  transition:
    opacity .22s ease,
    transform .34s cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear 0s;
}

.jdm-video-playlist__heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--jdm-border);
}

.jdm-video-playlist__heading strong {
  color: var(--jdm-navy);
}

.jdm-video-playlist__heading span {
  color: var(--jdm-muted);
  font-size: 12px;
}

.jdm-video-playlist__items {
  display: grid;
  max-height: 570px;
  overflow-y: auto;
}

.jdm-video-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--jdm-border);
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.jdm-video-item:last-child {
  border-bottom: 0;
}

.jdm-video-item:hover,
.jdm-video-item.is-active {
  background: #f4f8fc;
}

.jdm-video-item.is-active {
  box-shadow: inset 3px 0 0 var(--jdm-blue);
}

.jdm-video-item__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe7ef;
}

.jdm-video-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jdm-video-item__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(3, 14, 30, .24);
}

.jdm-video-item__duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(2, 8, 20, .78);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.jdm-video-item__content {
  align-self: center;
  min-width: 0;
}

.jdm-video-item__content strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--jdm-navy);
  font-size: 13px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.jdm-video-item__content > span {
  display: block;
  margin-top: 6px;
  color: var(--jdm-muted);
  font-size: 10px;
  font-weight: 800;
}

/* FOTOS */

.jdm-section__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.jdm-download-button {
  padding: 9px 13px;
  background: #f3a33b;
  color: #142236;
  font-size: 11px;
}

.jdm-download-button:hover {
  background: #ef9626;
  color: #142236;
  text-decoration: none;
}

.jdm-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.jdm-photo-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.jdm-photo-card--deferred {
  display: none;
}

.jdm-photo-card.is-revealed {
  display: block;
}

.jdm-photo-card figure {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #edf2f7;
}

.jdm-photo-card__image {
  height: 100%;
  min-height: 185px;
  aspect-ratio: 4 / 3;
}

.jdm-photo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
}

.jdm-photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 12px 11px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(3, 14, 30, .84));
  opacity: 0;
  transition: opacity .18s ease;
}

.jdm-photo-card:hover figcaption {
  opacity: 1;
}

.jdm-photo-card:hover img {
  transform: scale(1.025);
}

.jdm-photo-card figcaption span {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jdm-photo-card figcaption strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.jdm-photo-card figcaption p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.35;
}

.jdm-photos-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.jdm-photos-more__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--jdm-border);
  border-radius: 999px;
  background: #fff;
  color: var(--jdm-navy);
  font-weight: 900;
  cursor: pointer;
}

.jdm-photos-more__button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #edf3f8;
  font-size: 10px;
}

/* =====================================================
   Centro Multimedia — Replay oficial consolidado
   ===================================================== */

.jdm-replay {
  display: block;
  margin-top: 30px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background: linear-gradient(135deg, #071b36 0%, #123b68 100%);
  box-shadow: 0 18px 42px rgba(5, 25, 52, .16);
  color: #fff;
}

.jdm-replay__link {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 172px;
  color: inherit;
  text-decoration: none;
}

.jdm-replay__link:hover,
.jdm-replay__link:focus {
  color: inherit;
  text-decoration: none;
}

.jdm-replay__media {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  background: #06172e;
}

.jdm-replay__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 58%, rgba(7, 27, 54, .76) 100%),
    linear-gradient(180deg, rgba(3, 13, 28, .05), rgba(3, 13, 28, .25));
}

.jdm-replay__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
  transition: transform .45s ease;
}

.jdm-replay__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(5, 24, 49, .78);
  color: #f5b84e;
  font-size: 17px;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  transform: translate(-50%, -50%);
  transition:
    transform .25s ease,
    background .25s ease;
}

.jdm-replay__content {
  align-self: center;
  min-width: 0;
  padding: 25px 28px;
}

.jdm-replay__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5b84e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jdm-replay__content h2,
.jdm-replay h2 {
  margin: 7px 0 7px;
  color: #fff;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.jdm-replay__content p,
.jdm-replay p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jdm-replay__button {
  align-self: center;
  margin-right: 28px;
  padding: 12px 17px;
  white-space: nowrap;
  background: #fff;
  color: #071b36;
  font-size: 12px;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    color .25s ease;
}

.jdm-replay__link:hover .jdm-replay__media img {
  transform: scale(1.045);
}

.jdm-replay__link:hover .jdm-replay__play {
  background: rgba(245, 184, 78, .94);
  color: #071b36;
  transform: translate(-50%, -50%) scale(1.07);
}

.jdm-replay__link:hover .jdm-replay__button {
  color: #174d83;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .jdm-replay__link {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .jdm-replay__button {
    grid-column: 2;
    justify-self: start;
    margin: 0 24px 23px;
  }

  .jdm-replay__content {
    padding: 22px 24px 13px;
  }
}

@media (max-width: 640px) {
  .jdm-replay {
    border-radius: 19px;
  }

  .jdm-replay__link {
    grid-template-columns: 1fr;
  }

  .jdm-replay__media {
    min-height: 185px;
    aspect-ratio: 16 / 8.5;
  }

  .jdm-replay__media::after {
    background: linear-gradient(
      180deg,
      transparent 55%,
      rgba(7, 27, 54, .62) 100%
    );
  }

  .jdm-replay__media img {
    min-height: 185px;
  }

  .jdm-replay__content {
    padding: 21px 20px 14px;
  }

  .jdm-replay__content h2,
  .jdm-replay h2 {
    font-size: 22px;
  }

  .jdm-replay__button {
    grid-column: 1;
    width: auto;
    margin: 0 20px 21px;
  }
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .jdm-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jdm-albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .jdm-photo-card figcaption {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .jdm-page {
    width: min(100% - 16px, 1180px);
    margin-top: 10px;
  }

  .jdm-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .jdm-video-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .jdm-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .jdm-photo-card__image {
    min-height: 150px;
  }

  .jdm-albums-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Centro Multimedia — Controles oficiales de video
   ===================================================== */

.jdm-video-theater-button {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(3,14,30,.70);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition:
    background .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.jdm-video-theater-button:hover {
  border-color: rgba(255,255,255,.38);
  background: rgba(3,14,30,.88);
  color: #fff;
  transform: none;
}

.jdm-video-details__title-row {
  margin-top: 6px;
}

.jdm-video-details__title-row h3 {
  width: 100%;
}

.jdm-videos.is-theater-mode .jdm-video-player {
  aspect-ratio: 16 / 8.4;
}

@media (max-width: 720px) {
  .jdm-video-theater-button {
    top: 8px;
    right: 8px;
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .jdm-video-theater-button span {
    display: none;
  }
}

@media (max-width: 640px) {
  .jdm-videos.is-theater-mode .jdm-video-player {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 980px) {
  .jdm-hero {
    grid-template-columns: minmax(200px, 34%) minmax(0, 1fr);
    min-height: 195px;
  }

  .jdm-hero__media {
    min-height: 195px;
  }

  .jdm-hero__content {
    padding: 17px 20px;
  }

  .jdm-hero h1 {
    font-size: clamp(23px, 3.6vw, 31px);
  }
}

@media (max-width: 720px) {
  .jdm-hero {
    grid-template-columns: 1fr;
  }

  .jdm-hero__media {
    min-height: 170px;
  }

  .jdm-hero__content {
    padding: 18px;
  }

  .jdm-video-theater-button {
    top: 8px;
    right: 8px;
  }

  .jdm-video-theater-button span {
    display: none;
  }

  .jdm-video-theater-button {
    width: 34px;
    padding: 0;
    justify-content: center;
  }
}

/* =====================================================
   Centro Multimedia — Modo cine y responsive oficial
   ===================================================== */

.jdm-videos.is-theater-mode
.jdm-video-layout--with-playlist {
  grid-template-columns: minmax(0, 1fr) 0;
}

.jdm-videos.is-theater-mode
.jdm-video-playlist {
  display: block;
  width: 0;
  min-width: 0;
  border-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(22px) scale(.97);
  pointer-events: none;
  overflow: hidden;
  transition:
    opacity .18s ease,
    transform .30s cubic-bezier(.22, .61, .36, 1),
    visibility 0s linear .34s;
}

.jdm-videos.is-theater-mode
.jdm-video-main {
  width: 100%;
}

@media (max-width: 980px) {
  .jdm-video-layout--with-playlist {
    grid-template-columns: minmax(0, 1fr);
    transition: none;
  }

  .jdm-video-main,
  .jdm-video-playlist {
    width: 100%;
    min-width: 0;
  }

  .jdm-video-main {
    transition: none;
  }

  .jdm-video-playlist {
    transform: none;
    transition: none;
  }

  .jdm-video-playlist__items {
    max-height: none;
    overflow-y: visible;
  }

  .jdm-videos.is-theater-mode
  .jdm-video-layout--with-playlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .jdm-videos.is-theater-mode
  .jdm-video-playlist {
    display: none;
    width: auto;
    border-width: 1px;
  }
}

@media (max-width: 640px) {
  .jdm-videos .jdm-section__heading,
  .jdm-photos .jdm-section__heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .jdm-videos .jdm-section__heading > div,
  .jdm-photos .jdm-section__heading > div {
    min-width: 0;
  }

  .jdm-videos .jdm-section__heading h2,
  .jdm-photos .jdm-section__heading h2 {
    margin-right: 0;
  }

  .jdm-videos .jdm-section__count,
  .jdm-photos .jdm-section__count {
    flex: 0 0 auto;
    margin-bottom: 2px;
  }

  .jdm-video-layout {
    gap: 13px;
  }

  .jdm-video-player {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }

  .jdm-video-player iframe {
    width: 100%;
    height: 100%;
  }

  .jdm-video-details {
    padding: 15px 16px 17px;
  }

  .jdm-video-details__title-row {
    display: block;
  }

  .jdm-video-details__title-row h3 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .jdm-video-playlist__heading {
    padding: 14px 15px 12px;
  }

  .jdm-video-item {
    grid-template-columns:
      104px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .jdm-video-item__content {
    min-width: 0;
  }

  .jdm-video-item__content strong {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jdm-video-layout--with-playlist,
  .jdm-video-main,
  .jdm-video-playlist {
    transition: none;
  }
}

/* =====================================================
   Centro Multimedia — Navegación anterior/siguiente
   ===================================================== */

.jdm-video-navigation {
  position: absolute;
  z-index: 4;
  inset: 50% 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.jdm-video-navigation__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 42px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(3,14,30,.68);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  opacity: .24;
  backdrop-filter: blur(8px);
  box-shadow: 0 9px 24px rgba(0,0,0,.20);
  transform: scale(.96);
  transition:
    opacity .18s ease,
    background .18s ease,
    transform .18s ease;
}

.jdm-video-player:hover .jdm-video-navigation__button,
.jdm-video-navigation__button:focus-visible {
  opacity: .94;
  transform: scale(1);
}

.jdm-video-navigation__button:hover:not(:disabled) {
  background: rgba(3,14,30,.90);
}

.jdm-video-navigation__button:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.jdm-video-navigation__button .fa {
  font-size: 20px;
  line-height: 1;
}

.jdm-video-navigation__button--previous {
  padding-left: 10px;
}

.jdm-video-navigation__button--next {
  padding-right: 10px;
}

/* Evita que las flechas compitan con Modo cine */

.jdm-video-theater-button {
  z-index: 6;
}

@media (hover: none) {
  .jdm-video-navigation__button {
    opacity: .82;
    transform: none;
  }
}

@media (max-width: 640px) {
  .jdm-video-navigation {
    padding: 0 7px;
  }

  .jdm-video-navigation__button {
    width: 36px;
    min-width: 36px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .jdm-video-navigation__button span {
    display: none;
  }

  .jdm-video-navigation__button .fa {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jdm-video-navigation__button {
    transition: none;
  }
}

/* =====================================================
   Centro Multimedia — Panel ligero de fotografías
   ===================================================== */

.jdm-photos__panel {
  padding: 24px;
  border: 1px solid rgba(8, 33, 63, .09);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 15px 38px rgba(9, 31, 57, .055),
    0 3px 10px rgba(9, 31, 57, .025);
}

.jdm-photos__heading {
  margin-bottom: 18px;
}

.jdm-photos__panel .jdm-photo-grid {
  margin-top: 0;
}

@media (max-width: 980px) {
  .jdm-photos__panel {
    padding: 20px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .jdm-photos__panel {
    padding: 14px;
    border-radius: 16px;
  }

  .jdm-photos__heading {
    margin-bottom: 14px;
  }
}

/* =====================================================
   Centro Multimedia — Galería justificada editorial
   ===================================================== */

.jdm-photo-grid.is-justified {
  display: block;
}

.jdm-photo-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: var(--jdm-photo-row-height);
  margin-bottom: 9px;
  gap: 9px;
}

.jdm-photo-row:last-of-type {
  margin-bottom: 0;
}

.jdm-photo-row .jdm-photo-card {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.jdm-photo-row .jdm-photo-card figure,
.jdm-photo-row .jdm-photo-card__image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.jdm-photo-row .jdm-photo-card__image {
  min-height: 0;
}

.jdm-photo-row .jdm-photo-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Las dimensiones calculadas respetan la proporción original,
 * por lo que object-fit no genera recortes relevantes.
 */

.jdm-photo-row--mobile {
  display: block;
  height: var(--jdm-photo-row-height);
  gap: 0;
}

.jdm-photo-grid.is-justified
.jdm-photo-card--deferred:not(.is-revealed) {
  display: none;
}

@media (max-width: 820px) {
  .jdm-photo-row {
    margin-bottom: 7px;
    gap: 7px;
  }
}

@media (max-width: 560px) {
  .jdm-photo-row {
    margin-bottom: 7px;
  }

  .jdm-photo-row--mobile .jdm-photo-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jdm-photo-row .jdm-photo-card__image img {
    transition: none;
  }
}

/* =====================================================
   Centro Multimedia — Estados especiales del álbum
   ===================================================== */

.jdm-hero__media--fallback {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(49, 120, 184, .32),
      transparent 38%
    ),
    linear-gradient(135deg, #071b36 0%, #173e69 100%);
}

.jdm-hero__media--fallback::before,
.jdm-hero__media--fallback::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
}

.jdm-hero__media--fallback::before {
  width: 240px;
  height: 240px;
  top: -95px;
  right: -75px;
}

.jdm-hero__media--fallback::after {
  width: 170px;
  height: 170px;
  bottom: -75px;
  left: -55px;
}

.jdm-hero__fallback {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 25px;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.jdm-hero__fallback-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  color: #f3b54d;
  font-size: 27px;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.jdm-empty {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 30px;
  padding: 54px 28px;
  overflow: hidden;
  border: 1px solid var(--jdm-border);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(23, 104, 172, .08),
      transparent 48%
    ),
    #fff;
  box-shadow: var(--jdm-shadow);
  text-align: center;
}

.jdm-empty__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: #edf4fa;
  color: var(--jdm-blue);
  font-size: 26px;
}

.jdm-empty h2 {
  max-width: 620px;
  margin: 0;
  color: var(--jdm-navy);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.jdm-empty p {
  max-width: 640px;
  margin: 11px 0 0;
  color: var(--jdm-muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .jdm-empty {
    padding: 42px 21px;
    border-radius: 19px;
  }

  .jdm-empty__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 23px;
  }

  .jdm-empty h2 {
    font-size: 23px;
  }
}

/* =====================================================
   Centro Multimedia — Índice oficial consolidado
   ===================================================== */

.jdm-index-page {
  padding-bottom: 0;
}

.jdm-index-intro {
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
}

.jdm-index-intro h1 {
  max-width: none;
  margin: 5px 0 7px;
  color: var(--jdm-navy);
  font-size: clamp(25px, 2.5vw, 33px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.jdm-index-intro p {
  max-width: 620px;
  margin: 0;
  color: var(--jdm-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.jdm-index-intro .jdm-kicker {
  font-size: 9px;
}

.jdm-index-featured {
  position: relative;
}

.jdm-index-featured__label {
  position: absolute;
  z-index: 5;
  top: 13px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 27, 54, .86);
  color: #f4c873;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
}

.jdm-index-section-heading {
  margin: 27px 0 12px;
}

.jdm-index-section-heading h2 {
  margin: 3px 0 0;
  color: var(--jdm-navy);
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.jdm-albums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.jdm-album-card {
  overflow: hidden;
  border: 1px solid var(--jdm-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--jdm-shadow);
}

.jdm-album-card__media {
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(54, 128, 192, .30),
      transparent 38%
    ),
    linear-gradient(135deg, #071b36, #244d78);
  background-position: center;
  background-size: cover;
}

.jdm-album-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 14, 30, .02),
      rgba(3, 14, 30, .70)
    );
}

.jdm-album-card__type,
.jdm-album-card__stats {
  position: absolute;
  z-index: 2;
  top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
}

.jdm-album-card__type {
  left: 11px;
  background: rgba(255,255,255,.93);
  color: var(--jdm-navy);
}

.jdm-album-card__stats {
  right: 11px;
  background: rgba(7,27,54,.76);
  color: #fff;
  backdrop-filter: blur(8px);
}

.jdm-album-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jdm-album-card__body {
  padding: 17px;
}

.jdm-album-card__access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #9a752e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.jdm-album-card h2 {
  margin: 0;
  color: var(--jdm-navy);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.jdm-album-card h2 a {
  color: inherit;
  text-decoration: none;
}

.jdm-album-card__description {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--jdm-muted);
  font-size: 12px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jdm-album-card__button {
  margin-top: 13px;
  padding: 8px 12px;
  background: var(--jdm-navy);
  color: #fff;
  font-size: 10px;
}

.jdm-album-card__button:hover {
  background: #123c68;
  color: #fff;
  text-decoration: none;
}

.jdm-album-card--featured {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(280px, .65fr);
  min-height: 270px;
  border-radius: 20px;
}

.jdm-album-card--featured .jdm-album-card__media {
  min-height: 270px;
}

.jdm-album-card--featured .jdm-album-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 27px;
}

.jdm-album-card--featured h2 {
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.04;
}

.jdm-album-card--featured .jdm-album-card__description {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.jdm-album-card--featured .jdm-album-card__button {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .jdm-albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jdm-album-card--featured {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(250px, .75fr);
  }
}

@media (max-width: 760px) {
  .jdm-album-card--featured {
    grid-template-columns: 1fr;
  }

  .jdm-album-card--featured .jdm-album-card__media {
    min-height: 225px;
  }

  .jdm-album-card--featured .jdm-album-card__body {
    padding: 21px;
  }
}

@media (max-width: 560px) {
  .jdm-index-intro h1 {
    font-size: 27px;
  }

  .jdm-albums-grid {
    grid-template-columns: 1fr;
  }

  .jdm-album-card__media {
    min-height: 210px;
  }

  .jdm-album-card__stats {
    top: auto;
    right: 13px;
    bottom: 13px;
  }
}

/* =====================================================
   Centro Multimedia — Interacción y accesibilidad del índice
   ===================================================== */

.jdm-index-page .jdm-albums-grid {
  align-items: stretch;
}

.jdm-index-page .jdm-album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.jdm-index-page .jdm-album-card:not(.jdm-album-card--featured):hover {
  border-color: rgba(23, 104, 172, .18);
  box-shadow: 0 20px 44px rgba(8, 30, 58, .13);
  transform: translateY(-3px);
}

.jdm-index-page .jdm-album-card__media {
  isolation: isolate;
  outline: none;
  transition:
    filter .3s ease,
    background-size .45s ease;
}

.jdm-index-page .jdm-album-card__media--image {
  background-size: 100%;
  background-repeat: no-repeat;
}

.jdm-index-page .jdm-album-card:hover
.jdm-album-card__media--image {
  background-size: 104%;
}

.jdm-index-page .jdm-album-card__shade {
  transition: background .3s ease;
}

.jdm-index-page .jdm-album-card:hover
.jdm-album-card__shade {
  background:
    linear-gradient(
      180deg,
      rgba(3, 14, 30, .01),
      rgba(3, 14, 30, .62)
    );
}

.jdm-index-page .jdm-album-card__media:focus-visible,
.jdm-index-page .jdm-album-card h2 a:focus-visible,
.jdm-index-page .jdm-album-card__button:focus-visible {
  outline: 3px solid rgba(217, 154, 43, .50);
  outline-offset: 3px;
}

.jdm-index-page .jdm-album-card__media--fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(61, 139, 205, .30),
      transparent 36%
    ),
    linear-gradient(135deg, #071b36 0%, #214c78 100%);
}

.jdm-index-page .jdm-album-card__media--fallback::before {
  content: "\f03e";
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-family: FontAwesome;
  font-size: 23px;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.jdm-index-page .jdm-album-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.jdm-index-page .jdm-album-card__description {
  flex: 0 0 auto;
}

.jdm-index-page .jdm-album-card__button {
  margin-top: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.jdm-index-page .jdm-album-card__description
+ .jdm-album-card__button {
  margin-top: 13px;
}

.jdm-index-page .jdm-album-card__button:hover {
  box-shadow: 0 9px 20px rgba(7, 27, 54, .15);
  transform: translateX(2px);
}

.jdm-index-page .jdm-album-card--featured {
  display: grid;
  height: auto;
  transition:
    box-shadow .25s ease,
    border-color .25s ease;
}

.jdm-index-page .jdm-album-card--featured:hover {
  border-color: rgba(23, 104, 172, .16);
  box-shadow: 0 22px 50px rgba(8, 30, 58, .13);
}

.jdm-index-page .jdm-album-card--featured
.jdm-album-card__body {
  height: 100%;
}

.jdm-index-page .jdm-album-card--featured
.jdm-album-card__button {
  margin-top: 14px;
}

@media (hover: none) {
  .jdm-index-page .jdm-album-card:hover {
    transform: none;
  }

  .jdm-index-page .jdm-album-card:hover
  .jdm-album-card__media--image {
    background-size: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jdm-index-page .jdm-album-card,
  .jdm-index-page .jdm-album-card__media,
  .jdm-index-page .jdm-album-card__shade,
  .jdm-index-page .jdm-album-card__button {
    transition: none;
  }
}

