/* ——— Video carousel: 3 on desktop, 1 on mobile ——— */
.videos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.videos-bar-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c5c;
}

.videos-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.videos-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.videos-nav-btn:hover:not(:disabled) {
  background: var(--black);
  color: var(--white);
}

.videos-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.videos-viewport {
  width: 100%;
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y;
}

.videos-track {
  --videos-gap: 1.15rem;
  display: flex;
  gap: var(--videos-gap);
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 2 * var(--videos-gap)) / 3);
  width: calc((100% - 2 * var(--videos-gap)) / 3);
  min-width: calc((100% - 2 * var(--videos-gap)) / 3);
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: var(--radius);
}

.video-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.video-card:hover .video-card__media img {
  transform: scale(1.04);
}

@media (hover: none) {
  .video-card:hover .video-card__media img {
    transform: none;
  }
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.video-card p {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ——— Video lightbox modal ——— */
.legal-modal.video-modal {
  z-index: 320;
  padding: 1rem;
}

.legal-modal.video-modal .video-modal__panel {
  width: min(920px, 100%);
  max-height: min(90dvh, 820px);
  background: #111;
  color: #fff;
  overflow: hidden;
}

.legal-modal.video-modal.has-points .video-modal__panel {
  width: min(1080px, 100%);
}

.legal-modal.video-modal .video-modal__head {
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  flex-shrink: 0;
}

.legal-modal.video-modal .video-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  padding-right: 0.5rem;
}

.legal-modal.video-modal .video-modal__close {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.legal-modal.video-modal .video-modal__close:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.video-modal__body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: auto;
  background: #111;
}

.legal-modal.video-modal.has-points .video-modal__body {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.video-modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.video-modal__player iframe,
.video-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-modal__aside {
  padding: 1.15rem 1.2rem 1.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: #161616;
  overflow: auto;
}

.video-modal__aside[hidden] {
  display: none !important;
}

.video-modal__aside-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.video-modal__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.video-modal__points li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f2f2f2;
}

.video-modal__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yellow);
}

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

@media (max-width: 820px) {
  .legal-modal.video-modal.has-points .video-modal__body {
    grid-template-columns: 1fr;
  }

  .video-modal__aside {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 640px) {
  .legal-modal.video-modal {
    padding: 0.65rem;
  }

  .legal-modal.video-modal .video-modal__head {
    padding: 0.7rem 0.75rem 0.7rem 0.9rem;
  }

  .legal-modal.video-modal .video-modal__head h2 {
    font-size: 0.92rem;
  }

  .video-modal__aside {
    padding: 1rem 0.95rem 1.15rem;
  }
}
