/* Product Unboxing Video Section */
.product-unboxing-video-section {
  background-color: #000;
  background-image: radial-gradient(
    ellipse 60% 55% at 50% 42%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    transparent 70%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;

  --plyr-video-background: #000;
  --plyr-control-color: #fff;
  --plyr-control-color-hover: #fff;
  --plyr-video-control-background-hover: rgba(255, 255, 255, 0.2);
  --plyr-video-control-color: #fff;
  --plyr-control-spacing: 14px;
}

/* Bottom bar — gradient fade, white icons */
.product-unboxing-video-section .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  padding: 20px 12px 12px;
}

.product-unboxing-video-section .plyr__controls .plyr__control {
  background: transparent;
  color: #fff;
}

.product-unboxing-video-section .plyr__controls .plyr__control:hover {
  background: rgba(255, 255, 255, 0.15);
}

.unboxing-video-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.unboxing-video-title {
  color: #fff;
  text-align: center;
  /* Match the featured-text bands that sit either side of this section.
     They render at 220px in Neue Haas Medium with tight negative tracking,
     so a 48px bold Roman title read as a different, cheaper typographic
     system. 48px is the size those bands only drop to on mobile. */
  font-family: 'Neue Haas Grotesk Display Pro Medium', sans-serif !important;
  font-size: 220px;
  font-weight: 500;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin-bottom: 60px;
}

/* Same breakpoint ladder as .featured-text-wrapper .headline-1 in custom.css,
   so the two titles step down together instead of drifting apart. */
@media screen and (max-width: 1268px) {
  /* The bands relax to line-height 1 below 1269px; follow them. */
  .unboxing-video-title { font-size: 180px; line-height: 1; }
}
@media screen and (min-width: 768px) and (max-width: 1180px) {
  .unboxing-video-title { font-size: 160px; }
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .unboxing-video-title { font-size: 110px; }
}

/* ========================================
   Phone Mockup — iPhone 15 Pro
   ======================================== */
.phone-mockup {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

/* Titanium frame outer body */
.phone-mockup__frame {
  position: relative;
  border-radius: 48px;
  padding: 10px;
  /* Titanium-grade layered frame */
  background:
    linear-gradient(
      145deg,
      #3a3a3c 0%,
      #2c2c2e 20%,
      #1c1c1e 50%,
      #2c2c2e 80%,
      #3a3a3c 100%
    );
  /* Outer bezel highlight + ambient shadow */
  box-shadow:
    /* Outer titanium edge — top-left light catch */
    0 0 0 0.5px rgba(255, 255, 255, 0.12),
    /* Secondary metallic rim */
    0 0 0 1.5px #2a2a2c,
    /* Tertiary outer lip */
    0 0 0 2px rgba(255, 255, 255, 0.06),
    /* Diffused ambient glow against black bg */
    0 4px 20px rgba(255, 255, 255, 0.03),
    0 8px 40px rgba(0, 0, 0, 0.6),
    0 20px 80px rgba(0, 0, 0, 0.4),
    /* Inner bezel — subtle inset for depth */
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Metallic specular highlight on the frame (top edge catch) */
.phone-mockup__frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.2) 70%,
    transparent
  );
  border-radius: 48px;
  z-index: 3;
}

/* Screen area */
.phone-mockup__screen {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
}

/* Dynamic Island (pill) */
.phone-mockup__dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
  /* Subtle inset to make it look recessed into the display */
  box-shadow:
    inset 0 0 2px rgba(0, 0, 0, 0.8),
    0 0 0 0.5px rgba(30, 30, 30, 0.5);
}

/* Camera lens dot inside Dynamic Island */
.phone-mockup__dynamic-island::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    #1a1a2e 0%,
    #0a0a14 60%,
    #000 100%
  );
  box-shadow:
    inset 0 0 2px rgba(40, 40, 80, 0.4),
    0 0 1px rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------
   Side Buttons
   ---------------------------------------- */
.phone-mockup__btn {
  position: absolute;
  background:
    linear-gradient(
      180deg,
      #3a3a3c 0%,
      #2c2c2e 40%,
      #1c1c1e 60%,
      #2c2c2e 100%
    );
  z-index: 1;
  border-radius: 2px;
}

/* Left side: silent switch */
.phone-mockup__btn--silent {
  left: -2px;
  top: 105px;
  width: 3px;
  height: 24px;
  border-radius: 2px 0 0 2px;
  box-shadow:
    -1px 0 2px rgba(0, 0, 0, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Left side: volume up */
.phone-mockup__btn--volume-up {
  left: -2px;
  top: 152px;
  width: 3px;
  height: 42px;
  border-radius: 2px 0 0 2px;
  box-shadow:
    -1px 0 2px rgba(0, 0, 0, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Left side: volume down */
.phone-mockup__btn--volume-down {
  left: -2px;
  top: 202px;
  width: 3px;
  height: 42px;
  border-radius: 2px 0 0 2px;
  box-shadow:
    -1px 0 2px rgba(0, 0, 0, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Right side: power / side button */
.phone-mockup__btn--power {
  right: -2px;
  top: 170px;
  width: 3px;
  height: 60px;
  border-radius: 0 2px 2px 0;
  box-shadow:
    1px 0 2px rgba(0, 0, 0, 0.4),
    inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

/* Video wrapper inside phone screen */
.unboxing-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: #000;
  overflow: hidden;
}

/* Make Plyr fill the wrapper */
.unboxing-video-wrapper .plyr,
.unboxing-video-wrapper .plyr__video-wrapper {
  width: 100%;
  height: 100%;
}

.unboxing-video-wrapper .plyr__video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unboxing-video-wrapper .plyr__poster {
  background-size: cover;
}

/* Hide fallback poster image (Plyr handles its own poster) */
.unboxing-video-wrapper .video-poster-image {
  display: none;
}

.unboxing-video-placeholder {
  background-color: #222;
  padding: 100px 20px;
  text-align: center;
  border-radius: 8px;
}

.unboxing-video-placeholder p {
  color: #888;
  font-size: 18px;
  margin: 0;
}

/* Mobile Layout */
@media screen and (max-width: 768px) {
  .unboxing-video-title {
    font-size: 48px;
    margin-bottom: 40px;
  }

  .phone-mockup {
    max-width: 320px;
  }

  .phone-mockup__frame {
    border-radius: 40px;
    padding: 8px;
  }

  .phone-mockup__frame::before {
    left: 18%;
    right: 18%;
  }

  .phone-mockup__screen {
    border-radius: 34px;
  }

  .phone-mockup__dynamic-island {
    width: 74px;
    height: 22px;
    top: 8px;
    border-radius: 16px;
  }

  .phone-mockup__dynamic-island::after {
    width: 6px;
    height: 6px;
    right: 14px;
  }

  /* Scale button positions for smaller frame */
  .phone-mockup__btn--silent {
    top: 86px;
    height: 20px;
  }

  .phone-mockup__btn--volume-up {
    top: 124px;
    height: 34px;
  }

  .phone-mockup__btn--volume-down {
    top: 166px;
    height: 34px;
  }

  .phone-mockup__btn--power {
    top: 140px;
    height: 50px;
  }
}
