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

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

.truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-6-lines {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.demo-icons-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 -2px -1px 0;
  list-style: none;
}

.demo-icons-list>* {
  flex: 1 0 4rem;
}

.demo-icons-list-wrap {
  overflow: hidden;
  max-height: 12rem;
  overflow-y: auto;
}

.demo-icons-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  text-align: center;
  padding: 0.5rem;
  border-right: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  border-bottom: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
  color: inherit;
  cursor: pointer;
}

.demo-icons-list-item.active {
  background-color: rgba(var(--tblr-secondary-rgb), .08);
}

.demo-icons-list-item .icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
}

.demo-icons-list-item:hover {
  text-decoration: none;
}

.social {
  position: relative;
  display: inline-block;
  height: 2.5rem;
  aspect-ratio: 1;
  background: no-repeat center/cover;
  vertical-align: bottom;
}

.item .remove {
  flex: 0 0 auto;
  width: auto;
}

.swiper-container {
  width: 100%;
  height: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  overflow: hidden;
}


.swiper-button-next,
.swiper-button-prev {
  color: var(--tblr-primary);
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

.anime-card .anime-poster {
  transition: transform 0.3s ease-in-out;
}

.anime-card:hover .anime-poster {
  transform: scale(1.1);
}

.anime-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: inherit;
}

.anime-card:hover .anime-card-overlay {
  opacity: 1;
}

.play-button-container {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.anime-card:hover .play-button-container {
  transform: scale(1);
}

.play-button-container svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.ratio-2x3 {
  aspect-ratio: 2 / 3;
}

@media (max-width: 576px) {
  .margin-top-sm-down {
    margin-top: 0.75rem;
  }
}

.cover-img {
  aspect-ratio: 5 / 7;
  object-fit: cover;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
  gap: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll>div {
  flex: 0 0 auto;
}


@media (max-width: 768px) {
  .border-bottom-md-down {
    border-bottom: 1px solid var(--tblr-border-color-translucent);
  }
}

@media (min-width: 768px) {
  .border-right-md-up {
    border-right: 1px solid var(--tblr-border-color-translucent);
  }
}

/* Comment Tree Styles */
.comment-item {
  position: relative;
  padding-bottom: 1rem;
}


.replies {
  position: relative;
  margin-left: 2.5rem;
  padding-left: 1.5rem;
}

.reply-item {
  position: relative;
  padding-left: 0;
  margin-bottom: 1rem;
}


.reply-item:last-child {
  margin-bottom: 0;
}

/* Nested replies styling */


.replies .replies .replies::before {
  opacity: 0.2;
}

.replies .replies .replies .reply-item::before {
  opacity: 0.2;
}

.replies .replies .replies .replies::after {
  opacity: 0.2;
}


/* Reply form styling */
.reply-form {
  background-color: var(--tblr-bg-surface);
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid var(--tblr-border-color);
  position: relative;
  z-index: 1;
}


/* Comment content styling */
.comment-content {
  background-color: var(--tblr-bg-surface);
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--tblr-border-color);
}

.reply-btn.d-none {
  display: none !important;
}

/* Animation for reply forms */
.reply-form {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  max-height: 0;
  overflow: hidden;
}

.reply-form.d-none {
  display: none !important;
}

.reply-form:not(.d-none) {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px;
}




.comment-form textarea {
  resize: none;
  min-height: 100px;
}


.collapse-btn.expanded .icon {
  transform: rotate(0deg);
}

.collapse-btn .replies-count {
  font-size: 0.75rem;
  color: var(--tblr-secondary);
}

/* Reply section animation */
.replies {
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.replies.expanded {
  max-height: 2000px;
  /* Large enough to contain all replies */
  opacity: 1;
  margin: 1rem 0;
  padding: 0 0 0 1.5rem;
}

.rating_stars {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  white-space: nowrap;
  clear: both;
}

.rating_stars li.stars_active {
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.rating_stars li {
  display: block;
  text-overflow: clip;
  white-space: nowrap;
  z-index: 1;
}

.rating_stars img {
  height: 16px;
  max-width: none;
}

.sortable li,
ol {
  list-style-type: none;
}

.sortable li div {
  cursor: move;
}

.sortable li.mjs-nestedSortable-collapsed>ol {
  display: none;
}

.sortable .disclose {
  cursor: pointer;
  width: 10px;
  display: inline-block;
  text-align: center;
}

/* Dim light effect classes */
body.dimmed {
  overflow: hidden;
  /* Prevent scrolling while focused */
}

/* The Dark Overlay */
body.dimmed::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1040;
  backdrop-filter: blur(4px);
  cursor: pointer;
}
/* Bring video player to front */
.video-container.lights-off {
  z-index: 1050;
  box-shadow: 0 0 60px rgba(0, 0, 0, 1);
  transform: scale(1.01);
}