.ssl-item.watched {
  opacity: 0.8;
  background: #4f553c !important;
}

.ssl-item.watched::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  color: #4caf50;
  font-size: 12px;
}

.ssl-item.active,
.ssl-item.watched.active {
  opacity: 1;
  background-color: var(--color-primary);
}

.pc-toggle .tb-result {
  display: inline-block;
  margin-left: 5px;
  font-weight: bold;
  white-space: nowrap;
}

.pc-toggle .tb-result span {
  margin-left: 5px;
}

.tick-age {
  background-color: #ff5700;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;

  top: 0;
  left: 0;
}

.dropdown-menu {
  background: rgba(206, 211, 205, 0.568);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 160px;
  padding: 8px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dropdown-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dropdown-menu .dropdown-item {
  color: rgba(0, 0, 0, 0.9);
  padding: 8px 15px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
  background: rgba(56, 56, 56, 0.5);
  color: #ffbade;
}

.dropdown-menu-model {
  margin-top: 5px;
}

.dropdown-menu.show {
  display: block;
  position: absolute;
  transform: translate3d(0px, 38px, 0px);
  top: 0px;
  left: 0px;
  will-change: transform;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-menu-model {
  right: 0 !important;
  left: auto !important;
}

.dropdown-menu .dropdown-item.active {
  color: #ffbade !important;
  background: transparent !important;
}

.dropdown-menu .dropdown-item.active .fa-check {
  color: #ffbade !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0px, 30px, 0px);
  }
  to {
    opacity: 1;
    transform: translate3d(0px, 38px, 0px);
  }
}

.episode-container {
  width: 100%;
  padding: 5px;
  background-color: #1e1e24;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.filter {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

#episode-range {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #2c2c34;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#episode-range:hover {
  background-color: #3b3b44;
  color: #fff;
  border-color: #67686f;
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 12px;
}

.episode-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
  background-color: #35373d;
  color: #9ca3af;
}

.episode-item:hover {
  background-color: #67686f;
  color: #fff;
}

.episode-item.filler-highlight {
  color: #d1d5db;
  background: #35373d;
  background-image: linear-gradient(to right, #5a4944, #645a4b);
  transition: all 0.3s ease-in-out;
}

.episode-item.filler-highlight:hover {
  background: #9a6700;
  color: #fff;
}

.episode-item.active {
  background: #ff007f;
  color: #fff;
  font-weight: 600;
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 8px;
}

.tick-age {
  background-color: #ff5700;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.tick-item.tick-sub {
  background: #b0e3af;
  font-weight: 600;
  color: #111 !important;
}

.tick-item.tick-dub {
  background: #b9e7ff;
  font-weight: 600;
  color: #111 !important;
}

.anime-qtip {
  position: absolute;
  z-index: 9999;
  width: 300px;
  background: #2b2b2b;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  padding: 15px;
}

.qtip-content {
  color: #fff;
}

.qtip-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.qtip-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rating {
  color: #ffd700;
}

.quality-info {
  display: flex;
  gap: 5px;
}

.qtip-description {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ccc;
}

.qtip-meta > div {
  font-size: 13px;
  margin-bottom: 5px;
  color: #ccc;
}

.qtip-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-watch {
  flex: 1;
  background: #7676ff;
  color: white;
  padding: 8px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
}

.btn-add {
  width: 40px;
  background: #3a3a3a;
  border: none;
  border-radius: 4px;
  color: white;
}

.profile-list-fav .list-group-item {
  background: #23223a;
  color: #fff;
  border: none;
  border-bottom: 1px solid #35345a;
  border-radius: 0;
  margin-bottom: 0;
  padding: 18px 24px;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.profile-list-fav .list-group-item:last-child {
  border-bottom: none;
}
.profile-list-fav .list-group-item:hover {
  background: #2d2c4a;
}
.profile-list-fav .fa-user-clock {
  color: #6bc5ff !important;
  font-size: 1.3rem;
  vertical-align: middle;
}
.profile-list-fav .badge-secondary {
  background: #35345a;
  color: #b3b3d1;
  font-size: 0.95rem;
  padding: 7px 16px;
  border-radius: 16px;
  font-weight: 500;
}
.profile-list-fav small.text-muted {
  color: #b3b3d1 !important;
  font-size: 0.92rem;
  margin-left: 10px;
}
.profile-list-fav ul.list-group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}
.profile-box-header .h2-heading {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

#recent-interval-select {
  display: inline-block;
  width: auto;
  min-width: 150px;
  max-width: 200px;
  background: #23223a;
  color: #fff;
  border: 1px solid #35345a;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 16px 7px 10px;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23b3b3d1' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  margin-left: 10px;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.07);
  line-height: 1.4;
  height: auto;
  min-height: 36px;
}
#recent-interval-select:focus {
  outline: none;
  border-color: #6bc5ff;
  box-shadow: 0 0 0 2px #6bc5ff33;
}
#recent-interval-select option {
  background: #23223a;
  color: #fff;
  padding: 6px 0;
}
@media (max-width: 600px) {
  #recent-interval-select {
    min-width: 100px;
    font-size: 0.95rem;
    padding: 6px 10px 6px 8px;
  }
}

@media (max-width: 768px) {
  .anis-content .anisc-detail .film-stats {
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  .anis-content .anisc-detail .film-stats .tick {
    justify-content: center !important;
    width: 100%;
  }
}
