.animerun-theme-toggle {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html.night-mode .animerun-theme-toggle {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.animerun-theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

html.night-mode .animerun-theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.animerun-theme-toggle:focus-visible {
  outline: 2px solid #4c93ff;
  outline-offset: 2px;
}

.animerun-search-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Fix: schedule/calendar cards look dim (newui applies a filter to all `[data-v-49cfa5fb]`). */
html [data-v-49cfa5fb],
html body [data-v-49cfa5fb],
html body [data-v-49cfa5fb][data-v-49cfa5fb] {
  filter: none !important;
  will-change: auto !important;
}

/* Fix: thumbnail gelap di section Sedang Tayang & Jadwal Tayang */
/* Source: .dark-img di card-section-cbb2fe19.css dengan scope data-v-66da88fd, c020fd2e, e09782c8 */
html.night-mode .dark-img[data-v-66da88fd],
html.night-mode .dark-img[data-v-c020fd2e],
html.night-mode .dark-img[data-v-e09782c8],
html.night-mode .dark-img[data-v-d2a7099a],
html.night-mode .dark-img[data-v-49cfa5fb] {
  filter: none !important;
  will-change: auto !important;
}

/* Reset opacity/filter pada wrapper card */
.card-lucency[data-v-d2a7099a],
.card-section[data-v-e09782c8],
.ogv-card[data-v-9c3796ce] {
  filter: none !important;
  opacity: 1 !important;
}

/* ===== HEADER LAYOUT ===== */
.bstar-header.transparent[data-v-6e074660]:not(.bstar-header--mobile) {
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  padding-inline: 24px;
  min-width: 0;
  gap: 16px;
}

.bstar-header.transparent[data-v-6e074660] .bstar-header__left[data-v-5a1afee9] {
  padding-inline-start: 0;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bstar-header.transparent[data-v-6e074660] .bstar-header__center[data-v-6e074660] {
  justify-self: center;
  width: 100%;
  display: flex;
  align-items: center;
}

.bstar-header.transparent[data-v-6e074660] .bstar-header__actions[data-v-da70224a] {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bstar-header.transparent[data-v-6e074660] .animerun-search-wrap {
  margin: 0;
  max-width: none;
  width: 100%;
}

/* ===== BRAND/LOGO ===== */
.animerun-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #06b6f2;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.animerun-brand:hover {
  opacity: 0.85;
}

.animerun-brand .bstar-header__left-title {
  margin-inline-start: 0;
  font-weight: 800;
  font-size: 16px;
  color: inherit;
}

.animerun-brand .bstar-icon-font {
  color: inherit;
  font-size: 20px;
}

.bstar-header__left--mobile .animerun-brand {
  height: auto;
}

.bstar-header__left--mobile .animerun-brand .bstar-header__left-title {
  font-size: 16px;
  line-height: 20px;
}

.card-section .card-lucency .card-overlay[data-v-d2a7099a] {
  pointer-events: none;
}

.card-section .card-lucency .card-overlay .card-play[data-v-d2a7099a] {
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
}

/* ===== SEARCH BAR ===== */
.bstar-header-search-bar {
  border: 1px solid transparent;
  box-sizing: border-box;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: rgba(0, 0, 0, 0.1);
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 40px;
}

.bstar-header-search-bar--focus {
  border-color: rgba(76, 147, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(76, 147, 255, 0.15);
}

.bstar-header-search-bar__input {
  appearance: none;
  border: 0;
  outline: none;
  flex: 1;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

.bstar-header-search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.bstar-header-search-bar__btn {
  display: flex;
  align-items: center;
}

.bstar-header-search-bar__btn > button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: color 0.2s ease;
}

.bstar-header-search-bar__btn > button:hover {
  color: #ffffff;
}

/* ===== HEADER ACTIONS ===== */
.bstar-header__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.bstar-header__action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.bstar-header__action .bstar-icon-font {
  font-size: 18px;
}

/* ===== SEARCH DROPDOWN ===== */
.animerun-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  background: #ffffff;
  z-index: 9050;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html.night-mode .animerun-search-dropdown {
  background: #000000;
}

.animerun-search-dropdown.open {
  display: block;
}

.bgclose,
#closed {
  display: none !important;
}

#popperURL {
  display: none !important;
}

.animerun-play-sidebar__section#episodeRecoSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#episodeRecoList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#episodeRecoList .animerun-reco-item {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#episodeRecoList .bstar-video-card {
  flex-direction: column;
}

#episodeRecoList .bstar-video-card__cover-wrap {
  width: 100%;
}

#episodeRecoList .bstar-video-card__cover {
  padding-top: 150%;
}

#episodeRecoList .bstar-video-card__text-wrap {
  width: 100%;
}

.card-image[data-v-a8e4b6c9] .bstar-image__img {
  object-fit: cover;
}

.bstar-video-card__cover--normal {
  overflow: hidden;
}

.bstar-video-card__cover-img {
  height: 100%;
}

.bstar-video-card__cover-img .bstar-image__img {
  object-fit: cover;
}

