:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #1f2d3d;
  --muted: #526173;
  --line: #d9e0ea;
  --content-width: 87.3vw;
  --banner-height: min(88svh, 58vw);
  --gallery-height: min(78svh, calc(var(--content-width) * 0.68));
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.container {
  width: var(--content-width);
  margin-inline: auto;
}

.top-banner {
  background: #0f2450;
  padding: 0;
}

.featured-poster {
  margin: 0;
  width: 100vw;
}

.featured-poster img {
  width: 100%;
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #0f2450;
}

.gallery-section {
  margin: 1.35rem 0 1.9rem;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef4fc 100%);
  border: 1px solid rgba(211, 223, 239, 0.55);
  box-shadow: 0 12px 28px rgba(10, 34, 62, 0.08);
}

.overview-section {
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #d3dfef;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 10px 24px rgba(10, 34, 62, 0.08);
}

.overview-section h2,
.overview-section h3 {
  margin: 0;
  color: #1a2f4c;
}

.overview-section h2 {
  font-size: clamp(1.46rem, 2.64vw, 2.04rem);
}

.overview-section h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.22rem, 2.16vw, 1.5rem);
}

.overview-section p {
  margin: 0.55rem 0 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: #1f2d3d;
}

.overview-section ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.overview-section li {
  margin: 0.35rem 0;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #1f2d3d;
}

.gallery-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: #1a2f4c;
}

.gallery-note, .footer-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-carousel {
  position: relative;
  display: block;
  padding-inline: 0;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(145deg, rgba(17, 54, 101, 0.92), rgba(10, 33, 68, 0.92));
  color: #ffffff;
  border-radius: 999px;
  padding: 0;
  font-family: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(7, 24, 50, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.gallery-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 14px 28px rgba(7, 24, 50, 0.44);
}

.gallery-nav:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.gallery-nav-prev {
  left: 0.9rem;
}

.gallery-nav-next {
  right: 0.9rem;
}

.gallery-frame {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.gallery-main-image {
  width: 100%;
  height: max(340px, var(--gallery-height));
  max-height: 90svh;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #0f2450;
}

.gallery-overlay-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  color: #ffffff;
  font-size: clamp(1.1rem, 1.68vw, 1.3rem);
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0) 0%, rgba(8, 18, 36, 0.85) 50%, rgba(8, 18, 36, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.footer {
  width: 100%;
  border-top: 1px solid #17325f;
  background: linear-gradient(90deg, #0f2450 0%, #173c78 55%, #0f2450 100%);
  padding: 1.35rem 0 1.6rem;
  color: #ffffff;
}

.footer-inner {
  width: var(--content-width);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.footer-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d9e7ff;
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

.logo-item {
  margin: 0;
  width: 100%;
  max-width: 180px;
  height: 92px;
  border: 1px solid rgba(221, 235, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  padding: 0.35rem;
  justify-self: center;
}

.logo-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.footer-note {
  color: #d2e4ff;
}

@media (max-width: 700px) {
  :root {
    --content-width: 100vw;
    --banner-height: min(66svh, 96vw);
    --gallery-height: min(72svh, 92vw);
  }

  .gallery-section {
    margin: 0.8rem 0 1.1rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .overview-section {
    margin: 0.8rem 0 0.9rem;
    padding: 0.85rem 0.8rem;
    border-radius: 12px;
  }

  .overview-section h2 {
    font-size: 1.37rem;
  }

  .overview-section h3 {
    font-size: 1.2rem;
    margin-top: 0.8rem;
  }

  .overview-section p,
  .overview-section li {
    font-size: 1.14rem;
    line-height: 1.45;
  }

  .gallery-section h2 {
    margin: 0;
    padding: 0.55rem 0.8rem 0.7rem;
    font-size: 1.12rem;
  }

  .gallery-carousel {
    padding-inline: 0;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 45%;
  }

  .gallery-nav-prev {
    left: 0.45rem;
  }

  .gallery-nav-next {
    right: 0.45rem;
  }

  .gallery-overlay-caption {
    font-size: clamp(0.98rem, 3.9vw, 1.08rem);
    line-height: 1.3;
    padding: 0.75rem 0.7rem calc(0.85rem + env(safe-area-inset-bottom));
  }

  .footer {
    padding: 1rem 0 1.2rem;
  }

  .footer-inner {
    padding-inline: 0.65rem;
  }

  .footer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .logo-item {
    max-width: 100%;
    height: 84px;
  }
}

@media (max-width: 420px) {
  :root {
    --banner-height: min(56svh, 98vw);
    --gallery-height: min(66svh, 96vw);
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .gallery-overlay-caption {
    font-size: 0.94rem;
  }

  .footer-logos {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) {
  :root {
    --banner-height: min(70svh, 98vw);
    --gallery-height: min(76svh, 96vw);
  }
}

@media (max-height: 700px) {
  :root {
    --banner-height: min(54svh, 96vw);
    --gallery-height: min(62svh, 92vw);
  }
}
