.reel-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #000;
  color: #fff;
  height: 100dvh;
}

.reel-detail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reel-layer-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1002;
}

.reel-sound-fixed-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1002;
}

.reel-sound-fixed {
  padding: 0.4rem 1rem;
  margin: 1rem;
  height: 2.5rem;
  width: auto;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  cursor: pointer;

  font-family: var(--font-family-TimesNewRoman);
  font-size: var(--font-size-12);
  text-transform: uppercase;
  line-height: 1;
}

.reel-swiper {
  width: 100%;
  height: 100%;
}

.reel-swiper:not(.swiper-initialized) .swiper-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.reel-swiper:not(.swiper-initialized) .swiper-slide.is-current {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reel-swiper .swiper-wrapper {
  height: 100%;
}

.reel-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

.slide-content {
  width: 100%;
  height: 100%;
}

.reel-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  padding: 6rem 6rem 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.reel-poster {
  display: none !important;
}

.reel-video-stage {
  position: relative;
  width: auto;
  /* height: auto; */
  aspect-ratio: 9 / 16;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.reel-video-frame:not(.is-video-visible) .reel-video-stage {
  background: #fff;
}

.reel-video-stage.is-landscape {
  aspect-ratio: 16 / 9;
}

.reel-video {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;

  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  pointer-events: none;

  background-color: #000;
}

.reel-video.is-ready {
  opacity: 1;
}

.reel-video-frame.is-video-visible .reel-video {
  opacity: 1;
}

.reel-play-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  height: auto;
  width: auto;
  border: 1px solid #fff;
  padding: 0.8rem 3rem;
  color: #000;
  background-color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.16s ease;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: default;

  font-size: var(--font-size-20);
  line-height: 1;
}

.reel-play-indicator.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.reel-play-indicator:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.reel-timeline {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 5rem;
  cursor: pointer;
  touch-action: none;
  background: transparent;
  display: block;
  opacity: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reel-timeline.is-positioned {
  opacity: 1;
}

.reel-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.reel-timeline-current {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1.5px;
  transform: translateY(-50%);
  width: 0%;
  background: rgba(255, 255, 255, 1);
  pointer-events: none;
  will-change: width;
}

.reel-layer .article-actions {
  position: absolute;
  z-index: 1002;
  left: 0;
  right: 0;
  bottom: 3rem;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;

  margin: 0;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reel-layer .article-action {
  border: 1px solid #fff;
}

@supports (-webkit-touch-callout: none) {

  .reel-swiper .swiper-slide,
  .reel-video-frame,
  .reel-video-stage,
  .reel-timeline,
  .reel-layer .article-actions {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
  }
}

.reel-nav-stack {
  position: absolute;
  z-index: 1002;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0;
}

.reel-nav-button-wrapper {
  width: 4.6rem;
  height: 4.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reel-nav-button {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.reel-nav-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1rem;
  background: #fff;
}

.reel-nav-button[data-reel-arrow-prev]::before {
  -webkit-clip-path: polygon(50% 0, 0 100%, 100% 100%);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.reel-nav-button[data-reel-arrow-next]::before {
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.reel-nav-button.is-disabled,
.reel-nav-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.reel-empty {
  color: #fff;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;

  font-size: var(--font-size-15);
}

@media screen and (max-width: 50em) {
  /* 800px */

  .reel-video-frame {
    padding: 0;
  }

  .reel-video-stage {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .reel-video {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    -o-object-fit: cover;
    object-fit: cover;
  }

  .reel-layer .article-actions {
    bottom: 5rem;
  }

  .article-layer-close {
    padding: 1.5rem;
  }

  .reel-sound-fixed {
    margin: 1.5rem;
  }

  .reel-nav-button-wrapper {
    width: 5.6rem;
  }

  .reel-layer .article-action {
    --a11y-button-border: #fff;
    --a11y-button-bg: #fff;
    --a11y-button-text: #000;
  }

}
