/* WatchDramaFree (tema-P 深蓝黑视觉体系)
   依据 target: https://watchdramafree.com/zh/ 规格与复刻流水线 F6/F9/F11-F20 */

:root {
  --bg: #0f171e;
  --surface: #1a242f;
  --surface-2: #222f3e;
  --border: #2c3a49;
  --accent: #1a98ff;
  --accent-2: #00d2c6;
  --text: #f2f2f7;
  --text-muted: #9b9bab;
  --danger: #ff5c77;
  --gradient-brand: linear-gradient(90deg, #1a98ff, #00d2c6);
  --gradient-brand-135: linear-gradient(135deg, #1a98ff, #00d2c6);

  /* 兼容旧模板 CSS 变量映射 */
  --brand: var(--accent);
  --brand-hover: #00b8d4;
  --title: var(--text);
  --body: #d3d7e2;
  --sub: var(--text-muted);
  --line: var(--border);
  --card-line: var(--border);
  --row-line: rgba(44, 58, 73, 0.72);
  --tag-bg: rgba(26, 152, 255, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body,
body.modou-body,
body.wd-body,
body.site51 {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.modou-page-main,
.wd-page-main {
  flex: 1 0 auto;
  padding-top: 22px;
  padding-bottom: 56px;
}

/* =========================================================
   Buttons & Pills
   ========================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 8px 24px rgba(26, 152, 255, 0.28);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(242, 242, 247, 0.22);
  background: rgba(242, 242, 247, 0.1);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-outline-light:hover {
  background: rgba(242, 242, 247, 0.18);
  border-color: rgba(242, 242, 247, 0.36);
}

.btn-outline-light.detail-action--active {
  border-color: var(--accent);
  background: rgba(26, 152, 255, 0.16);
  color: #7cc6ff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

a.tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

.modou-pill,
.wd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 15px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.modou-pill:hover,
.wd-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.modou-pill.is-active,
.wd-pill.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #ffffff;
}

.modou-surface-box,
.wd-surface-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}

/* =========================================================
   Header (tema-P Sticky Top Bar)
   ========================================================= */
.wd-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  background: rgba(15, 23, 30, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wd-header-desktop {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wd-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--text);
}

.wd-brand-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.wd-brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}

.wd-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--gradient-brand);
  color: #0f171e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
}

.wd-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.wd-nav::-webkit-scrollbar {
  display: none;
}

.wd-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 62px;
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s ease;
}

.wd-nav-link:hover {
  color: var(--text);
}

.wd-nav-link.is-active,
.wd-nav-link[aria-current="page"] {
  color: #ffffff;
}

.wd-nav-link.is-active::after,
.wd-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: #ffffff;
  border-radius: 2px 2px 0 0;
}

.wd-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.wd-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.wd-search-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box,
.wd-search-input {
  width: 190px;
  height: 36px;
  padding: 0 14px 0 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, width 0.2s ease;
}

.search-box::placeholder,
.wd-search-input::placeholder {
  color: var(--text-muted);
}

.search-box:focus,
.wd-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 152, 255, 0.18);
}

.wd-header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(26, 152, 255, 0.45);
  background: var(--surface);
  flex-shrink: 0;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.wd-header-avatar:hover {
  border-color: var(--accent-2);
  transform: scale(1.04);
}

.wd-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile Header */
.wd-header-mobile {
  display: none;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wd-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-icon-btn,
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.wd-icon-btn svg,
.hamburger svg {
  width: 18px;
  height: 18px;
}

.wd-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 30, 0.98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 16px 18px 28px;
  overflow-y: auto;
}

.wd-mobile-menu[hidden] {
  display: none !important;
}

.wd-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.wd-mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wd-mobile-menu-links .m-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
}

.wd-mobile-menu-links .m-link.is-active {
  background: var(--surface);
  border-color: var(--accent);
  color: #ffffff;
}

@media (max-width: 960px) {
  .wd-header-desktop {
    display: none;
  }
  .wd-header-mobile {
    display: flex;
  }
  .wd-brand-text {
    font-size: 17px;
  }
}

/* =========================================================
   Home Hero Carousel (.wd-hero — 430px desktop / 209px mobile)
   ========================================================= */
.wd-hero {
  position: relative;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  background: var(--bg);
}

.wd-hero .slide {
  position: relative;
  display: none;
  min-height: 430px;
  width: 100%;
  overflow: hidden;
  color: var(--text);
}

.wd-hero .slide.active {
  display: flex;
  align-items: center;
}

.wd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(34px) saturate(1.25) brightness(0.48);
  transform: scale(1.12);
  pointer-events: none;
}

