/* Barve so iste kot v programu (docs/demo.html): svetla in temna tema, poudarek #C8285A / #FF6B95. */
:root {
  --bg: #F4F5F7; --side: #ECEEF2; --surface: #FFFFFF; --ink: #16181D; --ink2: #3D434F; --muted: #5A6170;
  --line: #DDE1E7; --line2: #EEF0F3; --accent: #C8285A; --accent-ink: #8A1239; --accent-tint: #FBE7EE; --on-accent: #FFFFFF;
  --sel: #E9EDF5; --playrow: #FDF3F6; --std-bg: #E6E9FB; --std-ink: #2E3A9E; --lat-bg: #FBE7EE; --lat-ink: #8A1239;
  --oth-bg: #E3F4EF; --oth-ink: #0F5C4E; --shadow: 0 18px 50px rgba(22, 24, 29, .14); --input: #FFFFFF;
  --mac-sel: #0A64D8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111216; --side: #17191E; --surface: #1C1E24; --ink: #F1F2F5; --ink2: #D0D4DC; --muted: #A3A9B6;
    --line: #2C2F37; --line2: #262930; --accent: #FF6B95; --accent-ink: #FFB3C8; --accent-tint: #3A1C27; --on-accent: #16181D;
    --sel: #262A33; --playrow: #2A1F27; --std-bg: #26304F; --std-ink: #C3CEFF; --lat-bg: #4A1E2C; --lat-ink: #FFB3C8;
    --oth-bg: #173A33; --oth-ink: #9BE3D2; --shadow: 0 18px 50px rgba(0, 0, 0, .5); --input: #23262E;
    --mac-sel: #2F7BEA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111216; --side: #17191E; --surface: #1C1E24; --ink: #F1F2F5; --ink2: #D0D4DC; --muted: #A3A9B6;
  --line: #2C2F37; --line2: #262930; --accent: #FF6B95; --accent-ink: #FFB3C8; --accent-tint: #3A1C27; --on-accent: #16181D;
  --sel: #262A33; --playrow: #2A1F27; --std-bg: #26304F; --std-ink: #C3CEFF; --lat-bg: #4A1E2C; --lat-ink: #FFB3C8;
  --oth-bg: #173A33; --oth-ink: #9BE3D2; --shadow: 0 18px 50px rgba(0, 0, 0, .5); --input: #23262E;
  --mac-sel: #2F7BEA;
  color-scheme: dark;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html.i18n-pending body { visibility: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .35em; margin: 0 .08em;
  font: 600 .82em/1.6 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; text-align: center;
  color: var(--ink2); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--surface); border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Glava ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 16px; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }
/* Izbira teme in jezika (segmentna gumba kot v macOS). */
.seg { display: inline-flex; padding: 2px; background: var(--side); border: 1px solid var(--line); border-radius: 8px; flex: none; }
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; padding: 6px 10px; border-radius: 6px;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme button { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; }
.theme svg { display: block; }
.header-row .theme { margin-left: -12px; }
@media (max-width: 640px) {
  .site-nav { display: none; } .theme { margin-left: auto; } .header-row .theme { margin-left: auto; }
  .header-row { gap: 10px; } .brand span { font-size: 15px; }
}
@media (max-width: 400px) { .brand span { font-size: 14px; line-height: 1.15; } }

/* ---------- Gumbi ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650; font-size: 16px;
  border-radius: 12px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-primary[aria-disabled="true"] { background: var(--side); color: var(--muted); box-shadow: none; cursor: default; border: 1px solid var(--line); }
.btn-quiet { color: var(--ink2); font-weight: 600; text-decoration: none; padding: 10px 4px; }
.btn-quiet:hover { color: var(--accent-ink); }

/* Gumbi v slogu programa (macOS) */
.mbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05); white-space: nowrap;
}
button.mbtn { cursor: pointer; }
button.mbtn:hover { background: var(--side); }
.mbtn.accent-outline { border-color: var(--accent); color: var(--accent-ink); }
.mbtn.fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.round:hover { background: var(--side); }

/* ---------- Uvod ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.032em; font-weight: 750;
  text-wrap: balance;
}
.lead { margin-top: 22px; font-size: 1.18rem; line-height: 1.55; color: var(--ink2); max-width: 34em; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 42em; }
@media (max-width: 920px) {
  .hero { padding: 44px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Tempo – interaktivni preizkus */
