/* 浅色主题对比度修补：只覆盖 light，不改 Gemini 暗色体系。 */

/* 浅底页面标题与工具文案用深色，避免残留白字。详情页英雄区除外，那一块始终是深色底。 */
html[data-theme="light"] .cat-head h1,
html[data-theme="light"] .cat-season-hd h2,
html[data-theme="light"] .week-page .week-head h1,
html[data-theme="light"] .rank-page .rank-hero h1,
html[data-theme="light"] .upd-hero h1,
html[data-theme="light"] .search-head h1,
html[data-theme="light"] .title-page .td-card h2,
html[data-theme="light"] .title-page .td-epsbox h2,
html[data-theme="light"] .title-page .floor-hd h2,
html[data-theme="light"] .sponsor-page h1,
html[data-theme="light"] .ads-page h1,
html[data-theme="light"] .play-heading,
html[data-theme="light"] .play-info-title,
html[data-theme="light"] .play-syn-hd,
html[data-theme="light"] .play-ep-hd strong,
html[data-theme="light"] .play-page .play-panel h3 {
  color: var(--text) !important;
}

/* 详情页英雄区始终是深色海报底，浅色主题也必须用浅字，否则标题看不见。 */
html[data-theme="light"] .td-hero,
html[data-theme="light"] .td-hero .td-info,
html[data-theme="light"] .td-hero .td-info h1 {
  color: #F8FAFC !important;
}
html[data-theme="light"] .td-hero .td-aka,
html[data-theme="light"] .td-hero .td-staff,
html[data-theme="light"] .td-hero .td-staff .k {
  color: #CBD5E1 !important;
}
html[data-theme="light"] .title-page .td-hero button.td-fav,
html[data-theme="light"] .title-page .td-hero button.td-listbtn {
  background: rgba(255,255,255,.16) !important;
  color: #F8FAFC !important;
}
html[data-theme="light"] .title-page .td-hero button.td-fav:hover,
html[data-theme="light"] .title-page .td-hero button.td-listbtn:hover {
  background: rgba(255,255,255,.26) !important;
  color: #FFFFFF !important;
}

html[data-theme="light"] .cat-chip:hover,
html[data-theme="light"] .cat-season-item:hover,
html[data-theme="light"] .cat-card:hover,
html[data-theme="light"] .cat-card:hover .cat-name,
html[data-theme="light"] .cat-pg:hover,
html[data-theme="light"] .week-page .day-tab:hover,
html[data-theme="light"] .rank-page .rank-card:hover,
html[data-theme="light"] .upd-tabs a:hover,
html[data-theme="light"] .upd-card:hover,
html[data-theme="light"] a.search-chip:hover,
html[data-theme="light"] .search-side-box li a:hover,
html[data-theme="light"] .title-page button.td-line:hover,
html[data-theme="light"] .title-page .eps a:hover,
html[data-theme="light"] .auth-close:hover,
html[data-theme="light"] .auth-privacy-link:hover,
html[data-theme="light"] .sponsor-page a.sponsor-row:hover,
html[data-theme="light"] .play-back:hover,
html[data-theme="light"] .play-prev:hover {
  color: var(--text) !important;
}

html[data-theme="light"] .cat-chip:hover,
html[data-theme="light"] a.search-chip:hover,
html[data-theme="light"] .cat-pg:hover {
  background: rgba(15, 23, 42, .06) !important;
}

html[data-theme="light"] .title-page button.td-line,
html[data-theme="light"] .title-page .eps a,
html[data-theme="light"] .title-page .eps span {
  background: var(--surface2);
  color: var(--text);
}
html[data-theme="light"] .title-page button.td-line:hover,
html[data-theme="light"] .title-page .eps a:hover {
  background: color-mix(in srgb, var(--acc) 16%, var(--surface2));
}
html[data-theme="light"] .title-page .eps a.now,
html[data-theme="light"] .title-page button.td-line.on {
  background: var(--acc);
  color: var(--acc-text) !important;
}

html[data-theme="light"] .auth-close:hover {
  background: rgba(15, 23, 42, .08);
}
html[data-theme="light"] a.appdl-btn.is-ios,
html[data-theme="light"] button.appdl-btn.is-ios {
  background: #23262e;
  color: #fff !important;
}

/* 登录/注册输入框：浅色占位符对比度，且不要用全局 h1 深色去盖深色卡片。浅色下 auth-card 是白底。 */
html[data-theme="light"] .login-field input::placeholder,
html[data-theme="light"] .auth-page .auth-card .login-field input::placeholder,
html[data-theme="light"] .login-card .login-field input::placeholder {
  color: #475569 !important;
  opacity: 1;
}
html[data-theme="light"] .auth-page .auth-card .login-field input,
html[data-theme="light"] .me-page .auth-form .login-field input,
html[data-theme="light"] .login-card .login-field input {
  padding-left: 46px;
  color: #0F172A;
}
html[data-theme="light"] .login-field .field-ico {
  color: #475569;
}
html[data-theme="light"] .login-field:focus-within .field-ico {
  color: #C2410C;
}
html[data-theme="light"] .auth-page .auth-card h1 {
  color: #0F172A !important;
}
html[data-theme="light"] .auth-page .auth-card .lead,
html[data-theme="light"] .auth-page .auth-card .auth-note,
html[data-theme="light"] .auth-page .auth-card .auth-links a,
html[data-theme="light"] .auth-page .auth-card .auth-textbtn,
html[data-theme="light"] .auth-page .auth-card .auth-privacy-agree {
  color: #475569;
}
