.videos-page {
  padding-top: 120px;
}

body.modal-open {
  overflow: hidden;
}

.videos-hero {
  max-width: 1200px;
  min-height: 310px;
  margin: 0 auto 70px;
  padding: 58px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  position: relative;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(circle at 80% 35%, rgba(96, 165, 250, .55), transparent 30%),
    linear-gradient(120deg, #102447, #1d4ed8 52%, #60a5fa);
}

.videos-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.12), transparent 65%);
  pointer-events: none;
}

.videos-hero-content {
  max-width: 530px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.videos-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.videos-hero p {
  max-width: 500px;
  color: #f8dce2;
  line-height: 1.7;
}

.videos-back-link,
.browse-link,
.video-products-link {
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.videos-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(20, 20, 20, .75);
  font-size: 13px;
  transition: transform .2s ease, background .2s ease;
}

.videos-back-link:hover,
.video-products-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.video-products-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.video-products-modal.is-open {
  display: block;
}

.video-products-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(5px);
}

.video-products-modal-content {
  width: min(1100px, calc(100% - 30px));
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 32px;
  transform: translate(-50%, -50%);
  border: 1px solid #444;
  border-radius: 18px;
  background: #202020;
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.video-products-modal-content h2 {
  margin: 8px 0 24px;
  color: #fff;
}

.video-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}

.video-modal-close:hover { color: #fff; }

.open-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.open-product-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  background: #292929;
}

.open-product-card > img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 7px;
  background: #111;
}

.open-product-card h3 {
  overflow: hidden;
  margin: 0 0 3px;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-product-card span {
  color: #999;
  font-size: 11px;
}

.open-product-button {
  grid-column: 1 / -1;
  padding: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  color: #fff;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.open-product-button:hover { color: #fff; filter: brightness(1.12); }

.videos-hero-art {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(20, 20, 20, .25);
  box-shadow: 0 0 80px rgba(96, 165, 250, .55);
  transform: rotate(8deg);
}

.videos-hero-art i {
  color: #fff;
  font-size: 108px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,.3));
}

.videos-content {
  max-width: 1120px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.videos-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.videos-heading h2 {
  margin-top: 7px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.browse-link {
  color: #93c5fd;
  font-size: 13px;
  white-space: nowrap;
}

.browse-link:hover {
  color: #fff;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 15px 35px rgba(0,0,0,.2);
  transition: transform .25s ease, border-color .25s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, .65);
}

.video-preview {
  height: 220px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #202020;
}

.video-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.video-card:hover .video-preview img {
  transform: scale(1.05);
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #60a5fa;
  font-size: 65px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(37, 99, 235, .9);
  color: #fff;
  font-size: 28px;
}

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
}

.video-card-body {
  padding: 20px;
}

.video-category {
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.video-card p {
  min-height: 44px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
}

.video-products {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.video-products a {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: #292929;
}

.video-products img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-products-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  font-size: 13px;
  font-weight: 600;
  transition: filter .2s ease, transform .2s ease;
}

.video-products-link:hover {
  filter: brightness(1.12);
}

@media (max-width: 700px) {
  .videos-page {
    padding-top: 100px;
  }

  .videos-hero {
    min-height: 400px;
    margin-bottom: 50px;
    padding: 45px 25px;
    align-items: flex-start;
  }

  .videos-hero-art {
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 190px;
    height: 190px;
    opacity: .7;
  }

  .videos-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-preview {
    height: 210px;
  }

  .video-products-modal-content {
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-preview img,
  .videos-back-link {
    transition: none;
  }
}
