.video-page {
  min-height: 100vh;
  padding-bottom: 118px;
  background: #05070b;
  color: #f8fafc;
  font-family: "Poppins", Arial, sans-serif;
}

.video-module-body {
  --site-header-offset: 120px;
}

.video-page a,
.video-page button {
  touch-action: manipulation;
}

.video-shell-nav {
  position: fixed;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 70px;
  padding: 0.75rem clamp(1rem, 5vw, 4.5rem);
  margin-bottom: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0), rgba(5, 7, 11, 0.72));
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.video-shell-nav.is-scrolled {
  background: linear-gradient(180deg, rgba(5, 7, 11, 0), rgba(5, 7, 11, 0.86));
  backdrop-filter: blur(12px);
}

.video-nav {
  color: #d8e0ea;
  pointer-events: auto;
  perspective: 860px;
  perspective-origin: 50% -40%;
}

.video-tab-list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 68px;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(6, 10, 18, 0.82);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  transform: rotateX(0deg) rotateY(0deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 220ms ease;
}

.video-nav.nav--tilt1 .video-tab-list {
  --nav-glow-x: 14%;
  transform: rotateX(8deg) rotateY(-13deg) rotateZ(0.5deg) translateZ(0);
}

.video-nav.nav--tilt2 .video-tab-list {
  --nav-glow-x: 38%;
  transform: rotateX(9deg) rotateY(-4deg) translateZ(0);
}

.video-nav.nav--tilt3 .video-tab-list {
  --nav-glow-x: 62%;
  transform: rotateX(9deg) rotateY(4deg) translateZ(0);
}

.video-nav.nav--tilt4 .video-tab-list {
  --nav-glow-x: 86%;
  transform: rotateX(8deg) rotateY(13deg) rotateZ(-0.5deg) translateZ(0);
}

.video-tab-list::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent),
    radial-gradient(circle at var(--nav-glow-x, 14%) 20%, rgba(255, 122, 26, 0.28), transparent 32%);
  opacity: 0.7;
  pointer-events: none;
}

.video-tab-list li {
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
  transition: transform 220ms ease;
}

.video-tab-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 54px;
  padding: 0.45rem 0.85rem;
  border-radius: 16px;
  color: #d8e0ea;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.video-tab-list a span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-tab-list svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  color: #97a6b7;
  transform-origin: center;
  transition: color 180ms ease, transform 220ms ease, filter 180ms ease;
}

.video-tab-list a:hover,
.video-tab-list a:focus,
.video-tab-list li.active a {
  color: #ff7a1a;
  text-shadow: 0 0 18px rgba(255, 122, 26, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.video-tab-list a:hover svg,
.video-tab-list a:focus svg,
.video-tab-list svg.active-fill {
  color: #ff7a1a;
  filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.5));
  transform: translateY(-5px) scale(1.16) rotate(-4deg);
}

.video-tab-list li.active {
  animation: videoIconLift 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.card--fly-out {
  animation: videoFloatingCard 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transform-origin: center top;
}

@keyframes videoIconLift {
  0% { transform: translateZ(20px) translateY(0); }
  50% { transform: translateZ(42px) translateY(-8px) scale(1.03); }
  100% { transform: translateZ(20px) translateY(0); }
}

@keyframes videoFloatingCard {
  0% {
    opacity: 0.62;
    transform: perspective(920px) rotateX(9deg) translateY(24px) translateZ(-32px) scale(0.965);
    filter: blur(0.2px) saturate(0.82);
  }
  60% {
    opacity: 1;
    transform: perspective(920px) rotateX(-2deg) translateY(-8px) translateZ(20px) scale(1.012);
    filter: saturate(1.08);
  }
  100% {
    opacity: 1;
    transform: perspective(920px) rotateX(0deg) translateY(0) translateZ(0) scale(1);
    filter: saturate(1);
  }
}

.video-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  pointer-events: auto;
}

.video-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(620px, 78vh, 820px);
  overflow: hidden;
  background: #07101a;
}

.video-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hero-bg[hidden] {
  display: none;
}

.video-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.62) 35%, rgba(5, 7, 11, 0.18) 70%),
    linear-gradient(0deg, #05070b 0%, rgba(5, 7, 11, 0.58) 28%, rgba(5, 7, 11, 0.22) 100%);
}

.video-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2px minmax(0, 620px);
  gap: 1.5rem;
  max-width: 900px;
  padding: clamp(7rem, 12vw, 11rem) clamp(1rem, 6vw, 6rem) clamp(4rem, 9vw, 7rem);
}

.video-accent-line {
  min-height: 220px;
  background: rgba(255, 255, 255, 0.72);
}