.ogv__cover-img[data-v-56d5d330] {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1279px) {
  .footer__container[data-v-3c5f1907] {
    margin-bottom: 30px;
  }
}

.animerun-filter-bar {
  margin: 12px 0 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(153, 153, 153, 0.25);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

html.night-mode .animerun-filter-bar {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.12);
}

.animerun-filter {
  min-width: 160px;
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.animerun-filter--actions {
  min-width: auto;
  flex: 0 0 auto;
}

.animerun-filter__label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
}

html.night-mode .animerun-filter__label {
  color: rgba(255, 255, 255, 0.55);
}

.animerun-filter__input,
.animerun-filter__select {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(153, 153, 153, 0.3);
  background: #ffffff;
  color: rgba(0, 0, 0, 0.85);
  outline: none;
}

html.night-mode .animerun-filter__input,
html.night-mode .animerun-filter__select {
  background: #191919;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.animerun-filter__input:focus,
.animerun-filter__select:focus {
  border-color: rgba(76, 147, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(76, 147, 255, 0.15);
}

.animerun-result-meta {
  margin: 8px 0 10px;
  font-size: 13px;
  color: rgba(153, 153, 153, 0.95);
}

.animerun-series-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1279px) {
  .animerun-series-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 887px) {
  .animerun-series-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 512px) {
  .animerun-series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

.animerun-series-grid__item {
  min-width: 0;
}

.animerun-series-grid__item > .card-section {
  width: 100%;
}

.animerun-load-more,
.animerun-load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.animerun-search-count {
  margin-inline-start: auto;
  font-size: 13px;
  font-weight: 400;
  color: rgba(153, 153, 153, 0.95);
}

html.night-mode .animerun-search-count {
  color: rgba(255, 255, 255, 0.55);
}

.animerun-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(153, 153, 153, 0.3);
  background: rgba(153, 153, 153, 0.12);
  color: rgba(0, 0, 0, 0.75);
  font-size: 12px;
  line-height: 24px;
  text-decoration: none;
}

html.night-mode .animerun-meta-tag {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.animerun-empty-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.animerun-detail {
  background: #ffffff;
  border: 1px solid rgba(153, 153, 153, 0.25);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}

@media (max-width: 700px) {
  .animerun-detail {
    grid-template-columns: 1fr;
  }
}

html.night-mode .animerun-detail {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.12);
}

.animerun-detail__poster img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.animerun-detail__title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.85);
}

html.night-mode .animerun-detail__title {
  color: rgba(255, 255, 255, 0.85);
}

.animerun-detail__meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animerun-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 24px;
  border: 1px solid rgba(153, 153, 153, 0.3);
  background: rgba(153, 153, 153, 0.12);
  color: rgba(0, 0, 0, 0.75);
}

html.night-mode .animerun-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255,  255, 255, 0.75);
}

.animerun-detail__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.75);
  white-space: pre-wrap;
}

html.night-mode .animerun-detail__desc {
  color: rgba(255, 255, 255, 0.7);
}

.animerun-chip-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.animerun-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(153, 153, 153, 0.3);
  background: transparent;
  color: rgba(0, 0, 0, 0.75);
  font-size: 12px;
  line-height: 28px;
  text-decoration: none;
}

.animerun-chip:hover {
  background: rgba(0, 0, 0, 0.05);
}

html.night-mode .animerun-chip {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

html.night-mode .animerun-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.animerun-detail__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.animerun-episode-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(153, 153, 153, 0.95);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: rgba(0, 0, 0, 0.55);
}

html.night-mode .breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb .sep {
  opacity: 0.6;
}

.episode-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

/* Add side padding so the watch page isn't flush to edges. */
#layout.animerun-page-episode .max-container {
  padding-inline: 16px;
}

@media (min-width: 888px) {
  #layout.animerun-page-episode .max-container {
    padding-inline: 24px;
  }
}

@media (min-width: 1280px) {
  #layout.animerun-page-episode .max-container {
    padding-inline: 32px;
  }
}

@media (max-width: 1000px) {
  .episode-layout {
    grid-template-columns: 1fr;
  }
}

.player {
  background: #ffffff;
  border: 1px solid rgba(153, 153, 153, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

html.night-mode .player {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.12);
}

.animerun-player-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.animerun-player-media > video,
.animerun-player-media > iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.player-bar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.player-bar .title {
  font-weight: 800;
}

.player-bar .sub {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(153, 153, 153, 0.95);
}

.panel {
  background: #ffffff;
  border: 1px solid rgba(153, 153, 153, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
}

html.night-mode .panel {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.12);
}

.panel.sidebar {
  padding: 12px;
}

.animerun-play-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.animerun-play-sidebar__title {
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.85);
}

html.night-mode .animerun-play-sidebar__title {
  color: rgba(255, 255, 255, 0.85);
}

.animerun-play-episode-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.animerun-reco-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.animerun-reco-item .bstar-video-card {
  width: 100%;
}

.animerun-reco-item .bstar-video-card__text-wrap {
  min-width: 0;
}