.wd-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 30, 0.92) 0%, rgba(15, 23, 30, 0.56) 52%, rgba(15, 23, 30, 0.22) 100%),
    linear-gradient(0deg, #0f171e 0%, rgba(15, 23, 30, 0.35) 28%, rgba(15, 23, 30, 0) 58%);
  pointer-events: none;
}

.wd-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 56px 52px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.wd-hero-poster {
  flex: 0 0 236px;
  width: 236px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wd-hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-hero-info {
  flex: 1;
  min-width: 0;
  max-width: 620px;
}

.wd-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wd-hero-info h1,
.wd-hero-info h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-hero-meta {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.wd-hero-desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wd-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wd-hero-actions .btn-primary {
  padding: 13px 26px;
  font-size: 15px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 30, 0.65);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.wd-hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-arrow--prev {
  left: 14px;
}

.hero-arrow--next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(242, 242, 247, 0.3);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-dots button.active {
  background: var(--accent);
}

@media (max-width: 767px) {
  .wd-hero,
  .wd-hero .slide {
    min-height: 209px;
  }
  .wd-hero-inner {
    flex-direction: row;
    align-items: flex-end;
    gap: 14px;
    padding: 18px 14px 34px;
  }
  .wd-hero-poster {
    flex: 0 0 118px;
    width: 118px;
    border-radius: 10px;
  }
  .wd-hero-kicker {
    font-size: 11.5px;
    margin-bottom: 4px;
  }
  .wd-hero-info h1,
  .wd-hero-info h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .wd-hero-meta {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .wd-hero-desc {
    display: none;
  }
  .wd-hero-actions .btn-primary {
    padding: 9px 18px;
    min-height: 36px;
    font-size: 13.5px;
  }
  .hero-arrow {
    display: none;
  }
  .hero-dots {
    bottom: 12px;
  }
  .hero-dots button {
    width: 18px;
  }
}

/* =========================================================
   Home Intro & Category Shelves (.wd-shelf)
   ========================================================= */
.wd-intro {
  padding: 24px 0 8px;
}

.wd-intro h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.wd-intro p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.wd-section,
.modou-section {
  padding-top: 28px;
}

.wd-section-head,
.modou-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.section-more {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s ease;
}

.section-more:hover {
  color: var(--accent);
}

/* Horizontal Shelf Carousel */
.wd-shelf-wrap {
  position: relative;
}

.wd-shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.wd-shelf-track::-webkit-scrollbar {
  display: none;
}

.wd-shelf-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 30, 0.82);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.16s ease;
}

.wd-shelf-wrap:hover .wd-shelf-btn {
  opacity: 1;
}

.wd-shelf-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.wd-shelf-btn--prev {
  left: -10px;
}

.wd-shelf-btn--next {
  right: -10px;
}

@media (max-width: 767px) {
  .wd-shelf-track {
    grid-auto-columns: 31%;
    gap: 10px;
  }
  .wd-shelf-btn {
    display: none;
  }
}

/* =========================================================
   Drama Poster Card (.card — 目标站 .kart 风格：3:4 封面 + 左下集数角标 + 2行标题)
   ========================================================= */
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  color: var(--text);
  scroll-snap-align: start;
}

.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.card:hover .card-poster img {
  transform: scale(1.05);
}

.card-eps {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 8px 2px 0;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.16s ease;
}

.card:hover .card-title {
  color: var(--accent);
}

.card-meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .card-title {
    font-size: 13px;
  }
  .card-eps {
    left: 6px;
    bottom: 6px;
    font-size: 10.5px;
    padding: 2px 6px;
  }
}

/* =========================================================
   Grids: 7-col Category Grid (42/page) & 6-col Related Grid (12/section)
   ========================================================= */
.wd-grid-7,
.modou-grid-5 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px 14px;
}

.wd-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
}

@media (max-width: 1024px) {
  .wd-grid-7,
  .modou-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .wd-grid-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wd-grid-7,
  .modou-grid-5,
  .wd-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

/* =========================================================
   Home FAQ (.wd-faq — 极简暗色原生 details)
   ========================================================= */
.wd-faq {
  max-width: 860px;
  margin: 44px auto 12px;
}

.wd-faq h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.wd-faq details {
  border-bottom: 1px solid var(--border);
}

.wd-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.wd-faq summary::-webkit-details-marker {
  display: none;
}

.wd-faq summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.wd-faq details[open] summary::after {
  content: "−";
  color: var(--accent);
}

.wd-faq details p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =========================================================
   Breadcrumb, Filter Bar & Pagination
   ========================================================= */
.wd-breadcrumb,
.modou-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.wd-breadcrumb a:hover,
.modou-breadcrumb a:hover {
  color: var(--accent);
}

.wd-breadcrumb [aria-current="page"],
.modou-breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.modou-filter-bar {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modou-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.modou-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}

.modou-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

/* =========================================================
   Detail Page (.wd-detail-hero + .wd-ep-grid)
   ========================================================= */
.wd-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
}

