:root {
  --app-bg-color: #242428;
  --app-theme-color: #ffdd95;
  --app-theme-contrast: #1b1b1b;
}

body {
  background-color: var(--app-bg-color);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--app-theme-color) !important;
  border-color: var(--app-theme-color) !important;
  color: var(--app-theme-contrast) !important;
}

.text-primary {
  color: var(--app-theme-color) !important;
}

.bg-primary {
  background-color: var(--app-theme-color) !important;
}

.border-primary {
  border-color: var(--app-theme-color) !important;
}

.badge-primary {
  background-color: var(--app-theme-color) !important;
  color: var(--app-theme-contrast) !important;
}

.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;
}

.connect-tag-choose .tag-dropdown-menu {
  right: auto !important;
  left: 0 !important;
  min-width: 220px;
}

.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;
}

.ps__-list{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

/* Community board */
.community-board {
  background: #1e1f24;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Notification dropdown (header) */
.dropdown-menu-noti {
  width: 320px;
  background: #302f4a !important;
  border: none !important;
  border-radius: 10px;
  overflow: hidden;
}

.dropdown-menu-noti .nnl-head {
  padding: 10px 12px;
  background: #19182d;
}

.dropdown-menu-noti .nav-tabs {
  border-bottom: 0;
  gap: 8px;
}

/* Center film stats section (mobile only) */
@media (max-width: 768px) {
  .film-stats,
  .anis-content .anisc-detail .film-stats,
  .anis-watch-detail .anis-content .anisc-detail .film-stats,
  .ls___-animeinfo .film-info .film-stats,
  .live___-detail .film-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }
}

.dropdown-menu-noti .pre-tabs-min .nav-item .nav-link {
  background: #2a2c45;
  color: #cbd5f5;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid transparent;
}

.dropdown-menu-noti .pre-tabs-min .nav-item .nav-link.active {
  background: #ffbade;
  color: #1b1b2b;
}

.dropdown-menu-noti .nnl-mark {
  padding: 8px 12px;
  background: #24233a;
  border-bottom: 1px solid #3b3d52;
}

.dropdown-menu-noti .btn-noti-maar {
  color: #cbd5f5;
}

.new-noti-list .nnl-item {
  opacity: 1;
}

.new-noti-list .nnl-item.new {
  background: rgba(255, 186, 222, 0.08);
}

.new-noti-list .nnl-item.with-poster,
.new-noti-list .nnl-item.with-avatar {
  min-height: 70px;
}

.new-noti-list .nnl-item .film-poster,
.new-noti-list .nnl-item .user-avatar {
  border-radius: 6px;
  overflow: hidden;
}

.new-noti-list .nnl-item .time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.new-noti-list .nnl-item.nnl-more {
  text-align: center;
  font-weight: 600;
}

.community-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.community-title {
  margin: 0 0 4px 0;
  font-size: 24px;
  color: #fff;
}

.community-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.community-post-form {
  background: #262733;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.community-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.community-featured-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.community-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}
.community-featured-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.community-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.community-featured-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffbade;
  color: #1b1b1f;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.community-featured-tag {
  font-weight: 600;
}
.community-featured-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.community-featured-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.community-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.community-featured-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.community-featured-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.community-featured-comments {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 991px) {
  .community-featured-grid {
    grid-template-columns: 1fr;
  }
}

.community-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.community-post-item {
  background: #2a2c39;
  border-radius: 12px;
  padding: 14px 16px;
}

.community-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-post-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.community-post-title:hover {
  color: #ffbade;
  text-decoration: none;
}

.community-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.community-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.community-verified {
  color: #41c9ff;
  font-size: 12px;
  vertical-align: middle;
}

.zt-blue {
  color: #7bb7ff;
}

.zt-purple {
  color: #c6a6ff;
}

.zt-orange {
  color: #ffb26b;
}

.zt-red {
  color: #ff718c;
}

.zt-green {
  color: #7df796;
}

.zt-yellow {
  color: #ffce71;
}

.community-post-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.community-post-comments {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.community-tag {
  font-size: 11px;
  background: #ffbade;
  color: #2b2b2b;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.community-board-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-post-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.community-post-card {
  background: #1f2230;
  padding: 20px;
  border-radius: 14px;
}

.community-post-content {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.community-comments {
  background: #1e1f24;
  border-radius: 14px;
  padding: 20px;
}

.community-comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.community-comment-item {
  display: flex;
  gap: 12px;
  background: #2b2d3b;
  padding: 12px;
  border-radius: 10px;
}

.community-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.community-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.community-comment-text {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

.community-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

#community-board .community-mini-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 991px) {
  #community-board .community-mini-items {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  #community-board .community-mini-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  #community-board .community-mini-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.community-mini-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  width: 100%;
}

.community-mini-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.community-mini-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  flex-wrap: wrap;
}

.community-mini-meta span:last-child {
  margin-left: auto;
}

.community-mini-meta img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.community-mini-footer {
  margin-top: 12px;
}

/* Community board (board.txt layout) */
.layout-award {
  position: relative;
  padding-top: 40px;
}

.award-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  z-index: 0;
  overflow: hidden;
}

.award-bg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.award-inner {
  position: relative;
  z-index: 1;
}

.ai_-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.ai_-tabs a {
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-size: 13px;
}

.ai_-tabs a.active {
  background: #ffbade;
  color: #2b2b2b;
  font-weight: 600;
}

.ai_-welcome {
  padding: 10px 0 22px;
}

.ai_-welcome .d-block {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.ps__-list .item{
  flex: 1 1 110px; /* grow + shrink + min width */
  /* max-width: 220px; */
}

.ps__-list .btn-server{
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.ps__-list .btn-server:hover{
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.ps__-list .btn-server.active{
  background: #22c55e;
  border-color: #22c55e;
  color: #08140c;
}
@media (max-width: 480px){
  .ps__-list .item{
    flex: 1 1 auto;
  }
}


.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: #e3b5cd;
  font-weight: 600;
  color: #111 !important;
}
@media (max-width: 480px) {
.player-servers .ps_-block {
    padding-top: 10px;           /* prevents overlap */
    padding-left: 10px;
  }  

.player-controls .pc-toggle .tb-name {
  font-size: 10px;
}
}