.anime-card-title,
.cw-title {
  -webkit-box-orient: vertical;
}
.anime-card-title,
.btn-episode,
.btn-loadmore,
.filter-search,
.footer-top,
.genre-toggle-btn,
.genretitle,
.subtitleright {
  text-align: center;
}
body,
html {
  background-color: var(--color-background-deep);
}
a {
  color: #f9f9f9;
  text-decoration: none;
  background-color: transparent;
}
a:hover {
  color: #95b6d0;
  text-decoration: none;
}
a,
button {
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
#info-box-content a,
.genre-checklist a {
  transition: color 0.3s;
}
#info-box-content a,
.anime-card,
.btn-episode,
.cw-link,
.footer-links a,
.genre-checklist a,
.popular-slide-btn,
.rekomendasi-genre-link,
.rekomendasi-title,
.view-all {
  text-decoration: none;
}
:root {
  --color-background-deep: rgb(25, 25, 25);
  --color-background-med: rgb(32, 32, 32);
  --color-background-light: #161b22;
  --color-border: #30363d;
  --color-border-accent: #444e5b;
  --color-text-primary: #c9d1d9;
  --color-text-mobile: #96bdd9;
  --color-text-secondary: #8b949e;
  --color-text-link: #95b6d0;
  --color-text-link-hover: #a7ccea;
  --color-text-white: #ffffff;
  --color-accent-primary: #23965a;
  --color-accent-primary-border: #2ea043;
  --color-accent-blue: #58a6ff;
  --color-accent-pulse: rgba(155, 198, 236, 0.7);
  --font-family-sans: "Lexend Deca", sans-serif;
  --global-border-radius: 4px;
}
#anime-genres a,
#continue-watching-widget,
#info-box-content a:hover,
#info-box-content p strong,
.anime-card,
.custom-tabs .nav-links:hover,
.footer-links a,
.genre-badge,
.genre-checklist a,
.mobile-header-btn:hover,
.popular-slider-slide,
body {
  color: var(--color-text-primary);
}
body {
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}
.main-layout {
  gap: 1.5rem;
}
.main-layout main {
  flex: 1;
  min-width: 0;
}
.main-layout aside {
  flex-basis: 300px;
  flex-shrink: 0;
}
.homepage-top-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.popular-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}
.float-top-search {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  z-index: 19;
  background-color: rgba(25, 25, 25, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}
.nav-link {
  cursor: pointer;
  align-items: center;
  color: #868686;
  font-weight: 400;
  font-size: 0.9rem;
  width: 100%;
  height: 2.2rem;
  margin-left: 1rem;
}
.nav-link:hover {
  color: #95b6d0;
}
.anime-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out, color 0.3s;
  height: 100%;
  background-color: var(--color-background-med);
  overflow: hidden;
}
.anime-card:hover,
.footer-links a:hover,
.genre-checklist a:hover,
.rekomendasi-title:hover,
.view-all:hover {
  color: var(--color-text-link);
}
#anime-title,
#popular-anime-slider .swiper-button-next:hover,
#popular-anime-slider .swiper-button-prev:hover,
.anime-card-poster::before,
.btn-episode.active,
.btn-episode:hover,
.btn-loadmore:hover,
.cw-close:hover,
.genre-toggle-btn:hover,
.rekomendasi-title {
  color: var(--color-text-white);
}
.anime-card-poster {
  position: relative;
  padding-top: 140%;
  background-color: var(--color-background-light);
  overflow: hidden;
  width: 100%;
}
.anime-card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.anime-card-poster::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}
.anime-card:hover .anime-card-poster::after {
  opacity: 1;
}
.anime-card-poster::before {
  font-family: "Material Design Icons";
  content: "\f040a";
  position: absolute;
  width: 1rem;
  height: 1rem;
  align-items: center;
  display: flex;
  justify-content: center;
  top: 50%;
  left: 50%;
  margin: 0 auto;
  transform: scale(4);
  transition: transform 0.3s, opacity 0.3s;
  z-index: 2;
  font-size: 4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
}
.anime-card:hover .anime-card-poster::before {
  opacity: 1;

}
.anime-card-episode,
.anime-card-rating {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-text-white);
  padding: 2px 8px;
  border-radius: var(--global-border-radius);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}
