/* JakSky v222: scoped readability & mocha UI fixes; no image/handler changes */
:root { --jk222-cream:#f6ebe0; --jk222-cream-soft:#dfc9b8; --jk222-mocha:#5a463c; --jk222-line:#b99d87; --jk222-ink:#30241e; }
/* 1) Age gate X: loaded last, overrides blue #5587b3 legacy V168 rule. */
html body #agePopup .ageBox > button.jakAgeCloseV168,
html body #agePopup .ageBox > button.closeX.jakAgeCloseV168 {
  border:1px solid var(--jk222-line) !important;
  background:#5a463c !important;
  background-image:none !important;
  color:var(--jk222-cream) !important;
  -webkit-text-fill-color:var(--jk222-cream) !important;
  outline:none;
  box-shadow:0 4px 14px rgba(31,18,12,.20) !important;
}
html body #agePopup .ageBox > button.jakAgeCloseV168 svg,
html body #agePopup .ageBox > button.jakAgeCloseV168 svg path {
  stroke:var(--jk222-cream) !important;
  color:var(--jk222-cream) !important;
  fill:none !important;
}
html body #agePopup .ageBox > button.jakAgeCloseV168:hover,
html body #agePopup .ageBox > button.jakAgeCloseV168:active {
  background:#6b5448 !important; border-color:#e0c5ae !important;
}
html body #agePopup .ageBox > button.jakAgeCloseV168:focus-visible {
  outline:2px solid #f1d9c4 !important; outline-offset:3px !important;
}
/* 2) "Video Terbaru" title/subtitle: retain contrast independent of old animation/gradient. */
html body .jak222-latest-title {
  opacity:1 !important; filter:none !important;
  color:#34271f !important; -webkit-text-fill-color:#34271f !important;
  text-shadow:none !important;
}
html body .jak222-latest-subtitle {
  opacity:1 !important; filter:none !important;
  color:#49382e !important; -webkit-text-fill-color:#49382e !important;
  text-shadow:none !important;
}
html body .jak218-latest-icon,
html body .jak217-latest-icon,
html body .jak222-latest-icon {
  opacity:1 !important; color:#a46f4e !important;
  -webkit-text-fill-color:#a46f4e !important;
  stroke:currentColor !important; filter:none !important;
}
/* 3) Public profile: fix invisible username on near-black panel; keep special role badges. */
html body #publicProfileModal .publicProfileBox {
  color:#f4e7d8 !important;
}
html body #publicProfileModal .publicProfileBox .jakPrivateTitleV26,
html body #publicProfileModal .publicProfileBox .jak222-profile-name,
html body #publicProfileModal .publicProfileBox #publicProfileName,
html body #publicProfileModal .publicProfileBox .publicProfileName {
  opacity:1 !important; filter:none !important;
  color:#fff1e3 !important;
  -webkit-text-fill-color:#fff1e3 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.28) !important;
}
html body #publicProfileModal .publicProfileBox > button.publicProfileClose {
  background:#5a463c !important; border:1px solid #b99d87 !important;
  color:#fff2e4 !important; -webkit-text-fill-color:#fff2e4 !important;
  box-shadow:none !important;
}
html body #publicProfileModal .publicProfileBox > button.publicProfileClose svg,
html body #publicProfileModal .publicProfileBox > button.publicProfileClose svg path {
  stroke:#fff2e4 !important; fill:none !important;
}
/* 4) Night mode: warm mocha, consistent text/surfaces. Only existing dark theme states. */
html[data-jak-theme="dark"] body,
html[data-theme="dark"] body,
html.dark-mode body,
html.dark body,
html body.dark-mode,
html body.dark,
html body[data-theme="dark"] {
  --jk222-ink:#f4e6d7;
}
html[data-jak-theme="dark"] body .jak222-latest-title,
html[data-theme="dark"] body .jak222-latest-title,
html.dark-mode body .jak222-latest-title,
html.dark body .jak222-latest-title,
html body.dark-mode .jak222-latest-title,
html body.dark .jak222-latest-title,
html body[data-theme="dark"] .jak222-latest-title {
  color:#fff0df !important; -webkit-text-fill-color:#fff0df !important;
}
html[data-jak-theme="dark"] body .jak222-latest-subtitle,
html[data-theme="dark"] body .jak222-latest-subtitle,
html.dark-mode body .jak222-latest-subtitle,
html.dark body .jak222-latest-subtitle,
html body.dark-mode .jak222-latest-subtitle,
html body.dark .jak222-latest-subtitle,
html body[data-theme="dark"] .jak222-latest-subtitle {
  color:#e0c6b4 !important; -webkit-text-fill-color:#e0c6b4 !important;
}
html[data-jak-theme="dark"] body .jak222-video-card,
html[data-theme="dark"] body .jak222-video-card,
html.dark-mode body .jak222-video-card,
html.dark body .jak222-video-card,
html body.dark-mode .jak222-video-card,
html body.dark .jak222-video-card,
html body[data-theme="dark"] .jak222-video-card {
  background:#574439 !important;
  border-color:#b19783 !important;
  color:#fff0e3 !important;
  box-shadow:0 6px 20px rgba(16,10,8,.15) !important;
}
html[data-jak-theme="dark"] body .jak222-video-card :is(.videoInfo,.video-info,.card-body,.videoContent,.video-content,.video-meta,.videoMeta),
html[data-theme="dark"] body .jak222-video-card :is(.videoInfo,.video-info,.card-body,.videoContent,.video-content,.video-meta,.videoMeta),
html body.dark-mode .jak222-video-card :is(.videoInfo,.video-info,.card-body,.videoContent,.video-content,.video-meta,.videoMeta) {
  color:#fff0e3 !important; background:#574439 !important;
}
html[data-jak-theme="dark"] body .jak222-video-card :is(h2,h3,h4),
html[data-theme="dark"] body .jak222-video-card :is(h2,h3,h4),
html body.dark-mode .jak222-video-card :is(h2,h3,h4) {
  color:#fff0e3 !important; -webkit-text-fill-color:#fff0e3 !important;
}
@media (prefers-reduced-motion:reduce) {
  html body #agePopup .jakAgeCloseV168 {transition:none !important;}
}