/* Mobile: 2 anime per baris di section Anime random */
@media (max-width: 768px) {
  .animerun-reco-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .animerun-reco-item {
    width: 100% !important;
    min-width: 0 !important;
  }

  .animerun-reco-item .bstar-video-card {
    flex-direction: column !important;
    width: 100% !important;
  }

  .animerun-reco-item .bstar-video-card__cover-wrap {
    width: 100% !important;
  }

  .animerun-reco-item .bstar-video-card__cover {
    padding-top: 140% !important;
  }

  .animerun-reco-item .bstar-video-card__text-wrap {
    width: 100% !important;
    padding: 6px 4px 4px !important;
  }
}

.animerun-ep-tile {
  height: 40px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.animerun-ep-tile:hover {
  background: rgba(0, 0, 0, 0.09);
}

.animerun-ep-tile.active {
  background: rgba(6, 182, 242, 0.18);
  color: #06b6f2;
}

html.night-mode .animerun-ep-tile {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

html.night-mode .animerun-ep-tile:hover {
  background: rgba(255, 255, 255, 0.12);
}

html.night-mode .animerun-ep-tile.active {
  background: rgba(6, 182, 242, 0.22);
  color: #06b6f2;
}

.ep-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(153, 153, 153, 0.25);
  background: rgba(153, 153, 153, 0.08);
  text-decoration: none;
  color: rgba(0, 0, 0, 0.85);
}

html.night-mode .ep-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.ep-item.active {
  border-color: rgba(242, 97, 131, 0.6);
  background: rgba(242, 97, 131, 0.12);
}

/* ===== HAMBURGER MENU STYLING ===== */
.animerun-menu-btn {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 8px 12px !important;
  height: auto !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  white-space: nowrap !important;
  font-family: inherit !important;
  line-height: 1 !important;
}

.animerun-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.animerun-menu-btn:active {
  background: rgba(255, 255, 255, 0.2) !important;
}

.animerun-menu-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  flex-shrink: 0 !important;
  display: block !important;
  color: currentColor !important;
}

.animerun-menu-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  color: currentColor !important;
}

/* On mobile, hide label text */
@media (max-width: 768px) {
  .animerun-menu-label {
    display: none !important;
  }

  .animerun-menu-btn {
    padding: 8px !important;
  }
}

.animerun-theme-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  display: none;
  z-index: 9100;
}

.animerun-theme-popover.open {
  display: block;
}

.animerun-theme-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

html.night-mode .animerun-theme-menu {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.15);
}

.banner .banner-logo .animerun-banner-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: clamp(28px, 4vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  word-break: break-word;
}

@media (max-width: 888px) {
  .banner .banner-logo .animerun-banner-title {
    font-size: clamp(22px, 6vw, 40px);
  }
}

/* ===== BANNER BUTTONS STYLING ===== */
.banner .banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  max-width: 100%;
  overflow: visible;
}

.banner .banner-buttons .btn {
  appearance: none;
  border: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
}

/* Play Button */
.banner .banner-buttons .video-play {
  background: #fb7299;
  color: #ffffff;
}

.banner .banner-buttons .video-play:hover {
  background: #f5579f;
  transform: translateY(-1px);
}

/* Favorite Button - Default State */
.banner .banner-buttons .video-mylist {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 0;
}

.banner .banner-buttons .video-mylist:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Favorite Button - Selected/Bookmarked State */
.banner .banner-buttons .video-mylist.selected {
  background: rgba(251, 114, 153, 0.25);
  border: 0;
  color: #ffffff;
}

.banner .banner-buttons .video-mylist.selected:hover {
  background: rgba(251, 114, 153, 0.35);
}

.banner .banner-buttons .video-mylist .animerun-bookmark-label {
  margin-inline-start: 0;
}

.banner .banner-buttons .video-mylist .bstar-icon-font {
  font-size: 16px;
}


/* ===== OGV CARD FIXES ===== */
/* Thumbnail harus tampil natural tanpa filter */
.card-lucency .card-img[data-v-d2a7099a],
html.night-mode .card-lucency .card-img[data-v-d2a7099a] {
  filter: none !important;
  opacity: 1 !important;
}

.ogv__cover-img[data-v-56d5d330],
html.night-mode .ogv__cover-img[data-v-56d5d330] {
  filter: none !important;
  opacity: 1 !important;
}

/* ===== THEME DARK/LIGHT TEXT FIXES ===== */
/* Area title text color yang follow tema */
.area-title .title[data-v-a46e3c31] {
  color: inherit;
}

html.night-mode .area-title .title[data-v-a46e3c31] {
  color: rgba(255, 255, 255, 0.95);
}

/* Card title dan text yang follow tema */
.card-section .card-bottom .card-title[data-v-d2a7099a] {
  color: inherit;
}

html.night-mode .card-section .card-bottom .card-title[data-v-d2a7099a] {
  color: rgba(255, 255, 255, 0.9);
}

.card-section .card-bottom .card-time[data-v-d2a7099a] {
  color: inherit;
  opacity: 0.7;
}