.anime-card-rating {
  top: 0;
  left: 0;
  padding: 5px 10px 5px 7px;
  background-color: rgb(13 17 23 / 77%);
  backdrop-filter: blur(4px);
  font-weight: 400;
  border-radius: 0 var(--global-border-radius) var(--global-border-radius) 0;
  display: flex;
  align-items: center;
}
.cw-arrow,
.cw-content {
  bottom: 0;
  backdrop-filter: blur(5px);
}
.anime-card-rating::before {
  content: "";
  position: absolute;
  top: 0;
  left: -13px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 13px 14px 0;
  border-color: transparent rgba(13, 17, 23, 0.85) transparent transparent;
}
.anime-card-episode {
  top: 5px;
  right: 5px;
}
.anime-card-body {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.anime-card-title {
  font-size: 13px;
  pointer-events: auto;
  font-weight: 400;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  margin-bottom: 0.5rem;
}
.popular-slide-synopsis,
.rekomendasi-title {
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.anime-card-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: auto;
  padding-bottom: 5px;
}
.anime-card-badge,
.btn-episode {
  background-color: var(--color-border);
  color: var(--color-text-primary);
}
.anime-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--global-border-radius);
  text-transform: uppercase;
}
.popular-anime-item .anime-card-title {
  font-size: 0.8rem;
  white-space: nowrap;
}
.btn-episode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0;
  border: 1px solid transparent;
  border-radius: 0.1rem;
  font-size: 1rem;
  font-weight: 400;
  background: rgba(121, 163, 195, 0.2);
  transition: background-color 0.2s, color 0.2s;
}
.btn-episode:hover {
  background: #79a3c3;
  color: #000;
}
.btn-episode.active {
  background-color: #79a3c3;
  border-color: #79a3c3;
}
.btn-loadmore {
  cursor: pointer;
  display: block;
  width: 200px;
  margin: 30px auto 0;
  background: rgba(149, 182, 208, 0.1);
  color: #79a3c3;
  padding: 8px;
  border: 1px solid rgba(91, 217, 255, 0.2);
  border-radius: var(--global-border-radius);
  transition: 0.2s;
}
#episode-list,
#popular-anime-slider-container,
.filter-box,
.form-control {
  background-color: var(--color-background-med);
}
.btn-loadmore:hover,
.cw-arrow:hover {
  background: rgba(149, 182, 208, 0);
  border: 1px solid #79a3c3;
  color: #b1c9dd;
}
.searchbar {
  max-width: 330px;
  display: inline-block;
}
.form-control {
  display: inline-flex;
  width: 100%;
  padding: 6px 12px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.42857143;
  background: #141414;
  border-color: #4c4c4c;
  border-radius: 0.1rem;
  color: #868686;
  height: 2.5rem;
}
.form-select:focus {
  outline: 0;
  background-color: #2d2d2d;
}
#episode-list,
.filter-box {
  padding: 10px;
  overflow-y: auto;
}
#watch-button,
.filter-search {
  color: #99d4ff;
  background-color: rgba(134, 187, 255, 0.17);
  outline: 0;
  cursor: pointer;
}
.btn-signature {
  padding: 6px 12px;
  font-size: 14px;
  user-select: none;
  background: rgba(149, 182, 208, 0.1);
  color: #79a3c3;
  border: 1px solid #79a3c3;
  border-radius: 0.2rem;
  transition: background-color 0.2s;
}
.btn-signature:hover {
  background: rgba(149, 182, 208, 0);
  color: #b1c9dd;
}
.result-img {
  background-color: #222;
  position: relative;
  animation: 0.3s zoomout;
}
.skeleton {
  opacity: 0.7;
  animation: 1s linear infinite alternate skeleton-loading;
  border-radius: 0.25rem;
}
@keyframes skeleton-loading {
  0% {
    background-color: #3d515b;
  }
  100% {
    background-color: #5b7a89;
  }
}
.skeleton-poster {
  padding-top: 140%;
  margin-bottom: 0.5rem;
}
.skeleton-title {
  height: 1rem;
  width: 80%;
  margin: 0.5rem auto 0;
}
#popular-anime-slider-container {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
#popular-anime-slider {
  width: 100%;
  min-height: 220px;
}
#popular-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transition: background-image 0.5s ease-in-out;
  filter: blur(10px) brightness(0.4);
  transform: scale(1.1);
}
.popular-slider-slide {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}
.popular-slide-poster img {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--global-border-radius);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}
.popular-slide-content {
  min-width: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 85%;
}
.popular-slide-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #b1c9dd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}
.popular-slide-synopsis {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #d0d0d0;
  display: -webkit-box;
  overflow: hidden;
}
#info-box-content p,
.cw-timestamp,
.popular-slide-genres,
.rekomendasi-eps,
.rekomendasi-genre-link,
.view-all,
footer {
  color: var(--color-text-secondary);
}
.popular-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--global-border-radius);
  font-weight: 500;
  transition: 0.2s;
}
.footer-links a,
.rekomendasi-genre-link,
.rekomendasi-title,
.search-container .search-submit-btn i,
.view-all {
  transition: color 0.2s;
}
#info-box-content p strong,
.info-box-title,
.subtitleright {
  font-weight: 600;
}
.popular-slide-btn.btn-watch {
  background-color: var(--color-text-link);
  color: #333;
}
.popular-slide-btn.btn-watch:hover {
  background-color: var(--color-text-white);
}
.popular-slide-genres {
  font-size: 0.85rem;
}
.popular-slide-genres i {
  margin-right: 0.5rem;
}
#popular-anime-slider .swiper-button-next,
#popular-anime-slider .swiper-button-prev {
  color: var(--color-text-primary);
  transition: color 0.2s;
}
#popular-anime-slider .swiper-button-next:after,
#popular-anime-slider .swiper-button-prev:after {
  font-size: 1.5rem;
  font-weight: 900;
}
.custom-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 350px;
}
.custom-tabs .nav-links {
  padding: 0.5rem 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  color: #bcbcbc;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  background: #202020;
  margin-left: 0.2rem;
  border-radius: var(--global-border-radius) var(--global-border-radius) 0 0;
}
.custom-tabs .nav-links.active {
  color: var(--color-text-link);
  background: var(--color-background-med);
  border-bottom: 1px solid var(--color-text-link);
}
.tab-content .row {
  padding-top: 1rem;
}
.subtitleright {
  font-size: 15px;
  padding: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #3c3c3c;
}
#episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 5px;
  max-height: 250px;
  opacity: 0.95;
}
.rekomendasi-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.rekomendasi-title {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
}
.rekomendasi-genres {
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.rekomendasi-genre-link:hover {
  color: var(--color-text-link);
  text-decoration: underline;
}
.cw-timestamp,
.rekomendasi-eps {
  font-size: 0.75rem;
}
#info-box-content a,
#info-box-content p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.view-all {
  font-size: 0.85rem;
}
.genretitle {
  font-size: 1.5rem;
  background: #222;
  padding: 5px 0;
  color: #95b6d0;
}
#genre-list-sidebar {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-color: #4c4c4c #202020;
}
.genre-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.genre-checklist a {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
}
.genre-checklist a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background-color: #868686;
  flex-shrink: 0;
  border-radius: 2px;
}
.index-anime,
.list-anime,
.pop-anime,
.search-anime,
.watch-anime {
  padding-top: 4rem;
}
.side-anime {
  padding-top: 2rem;
}
#anime-banner {
  height: 350px;
  background-size: cover;
  background-position: center 35%;
  position: relative;
  margin-bottom: -150px;
}
#anime-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    var(--color-background-light) 5%,
    rgba(22, 27, 34, 0.5) 100%
  );
}
#anime-details-container {
  display: flex;
  position: relative;
  z-index: 2;
  padding: 1rem;
  gap: 1.5rem;
}
.anime-details-left {
  flex-basis: 250px;
  flex-shrink: 0;
}
#anime-poster {
  border: 3px solid var(--color-border);
  border-radius: var(--global-border-radius);
}
.cw-arrow {
  border: 1px solid var(--color-border);
}
#info-box {
  border-radius: 6px;
  margin-top: 1rem;
}
.info-box-title {
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
#info-box-content a {
  color: var(--color-text-link);
}
.anime-details-right {
  flex-grow: 1;
  min-width: 0;
}
#anime-title {
  font-size: 2.25rem;
  font-weight: 700;
}
#watch-button {
  width: 100%;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem;
  border: 1px solid rgba(91, 217, 255, 0.2);
  border-radius: var(--global-border-radius);
  animation: 2.5s infinite pulse;
  transition: transform 0.2s, background-color 0.2s;
}
#watch-button:hover {
  transform: scale(1.02);
  background-color: rgba(132, 182, 255, 0.19);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(155, 198, 236, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(155, 198, 236, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(155, 198, 236, 0);
  }
}
#anime-genres a,
.genre-badge {
  display: inline-block;
  font-size: 0.8rem;
  margin: 0 4px 5px 0;
  transition: background-color 0.2s, color 0.2s;
  background-color: #2f2f2f;
  padding: 1px 7px;
  border: 1px solid #4c4c4c;
  border-radius: 3px;
  text-decoration: none;
}
#anime-genres a:hover,
.genre-badge:hover {
  color: var(--color-text-link-hover);
  background-color: #444c56;
}
footer {
  padding: 2rem 1rem;
}
.footer-top {
  padding-bottom: 1.5rem;
}
.footer-links a {
  margin: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer-divider {
  border-color: var(--color-border);
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  gap: 1rem;
}
.copyright-text {
  font-size: 0.85rem;
}
.footer-logo img {
  max-height: 25px;
  opacity: 0.7;
}
.main-layout {
  display: block;
}
.main-layout .main-content-column {
  width: 100%;
}
.main-layout aside {
  display: none;
}
@media (min-width: 992px) {
  .main-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .main-layout .main-content-column {
    flex: 1;
    min-width: 0;
  }
  .main-layout aside {
    display: block;
    flex-basis: 320px;
    flex-shrink: 0;
  }
}
#episode-list::-webkit-scrollbar,
#genre-list-sidebar::-webkit-scrollbar,
#popular-anime-grid::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
#episode-list::-webkit-scrollbar-track,
#genre-list-sidebar::-webkit-scrollbar-track,
#popular-anime-grid::-webkit-scrollbar-track {
  background: var(--color-background-light);
  border-radius: var(--global-border-radius);
}
#episode-list::-webkit-scrollbar-thumb,
#genre-list-sidebar::-webkit-scrollbar-thumb,
#popular-anime-grid::-webkit-scrollbar-thumb {
  background: #444c56;
  border-radius: var(--global-border-radius);
}
#episode-list::-webkit-scrollbar-thumb:hover,
#genre-list-sidebar::-webkit-scrollbar-thumb:hover,
#popular-anime-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-blue);
}
@media (max-width: 992px) {
  .homepage-top-layout,
  .main-layout {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .main-layout aside {
    flex-basis: auto;
    width: 100%;
  }
  .popular-grid-container {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (max-width: 768px) {
  .popular-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .custom-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
    white-space: nowrap;
  }
  .custom-tabs::-webkit-scrollbar {
    display: none;
  }
  .custom-tabs .nav-item {
    flex-shrink: 0;
    display: inline-block;
  }
  #anime-banner {
    height: 250px;
    margin-bottom: 0;
  }
  #anime-details-container {
    flex-direction: column;
    padding: 0;
    margin-top: -80px;
  }
  .anime-details-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #anime-poster {
    width: 180px;
  }
  #info-box,
  .anime-details-right {
    width: 100%;
  }
  #anime-title {
    text-align: center;
    font-size: 1.75rem;
    margin-top: 1rem;
  }
  .popular-slider-slide {
    padding: 1rem;
    gap: 1rem;
  }
  .popular-slide-poster img {
    width: 100px;
    height: 140px;
  }
  .popular-slide-title {
    font-size: 1.25rem;
  }
  .popular-slide-synopsis {
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
  }
}
@media (max-width: 576px) {
  .container,
  main.container {
    padding-left: 10px;
    padding-right: 10px;
  }
  #anime-title,
  #list-title {
    font-size: 1.5rem;
  }
  #watch-button {
    font-size: 1rem;
    padding: 0.6rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutToLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}
