:root {
  --bg: #f5f7fb; --panel: #fff; --text: #1b2540; --muted: #5e6883; --border: #d9dfea;
  --accent: #121f3d; --link: #2e4a86; --accent-text: #fff; --danger: #b00020; --warning: #b45309; --tag-genre: #be185d; --tag-country: #15803d; --tag-origin: #a16207; --tag-res: #0f766e; --tag-hdr: #8a5a34; --tag-lang: #7c3aed; --tag-codec: #2563a8; --tag-fps: #c2570c; --row-hover: #eef2f9; --row-sel: #dfe6f4;
  /* the Otteca blue (#121f3d) leads: buttons and logo in the light theme, the page itself in the dark one; links have a lighter blue of their own */
  /* one typeface, two text sizes (base and small) plus the page titles; one height for every control */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs: 15px; --fs-sm: 13px; --control-h: 32px; --radius: 6px; --page-w: 1200px;
  color-scheme: light; /* what the browser draws itself (scroll bars, ticks, open lists) follows the theme */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121f3d; --panel: #1a2b50; --text: #e8ecf5; --muted: #93a0bc; --border: #2a3d66;
    --accent: #6f9bff; --link: #8fb0ff; --accent-text: #0b1426; --danger: #ff6b81; --warning: #f0a43a; --tag-genre: #f472b6; --tag-country: #6ee7a0; --tag-origin: #fbbf24; --tag-res: #4fd1c5; --tag-hdr: #c9966a; --tag-lang: #b794f4; --tag-codec: #7fb2e8; --tag-fps: #f2a15a; --row-hover: #213461; --row-sel: #263e73;
  }
}
/* The public pages select the dark administration palette by default. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121f3d; --panel: #1a2b50; --text: #e8ecf5; --muted: #93a0bc; --border: #2a3d66;
    --accent: #6f9bff; --link: #8fb0ff; --accent-text: #0b1426; --danger: #ff6b81; --warning: #f0a43a; --tag-genre: #f472b6; --tag-country: #6ee7a0; --tag-origin: #fbbf24; --tag-res: #4fd1c5; --tag-hdr: #c9966a; --tag-lang: #b794f4; --tag-codec: #7fb2e8; --tag-fps: #f2a15a; --row-hover: #213461; --row-sel: #263e73;
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.65 var(--font); background: var(--bg); color: var(--text); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.skip { position: absolute; top: -80px; padding: 8px; background: var(--panel); }
.skip:focus { top: 8px; }
header { background: var(--panel); border-bottom: 1px solid var(--border); }
.bar, main, footer { width: min(100% - 40px, 1000px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); font-size: 20px; font-weight: 650; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { font-size: 13px; text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); font-weight: 650; }
main { padding-block: 64px; min-height: calc(100svh - 180px); }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.035em; max-width: 760px; margin: 16px 0 24px; }
h2 { font-size: 21px; line-height: 1.3; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 710px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 40px; }
.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; }
.button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.button:hover { border-color: var(--link); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 32px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.panel p:last-child { margin-bottom: 0; }
.panel p, .note { color: var(--muted); }
section + section { margin-top: 32px; }
.note { font-size: 13px; }
.support { max-width: 760px; }
details { padding: 16px 0; border-bottom: 1px solid var(--border); }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }
li + li { margin-top: 8px; }
footer { padding-block: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
@media(max-width: 680px) { .grid { grid-template-columns: 1fr; } main { padding-block: 40px; } .bar { align-items: flex-start; flex-direction: column; gap: 12px; } .panel { padding: 20px; } }