html.night-mode .card-section .card-bottom .card-time[data-v-d2a7099a] {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== BANNER LEFT BG GRADIENT FIX ===== */
/* Light mode: gradient dari putih/abu ke transparan */
.banner-left-bg {
  background: linear-gradient(90deg,
    rgba(240, 242, 245, 0.92) 0%,
    rgba(240, 242, 245, 0.75) 30%,
    rgba(240, 242, 245, 0.3) 60%,
    rgba(240, 242, 245, 0) 100%
  ) !important;
  opacity: 1 !important;
}

/* Night mode: gradient dari hitam ke transparan */
html.night-mode .banner-left-bg {
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0) 100%
  ) !important;
  opacity: 1 !important;
}

/* ===== HEADER ACCENT COLORS ===== */
/* Update header action buttons - Cyan blue */
.bstar-header__action {
  color: rgba(0, 191, 255, 0.7) !important;
}

.bstar-header__action:hover {
  color: #00bfff !important;
  background: rgba(0, 191, 255, 0.1) !important;
}

/* Update search bar focus color */
.bstar-header-search-bar--focus {
  border-color: rgba(0, 191, 255, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.15) !important;
}

/* ===== ACCENT COLOR UPDATES ===== */
/* Episode chips active state - Blue instead of pink */
.episode-chip.active {
  background: rgba(0, 191, 255, 0.18) !important;
  border-color: rgba(0, 191, 255, 0.56) !important;
  color: #00bfff !important;
}

.episode-chip:hover {
  border-color: rgba(0, 191, 255, 0.56) !important;
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.16) !important;
}

/* Score/rating badge - Update to gold-ish */
.score {
  background: rgba(255, 193, 7, 0.92) !important;
  color: #000000 !important;
}

/* ===== LINK & INTERACTION COLORS ===== */
/* Chips and tags - Blue accent */
.chips a:hover {
  background: rgba(0, 191, 255, 0.14) !important;
  color: #00bfff !important;
}

/* Active navigation - Blue */
.nav a.active {
  background: rgba(0, 191, 255, 0.18) !important;
  color: #00bfff !important;
}

