:root {
  --page-bg: #f5f8fb;
  --surface: #ffffff;
  --text: #102033;
  --muted: #5e7185;
  --blue-950: #08213d;
  --blue-850: #0f3157;
  --green: #22a06b;
  --border: #d6e0e8;
  --shadow: 0 24px 65px rgba(15, 49, 87, 0.16);
  --radius: 8px;
  --container2: min(1160px, calc(100% - 40px));
}

.video-page {
  width: var(--container2);
  margin: 0 auto;
  padding: 72px 0;
}

.video-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.43fr);
  min-height: 440px;
  overflow: hidden;
  background: #222124;
  border: 1px solid rgba(8, 33, 61, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-showcase__player {
  position: relative;
  min-height: 440px;
  background: #080b10;
}

.video-showcase__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-showcase__playlist {
  display: grid;
  grid-auto-rows: min-content;
  max-height: 440px;
  overflow: auto;
  background: #333038;
}

.video-playlist__header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 22px 24px;
  color: #fff;
  background: #333038;
  border-bottom: 1px solid #000;
}

.video-playlist__header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.video-playlist__header p {
  margin: 5px 0 0;
  color: #d1d1d1;
  font-size: 13px;
  font-weight: 700;
}

.video-playlist__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  color: #fff;
  text-align: left;
  background: #222124;
  border: 0;
  border-bottom: 1px solid #000;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.video-playlist__item:hover,
.video-playlist__item:focus-visible {
  background: #2b3440;
  outline: none;
}

.video-playlist__item.is-active {
  background: var(--surface);
  color: var(--blue-950);
}

.video-playlist__index {
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.62;
}

.video-playlist__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.28;
}

.video-playlist__duration {
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
  opacity: 0.7;
}

@media (max-width: 960px) {
  .video-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .video-showcase__player {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .video-showcase__playlist {
    max-height: 360px;
  }
}

@media (max-width: 680px) {
  :root {
    --container2: min(100% - 28px, 1160px);
  }

  .video-page {
    padding: 48px 0;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .section-number {
    grid-row: auto;
    width: 54px;
  }

  .video-playlist__header {
    padding: 18px;
  }

  .video-playlist__item {
    grid-template-columns: auto 1fr;
  }

  .video-playlist__duration {
    grid-column: 2;
  }
}