#continue-watching-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1050;
}
.cw-arrow {
  position: absolute;
  left: -20px;
  width: 40px;
  height: 70px;
  color: #7fc3ff;
  background-color: #2a2d2f;
  border-left: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s, background-color 0.2s;
}
#continue-watching-widget.active .cw-arrow,
.cw-content {
  opacity: 0;
  pointer-events: none;
}
.cw-content {
  position: absolute;
  left: 0;
  width: 300px;
  background-color: rgba(32, 32, 32, 0.8);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 10px;
  transform: translateX(-100%);
}
#continue-watching-widget.active .cw-content {
  pointer-events: auto;
  animation: 0.6s forwards slideInFromLeft;
}
#continue-watching-widget.closing .cw-content {
  pointer-events: none;
  animation: 0.6s forwards slideOutToLeft;
}
.cw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}
.cw-close {
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.cw-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.cw-poster {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.cw-title {
  font-size: 0.9rem;
  margin-bottom: 5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
}
.search-container {
  position: relative;
  max-width: 330px;
  width: 100%;
}
.search-container .searchbar {
  width: 100%;
  color: #e0e0e0;
  padding: 0.4rem;
  background: #141414;
  border: 1px solid #3a3a3a;
  transition: background 0.3s;
  border-radius: 0.2rem;
}
.search-container .searchbar::placeholder {
  color: #9e9e9e;
  opacity: 1;
}
.search-container .search-submit-btn i {
  color: #9e9e9e;
}
.search-container .search-submit-btn:hover i {
  color: #fff;
}
.search-container .search-submit-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45px;
  background: 0 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top-btn,
.az-directory-item:hover {
  background-color: var(--color-text-link);
  color: var(--color-background-deep);
}
.az-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 0.75rem;
  border: 1px solid var(--color-border);
}
.az-directory-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-background-med);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  aspect-ratio: 1/1;
  border-radius: var(--global-border-radius);
  border: 1px solid var(--color-border-accent);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.az-directory-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-text-link);
}
#back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  outline: 0;
  cursor: pointer;
  padding: 0;
  z-index: 1050;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s, background-color 0.3s;
}
#back-to-top-btn.show {
  display: block;
  opacity: 0.8;
}
#back-to-top-btn:hover {
  opacity: 1;
  background-color: var(--color-text-link-hover);
}
.mobile-header-btn {
  font-size: 1.25rem;
  color: var(--color-text-mobile);
}
#mobileOffcanvas {
  background-color: var(--color-background-deep);
  border-left: 1px solid var(--color-border);
}
#mobileOffcanvas .genre-checklist {
  display: block;
  column-count: 2;
  column-gap: 1rem;
}
#mobileOffcanvas .genre-checklist li {
  break-inside: avoid-column;
}
.mobile-menu-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  background-color: var(--color-background-med);
  border-radius: 0.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.mobile-menu-grid .btn-grid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  color: #b7b7b7;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 0.25rem;
  background-color: transparent;
}
.mobile-menu-grid .btn-grid:focus,
.mobile-menu-grid .btn-grid:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}
.mobile-menu-grid .btn-grid.active {
  color: #fff;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
}
.mobile-menu-grid .btn-grid i {
  margin-right: 0.5rem;
  font-size: 1.1em;
}
@media (max-width: 480px) {
  .mobile-menu-grid {
    gap: 1rem;
    padding: 0.75rem 0;
  }
  .mobile-menu-grid .btn-grid {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
  }
}
#searchModal .modal-content {
  background-color: var(--color-background-med);
  border: 1px solid var(--color-border-accent);
}
#searchModal .modal-body {
  padding: 1.5rem;
}
.navbar > .container {
  justify-content: space-between;
}
#genre-list-wrapper-mobile {
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
#genre-list-wrapper-mobile.expanded {
  max-height: 1000px;
}
.anime-grid-container {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.anime-grid-container.content-loaded {
  opacity: 1;
}
.genre-toggle-btn {
  display: block;
  width: 100%;
  background: 0 0;
  border: none;
  color: var(--color-text-secondary);
  padding: 0.25rem 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.ani-title {
  font-size: 1.2rem;
  color: #95b6d0;
  background: #222;
  padding: 10px 10px;
}
.player-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  color: #a0a0a0;
  background-color: #000;
}

.player-placeholder-error {
  color: #ffc107;
}

.player-placeholder-error small {
  color: #a0a0a0;
  margin-top: 5px;
}
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.2rem;
}
.pagination .page-item .page-link {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}
.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #868686;
  background-color: #202020;
  border: 1px solid #202020;
}