.video-status {
  margin: 0 0 0.5rem;
  color: #d8e0ea;
  font-size: 0.92rem;
}

.video-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
}

.video-hero p[data-video-description] {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #d5dce6;
  font-size: 1rem;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.video-meta li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  color: #f3f6fb;
  font-size: 0.86rem;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.video-button,
.video-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.video-button {
  gap: 0.5rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
}

.video-button.primary {
  background: #ff5a00;
  color: #fff;
}

.video-button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.video-icon-button {
  width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 7, 11, 0.42);
  color: #fff;
}

.video-carousel-section,
.video-catalog-section {
  background: #05070b;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4.5rem);
}

.video-catalog-section {
  padding-bottom: clamp(8rem, 14vw, 11rem);
}

.video-carousel-section {
  padding-top: 1.2rem;
}

.video-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.video-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.video-section-heading p {
  margin: 0.2rem 0 0;
  color: #aeb8c6;
}

.video-section-heading a {
  color: #ff5a00;
  font-weight: 600;
}

.video-carousel-wrap {
  position: relative;
}

.video-carousel {
  display: grid;
  grid-auto-columns: minmax(150px, 185px);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: #ff5a00 #151a22;
  padding: 0.4rem 0 1rem;
}

.video-poster-card,
.video-list-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0;
  background: #121821;
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.video-poster-card {
  scroll-snap-align: start;
}

.video-poster-card:hover,
.video-poster-card:focus,
.video-list-card:hover,
.video-list-card:focus,
.video-poster-card.is-selected,
.video-list-card.is-selected {
  border-color: #ff5a00;
  box-shadow: 0 24px 46px rgba(255, 90, 0, 0.18);
  transform: translateY(-4px) scale(1.015);
}

.video-poster-card img,
.video-list-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 11, 0.36);
  color: #fff;
  font-size: 1.45rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.video-poster-card:hover .video-play-overlay,
.video-poster-card:focus .video-play-overlay,
.video-list-card:hover .video-play-overlay,
.video-list-card:focus .video-play-overlay {
  opacity: 1;
}

.video-card-body {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem;
}

.video-card-body strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.video-card-body span {
  color: #aeb8c6;
  font-size: 0.78rem;
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 56px;
  border: 0;
  border-radius: 4px;
  background: rgba(5, 7, 11, 0.72);
  color: #fff;
  font-size: 1.8rem;
}

.carousel-arrow.left {
  left: -0.4rem;
}

.carousel-arrow.right {
  right: -0.4rem;
}

.video-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.video-filters label {
  display: grid;
  gap: 0.35rem;
  color: #d8e0ea;
  font-weight: 600;
}

.video-filters input,
.video-filters select {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  background: #111820;
  color: #fff;
  font: inherit;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.video-empty {
  margin: 1rem 0 0;
  color: #aeb8c6;
}

.video-dialog {
  width: min(980px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0;
  background: #070b12;
  color: #fff;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.video-dialog-content {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.video-dialog-content header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.video-dialog h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.video-dialog video {
  width: 100%;
  max-height: 70vh;
  border-radius: 6px;
  background: #000;
}

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

.video-embed-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.video-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-dialog p {
  margin: 0;
  color: #c9d3df;
}

.video-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.is-video-modal-open {
  overflow: hidden;
}

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

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

@media (max-width: 720px) {
  .video-shell-nav {
    min-height: 68px;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    justify-content: flex-end;
  }

  .video-menu-toggle {
    display: grid;
    place-items: center;
  }

  .video-nav {
    position: absolute;
    right: 1rem;
    bottom: calc(100% + 0.75rem);
    left: auto;
    display: none;
    width: min(92vw, 360px);
  }

  .video-nav.is-open {
    display: block;
  }

  .video-tab-list {
    display: flex;
    justify-content: space-between;
    border-radius: 16px;
    padding: 0.55rem;
  }

  .video-tab-list a {
    justify-content: center;
    min-width: 58px;
    min-height: 50px;
    padding: 0 0.75rem;
  }

  .video-hero {
    min-height: 680px;
  }

  .video-hero-content {
    grid-template-columns: 2px minmax(0, 1fr);
    gap: 1rem;
    padding: 7rem 1rem 3rem;
  }

  .video-accent-line {
    min-height: 260px;
  }

  .video-button {
    flex: 1 1 180px;
  }

  .video-carousel {
    grid-auto-columns: minmax(142px, 46vw);
  }

  .carousel-arrow {
    display: none;
  }

  .video-filters,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-shell-nav,
  .video-poster-card,
  .video-list-card,
  .video-play-overlay {
    transition: none;
  }

  .video-poster-card:hover,
  .video-poster-card:focus,
  .video-list-card:hover,
  .video-list-card:focus {
    transform: none;
  }
}