.wd-detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.42);
  transform: scale(1.12);
  pointer-events: none;
}

.wd-detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 30, 0.78) 0%, rgba(15, 23, 30, 0.88) 100%);
  pointer-events: none;
}

.wd-detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.wd-detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wd-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-detail-info h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.wd-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.wd-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.wd-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.wd-detail-actions .btn-primary {
  min-height: 44px;
  padding: 0 26px;
  font-size: 15px;
}

.wd-detail-actions .btn-outline-light {
  min-height: 44px;
}

.wd-detail-desc-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.wd-detail-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--body);
}

.modou-ep-grid,
.wd-ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.modou-ep-btn,
.wd-ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.modou-ep-btn:hover,
.wd-ep-btn:hover {
  border-color: var(--accent);
  color: #ffffff;
}

.modou-ep-btn.is-active,
.wd-ep-btn.is-active,
.modou-ep-btn.play-ep--active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
}

.modou-ep-btn[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .wd-detail-hero {
    padding: 18px;
  }
  .wd-detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    text-align: center;
  }
  .wd-detail-cover {
    width: 46vw;
    max-width: 220px;
  }
  .wd-detail-meta,
  .wd-detail-tags {
    justify-content: center;
  }
  .wd-detail-actions {
    justify-content: center;
  }
  .wd-detail-actions .btn-primary {
    width: 100%;
  }
  .wd-detail-desc-label,
  .wd-detail-desc {
    text-align: left;
  }
  .modou-ep-grid,
  .wd-ep-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

/* =========================================================
   Play Page (.wd-play-layout — 桌面左 9:16 竖屏播放器 + 右选集/简介)
   ========================================================= */
.wd-play-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}

.wd-player-col {
  position: sticky;
  top: 78px;
}

.modou-player-stage,
.wd-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.play-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-player .dplayer-video,
.play-player .dplayer {
  width: 100%;
  height: 100%;
}

.play-player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.play-player-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--gradient-brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(26, 152, 255, 0.45);
}

.modou-player-stage.is-playing .play-player-cover,
.modou-player-stage.is-playing .play-player-center {
  opacity: 0;
  pointer-events: none;
}

.wd-unmute-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(26, 152, 255, 0.72);
  background: rgba(15, 23, 30, 0.86);
  color: #f2f2f7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.wd-unmute-btn:hover {
  background: rgba(26, 152, 255, 0.28);
  border-color: #00d2c6;
  color: #ffffff;
}

.wd-unmute-btn:active {
  transform: scale(0.97);
}

.wd-play-info-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wd-play-head h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.wd-play-ep-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.wd-play-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.wd-play-meta a {
  color: var(--accent);
  font-weight: 600;
}

.wd-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wd-play-actions .btn-outline-light {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

.play-ep-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.play-ep-grid .modou-ep-btn {
  min-height: 38px;
  padding: 4px;
  font-size: 13px;
  background: var(--surface);
}

.wd-play-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--body);
}

@media (max-width: 1120px) {
  .play-ep-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .wd-play-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wd-player-col {
    position: static;
  }
  .modou-player-stage,
  .wd-player-stage {
    max-width: 420px;
    max-height: 72vh;
  }
  .play-ep-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* =========================================================
   User Center & Setting Pages
   ========================================================= */
.wd-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}

.wd-user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wd-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
}

.wd-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-user-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* Setting Page */
.modou-settings-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.modou-settings-head {
  margin-bottom: 20px;
}

.modou-settings-head h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.modou-settings-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.modou-settings-stack {
  display: grid;
  gap: 18px;
}

.modou-settings-card-title {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--row-line);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.modou-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.modou-avatar-preview {
  position: relative;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: block;
}

.modou-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modou-avatar-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 0;
  background: rgba(15, 23, 30, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modou-avatar-preview:hover .modou-avatar-overlay {
  opacity: 1;
}

.modou-avatar-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.modou-field-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.modou-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.modou-nickname-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.modou-text-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.modou-text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 152, 255, 0.2);
}

.modou-settings-list {
  display: flex;
  flex-direction: column;
}

.modou-settings-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--body);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.modou-settings-action:hover {
  background: rgba(255, 255, 255, 0.04);
}