.page-link:hover {
  z-index: 2;
  color: #fff;
  text-decoration: none;
  background-color: #3a3a3a;
  border-color: #3a3a3a;
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: none;
}

.page-item:first-child .page-link {
  margin-left: 0;
  border-top-left-radius: 0.2rem;
  border-bottom-left-radius: 0.2rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.2rem;
  border-bottom-right-radius: 0.2rem;
}

.page-item.active .page-link {
  z-index: 3;
  color: #000;
  background-color: #95b6d0;
  border-color: #95b6d0;
}

.page-item.disabled .page-link {
  color: #6c6c6c;
  pointer-events: none;
  cursor: auto;
  background-color: #202020;
  border-color: #202020;
}

.pagination-lg .page-link {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.pagination-lg .page-item:first-child .page-link {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.pagination-lg .page-item:last-child .page-link {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.pagination-sm .page-link {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.pagination-sm .page-item:first-child .page-link {
  border-top-left-radius: 0.1rem;
  border-bottom-left-radius: 0.1rem;
}

.pagination-sm .page-item:last-child .page-link {
  border-top-right-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
}
.pagination .page-item + .page-item {
  margin-left: 0.4rem;
}
#logo-overlay {
  top: 20px;
  left: 10px;
  width: 150px;
  opacity: 0.7;
}
.related-title {
  font-size: 1.2rem;
  color: #95b6d0;
  background: #222;
  padding: 10px 10px;
}
.ep-title {
  font-size: 1.2rem;
  color: #95b6d0;
  background: #222;
  padding: 10px 10px;
}
.dir-tb {
  opacity: 1;
  background-color: #242424;
  border: 1px solid #3a3a3a;
}
.dir-btn {
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  background: rgba(121, 163, 195, 0.2);
  font-weight: 400;
  font-size: 0.95rem;
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 6px 12px;
}
.dir-btn:hover {
  background: #79a3c3;
  color: #000;
}

.watch-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.watch-main {
  flex: 1;
  min-width: 0;
}

.watch-sidebar {
  background: #202020;
  padding: 1rem;
  order: 2;
  width: 20%;
  min-width: 22rem;
  flex-shrink: 0;
}

.watch-sidebar-poster {
  display: block;
  width: 80%;
  margin: 0 auto 1rem auto;
}

.watch-sidebar-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.watch-sidebar-genres {
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .watch-layout {
    flex-direction: column;
  }
  .watch-sidebar {
    position: static;
    width: 100%;
    margin-top: 2rem;
  }
}
.synopsis-content {
  font-size: 0.85rem;
  color: #868686;
  line-height: 1.2rem;
}
.synopsis-content .full-text {
  display: none;
}
.synopsis-content.expanded .full-text {
  display: inline;
}
.synopsis-content.expanded .short-text {
  display: none;
}
.synopsis-toggle-btn {
  background: none;
  border: none;
  color: var(--color-text-link);
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  font-weight: bold;
  font-size: 0.85em;
}
.stream-section-box {
  display: flex;
  background-color: #242424;
  padding: 1rem;
  gap: 1.5rem;
}

.stream-info-vertical {
  font-size: 0.9rem;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: rgb(134, 134, 134);
  width: 25%;
  flex-shrink: 0;
  text-align: center;
  border-right: 1px dashed rgb(58, 58, 58);
  padding: 0.5rem;
}

.stream-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stream-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.stream-action-bot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-top: 1px dashed rgb(58, 58, 58);
}

.stream-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-text-secondary);
  white-space: nowrap;
  color: #868686;
  width: 5rem;
  font-weight: 400;
  margin-right: 1rem;
}