/* ===== RESPONSIVE LAYOUT FIXES ===== */
/* Mobile header adjustments */
@media (max-width: 768px) {
  .bstar-header.transparent[data-v-6e074660]:not(.bstar-header--mobile) {
    grid-template-columns: auto 1fr auto;
    padding-inline: 12px;
    gap: 8px;
  }

  .bstar-header.transparent[data-v-6e074660] .animerun-search-wrap {
    min-width: 0;
  }

  .bstar-header-search-bar {
    height: 36px;
    padding: 0 8px;
  }

  .bstar-header__action {
    width: 36px;
    height: 36px;
  }

  /* ===== BANNER PORTRAIT MOBILE ===== */

  /* Container portrait 4:5 */
  .banner-entry {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .banner-warp {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .banner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .banner-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Gambar fokus atas supaya wajah tidak terpotong */
  .banner-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  /* Hapus banner-left-bg di mobile */
  .banner-left-bg {
    display: none !important;
  }

  /* Konten pin ke bawah */
  .banner-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
  }

  .animerun-banner-title {
    font-size: clamp(18px, 6vw, 26px) !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .banner-tag {
    margin-top: 0 !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    font-size: 12px !important;
  }

  .banner-desc {
    display: none !important;
  }

  /* Tombol HORIZONTAL bersebelahan, ukuran sama */
  .banner-buttons {
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 4px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  /* Play button: flex-grow supaya ambil sisa ruang, height = 40px */
  .banner-buttons .video-play.btn {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 40px !important;
    font-size: 13px !important;
    padding: 0 14px !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
  }

  /* Bookmark button: kotak 40×40, border-radius IDENTIK dengan play */
  .banner-buttons .video-mylist.btn {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
  }

  /* Sembunyikan label teks bookmark, cukup icon */
  .banner-buttons .video-mylist .animerun-bookmark-label {
    display: none !important;
  }

  /* Panah prev/next disembunyikan */
  .banner-prev,
  .banner-next {
    display: none !important;
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .card-list[data-v-d2a7099a] {
    gap: 16px;
  }

  .banner-content {
    padding: 16px 24px;
  }

  .banner-desc {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Large screen optimization */
@media (min-width: 1920px) {
  .banner-content {
    padding: 40px 48px;
  }

  .banner-title {
    font-size: 48px;
  }
}

/* ===== BILIBILI STYLE TRANSFORMATION ===== */

/* Gold accent for title */
.animerun-banner-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: clamp(28px, 5vw, 48px) !important;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Subtitle styling */
.banner-tag {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.banner-tag .types span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

/* Brand color - Cyan Blue for Bilibili style */
.animerun-brand {
  color: #00bfff !important;
}

/* Button styling - Bilibili style */
.banner .banner-buttons .video-play {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
  border: 0 !important;
  box-shadow: none !important;
}

.banner .banner-buttons .video-play:hover {
  background: #f0f0f0 !important;
}

.banner .banner-buttons .video-mylist {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.banner .banner-buttons .video-mylist:hover {
  background: rgba(0, 0, 0, 0.45) !important;
}

.banner .banner-buttons .video-mylist.selected {
  background: #ffffff !important;
  border: 0 !important;
  color: #000000 !important;
  box-shadow: none !important;
}

/* Match Bstation: compact "Favorit" button width */
.banner .banner-buttons .video-mylist {
  width: 94px;
  padding-inline: 0;
  justify-content: center;
  gap: 0;
}

.banner .banner-buttons .video-mylist .animerun-bookmark-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ensure "Favorit Saya" border matches "Putar sekarang" everywhere */
.banner .banner-buttons .video-mylist,
.banner .banner-buttons .video-mylist:hover,
.banner .banner-buttons .video-mylist.selected,
.banner .banner-buttons .video-mylist.selected:hover {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
}

/* Banner layout optimization */
.banner-content {
  padding: 32px 40px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  overflow: visible;
  min-width: 0;
}

.banner-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* banner-left-bg sudah diatur di atas (ikut tema) */

html.night-mode body {
  background-color: #0b0d12;
  color: rgba(255, 255, 255, 0.9);
}

/* Ensure empty states follow theme */
.empty-container[data-v-a11a7f14] {
  color: inherit;
}

html.night-mode .empty-container[data-v-a11a7f14] {
  color: rgba(255, 255, 255, 0.6);
}

/* Ensure area content text is visible */
.area-content[data-v-a46e3c31] {
  color: inherit;
}

html.night-mode .area-content[data-v-a46e3c31] {
  color: rgba(255, 255, 255, 0.7);
}

/* Recent time tabs follow theme */
.recent-time[data-v-8fba1b68] {
  color: inherit;
  border-color: rgba(0, 0, 0, 0.1);
}

html.night-mode .recent-time[data-v-8fba1b68] {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
}

.recent-time.active[data-v-8fba1b68] {
  color: #06b6f2;
  border-color: #06b6f2;
}

/* ===== ARTICLE CONTENT STYLING ===== */
.article-content {
  color: inherit;
}

html.night-mode .article-content {
  color: rgba(255, 255, 255, 0.85);
}

.article-meta {
  color: inherit;
  opacity: 0.7;
}

html.night-mode .article-meta {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== COMPACT EPISODE GRID (Bilibili Style) ===== */
.episodes {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 12px !important;
}

.episode-chip {
  height: 32px !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
}

@media (max-width: 1024px) {
  .episodes {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}

@media (max-width: 720px) {
  .episodes {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .episode-chip {
    height: 28px !important;
    font-size: 11px !important;
  }
}

/* ===== SECTION TITLE WITH BETTER SPACING ===== */
.area-title[data-v-a46e3c31] {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.area-title .title[data-v-a46e3c31] {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

/* ===== SCROLL CARDS RESPONSIVE ===== */
.scroll-cards[data-v-1e0c0087] {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 24px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .scroll-cards[data-v-1e0c0087] {
    gap: 10px;
    padding: 0 16px;
  }
}

.scroll-cards[data-v-1e0c0087]::-webkit-scrollbar {
  height: 4px;
}

.scroll-cards[data-v-1e0c0087]::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

html.night-mode .scroll-cards[data-v-1e0c0087]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.scroll-cards[data-v-1e0c0087]::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

html.night-mode .scroll-cards[data-v-1e0c0087]::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cards[data-v-1e0c0087]::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

html.night-mode .scroll-cards[data-v-1e0c0087]::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

#layout.animerun-page-anime .scroll-cards-section .scroll-cards .scroll-cards-warp {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}

#layout.animerun-page-anime .scroll-cards-section .scroll-cards .scroll-cards-warp::-webkit-scrollbar {
  height: 4px;
}

#layout.animerun-page-anime .scroll-cards-section .scroll-cards .scroll-cards-warp::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

html.night-mode #layout.animerun-page-anime .scroll-cards-section .scroll-cards .scroll-cards-warp::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== WATCH PAGE (INFO + COMMENTS) ===== */
.animerun-watch-info__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.animerun-comments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.animerun-comments__meta {
  font-size: 12px;
  color: rgba(153, 153, 153, 0.95);
}

html.night-mode .animerun-comments__meta {
  color: rgba(255, 255, 255, 0.55);
}

.animerun-comments__form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.animerun-comments__form input,
.animerun-comments__form textarea {
  width: 100%;
  border: 1px solid rgba(153, 153, 153, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 20px;
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.85);
  outline: none;
  box-sizing: border-box;
}

.animerun-comments__form textarea {
  resize: vertical;
}

.animerun-comments__form input:focus,
.animerun-comments__form textarea:focus {
  border-color: rgba(6, 182, 242, 0.7);
  box-shadow: 0 0 0 3px rgba(6, 182, 242, 0.14);
}

html.night-mode .animerun-comments__form input,
html.night-mode .animerun-comments__form textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

html.night-mode .animerun-comments__form input:focus,
html.night-mode .animerun-comments__form textarea:focus {
  border-color: rgba(6, 182, 242, 0.85);
  box-shadow: 0 0 0 3px rgba(6, 182, 242, 0.18);
}

.animerun-comments__form button {
  justify-self: start;
}

.animerun-comments__list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.animerun-comments__empty {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(153, 153, 153, 0.35);
  color: rgba(153, 153, 153, 0.95);
  font-size: 13px;
}

html.night-mode .animerun-comments__empty {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
}

.animerun-comment {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(153, 153, 153, 0.25);
  background: rgba(0, 0, 0, 0.02);
}

html.night-mode .animerun-comment {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.animerun-comment__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.animerun-comment__name {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.85);
}

html.night-mode .animerun-comment__name {
  color: rgba(255, 255, 255, 0.85);
}

.animerun-comment__ep,
.animerun-comment__time {
  color: rgba(153, 153, 153, 0.95);
}

html.night-mode .animerun-comment__ep,
html.night-mode .animerun-comment__time {
  color: rgba(255, 255, 255, 0.55);
}

.animerun-comment__body {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.75);
  word-break: break-word;
}

html.night-mode .animerun-comment__body {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== THEME TOGGLE AS SIDEBAR ITEM ===== */

/* Reset button supaya tampilannya identik dengan <a class="bstar-sidebar__link"> */
button.bstar-sidebar__link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: start;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  /* Do NOT set display here — let newui CSS grid layout apply naturally */
  height: inherit;
  border-radius: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

button.bstar-sidebar__link:hover,
button.bstar-sidebar__link:focus-visible {
  background: transparent;
  outline: none;
}

/* Popover tema: fixed positioning, diposisikan via JS */
#themePopover {
  position: fixed !important;
  top: auto;
  right: auto;
  margin: 0;
  z-index: 9999;
}

/* ===== FIX THUMBNAIL GELAP (CSS variable opacity dari newui) ===== */
/* newui set --93401db4:0.7493 yang dipakai sebagai opacity card image */
.scroll-cards-section,
.scroll-cards-warp,
[data-v-d7d492ad] {
  --93401db4: 1 !important;
}

/* Reset semua opacity/filter pada image card secara langsung */
.card-image .bstar-image__img,
.card-img .bstar-image__img,
.card-lucency .bstar-image__img,
.enable-hover .bstar-image__img,
[data-v-d2a7099a] .bstar-image__img,
[data-v-49cfa5fb] .bstar-image__img,
[data-v-67fb50d0] .bstar-image__img {
  opacity: 1 !important;
  filter: none !important;
}

/* ===== FIX SIDEBAR WARNA — BERLAWANAN DENGAN TEMA ===== */
/* Light mode: icon & teks GELAP (berlawanan dari background putih) */
.bstar-sidebar__link,
.bstar-sidebar__link span,
.bstar-sidebar__link .side-icon,
.bstar-sidebar__link .bstar-icon-font {
  color: rgba(0, 0, 0, 0.72) !important;
}

.bstar-sidebar__link:hover,
.bstar-sidebar__link:hover span,
.bstar-sidebar__link:hover .side-icon,
.bstar-sidebar__link:hover .bstar-icon-font {
  color: #06b6f2 !important;
}

.bstar-sidebar__item.active > .bstar-sidebar__link,
.bstar-sidebar__item.active > .bstar-sidebar__link span,
.bstar-sidebar__item.active > .bstar-sidebar__link .side-icon,
.bstar-sidebar__item.active > .bstar-sidebar__link .bstar-icon-font {
  color: #06b6f2 !important;
}

/* Sidebar labels: allow text to expand (newui sets width:24px by default) */
.bstar-sidebar:not(.bstar-sidebar--mobile) .bstar-sidebar__link span:not(.side-icon) {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  min-width: 0;
  line-height: 24px;
}

/* Night mode: icon & teks TERANG (berlawanan dari background gelap) */
html.night-mode .bstar-sidebar__link,
html.night-mode .bstar-sidebar__link span,
html.night-mode .bstar-sidebar__link .side-icon,
html.night-mode .bstar-sidebar__link .bstar-icon-font {
  color: rgba(255, 255, 255, 0.72) !important;
}

html.night-mode .bstar-sidebar__link:hover,
html.night-mode .bstar-sidebar__link:hover span,
html.night-mode .bstar-sidebar__link:hover .side-icon,
html.night-mode .bstar-sidebar__link:hover .bstar-icon-font {
  color: #06b6f2 !important;
}

html.night-mode .bstar-sidebar__item.active > .bstar-sidebar__link,
html.night-mode .bstar-sidebar__item.active > .bstar-sidebar__link span,
html.night-mode .bstar-sidebar__item.active > .bstar-sidebar__link .side-icon,
html.night-mode .bstar-sidebar__item.active > .bstar-sidebar__link .bstar-icon-font {
  color: #06b6f2 !important;
}

/* ===== AUTH MODAL ===== */
.ar-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ar-modal-overlay.ar-open {
  opacity: 1;
  pointer-events: auto;
}
.ar-modal {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.22,0.68,0,1.2);
  scrollbar-width: none;
}
.ar-modal::-webkit-scrollbar { display: none; }
.ar-modal-overlay.ar-open .ar-modal {
  transform: translateY(0) scale(1);
}
html.night-mode .ar-modal {
  background: #1a1a2e;
  color: rgba(255,255,255,0.9);
}
.ar-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.ar-modal__close:hover { background: rgba(0,0,0,0.12); color: rgba(0,0,0,0.85); }
html.night-mode .ar-modal__close { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
html.night-mode .ar-modal__close:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Brand */
.ar-modal__brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 24px 0;
}
.ar-modal__brand-icon { font-size: 26px; }
.ar-modal__brand-name {
  font-family: 'Plus Jakarta Sans', 'Sora', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #06b6f2, #0284c7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Tabs */
.ar-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 14px 24px 0;
}
.ar-tab {
  padding: 9px 0;
  font-size: 13.5px; font-weight: 700;
  color: rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.04);
  border: none; border-radius: 10px; cursor: pointer;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.ar-tab.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 6px rgba(6,182,242,0.18), 0 0 0 1.5px #bae6fd;
}
html.night-mode .ar-tab { color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
html.night-mode .ar-tab.active { background: rgba(255,255,255,0.1); color: #38bdf8; box-shadow: 0 0 0 1.5px rgba(56,189,248,0.4); }

/* Panel */
.ar-panel { display: none; padding: 20px 24px 22px; animation: arPanelIn 0.25s ease both; }
.ar-panel.active { display: block; }
@keyframes arPanelIn { from{opacity:0;transform:translateX(6px)} to{opacity:1;transform:translateX(0)} }

.ar-panel__head { margin-bottom: 18px; }
.ar-panel__title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.ar-panel__sub { font-size: 12.5px; color: #64748b; line-height: 1.5; }
html.night-mode .ar-panel__title { color: rgba(255,255,255,0.92); }
html.night-mode .ar-panel__sub { color: rgba(255,255,255,0.5); }

/* Fields */
.ar-field { margin-bottom: 13px; }
.ar-label { display: block; font-size: 11.5px; font-weight: 700; color: #64748b; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.2px; }
html.night-mode .ar-label { color: rgba(255,255,255,0.5); }
.ar-input-wrap { position: relative; }
.ar-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; display: grid; place-items: center;
  color: #38bdf8; pointer-events: none;
}
.ar-ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-input {
  width: 100%; padding: 11px 13px 11px 38px;
  font-size: 14px; font-weight: 500; color: #0f172a;
  background: #f8fbff; border: 1.5px solid #bae6fd; border-radius: 11px;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none; box-sizing: border-box;
}
.ar-input:focus { border-color: #06b6f2; box-shadow: 0 0 0 3px rgba(6,182,242,0.13); background: #fff; }
.ar-input::placeholder { color: #b0cfe0; }
.ar-input.ar-has-eye { padding-right: 40px; }
html.night-mode .ar-input { background: rgba(255,255,255,0.07); border-color: rgba(56,189,248,0.25); color: rgba(255,255,255,0.9); }
html.night-mode .ar-input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,0.15); background: rgba(255,255,255,0.1); }
html.night-mode .ar-input::placeholder { color: rgba(255,255,255,0.25); }

.ar-eye {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 3px; cursor: pointer;
  color: #94a3b8; border-radius: 5px; display: grid; place-items: center;
  transition: color 0.15s;
}
.ar-eye:hover { color: #06b6f2; }
.ar-eye svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ar-err { font-size: 11px; color: #ef4444; margin-top: 4px; display: none; }
.ar-err.ar-show { display: block; }

/* Alerts */
.ar-alert {
  border-radius: 9px; padding: 10px 12px; font-size: 12.5px; font-weight: 600;
  margin-bottom: 13px; display: none; align-items: flex-start; gap: 7px; line-height: 1.5;
}
.ar-alert.ar-show { display: flex; }
.ar-alert svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-alert--err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ar-alert--ok  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.ar-alert--inf { background: #eff9ff; color: #0284c7; border: 1px solid #bae6fd; }

/* Buttons */
.ar-btn-cta {
  width: 100%; padding: 12.5px;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #06b6f2, #0284c7);
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(6,182,242,0.3);
  transition: opacity 0.15s, transform 0.15s; margin-top: 2px;
  letter-spacing: 0.1px;
}
.ar-btn-cta:hover { opacity: 0.92; }
.ar-btn-cta:active { transform: scale(0.985); }
.ar-btn-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ar-btn-ghost {
  width: 100%; padding: 11px 13px;
  font-size: 13.5px; font-weight: 700; color: #475569;
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 11px;
  cursor: pointer; display: flex; align-items: center; gap: 9px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  margin-bottom: 9px;
}
.ar-btn-ghost:hover { border-color: #bae6fd; color: #0284c7; background: #eff9ff; }
.ar-btn-ghost--danger { border-color: #fecaca; color: #dc2626; }
.ar-btn-ghost--danger:hover { background: #fef2f2; border-color: #f87171; }
html.night-mode .ar-btn-ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); }
html.night-mode .ar-btn-ghost:hover { border-color: rgba(56,189,248,0.4); color: #38bdf8; background: rgba(56,189,248,0.08); }

.ar-btn-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: #64748b;
  background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 14px;
  transition: color 0.15s;
}
.ar-btn-back:hover { color: #0284c7; }
.ar-btn-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
html.night-mode .ar-btn-back { color: rgba(255,255,255,0.45); }

.ar-txt-link {
  font-size: 12.5px; font-weight: 700; color: #0284c7;
  background: none; border: none; cursor: pointer; padding: 0;
  transition: opacity 0.15s;
}
.ar-txt-link:hover { opacity: 0.75; }

.ar-note { text-align: center; font-size: 12.5px; color: #64748b; margin-top: 14px; }
html.night-mode .ar-note { color: rgba(255,255,255,0.45); }

.ar-sep { height: 1px; background: #e2e8f0; margin: 14px 0; }
html.night-mode .ar-sep { background: rgba(255,255,255,0.1); }

/* Password meter */
.ar-pw-meter { margin-top: 7px; display: none; }
.ar-pw-bars { display: flex; gap: 3px; margin-bottom: 4px; }
.ar-pw-bar { flex: 1; height: 3px; border-radius: 99px; background: #bae6fd; transition: background 0.3s; }
.ar-pw-bar.ar-w { background: #f87171; }
.ar-pw-bar.ar-f { background: #fb923c; }
.ar-pw-bar.ar-g { background: #4ade80; }
.ar-pw-bar.ar-s { background: #22c55e; }
.ar-pw-hint { font-size: 10.5px; color: #94a3b8; font-weight: 600; }

/* Terms */
.ar-terms { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 14px; }
.ar-terms input[type=checkbox] { margin-top: 2px; accent-color: #06b6f2; width: 14px; height: 14px; flex-shrink: 0; cursor: pointer; }
.ar-terms label { font-size: 11.5px; color: #64748b; line-height: 1.6; cursor: pointer; }
.ar-terms label a { color: #0284c7; font-weight: 700; text-decoration: none; }
.ar-terms label a:hover { text-decoration: underline; }

/* Profile */
.ar-profile-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #f8fbff; border-radius: 13px; border: 1.5px solid #e2eef7; margin-bottom: 16px; }
.ar-avatar { width: 46px; height: 46px; background: linear-gradient(135deg, #06b6f2, #0284c7); border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; color: #fff; font-weight: 800; }
.ar-profile-info { min-width: 0; }
.ar-profile-name { font-size: 14px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-profile-email { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.night-mode .ar-profile-head { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
html.night-mode .ar-profile-name { color: rgba(255,255,255,0.9); }
html.night-mode .ar-profile-email { color: rgba(255,255,255,0.5); }

/* Success */
.ar-success { text-align: center; padding: 10px 0 8px; }
.ar-success__ico { font-size: 44px; margin-bottom: 14px; display: block; }
.ar-success__title { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.ar-success__msg { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }
html.night-mode .ar-success__title { color: rgba(255,255,255,0.9); }
html.night-mode .ar-success__msg { color: rgba(255,255,255,0.5); }

/* Spinner */
.ar-spin { display: inline-block; width: 15px; height: 15px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: arSpin 0.65s linear infinite; vertical-align: middle; }
@keyframes arSpin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 480px) {
  .ar-modal { border-radius: 16px; max-height: 95dvh; }
  .ar-panel { padding: 18px 18px 18px; }
  .ar-modal__brand { padding: 18px 18px 0; }
  .ar-tabs { padding: 12px 18px 0; }
  .ar-input { font-size: 16px; } /* prevent iOS zoom */
}

/* ── Social login buttons ── */
.ar-social-btns {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 4px;
}
.ar-social-btn {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.ar-social-btn:active { transform: scale(0.985); }

/* Google */
.ar-social-btn--google {
  background: #ffffff;
  color: #3c4043;
  border-color: #dadce0;
}
.ar-social-btn--google:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
html.night-mode .ar-social-btn--google {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.15);
}
html.night-mode .ar-social-btn--google:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

/* GitHub */
.ar-social-btn--github {
  background: #24292e;
  color: #ffffff;
  border-color: #24292e;
}
.ar-social-btn--github:hover {
  background: #1a1e22;
  border-color: #1a1e22;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
html.night-mode .ar-social-btn--github {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
html.night-mode .ar-social-btn--github:hover {
  background: rgba(255,255,255,0.16);
}

/* Divider */
.ar-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ar-divider::before,
.ar-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
html.night-mode .ar-divider { color: rgba(255,255,255,0.3); }
html.night-mode .ar-divider::before,
html.night-mode .ar-divider::after { background: rgba(255,255,255,0.1); }

/* ── Akun sidebar link — <a> tag gets grid CSS from newui automatically ── */

/* Prevent page scroll/jump on click */
a#akunBtn { scroll-margin: 0; }
a#akunBtn:focus { outline: none; }

/* Label truncation for long usernames */
.animerun-akun-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Green dot badge when logged in */
.animerun-akun-item.logged-in .side-icon {
  position: relative;
}
.animerun-akun-item.logged-in .side-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  border: 1.5px solid #fff;
}
html.night-mode .animerun-akun-item.logged-in .side-icon::after {
  border-color: #141414;
}
