a,
button,
button:focus,
button:active,
button:hover {
  outline: none !important;
}

/* Video reel */
@media (max-width: 768px) {
  video {
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .user-overlay {
    border-radius: 0 !important;
  }

  .container-arrows {
    display: none !important;
  }
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.video-reel {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 1049;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-reel.active {
  display: flex;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .video-container {
    height: 96vmin;
    min-height: 96vmin;
    width: calc(50vmin);
    min-width: calc(50vmin);
    z-index: 3;
    transition: 0.3s;
    position: relative;
    overflow-x: visible;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

video#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
}

.video-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.play-icon {
  color: white;
  opacity: 0.8;
}

/* Navigation buttons */
.container-arrows {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 1.25rem;
}
.nav-button {
  transform: translateY(-50%);
  background-color: rgb(139 139 139 / 50%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button.disabled {
  opacity: 0;
  cursor: default;
}

/* User info */
.user-info {
  position: absolute;
  bottom: 80px;
  left: 16px;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 8px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info span {
  color: white;
  font-weight: 500;
}

/* Action buttons */
.action-buttons {
  position: absolute;
  bottom: 90px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: #fff;
}

.action-button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Video controls */
.video-controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-container-reels {
  flex: 1;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar-reels {
  height: 100%;
  background-color: white;
  width: 0;
}

.time-display {
  color: white;
  font-size: 14px;
  display: flex;
  gap: 4px;
}

.hidden {
  display: none;
}

/* Prevent scrolling when video reel is open */
body.no-scroll {
  overflow: hidden;
}

/* Loader styles */
#videoLoader, #videoLoaderPage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  z-index: 20;
  display: none;
}

#videoLoader.active,
#videoLoaderPage.active {
  display: block;
}
.loader-reels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  color: #fff;
}
.loader-reels .loader-text {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.user-overlay {
  position: absolute;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  display: block;
  width: 100%;
  bottom: 0;
  left: 0;
  min-height: 200px;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
}

.user-link,
.user-avatar-link {
  cursor: pointer;
}

.user-link:hover {
  text-decoration: underline;
}

.text-reel {
  position: absolute;
  bottom: 35px;
  left: 16px;
  font-size: 14px;
  line-height: 13px;
  word-wrap: break-word !important;
  word-break: break-word !important;
  padding-right: 5px;
  color: #fff;
}

[data-bs-theme=dark] .comment-container {
  background-color: #303030;
}

.comment-container {
  position: absolute;
  width: 400px;
  right: 0;
  top: 0;
  height: 100%;
  background-color: #fff;
  visibility: hidden;
  opacity: 0;
  transform: translateX(0);
  transition: .3s linear;
  z-index: -1;
  overflow-y: hidden;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1199px) {
  .comment-container.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0%) !important;
    z-index: 999;
  }
}

@media (max-width: 1499px) {
  .comment-container {
    width: 100%;
    height: 70%;
    bottom: 0;
    top: auto;
  }
}

.comment-container.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(102%);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 20px;
  padding-bottom: 0;
  flex-shrink: 0
}

.comment-content {
  overflow-y: scroll;
  overflow-x: hidden;
  flex: 1;
  padding: 0 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.comment-close-icon {
  background: transparent;
  border: none;
  color: inherit;
}

.wrap-container-replies-reel {
  margin-left: calc(40px + 15px);
}

.preloader-reel {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 100%;
}

.type-reel {
  color: #fff;
  font-size: 12px;
  margin-top: 4px;
}

/* Video thumbnail */
.video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 9/16;
  background-color: #333;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail:hover .thumbnail-overlay,
.thumbnail-overlay.show {
  opacity: 1 !important;
}

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumbnail-play {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 12px;
  color: white;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.thumbnail-user {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
}
.img-blurred {
  filter: blur(25px);
}