

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::selection {
  background-color: black;
  color: white;
}

.search-input:focus {
  border-color: black !important;
  box-shadow: none !important;
  outline: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wave-container {
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

.tab-active {
  background-color: black;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.card-arrow {
  transition: transform 0.3s ease;
}
[dir="rtl"] .st-sponsor-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .card-arrow {
  transform: rotate(180deg);
}
.group:hover .card-arrow {
  transform: translateX(4px);
}
[dir="rtl"] .group:hover .card-arrow {
  transform: translateX(-4px) rotate(180deg);
}

.heart-btn:hover svg {
  color: #f87171;
}

.categories-dropdown {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.categories-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.separator {
  height: 1px;
  background-color: #e5e7eb;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-up-fade {
  animation: slideUpFade 0.4s ease-out forwards;
}

.search-dropdown {
  max-height: 400px;
  overflow-y: auto;
}
.search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.search-dropdown::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

:has(> .tabs-scroll),
.wave-container {
  will-change: transform;
}

.tab-arrow {
  position: relative;
}

.tab-arrow::after {
  content: "";
  position: absolute;
  inset: -6px;
}

.st-skeleton {
  background-color: #e5e7eb;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: st-skeleton 1.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes st-skeleton {
  from {
    background-position: -200px 0;
  }
  to {
    background-position: calc(200px + 100%) 0;
  }
}

.st-coffee {
  display: none;
}

:not(.hidden) + .st-coffee {
  display: inline-flex;
}

.st-media-card {
  transition: aspect-ratio 0.2s ease;
}

.st-lb-frame {
  height: 78vh;
  max-height: 78vh;
  max-width: 100%;
}

.st-lb-frame > video,
.st-lb-frame > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.st-lb-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.st-lb-loader > div {
  position: relative;
  width: 40px;
  height: 40px;
}

.st-lb-loader > div > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
  animation: st-lb-bounce 2s infinite ease-in-out;
}

.st-lb-loader > div > div:last-child {
  animation-delay: -1s;
}

@keyframes st-lb-bounce {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

@media (min-width: 640px) {
  .st-media-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 0.875rem) / 2);
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .st-media-grid > :last-child:nth-child(odd) {
    width: calc((100% - 1rem) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.st-support {
  z-index: 2147483647;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.st-support.is-open {
  opacity: 1;
}
.st-support-panel {
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}
.st-support.is-open .st-support-panel {
  transform: none;
}

.post-description-box {
  max-height: calc(3.5rem + 2 * 0.75rem + 4px);
  overflow-y: auto;
}

@media (min-width: 640px) {
  .post-description-box {
    max-height: calc(3.5rem + 2 * 0.875rem + 4px);
  }
}

@media (min-width: 768px) {
  .post-description-box {
    max-height: calc(3.5rem + 2 * 1rem + 4px);
  }
}

.post-description-box:empty::before {
  content: attr(data-placeholder);
  color: rgb(156 163 175);
}

#st-sponsored {
  container-type: inline-size;
}

@container (min-width: 560px) {
  #st-sponsored .st-sponsor-grid {

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #st-sponsored .st-sponsor-grid > :only-child {
    grid-column: 1 / -1;
  }
}

