.anime-card-title,
.rekomendasi-title {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
}
body {
  font-family: "Lexend Deca", sans-serif;
  background-color: #191919;
}
.anime-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #c9d1d9;
  transition: transform 0.2s ease-in-out;
  height: 100%;
}
.btn-episode,
.genre-badge {
  transition: background-color 0.2s, color 0.2s;
}
.anime-card:hover {
  transform: translateY(-5px);
  color: #95b6d0;
}
.anime-card-body {
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: #202020;
}
.anime-card-poster {
  position: relative;
  padding-top: 140%;
  background-color: #161b22;
  overflow: hidden;
  border: 1px solid #30363d;
}
.anime-card-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}
.anime-card-episode,
.anime-card-rating {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
#anime-genres a,
.anime-card-badge,
.btn-episode {
  background-color: #30363d;
}
.anime-card-rating {
  top: 5px;
  left: 5px;
  font-size: 0.7rem;
}
.anime-card-episode {
  top: 5px;
  right: 5px;
}
.anime-card-title {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
}
.anime-card-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #8b949e;
  margin-top: auto;
  padding-bottom: 5px;
}
.anime-card-badge {
  color: #c9d1d9;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
#episode-list {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  max-height: 250px;
  overflow-y: auto;
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px;
}
.btn-episode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0;
  color: #c9d1d9;
  border: 1px solid transparent;
  border-radius: 0.15rem;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.btn-episode:hover {
  background-color: #444c56;
  color: #fff;
}
.btn-episode.active {
  background-color: #23965a;
  color: #fff;
  border-color: #2ea043;
}
#episode-list::-webkit-scrollbar {
  width: 8px;
}
#episode-list::-webkit-scrollbar-track {
  background: #161b22;
  border-radius: 4px;
}
#episode-list::-webkit-scrollbar-thumb {
  background: #444c56;
  border-radius: 4px;
}
#episode-list::-webkit-scrollbar-thumb:hover {
  background: #58a6ff;
}
.popular-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.popular-anime-item {
  min-width: 0;
}
.popular-anime-item .anime-card-title {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .popular-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 992px) {
  .popular-grid-container {
    grid-template-columns: repeat(8, 1fr);
  }
}
#popular-anime-grid::-webkit-scrollbar {
  height: 8px;
}
#popular-anime-grid::-webkit-scrollbar-track {
  background: #161b22;
  border-radius: 4px;
}
#popular-anime-grid::-webkit-scrollbar-thumb {
  background: #444c56;
  border-radius: 4px;
}
#popular-anime-grid::-webkit-scrollbar-thumb:hover {
  background: #58a6ff;
}
.genre-badge {
  color: #c9d1d9;
  margin: 2px 4px 2px 0;
  font-size: 0.8rem;
  font-weight: 500;
  background-color: #2f2f2f;
  padding: 1px 7px;
  border: 1px solid #4c4c4c;
  border-radius: 3px;
}
.rekomendasi-genre-link,
.rekomendasi-title:hover,
.view-all,
.view-all:hover {
  transition: color 0.2s;
  text-decoration: none;
}
.genre-badge:hover {
  background-color: #95b6d0;
  color: #fff;
  text-decoration: none;
}
.rekomendasi-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.rekomendasi-title {
  font-size: 0.85rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
}
.rekomendasi-title:hover,
.view-all:hover {
  color: #95b6d0;
}
.rekomendasi-genres {
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.rekomendasi-genre-link {
  color: #8b949e;
}
.rekomendasi-genre-link:hover {
  color: #95b6d0;
  text-decoration: underline;
}
.anime-card-poster::before,
.footer-links a:hover {
  color: var(--primary-color);
}
.rekomendasi-eps {
  font-size: 0.75rem;
}
#info-box-content p,
.view-all {
  font-size: 0.85rem;
  color: #8b949e;
}
.searchbar {
  max-width: 330px;
  display: inline;
}
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  background-color: #161616;
}
.filter-search {
  width: 100%;
  color: #333;
  padding: 3px 6px;
  font-size: 12px;
  line-height: 2;
  background-color: #95b6d0;
  border-color: #212121;
  display: inline-block;
  margin-bottom: 0;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  -webkit-appearance: button;
  cursor: pointer;
  background-image: none;
  border: 1px solid #fff0;
  overflow: visible;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: inherit;
}
.filter-box {
  padding: 10px;
  background-color: #202020;
  overflow-y: auto;
}
.subtitleright {
  text-align: center;
  font-size: 15px;
  margin: -10px -10px 10px;
  padding: 4px;
  border-top: 1px solid #3c3c3c;
  border-bottom: 1px solid #3c3c3c;
}
.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.float-top-search {
  position: fixed;
  background-color: #191919;
  font-size: 15px;
  top: 0;
  width: 100%;
  padding: 10px;
  z-index: 19;
  left: 0;
}
.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 auto;
}
.main-layout {
  display: flex;
  gap: 1.5rem;
}
.main-layout main {
  flex: 1;
  min-width: 0;
}
.main-layout aside {
  flex-basis: 300px;
  flex-shrink: 0;
}
@media (max-width: 992px) {
  .main-layout {
    flex-direction: column;
  }
  .main-layout aside {
    flex-basis: auto;
    width: 100%;
  }
}
.anime-card:hover .anime-card-poster img {
  transform: scale(1.1);
}
.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: "Font Awesome 6 Free";
  content: "\f04b";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, -50%) scale(2.5);
  transition: transform 0.3s, opacity 0.3s;
}
.anime-card:hover .anime-card-poster::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  color: #fff;
}
.anime-card-rating {
  z-index: 2;
}
#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, #161b22 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 #30363d;
}
#info-box {
  background-color: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1rem;
}
.info-box-title {
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #30363d;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
#info-box-content p {
  margin-bottom: 0.5rem;
}
#info-box-content p strong {
  color: #c9d1d9;
  font-weight: 600;
}
.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;
}
#anime-genres a {
  display: inline-block;
  color: #c9d1d9;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
}
#anime-genres a:hover {
  background-color: var(--primary-color);
  color: #0d1117;
}
@media (max-width: 768px) {
  #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 {
    width: 100%;
  }
  #anime-title {
    text-align: center;
    font-size: 1.75rem;
    margin-top: 1rem;
  }
}
.pop-anime {
  padding-top: 4rem;
}
.list-anime {
  padding-top: 4rem;
}
.search-anime {
  padding-top: 4rem;
}
footer {
  padding: 2rem 0;
  color: #8b949e;
}
.footer-top {
  text-align: center;
  padding-bottom: 1.5rem;
}
.footer-links a {
  color: #c9d1d9;
  text-decoration: none;
  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: #30363d;
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}
.copyright-text {
  font-size: 0.85rem;
}
.footer-logo img {
  max-height: 25px;
  opacity: 0.7;
}
@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1rem;
  }
}
