/* Colour schemes. The design is dark by default; <html data-theme="light">
   or data-theme="auto" (follows the visitor's system) switch tokens here.
   Areas drawn over artwork (spotlight, details hero, player, card hover)
   keep dark tokens in every scheme so text over images stays readable. */

:root[data-theme="light"]{
  color-scheme:light;
  --bg:#f6f6fa; --bg2:#ffffff; --panel:#ffffff; --panel2:#eeeef5;
  --line:#dcdce6; --line2:#c9c9d6;
  --txt:#16161f; --txt-soft:#2e2e3d; --mut:#4a4a5e; --dim:#5c5c72;
  --ok-fg:#14532d; --err-fg:#9f1239; --warn-fg:#854d0e; --code-fg:#166534;
  --topbar:rgba(255,255,255,.9); --bottombar:rgba(255,255,255,.95);
}
@media (prefers-color-scheme: light){
  :root[data-theme="auto"]{
    color-scheme:light;
    --bg:#f6f6fa; --bg2:#ffffff; --panel:#ffffff; --panel2:#eeeef5;
    --line:#dcdce6; --line2:#c9c9d6;
    --txt:#16161f; --txt-soft:#2e2e3d; --mut:#4a4a5e; --dim:#5c5c72;
    --ok-fg:#14532d; --err-fg:#9f1239; --warn-fg:#854d0e; --code-fg:#166534;
    --topbar:rgba(255,255,255,.9); --bottombar:rgba(255,255,255,.95);
  }
}

/* Always-dark areas over artwork. */
.spot,.det-hero,.player{
  --bg:#0a0a0f; --panel:#14141f; --panel2:#1a1a28; --line:#262637; --line2:#32324a;
  --txt:#f4f4f8; --txt-soft:#d3d3e2; --mut:#a7a7bd; --dim:#8a8aa3;
  color:var(--txt);
}
@media (min-width:761px){
  .card .hover{--txt-soft:#d3d3e2}
}
/* Sharp light-on-light edges: give cards and panels a hairline. */
:root[data-theme="light"] .card .thumb,:root[data-theme="light"] .side-box,:root[data-theme="light"] .top10{box-shadow:0 1px 2px rgba(20,20,40,.06)}
