:root { color-scheme: light; font: 16px/1.6 system-ui, sans-serif; color: #172b21; background: #f2f7f4; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 900px; margin: auto; padding: 24px; }
.page-header, .brand, .actions, footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-header { justify-content: space-between; }
.brand { color: inherit; text-decoration: none; font-size: 20px; font-weight: 750; }
nav { display: flex; gap: 4px; }
h1 { margin: 28px 0 8px; font-size: clamp(28px, 5vw, 40px); line-height: 1.2; }
h2 { font-size: 23px; line-height: 1.3; }
.lead { margin-top: 0; max-width: 70ch; }
.player-card, .instructions { background: #fff; padding: 24px; margin: 24px 0; border: 1px solid #c7d4cd; border-radius: 16px; }
video { display: block; width: 100%; height: min(62vh, 560px); background: #071814; object-fit: contain; border-radius: 8px; }
.actions { margin: 16px 0; }
button, .download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #006a39; border-radius: 8px; background: #006a39; color: #fff; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
button.secondary { background: #fff; color: #172b21; border-color: #536c5e; }
nav button { padding: 8px 12px; background: #fff; color: #172b21; border-color: #536c5e; }
nav button[aria-pressed="true"] { background: #006a39; color: #fff; }
button:disabled { opacity: .65; cursor: not-allowed; }
a { color: #006a39; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #c85b00; outline-offset: 3px; }
.loop-option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: #006a39; }
.status { padding: 12px; border-radius: 8px; background: #edf8f1; }
.status.error { background: #fff2ef; color: #9c2020; }
.parameters, .note, footer { font-size: 14px; }
.parameters { overflow-wrap: anywhere; }
.note { padding: 12px; border-left: 3px solid #006a39; background: #f2f7f4; }
li { margin: 8px 0; }
footer { justify-content: space-between; padding-bottom: 24px; }
html[lang="pl"] .lang-en, html[lang="en"] .lang-pl { display: none; }
@media (max-width: 480px) {
  main { padding: 16px; }
  .player-card, .instructions { padding: 16px; }
  .actions button, .download { width: 100%; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 52px; height: 52px; }
}
