body.reels-body {
  overflow: hidden;
}

body.reels-body .footer,
body.reels-body .back-top,
body.reels-body .wa-widget {
  display: none;
}

.reels-page {
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #000;
  -webkit-overflow-scrolling: touch;
}

.reel-slide {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: calc(100vh - var(--header-height));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.reel-media {
  position: relative;
  height: calc(100vh - var(--header-height));
  width: calc((100vh - var(--header-height)) * 9 / 16);
  max-width: 100vw;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.reel-video,
.reel-youtube-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reel-video {
  object-fit: cover;
  object-position: center;
  background: #000;
}

.reel-youtube-wrap {
  overflow: hidden;
  background: #000;
}

.reel-youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 316%;
  height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  border: 0;
  background: #000;
}

.reel-overlay {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 2;
  max-width: 72%;
  padding: 0.85rem 1rem;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  pointer-events: none;
}

.reel-overlay h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.reel-mute-btn {
  position: absolute;
  right: 0.85rem;
  bottom: 1.25rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.reel-mute-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.reel-fallback,
.reels-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 2rem;
}

.reel-fallback i,
.reels-empty i {
  font-size: 2.5rem;
  color: var(--gold, #F98420);
}

.reels-empty h3 {
  margin: 0;
  color: #fff;
}

.reels-empty p {
  margin: 0;
  max-width: 320px;
}

.reel-slide-empty {
  background: var(--bg-primary, #344765);
}

@media (max-width: 767.98px) {
  .reel-media {
    width: 100vw;
    height: calc(100vh - var(--header-height));
  }

  .reel-overlay h2 {
    font-size: 0.95rem;
  }
}
