/* หน้าที่: กรอบโปสเตอร์ประชาสัมพันธ์และรายละเอียดเมื่อคลิก */
.discover-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: stretch;
}

.discover-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #081028;
  box-shadow: 0 26px 70px rgba(16, 26, 69, .2);
  isolation: isolate;
  outline: none;
}

.discover-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: inherit;
  pointer-events: none;
}

.discover-stage:focus-visible {
  box-shadow: 0 0 0 4px rgba(41, 69, 236, .2), 0 26px 70px rgba(16, 26, 69, .2);
}

.discover-slides,
.discover-slide {
  position: absolute;
  inset: 0;
}

.discover-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
  transition: opacity .55s ease, transform .8s ease;
}

.discover-slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.discover-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.discover-slide figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 4rem 1.5rem 1.2rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(3, 7, 23, .84));
}

.discover-slide figcaption span {
  color: #b6c8ff;
  font-size: .75rem;
  letter-spacing: .12em;
}

.discover-slide figcaption strong {
  font-size: 1.05rem;
  text-align: right;
}

.discover-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(6, 13, 39, .55);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.discover-arrow:hover {
  background: #fff;
  color: #1e36d4;
  transform: translateY(-50%) scale(1.06);
}

.discover-arrow:active { transform: translateY(-50%) scale(.94); }
.discover-arrow.prev { left: 16px; }
.discover-arrow.next { right: 16px; }

.discover-counter {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: baseline;
  gap: .25rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  background: rgba(4, 9, 28, .62);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}

.discover-counter strong { font-size: 1.15rem; }
.discover-counter span { color: #b6c8ff; font-size: .72rem; }

.discover-rail {
  display: flex;
  min-width: 0;
  max-height: 100%;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  scrollbar-width: thin;
}

.discover-rail button {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e0e7f2;
  border-radius: 17px;
  background: #fff;
  color: #17213c;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.discover-rail button:hover,
.discover-rail button.active {
  border-color: #2945ec;
  box-shadow: 0 10px 28px rgba(41, 69, 236, .14);
  transform: translateY(-1px);
}

.discover-rail img {
  display: block;
  width: 96px;
  height: 54px;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  object-fit: cover;
}

.discover-rail span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.discover-rail small { color: #2945ec; font-weight: 800; }
.discover-rail strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 980px) {
  .venue-intro { padding-bottom: 42px !important; }
  .venue-intro + .pr-section { padding-top: 56px !important; }

  .discover-showcase {
    position: relative;
    left: 50%;
    width: calc(100vw - clamp(24px, 4vw, 40px));
    grid-template-columns: 1fr;
    gap: 13px;
    transform: translateX(-50%);
  }

  .discover-stage {
    width: 100%;
    border-radius: clamp(18px, 3vw, 28px);
    background: #030715;
    box-shadow: 0 24px 64px rgba(9, 18, 52, .3), 0 8px 20px rgba(21, 94, 239, .16);
    touch-action: pan-y pinch-zoom;
  }

  .discover-stage::before {
    content: "";
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 10px;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .28);
    pointer-events: none;
    transform: translateX(50%);
  }

  .discover-slide img { object-fit: contain; }
  .discover-slide figcaption { display: none; }

  .discover-arrow {
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(3, 8, 28, .5);
  }

  .discover-arrow.prev { left: 12px; }
  .discover-arrow.next { right: 12px; }

  .discover-counter {
    top: 12px;
    right: 12px;
    padding: .45rem .68rem;
    border-radius: 999px;
  }

  .discover-rail {
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: visible;
  }

  .discover-rail button {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px !important;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  .discover-rail button::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #cbd5e5;
    transition: width .25s ease, background .25s ease, transform .2s ease;
  }

  .discover-rail button:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .discover-rail button:hover::after { background: #8798b4; transform: scale(1.12); }

  .discover-rail button.active {
    width: 44px;
    flex-basis: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .discover-rail button.active::after {
    width: 34px;
    background: linear-gradient(90deg, #155eef, #7956ef);
    box-shadow: 0 5px 15px rgba(21, 94, 239, .3);
    transform: none;
  }

  .discover-rail img,
  .discover-rail span { display: none; }
}

@media (max-width: 640px) {
  .venue-intro { padding-bottom: 28px !important; }
  .venue-intro + .pr-section { padding-top: 38px !important; }

  .venue-intro > .section-heading {
    margin-bottom: 20px;
  }

  .venue-intro > .section-heading > p { display: none; }

  .discover-showcase {
    left: auto;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    transform: none;
  }

  .discover-stage { border-radius: 0; }
  .discover-stage::after { border-right: 0; border-left: 0; }

  .discover-arrow {
    width: 40px;
    height: 40px;
    font-size: .88rem;
  }

  .discover-arrow.prev { left: 9px; }
  .discover-arrow.next { right: 9px; }

  .discover-counter {
    top: 9px;
    right: 9px;
    padding: .34rem .58rem;
  }

  .discover-counter strong { font-size: .95rem; }
  .discover-counter span { font-size: .64rem; }
  .discover-stage::before { bottom: 7px; width: 34px; height: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-slide,
  .discover-arrow,
  .discover-rail button { transition: none; }
}
