.reels-wrap {
  display: flex;
  gap: 7rem; /* spacing between phones */
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8rem;
}

.mob-frame {
  position: relative;
  width: 250px;
  height: 480px;
  background-color: #000;
  border: 8px solid #222;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Tilts for phone angles */
.tilt-left {
  transform: rotate(-10deg);
}
.tilt-center {
  transform: rotate(0deg);
}
.tilt-right {
  transform: rotate(10deg);
}

.mob-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Speaker Mute Toggle */
.speaker-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.speaker-toggle img {
  width: 18px;
  height: 18px;
}

/* Bottom section (Client name, views) */
.mob-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mob-bottom-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}
.mob-bottom-name img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.mob-bottom-likes {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}
.mob-bottom-likes img {
  width: 16px;
  height: 16px;
}

/* Side buttons (Volume + Power) */
.side-buttons {
  position: absolute;
  right: -16px;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.volume-button, .power-button {
  width: 6px;
  border-radius: 4px;
  background-color: #444;
}
.volume-button {
  height: 35px;
}
.power-button {
  height: 50px;
  background-color: #222;
}

@media (max-width: 1100px) {
  .reels-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 6rem; /* reduce gap for mobile */
    padding: 1rem 1rem 2rem 10rem; /* add bottom padding for scrollbar space */
  }

  .mob-frame {
    flex: 0 0 auto; /* prevent shrinking */
    scroll-snap-align: start;
  }

  .reels-wrap::-webkit-scrollbar {
    height: 10px;
  }

  .reels-wrap::-webkit-scrollbar-track {
    background: transparent;
  }

  .reels-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #8F98FF, #AC134B);
    border-radius: 10px;
  }

  .reels-wrap .mob-frame:first-child {
    margin-left: 1rem;
  }
  .reels-wrap .mob-frame:last-child {
    margin-right: 1rem;
  }
}

@media screen and (max-width: 468px) {
  .reels-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 4rem; /* reduce gap for mobile */
    padding: 1rem 1rem 2rem 24.5rem; /* remove large left padding */
    scroll-padding-left: 10rem; /* ensures first card aligns nicely when snapped */
    margin: 30px auto;
  }

  .mob-frame {
    width: 200px;
    height: 400px;
    scroll-snap-align: start; /* important for snap effect */
  }

  .mob-bottom {
    padding: 6px 10px;
  }

  .mob-bottom-name img {
    width: 18px;
    height: 18px;
  }

  .mob-bottom-likes img {
    width: 14px;
    height: 14px;
  }
}

