.vtt-section,
.vtt-more {
  width: 100%;
  margin: 1.5rem 0;
}

.vtt-section-title {
  margin: 0 0 1rem;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.vtt-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.vtt-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: #101828;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.vtt-card:hover,
.vtt-card:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(16, 24, 40, .2);
}

.vtt-card:focus-visible {
  outline: 3px solid #2271b1;
  outline-offset: 3px;
}

.vtt-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: linear-gradient(145deg, #243b53, #101828);
}

.vtt-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

.vtt-card:hover .vtt-card-image {
  transform: scale(1.035);
}

.vtt-card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(145deg, #475569, #101828);
}

.vtt-card-media::after {
  position: absolute;
  inset: 30% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(5, 12, 28, .92));
}

.vtt-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}

.vtt-play::after {
  position: absolute;
  top: 11px;
  left: 16px;
  width: 0;
  height: 0;
  content: "";
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.vtt-card-caption {
  position: absolute;
  z-index: 1;
  right: .7rem;
  bottom: .7rem;
  left: .7rem;
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vtt-single {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.vtt-player-frame {
  width: min(100%, 405px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

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

.vtt-player-fallback {
  margin: .75rem auto 0;
  text-align: center;
  font-size: .92rem;
}

.vtt-fallback {
  padding: 1rem;
  text-align: center;
}

.vtt-more {
  margin-top: 2.5rem;
}

.vtt-grid-more {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .vtt-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vtt-grid,
  .vtt-grid-more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
  }

  .vtt-card-caption {
    right: .5rem;
    bottom: .55rem;
    left: .5rem;
    font-size: .78rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .vtt-card,
  .vtt-card-image {
    transition: none;
  }
}
