.short-video {
  width: 100%;
  position: relative;
}

.short-video__content {
  max-width: 1355px;
  margin: 30px auto;
}

.short-video--product {
  margin: 0px;
  padding: 20px 0;
}

.short-video--product .short-video__container {
  justify-content: unset;
  padding: 0 60px;
  position: relative;
}

.short-video--product .short-video-nav {
  z-index: 40;
}

.short-video--product .short-video-nav.prev {
  left: 5px;
}

.short-video--product .short-video-nav.next {
  right: 5px;
}

.short-video__container {
  display: flex;
  margin: 0;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

.short-video__video-container {
  max-width: 210px;
  margin: 0;
  width: 100%;
  height: auto;
  position: relative;
  border: 4px solid black;
  border-radius: 10px;
  padding: 0px;
  z-index: 3;
  display: flex;
}

.short-video__item {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
}

.short-video__overflow-container {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 25%;
  cursor: pointer;
}

.short-video__overflow-container:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transition: 1s all;
}

.short-video__video {
  width: 100%;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.short-video__rect-item .short-video__video {
  object-fit: cover;
}

.short-video__circle-item {
  margin-bottom: 0 !important;
}

.short-video__circle-container {
  position: relative;
  width: 80px;
  height: 80px;
  border: 4px solid black;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .short-video__circle-container {
    width: 100px;
    height: 100px;
  }
}

.short-video__circle-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-video__circle-item .short-video__overflow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.short-video__image {
  border: 4px solid black;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 991px) {
  .short-video__image {
    width: 100px;
    height: 100px;
  }
}

.short-video__rect-item .short-video__image {
  width: 65px !important;
  height: 65px !important;
}

.short-video__image:hover {
  opacity: 0.8;
  transition: 1s all;
}
.short-video__product-container {
  max-width: 210px;
  background-color: white;
  padding: 5px 10px;
  border-radius: 5px;
  width: 100%;
  min-height: 50px;
  height: auto;
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  border: 1px solid black;
}

.short-video__product-container:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: 0.3s all;
}

.short-video__product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 80%;
  overflow: hidden;
  padding-left: 10px;
}

.short-video__product-price,
.short-video__product-name {
  color: black;
  padding-left: 3px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
  margin-bottom: 2px;
}

.short-video__product-image {
  width: 20%;
  height: auto;
  object-fit: contain;
  margin-bottom: 5px;
}

.short-video-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
}

.short-video-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.short-video-lightbox__container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.short-video-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.short-video-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.short-video-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item {
  position: absolute;
  width: 450px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, opacity 0.4s ease, left 0.4s ease;
  will-change: transform, opacity, left;
}

.gallery-item__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.gallery-item__video-container {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-item__product {
  max-width: 450px;
  background-color: white;
  padding: 5px 10px;
  border-radius: 5px;
  width: 100%;
  min-height: 60px;
  display: flex;
  flex-direction: row;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid black;
  text-decoration: none;
  transition: box-shadow 0.3s;
  flex-shrink: 0;
}

.gallery-item__product:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item__product img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.gallery-item__product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10px;
  flex: 1;
  overflow: hidden;
}

.gallery-item__product-info .name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item__product-info .price {
  font-size: 12px;
  color: #666;
}