.modou-settings-action + .modou-settings-action {
  border-top: 1px solid var(--row-line);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.modou-settings-action-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modou-settings-action-main strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.modou-settings-action:hover .modou-settings-action-main strong {
  color: var(--accent);
}

.modou-settings-action-main small {
  font-size: 13px;
  color: var(--text-muted);
}

.modou-settings-trailing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.modou-settings-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(26, 152, 255, 0.16);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .modou-nickname-row {
    flex-direction: column;
    align-items: stretch;
  }
  .modou-nickname-row .btn-primary {
    width: 100%;
  }
}

/* =========================================================
   Legacy Secondary Pages Dark Theme Overrides (history/collect/richtext)
   ========================================================= */
.history-page,
.collect-page,
.richtext-page,
.info-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  color: var(--text);
  background: transparent !important;
}

.history-title,
.collect-title,
.content-title {
  color: var(--text) !important;
}

.history-desc,
.collect-desc,
.content-subtitle {
  color: var(--text-muted) !important;
}

.richtext-card,
.content-card,
.history-confirm-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--body) !important;
  border-radius: 16px !important;
}

.history-clear-btn {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}

.history-clear-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* =========================================================
   Footer
   ========================================================= */
.wd-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #0b1117;
  padding: 34px 16px 38px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.wd-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}

.wd-footer-links a {
  color: var(--body);
  font-size: 13.5px;
  transition: color 0.16s ease;
}

.wd-footer-links a:hover {
  color: var(--accent);
}

.wd-footer-copy {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* =========================================================
   >>> auth-dialog-restyle (F15 — WatchDramaFree uye.css 深蓝黑弹窗重绘)
   ========================================================= */
html body #loginDialog,
html body #registerDialog,
html body #coinDialog,
html body #vipDialog {
  --ad-card: #1a242f;
  --ad-border: #2c3a49;
  --ad-title: #f2f2f7;
  --ad-text: #9b9bab;
  --ad-field: #0f171e;
  --ad-fborder: #2c3a49;
  --ad-primary: #1a98ff;
  --ad-grad: linear-gradient(90deg, #1a98ff, #00d2c6);
  --ad-onp: #ffffff;
  --ad-ring: rgba(26, 152, 255, 0.22);
  --ad-rcard: 18px;
  --ad-rbtn: 8px;
  --ad-rfield: 12px;
  --ad-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
  --ad-mask: rgba(15, 23, 30, 0.72);
  --ad-ph: #7d8699;
  --ad-err: #ff5c77;
  --ad-link: #1a98ff;
  --ad-cb: #3b4b5e;
  --ad-icon: #9b9bab;
  --ad-closebg: #0f171e;
  --ad-btnshadow: 0 8px 20px rgba(26, 152, 255, 0.25);
}

html body #loginDialog.app-dialog-mask,
html body #registerDialog.app-dialog-mask,
html body #coinDialog.coin-dialog-mask,
html body #vipDialog.vip-dialog-mask {
  background: var(--ad-mask);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

html body #loginDialog .login-dialog-card,
html body #registerDialog .register-dialog-card,
html body #coinDialog .coin-dialog-card,
html body #vipDialog .vip-dialog-card {
  position: relative;
  box-sizing: border-box;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px 24px;
  gap: 16px;
  background: var(--ad-card);
  background-image: none;
  color: var(--ad-title);
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-rcard);
  box-shadow: var(--ad-shadow);
  font-size: 14px;
  line-height: 1.5;
}

html body #loginDialog .login-dialog-close,
html body #registerDialog .register-dialog-close,
html body #coinDialog .coin-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: 1px solid var(--ad-border);
  border-radius: 50%;
  background: var(--ad-closebg);
  color: var(--ad-text);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

html body #loginDialog .login-dialog-close:hover,
html body #registerDialog .register-dialog-close:hover,
html body #coinDialog .coin-dialog-close:hover {
  color: #ffffff;
  border-color: var(--ad-primary);
}

html body #loginDialog .login-dialog-close svg,
html body #registerDialog .register-dialog-close svg,
html body #coinDialog .coin-dialog-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

html body #loginDialog .login-dialog-head,
html body #registerDialog .register-dialog-head {
  display: block;
  margin: 0;
  padding: 0 38px 0 0;
  background: none;
}

html body #loginDialog .login-dialog-title,
html body #registerDialog .register-dialog-title,
html body #coinDialog .coin-dialog-title,
html body #vipDialog .vip-dialog-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ad-title);
}

