/* Wilson Creativo — reels slider */
.wilson-reels-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  grid-template-columns: none !important;
  grid-template-rows: auto !important;
}

.wilson-reels-container {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
}

.wilson-reels {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
  padding: 4px 42px 12px;
  box-sizing: border-box;
  overflow: hidden;
  container-type: inline-size;
  container-name: wilson-reels;
  font-family: Geist, "Geist Placeholder", sans-serif;
}

.wilson-reels-track {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  padding: 6px 0 10px;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wilson-reels-track::-webkit-scrollbar {
  display: none;
}

.wilson-reel {
  flex: 0 0 auto;
  width: min(78%, 280px);
  aspect-ratio: 9 / 16;
  height: auto;
  scroll-snap-align: center;
  position: relative;
  border: 1px solid #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  background: #0a0a0a;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.wilson-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}

.wilson-reel-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}

.wilson-reel-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  text-align: left;
  pointer-events: none;
}

.wilson-reel-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.wilson-reel-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

.wilson-reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.wilson-reel-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.wilson-reel:hover .wilson-reel-play,
.wilson-reel:focus-visible .wilson-reel-play {
  background: #000;
  transform: scale(1.06);
}

.wilson-reels-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.wilson-reels-nav.prev { left: 2px; }
.wilson-reels-nav.next { right: 2px; }

.wilson-reels-nav:hover,
.wilson-reels-nav:focus-visible {
  background: #000;
}

.wilson-reel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 4, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
}

.wilson-reel-lightbox[hidden] {
  display: none !important;
}

.wilson-reel-lightbox-frame {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wilson-reel-lightbox video {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.wilson-reel-lightbox-caption {
  color: #fff;
  font-family: Geist, "Geist Placeholder", sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 12px;
}

.wilson-reel-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.wilson-reel-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 24px;
  cursor: pointer;
}

.wilson-reel-lightbox-nav.prev { left: -56px; }
.wilson-reel-lightbox-nav.next { right: -56px; }

@container wilson-reels (min-width: 620px) {
  .wilson-reels-track {
    gap: 14px;
  }
  .wilson-reel {
    width: calc((100% - 14px) / 2);
    max-width: 280px;
    scroll-snap-align: start;
  }
}

@media (min-width: 810px) {
  .wilson-reels {
    padding: 4px 44px 12px;
  }
}

@container wilson-reels (min-width: 700px) {
  .wilson-reels-track {
    gap: 16px;
  }
  .wilson-reel {
    width: calc((100% - 32px) / 3);
    max-width: 236px;
  }
  .wilson-reels-nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

@container wilson-reels (min-width: 1200px) {
  .wilson-reels-track {
    justify-content: center;
    gap: 16px;
  }
  .wilson-reel {
    width: calc((100% - 48px) / 4);
    max-width: 248px;
    scroll-snap-align: start;
  }
}

@media (max-width: 809px) {
  .wilson-reel-title {
    font-size: 12px;
  }
  .wilson-reel-play {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }
  .wilson-reel-lightbox {
    padding: 56px 12px 20px;
  }
  .wilson-reel-lightbox-nav.prev { left: 6px; }
  .wilson-reel-lightbox-nav.next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .wilson-reels-track { scroll-behavior: auto; }
}
