.video-tabs {
  color: #1a1a1a;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.video-tabs__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1.5rem;
}

.video-tabs__list {
  border-bottom: 1px solid #969696;
  display: flex;
  gap: 40px;
}

.video-tabs__tab {
  appearance: none;
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  height: 60px;
  margin: 0 0 -1px;
  padding: 0;
  position: relative;
}

.video-tabs__tab::after {
  background: #d53f3f;
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  scale: 0;
  transition: scale 0.2s ease-out;
  width: 100%;
}

.video-tabs__tab[aria-selected="true"] {
  font-weight: 600;
}

.video-tabs__tab[aria-selected="true"]::after {
  scale: 1;
}

.video-tabs__tab:focus-visible,
.video-tabs__transcript summary:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 4px;
}

.video-tabs__panel {
  padding-top: 40px;
}

.video-tabs__panel mux-player {
  aspect-ratio: 16 / 9;
  display: block;
  width: 100%;
}

.video-tabs__transcript {
  margin-top: 1.5rem;
}

.video-tabs__transcript summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 0.5rem;
  list-style: none;
  min-height: 44px;
  padding: 0.75rem 0;
}

.video-tabs__transcript summary::-webkit-details-marker {
  display: none;
}

.video-tabs__transcript-icon {
  flex: 0 0 auto;
  transform: rotate(180deg);
  transition: transform 0.2s ease-out;
}

.video-tabs__transcript[open] .video-tabs__transcript-icon {
  transform: rotate(0deg);
}

.video-tabs__transcript-body {
  padding-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .video-tabs__tab::after,
  .video-tabs__transcript-icon {
    transition: none;
  }
}