.btn-watch {
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  background: rgba(121, 163, 195, 0.2);
  font-weight: 400;
  font-size: 0.85rem;
  color: #fff;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 6px 12px;
}

.btn-watch:hover {
  background: #79a3c3;
  color: #000;
}

@media (max-width: 992px) {
  .stream-section-box {
    flex-direction: column;
    gap: 1rem;
  }
  .stream-info-vertical {
    width: 100%;
    border-right: none;
    border-bottom: 1px dashed var(--color-border-accent);
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .stream-action-row,
  .stream-action-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .stream-label {
    width: auto;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
}

.player-placeholder .loading-animation {
  width: 4rem;
  height: 1rem;
  animation: pgfill 0.7s linear infinite;
  background-image: linear-gradient(
      var(--color-border-accent) 1rem,
      transparent 0
    ),
    linear-gradient(var(--color-border-accent) 1rem, transparent 0),
    linear-gradient(var(--color-border-accent) 1rem, transparent 0);
  background-repeat: no-repeat;
  background-position: 0 0, 1.3rem 0, 2.6rem 0;
  background-size: 1rem auto;
  margin-bottom: 1rem;
}

@keyframes pgfill {
  0% {
    background-image: linear-gradient(
        var(--color-border-accent) 1rem,
        transparent 0
      ),
      linear-gradient(var(--color-border-accent) 1rem, transparent 0),
      linear-gradient(var(--color-border-accent) 1rem, transparent 0);
  }
  25% {
    background-image: linear-gradient(
        var(--color-text-link) 1rem,
        transparent 0
      ),
      linear-gradient(var(--color-border-accent) 1rem, transparent 0),
      linear-gradient(var(--color-border-accent) 1rem, transparent 0);
  }
  50% {
    background-image: linear-gradient(
        var(--color-text-link) 1rem,
        transparent 0
      ),
      linear-gradient(var(--color-text-link) 1rem, transparent 0),
      linear-gradient(var(--color-border-accent) 1rem, transparent 0);
  }
  75% {
    background-image: linear-gradient(
        var(--color-text-link) 1rem,
        transparent 0
      ),
      linear-gradient(var(--color-text-link) 1rem, transparent 0),
      linear-gradient(var(--color-text-link) 1rem, transparent 0);
  }
}

.share-text {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 0.5rem;
  border-left: 3px solid #fdbb2d;
  background-color: rgba(253, 187, 45, 0.1);
  border-radius: 0 8px 8px 0;
}

.share-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.5rem;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 130px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.share-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.share-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.share-btn:hover::before {
  left: 100%;
}

.share-btn i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.share-btn:hover i {
  transform: scale(1.2);
}

.share-btn.facebook {
  background: linear-gradient(145deg, #1877f2, #0e5ebd);
}

.share-btn.twitter {
  background: linear-gradient(145deg, #000000, #000000);
}

.share-btn.whatsapp {
  background: linear-gradient(145deg, #25d366, #1da64f);
}

.share-btn.reddit {
  background: linear-gradient(145deg, #ff4500, #d93b00);
}

.share-btn.telegram {
  background: linear-gradient(145deg, #0088cc, #006ba1);
}

.share-btn.pinterest {
  background: linear-gradient(145deg, #bd081c, #8e0615);
}

.share-btn.linkedin {
  background: linear-gradient(145deg, #0077b5, #005983);
}

@media (max-width: 768px) {
  .share-btn {
    font-size: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    min-width: auto;
  }

  .share-btn i {
    margin-right: 0;
    font-size: 1.4rem;
  }

  .share-buttons-container {
    gap: 0.6rem;
  }

  .share-container {
    padding: 1.5rem;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.share-btn::after {
  content: attr(data-platform);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.share-btn:hover::after {
  opacity: 1;
  bottom: -35px;
}