.instrument {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 20px;
  box-shadow: var(--shadow);
}
.inst-songs { display: flex; flex-wrap: wrap; gap: 6px; }
.inst-songs button {
  appearance: none; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2);
  font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.inst-songs button small { color: var(--muted); font-size: 12px; }
.inst-songs button[aria-checked="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-ink); }
.inst-songs button[aria-checked="true"] small { color: inherit; }
.inst-readout { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin: 22px 0 14px; }
.inst-rate {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;
  font-size: clamp(3.4rem, 2.4rem + 3.6vw, 5.2rem); font-weight: 750; line-height: 1; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.beat-dot {
  grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; background: var(--line);
  transition: background-color 60ms linear, transform 60ms linear;
}
.beat-dot.on { background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.beat-dot.on.down { background: var(--accent); transform: scale(1.25); }
.inst-detail { grid-column: 2; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }

.lanes { display: grid; gap: 10px; margin: 6px 0 18px; }
.lane { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.lane-label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.lane svg { width: 100%; height: 56px; display: block; background: var(--bg); border-radius: 10px; }
.lane-note { grid-column: 2; font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 1.4em; }
.beat { fill: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.beat.down { fill: var(--accent); }
.beat.lit { fill: var(--ink); }
.bar-num { fill: var(--muted); font: 600 10px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.playhead { stroke: var(--ink); stroke-width: 1.5; opacity: .5; }
.pitch-wave { fill: none; stroke: var(--std-ink); stroke-width: 2; }
.pitch-ghost { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 3 4; opacity: .7; }
@media (max-width: 520px) {
  .instrument { padding: 18px 16px; border-radius: 16px; }
  .lane { grid-template-columns: 1fr; }
  .lane-note { grid-column: 1; }
  .lane-label { margin-bottom: 4px; }
}

.inst-controls { display: flex; align-items: center; gap: 12px; }
.inst-slider { flex: 1; display: block; position: relative; padding-bottom: 18px; }
.inst-slider input { width: 100%; margin: 0; accent-color: var(--accent); height: 28px; }
.ticks { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.inst-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inst-hint { margin-left: auto; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .inst-hint { margin-left: 0; width: 100%; } }

/* ---------- Razdelki ---------- */
.section-title { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 720; max-width: 20em; text-wrap: balance; }
.section-lead { margin-top: 14px; color: var(--ink2); max-width: 38em; }

.features { padding: 96px 0 40px; background: var(--surface); border-top: 1px solid var(--line); }
.features > .wrap:first-child { margin-bottom: 56px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center;
  padding-top: 48px; padding-bottom: 48px;
}
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); line-height: 1.15; letter-spacing: -.018em; font-weight: 700; }
.feature-copy > p { margin-top: 14px; color: var(--ink2); max-width: 32em; }
.ticks-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 32em; }
.ticks-list li { position: relative; padding-left: 26px; color: var(--ink2); font-size: 16px; }
.ticks-list li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.ticks-list b { color: var(--ink); font-weight: 650; }
.caption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
/* Okno z mapo potrebuje vso širino: besedilo nad njim v dveh stolpcih. */
.feature.wide { grid-template-columns: 1fr; gap: 36px; }
.feature.wide .feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
.feature.wide .feature-copy > p { grid-column: 1; }
.feature.wide .ticks-list { grid-column: 2; grid-row: 1 / 3; margin-top: 6px; }
.feature.wide .mw-body { grid-template-columns: 200px minmax(0, 1fr); min-height: 330px; }
@media (max-width: 920px) {
  .feature.wide .feature-copy { display: block; }
  .feature.wide .ticks-list { margin-top: 20px; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .feature.flip .feature-copy { order: 0; }
}

/* ---------- Posnetki programa (HTML) ---------- */
.mock-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--ink);
}
.features .mock-window { background: var(--bg); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip.std { background: var(--std-bg); color: var(--std-ink); }
.chip.lat { background: var(--lat-bg); color: var(--lat-ink); }
.chip.oth { background: var(--oth-bg); color: var(--oth-ink); }
.field {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 6px;
  background: var(--input); border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums;
}
.field.short { min-width: 64px; }
.field.select::after { content: "⌄"; margin-left: auto; padding-left: 10px; color: var(--muted); position: relative; top: -3px; }
.cb { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--input); display: inline-block; flex: none; position: relative; }
.cb.on { background: var(--accent); border-color: var(--accent); }
.cb.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Predvajalna vrstica */
.mock-player { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; align-items: center; padding: 16px 18px 10px; background: var(--surface); }
.mp-transport { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.tb { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.tb.big { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.mp-np { display: grid; gap: 2px; min-width: 0; }
.mp-np b { font-size: 14px; }
.mp-np span:not(.chip) { color: var(--muted); }
.mp-np .chip { justify-self: start; margin-top: 2px; }
.mp-tempo { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); }
.mp-tempo-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mp-tempo-top b { font: 700 22px/1 ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.mp-tempo-top span { color: var(--muted); font-size: 12px; }
.mp-track { position: relative; height: 4px; border-radius: 2px; background: var(--line); margin: 12px 0 10px; }
.mp-track span { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: 2px; }
.mp-track span::after { content: ""; position: absolute; right: -8px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .25); }
.mp-track.thin { flex: 1; margin: 0; height: 3px; }
.mp-track.thin span::after { width: 0; height: 0; box-shadow: none; }
.mp-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-timeline { display: flex; align-items: center; gap: 10px; padding: 8px 18px 14px; background: var(--surface); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .mock-player { grid-template-columns: auto minmax(0, 1fr); }
  .mp-tempo { grid-column: 1 / -1; }
}

/* Okno z mapo */
.mw-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--side); border-bottom: 1px solid var(--line); }
.mw-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mw-bar i:nth-child(1) { background: #FF5F57; } .mw-bar i:nth-child(2) { background: #FEBC2E; } .mw-bar i:nth-child(3) { background: #28C840; }
.mw-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 300px; }
.mw-side { background: var(--side); border-right: 1px solid var(--line); padding: 10px 8px; }
.mw-head { font-size: 11px; font-weight: 700; color: var(--muted); padding: 10px 8px 4px; }
.mw-head:first-child { padding-top: 2px; }
.mw-item { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.mw-item.sub { padding-left: 26px; }
.mw-item.selected { background: var(--mac-sel); color: #fff; }
.caret { width: 10px; font-size: 10px; color: var(--muted); margin-left: -4px; }
.ico-folder, .ico-list, .ico-speaker, .ico-scissors { width: 15px; height: 15px; flex: none; background: currentColor; opacity: .75; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-folder { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.ico-list { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h12M4 12h12M4 18h8M18 16v-6l3-1'/%3E%3C/svg%3E"); }
.ico-speaker { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16 9a4 4 0 0 1 0 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); opacity: 1; }
.ico-scissors { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='7' r='3'/%3E%3Ccircle cx='6' cy='17' r='3'/%3E%3Cpath d='M8.5 8.5 20 18M8.5 15.5 20 6'/%3E%3C/svg%3E"); width: 12px; height: 12px; }
.mw-item.selected .ico-speaker { color: #fff; }
tr.playing .ico-speaker, .now .ico-speaker { color: var(--accent); }
.mw-main { min-width: 0; background: var(--surface); }
.mw-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 0; }
.mw-toolbar.second { padding-bottom: 10px; justify-content: flex-start; }
.mw-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.mw-path b { color: var(--ink); }
.mw-path em { font-style: normal; color: var(--muted); margin-left: 6px; }
.mw-check { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); white-space: nowrap; }
.mw-select, .mw-search { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--input); color: var(--ink2); }
.mw-select::after { content: "⌄"; margin-left: 10px; position: relative; top: -3px; color: var(--muted); }
.mw-search { flex: 1; max-width: 260px; color: var(--muted); }
.mw-search::before { content: ""; width: 12px; height: 12px; margin-right: 6px; border: 1.6px solid var(--muted); border-radius: 50%; }
.mw-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mw-table th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--muted); padding: 6px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.mw-table td { padding: 6px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.mw-table td:first-child { display: flex; align-items: center; gap: 6px; }
.mw-table .num { text-align: right; }
.mw-table tr.playing td { background: var(--playrow); }
.mw-table tr.playing td:first-child { font-weight: 600; }
@media (max-width: 640px) {
  .mw-body, .feature.wide .mw-body { grid-template-columns: 1fr; min-height: 0; }
  .mw-side { display: none; }
  .hide-sm { display: none; }
  .mw-check { display: none; }
}

/* Playlista */
.pl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 18px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pl-head b { display: block; font-size: 17px; }
.pl-head div span { color: var(--muted); }
.pl-summary { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--bg); }
.pl-rows { list-style: none; margin: 0; padding: 6px 10px; background: var(--surface); counter-reset: n; }
.pl-rows li {
  display: grid; grid-template-columns: 22px 96px minmax(0, 1fr) auto 56px; gap: 10px; align-items: center;
  padding: 7px 8px; border-radius: 8px; counter-increment: n; font-variant-numeric: tabular-nums;
}
.pl-rows li::before { content: counter(n); color: var(--muted); font-size: 12px; text-align: right; }
.pl-rows li.now { background: var(--playrow); }
.pl-rows li.now .pl-t { font-weight: 600; }
.pl-rows .chip { justify-self: start; }
.pl-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-r { color: var(--accent-ink); font-weight: 600; font-size: 12px; }
.pl-d { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); }
.pl-gap { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--line); color: var(--ink2); }
.gap-ring { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; }
.gap-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.gap-ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.gap-ring circle.fg { stroke: var(--accent); stroke-dasharray: 80 100; stroke-linecap: round; }
.gap-ring b { font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pl-rows li { grid-template-columns: 18px minmax(0, 1fr) auto 50px; } .pl-rows .chip { display: none; } }
.xfade { margin: 18px 0 0; display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
.xfade svg { width: 100%; height: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.xf-grid { stroke: var(--line); stroke-width: 1; }
.xf-out { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.xf-in { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.xfade figcaption { font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) { .xfade { grid-template-columns: 1fr; } }

/* Okno »Uredi podatke« */
.sheet, .editor { padding: 18px 20px 20px; }
.features .sheet, .features .editor { background: var(--surface); }
.sh-title { font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.sh-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.sh-grid label { text-align: right; color: var(--ink2); }
.sh-bpm { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--ink2); }
.sh-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (min-width: 921px) { .sh-check { padding-left: 92px; } }

/* Okno »Uredi pesem« */
.wave-wrap { border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
#wave { display: block; width: 100%; height: 140px; }
.wave-bar { fill: var(--muted); opacity: .9; }
.wave-bar.in { fill: var(--accent); opacity: 1; }
.wave-out { fill: var(--bg); opacity: .62; }
.wave-handle { fill: var(--accent); }
.wave-fade { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ed-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; color: var(--ink2); }
.ed-fields > span:last-child { margin-left: auto; }

/* ---------- Zanesljivost ---------- */
.reliable { padding: 96px 0; background: var(--bg); border-top: 1px solid var(--line); }
.rel-list { margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 48px; }
.rel-list div { border-top: 2px solid var(--accent); padding-top: 14px; }
.rel-list dt { font-weight: 680; font-size: 18px; letter-spacing: -.01em; }
.rel-list dd { margin: 6px 0 0; color: var(--ink2); font-size: 16px; }
@media (max-width: 920px) { .rel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rel-list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Plesi ---------- */
.dances { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); }
.dance-chart { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.dg h3 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dg h3 .chip { font-size: 12px; }
.dg ul { list-style: none; margin: 0; padding: 0; }
.dg li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name nums" "bar bar";
  column-gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid var(--line2);
}
.dg .d-name { grid-area: name; font-weight: 600; }
.dg .d-nums { grid-area: nums; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dg .d-nums b { color: var(--ink); font-weight: 650; }
.dg .d-bar { grid-area: bar; position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line2); }
.dg .d-bar span { position: absolute; top: -2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.dg.std { --c: var(--std-ink); } .dg.lat { --c: var(--accent); } .dg.oth { --c: var(--oth-ink); }
@media (max-width: 920px) { .dance-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dance-chart { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Primeri ---------- */
.uses { padding: 96px 0; background: var(--bg); border-top: 1px solid var(--line); }
.use-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.use-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.use-grid h3 { font-size: 18px; font-weight: 680; letter-spacing: -.01em; }
.use-grid p { margin-top: 8px; color: var(--ink2); font-size: 16px; flex: 1; }
.use-set {
  margin-top: 14px; padding: 4px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line);
  font: 600 13px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
@media (max-width: 1000px) { .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Prenos ---------- */
.download { padding: 104px 0; background: var(--surface); border-top: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.dl-icon { display: block; width: 112px; height: 112px; margin-bottom: 22px; }
.download .btn-primary { margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(s); grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.steps h3 { font-size: 18px; font-weight: 680; padding-top: 3px; }
.steps p { margin-top: 4px; color: var(--ink2); font-size: 16px; }
@media (max-width: 920px) { .download { padding: 72px 0; } .download-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Noga ---------- */
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-row span:first-child { color: var(--ink2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beat-dot { transition: none; }
}
