.shorts-slider-buttons .shorts-slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  background-color: var(--bricks-color-ulyykd);
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.shorts-slider-buttons .shorts-slider-button svg {
  width: 35px;
  height: 35px;
}

.shorts-slider-buttons .shorts-slider-button.prev {
  left: -20px;
  opacity: 0.5;
  cursor: not-allowed;
}

.shorts-slider-buttons .shorts-slider-button.next {
  right: -20px;
}

.shorts-container {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  scroll-behavior: smooth;
  max-width: 90%;
  gap: 20px;
  margin: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

.shorts-container::-webkit-scrollbar {
  height: 0px;
}

.shorts-container::-webkit-scrollbar-track {
  background-color: #01384d30;
}

.shorts-container::-webkit-scrollbar-thumb {
  background-color: var(--brf-color-dark);
  border-radius: 0px;
}

/* Loading indicator for AJAX loading */
.shorts-loading {
  display: none;
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--bricks-color-ulyykd);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.short-card {
  position: relative;
  cursor: pointer;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s linear;
  display: flex;
  flex-direction: column;
  flex: 1 0 20%;
  width: 100%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.short-card:hover {
  transform: scale(1.02);
}

.short-card .short-info {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 1));
  width: 100%;
}

.thumbnail-wrapper {
  position: relative;
  padding-top: 177.77%;
  background: #000;
}

.thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 15px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.play-icon svg {
  width: 24px;
  height: 24px;
}

.short-card:hover .play-icon {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.short-title {
  color: white;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.shorts-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 415px;
  height: 100%;
  margin: 0 auto;
  background: #000;
  height: 740px;
}

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

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bricks-color-ulyykd);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1002;
  width: 75px;
  height: 75px;
  border-radius: 50%;
}

.modal-nav svg {
  width: 35px;
  height: 35px;
}

.prev-short {
  left: -100px;
}

.next-short {
  right: -100px;
}

@media (max-width: 991px) {
  .short-card {
    flex: 1 0 25%;
  }
}

@media (max-width: 767px) {
  .shorts-container {
    max-width: 100%;
  }

  .short-card {
    flex: 1 0 42%;
  }

  .shorts-slider-buttons {
    display: flex;
    gap: 10px;
    margin: 0 auto 15px auto;
    justify-content: end;
  }

  .shorts-slider-buttons .shorts-slider-button {
    width: 55px;
    height: 55px;
    position: static;
    transform: translateY(0);
  }

  .shorts-slider-buttons .shorts-slider-button svg {
    width: 35px;
    height: 35px;
  }

  .modal-content {
    height: 550px;
    max-width: 310px;
  }

  .modal-nav {
    width: 60px;
    height: 60px;
  }

  .modal-nav svg {
    width: 30px;
    height: 30px;
  }

  .prev-short {
    left: -25px;
  }

  .next-short {
    right: -25px;
  }
}

@media (max-width: 477px) {
  .short-card {
    flex: 1 0 100%;
    height: 470px;
    max-width: 260px;
  }
}