.pos-far-left {
  transform: translateX(-200%) scale(0.5);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.pos-left {
  transform: translateX(-100%) scale(0.7);
  opacity: 0.5;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

.pos-center {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 10;
}

.pos-right {
  transform: translateX(100%) scale(0.7);
  opacity: 0.5;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

.pos-far-right {
  transform: translateX(200%) scale(0.5);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-nav--prev {
  left: 20px;
}

.gallery-nav--next {
  right: 20px;
}

.gallery-nav::after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border-top: 3px solid white;
  border-right: 3px solid white;
}

.gallery-nav--prev::after {
  transform: rotate(-135deg);
  margin-left: 5px;
}

.gallery-nav--next::after {
  transform: rotate(45deg);
  margin-right: 5px;
}

@media (max-width: 768px) {
  .gallery-item {
    width: 90vw;
  }

  .pos-left {
    transform: translateX(-110%) scale(0.7);
  }

  .pos-right {
    transform: translateX(110%) scale(0.7);
  }
}

.short-video-carousel-track {
  will-change: transform;
}

.short-video-carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease;
}

.short-video-carousel-item.short-video__rect-item {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

.short-video__rect-item {
  transform: scale3d(0.85, 0.85, 1);
  opacity: 0.5;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

.short-video-carousel-item.short-video__rect-item {
  transform: scale3d(0.85, 0.85, 1);
  opacity: 0.5;
  z-index: 1;
}

.short-video-carousel-item.short-video__rect-item.is-center {
  transform: scale3d(1, 1, 1);
  opacity: 1;
  z-index: 10;
}

.short-video__circle-item,
.short-video-carousel-item.short-video__circle-item {
  transform: none !important;
  opacity: 1 !important;
  z-index: 1;
}

.short-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(240, 240, 240, 0.9)
  );
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
  backdrop-filter: blur(8px);
}

.short-video-nav:hover {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
}

.short-video-nav:active {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.short-video-nav.prev {
  left: 15px;
}

.short-video-nav.next {
  right: 15px;
}

.short-video-nav::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #333;
  border-right: 3px solid #333;
  transition: all 0.3s ease;
}

.short-video-nav.prev::after {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.short-video-nav.next::after {
  transform: rotate(45deg);
  margin-right: 4px;
}

.short-video-nav:hover::after {
  border-color: #000;
  border-width: 3.5px;
}

.short-video-nav.prev:hover::after {
  animation: arrowBounceLeft 0.6s ease-in-out infinite;
}

.short-video-nav.next:hover::after {
  animation: arrowBounceRight 0.6s ease-in-out infinite;
}

@keyframes arrowBounceLeft {
  0%,
  100% {
    transform: rotate(-135deg) translateX(0);
  }
  50% {
    transform: rotate(-135deg) translateX(-3px);
  }
}

@keyframes arrowBounceRight {
  0%,
  100% {
    transform: rotate(45deg) translateX(0);
  }
  50% {
    transform: rotate(45deg) translateX(3px);
  }
}

@keyframes buttonPulse {
  0% {
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}

.short-video-nav {
  animation: buttonPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.short-video-nav.prev {
  animation-delay: 0.1s;
}

.short-video-nav.next {
  animation-delay: 0.15s;
}

.short-video-nav:focus {
  outline: 3px solid rgba(66, 133, 244, 0.5);
  outline-offset: 3px;
}

.short-video-nav:focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 768px) {
  .short-video-nav {
    width: 45px;
    height: 45px;
  }

  .short-video-nav.prev {
    left: 10px;
  }

  .short-video-nav.next {
    right: 10px;
  }

  .short-video-nav::after {
    width: 10px;
    height: 10px;
    border-width: 2.5px;
  }
}

.short-video.dark .short-video-nav {
  background: linear-gradient(
    135deg,
    rgba(60, 60, 60, 0.95),
    rgba(40, 40, 40, 0.9)
  );
  border-color: rgba(100, 100, 100, 0.3);
}

.short-video.dark .short-video-nav:hover {
  background: linear-gradient(135deg, #505050, #404040);
  border-color: rgba(120, 120, 120, 0.6);
}

.short-video.dark .short-video-nav::after {
  border-color: #fff;
}

.short-video.dark .short-video-nav:hover::after {
  border-color: #f0f0f0;
}

.short-video:has(.short-video__circle-item):not(:has(.short-video__rect-item))
  .short-video-nav {
  width: 35px;
  height: 35px;
}

.short-video:has(.short-video__circle-item):not(:has(.short-video__rect-item))
  .short-video-nav::after {
  width: 10px;
  height: 10px;
  border-width: 2.5px;
}

.short-video:has(.short-video__circle-item):not(:has(.short-video__rect-item))
  .short-video-nav:hover {
  transform: translateY(-50%) scale(1.12);
}

@media (max-width: 768px) {
  .short-video:has(.short-video__circle-item):not(:has(.short-video__rect-item))
    .short-video-nav {
    width: 32px;
    height: 32px;
  }

  .short-video:has(.short-video__circle-item):not(:has(.short-video__rect-item))
    .short-video-nav::after {
    width: 8px;
    height: 8px;
    border-width: 2px;
  }
}

.gallery-item__video-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.custom-video-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.custom-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
}

.gallery-item__video-container.is-paused .custom-play-button {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item__video-container.is-playing .custom-play-button {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(1.2);
}

.custom-play-button:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 26px solid white;
  margin-left: 5px;
}

.product-iframe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
}

.product-iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-iframe-container.is-visible .product-iframe-overlay {
  opacity: 1;
}

.product-iframe-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 375px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .product-iframe-content {
    width: 100%;
  }
}

.product-iframe-container.is-visible .product-iframe-content {
  transform: translateX(0);
}

.product-iframe-close {
  position: absolute;
  top: 10px;
  left: -50px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: #333;
  z-index: 10;
}

@media (max-width: 480px) {
  .product-iframe-close {
    left: 10px;
    top: 10px;
    background: rgba(255, 255, 255, 0.9);
  }
}

.product-iframe-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

.product-iframe-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.iframe-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.custom-mute-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.custom-mute-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.mute-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.custom-mute-button.is-muted .mute-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E");
}

.volume-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 160px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.volume-feedback.visible {
  opacity: 1;
  visibility: visible;
}

.volume-icon {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 10px;
}

.volume-bar-container {
  width: 6px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.volume-bar-fill {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 3px;
  transition: height 0.1s linear;
}

.volume-text {
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-top: 10px;
}
.gallery-item__product:hover .gallery-buy-button {
  background: #128c7e;
}