html body #loginDialog .login-dialog-desc,
html body #registerDialog .register-dialog-desc,
html body #coinDialog .coin-dialog-desc,
html body #vipDialog .vip-dialog-desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ad-text);
}

html body #loginDialog .login-dialog-form,
html body #registerDialog .register-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 0;
}

html body #loginDialog .login-dialog-field-group,
html body #registerDialog .register-dialog-field-group {
  display: grid;
  gap: 8px;
}

html body #loginDialog .login-dialog-label,
html body #registerDialog .register-dialog-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ad-title);
}

html body #loginDialog .login-dialog-field,
html body #registerDialog .register-dialog-field {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  background: var(--ad-field);
  border: 1px solid var(--ad-fborder);
  border-radius: var(--ad-rfield);
  transition: border-color 0.15s, box-shadow 0.15s;
}

html body #loginDialog .login-dialog-field:focus-within,
html body #registerDialog .register-dialog-field:focus-within {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 3px var(--ad-ring);
}

html body #loginDialog .login-dialog-field.is-error,
html body #registerDialog .register-dialog-field.is-error {
  border-color: var(--ad-err);
}

html body #loginDialog .login-dialog-input,
html body #registerDialog .register-dialog-input {
  min-width: 0;
  flex: 1;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ad-title);
  font-size: 14.5px;
  line-height: 1.5;
}

html body #loginDialog .login-dialog-input::placeholder,
html body #registerDialog .register-dialog-input::placeholder {
  color: var(--ad-ph);
}

html body #loginDialog .login-dialog-error,
html body #registerDialog .register-dialog-error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ad-err);
}

html body #loginDialog .login-dialog-submit,
html body #registerDialog .register-dialog-submit,
html body #coinDialog .coin-dialog-cta,
html body #vipDialog .vip-dialog-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  border: 0;
  border-radius: var(--ad-rbtn);
  background: var(--ad-grad);
  color: var(--ad-onp);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: var(--ad-btnshadow);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.16s ease, transform 0.1s ease;
}

html body #loginDialog .login-dialog-submit:hover,
html body #registerDialog .register-dialog-submit:hover,
html body #coinDialog .coin-dialog-cta:hover,
html body #vipDialog .vip-dialog-cta:hover {
  opacity: 0.92;
}

html body #loginDialog .login-dialog-submit:disabled,
html body #registerDialog .register-dialog-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

html body #loginDialog .login-dialog-legal,
html body #registerDialog .register-dialog-legal {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ad-text);
  text-align: center;
}

html body #loginDialog .login-dialog-legal a,
html body #registerDialog .register-dialog-legal a,
html body #loginDialog .login-dialog-switch a,
html body #registerDialog .register-dialog-switch a,
html body #registerDialog .register-dialog-login a,
html body #registerDialog .register-dialog-login-link,
html body #registerDialog .auth-bind-agreement a {
  color: var(--ad-link) !important;
  text-decoration: none;
}

html body #registerDialog .register-dialog-login a:hover,
html body #registerDialog .register-dialog-login-link:hover,
html body #loginDialog .login-dialog-legal a:hover,
html body #registerDialog .register-dialog-legal a:hover {
  color: #00d2c6 !important;
}

html body #registerDialog .register-dialog-login {
  color: var(--ad-text);
  text-align: center;
  font-size: 13px;
}

html body #registerDialog .register-dialog-field-group {
  display: grid;
  gap: 8px;
}

html body #registerDialog .register-dialog-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ad-title);
}

html body #registerDialog .register-dialog-field {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  background: var(--ad-field);
  border: 1px solid var(--ad-fborder);
  border-radius: var(--ad-rfield);
  transition: border-color 0.15s, box-shadow 0.15s;
}

html body #registerDialog .register-dialog-field:focus-within {
  border-color: var(--ad-primary);
  box-shadow: 0 0 0 3px var(--ad-ring);
}

html body #registerDialog .register-dialog-input {
  min-width: 0;
  flex: 1;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ad-title);
  font-size: 14.5px;
  line-height: 1.5;
}

html body #registerDialog .register-dialog-input::placeholder {
  color: var(--ad-ph);
}

html body #registerDialog .register-dialog-error,
html body #registerDialog .register-agreement-error,
html body #registerDialog .register-summary-error {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ad-err);
}

html body #loginDialog .auth-remember,
html body #loginDialog .auth-bind-agreement,
html body #registerDialog .auth-remember,
html body #registerDialog .auth-bind-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ad-text);
  cursor: pointer;
}

html body #loginDialog .auth-remember input,
html body #registerDialog .auth-bind-agreement input {
  accent-color: var(--ad-primary);
}
/* <<< auth-dialog-restyle */
