.icon_boxes {
  display: flex;
  align-items: center;
  justify-content: center;
}

.d-md-none {
  display: none !important;
}

@media (max-width: 767.98px) {
  .d-md-none {
    display: flex !important;
    /* or inline / inline-block as needed */
  }
}

@media (max-width: 767px) {
  .icon_boxes {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icon_boxes .icon {
    font-size: 35px !important;
  }

  .word-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .responsive-list-video {
    min-height: 340px;
  }

  .swiper-arrow .swiper-button-prev,
  .swiper-arrow .swiper-button-next {
    width: 30px;
    height: 30px;
  }
}

.swiper-reel .swiper-slide {
  height: 400px;
  cursor: pointer;
}

/* YouTube Box Styling */
.yt-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.yt-box:hover {
  transform: translateY(-5px);
}

.yt-box > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-thumb {
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.yt-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
}

.yt-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.yt-play:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.yt-play:before {
  content: "";
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

/* Swiper Navigation */
.swiper-reel .swiper-button-next,
.swiper-reel .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
}

/* Shorts Modal Styling */
.shorts-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.shorts-modal.active {
  display: flex;
}

.shorts-player {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  max-height: 700px;
}

.shorts-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.video-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .shorts-player {
    max-width: 100%;
    height: 100vh;
  }

  .swiper-reel .swiper-slide {
    height: 300px;
  }
}
