.video-section.page-width {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.video-section__media {
  position: relative;
  padding-bottom: 56.25%;
  display: flex;
  justify-content: center;
}

@media only screen and (min-width: 750px) {
  .video-section__media {
    padding-bottom: 50%;
  }
}

.video-section__media.deferred-media {
  overflow: visible;
}

.video-section__poster.deferred-media__poster:focus {
  outline-offset: 0.3rem;
}

.video-section__media iframe {
  background-color: rgba(var(--color-foreground), 0.03);
  border: 0;
}

.video-section__poster,
.video-section__media iframe {
  position: absolute;
  width: 70%;
  height: 70%;
}

.section-video {
  padding: 40px 0;
}

.video-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.video-tab {
  padding: 12px 24px;
  border: 1px solid #d7bdaf;
  border-radius: 24px;
  background: none;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
}

.video-tab:hover {
  background: rgba(215, 189, 175, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(215, 189, 175, 0.2);
}

.video-tab.active {
  background: #d7bdaf;
  color: #333;
  box-shadow: 0 2px 12px rgba(215, 189, 175, 0.3);
}

.video-container {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-container.active {
  display: block;
}

.video-section__media {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.video-section__media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 749px) {
  .section-video {
    padding: 30px 0;
  }

  .video-tabs {
    gap: 8px;
    margin: 20px auto;
    padding: 0 12px;
  }

  .video-tab {
    padding: 8px 16px;
    font-size: 13px;
    min-width: auto;
  }

  .video-container {
    padding: 0 12px;
  }

  .video-section__media {
    border-radius: 12px;
  }
}
