/* ============================================================
   FUN RÁDIO · V3 "ORGANIC" · dizajn systém (katalóg)
   Všetky nové triedy majú prefix .ds- a stavajú na styles.css.
   ============================================================ */

/* ---------- hlavička katalógu ---------- */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 227, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61, 18, 38, .08);
}
.ds-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 0;
}
.ds-header-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 18px/1 var(--font-display);
  white-space: nowrap;
}
.ds-header-title img { width: 26px; height: 26px; }
.ds-header-nav {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.ds-header-nav::-webkit-scrollbar { display: none; }
.ds-header-nav a {
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(61, 18, 38, .08);
  font: 600 12.5px/1 var(--font-body);
  text-decoration: none;
  transition: background .18s ease;
}
.ds-header-nav a:hover { background: var(--blush-soft); }

.ds-anchor { scroll-margin-top: 120px; }

/* ---------- všeobecné bloky katalógu ---------- */
.ds-grid-2 { display: grid; gap: 20px; }
@media (min-width: 860px) { .ds-grid-2 { grid-template-columns: 1fr 1fr; } }
.ds-grid-2 > *,
.ds-demo-stack > *,
.ds-anatomy-grid > *,
.ds-phones > * { min-width: 0; }

.ds-block { margin-top: clamp(40px, 6vw, 64px); }
.ds-block > .h3 { margin-bottom: 4px; }
.ds-block-lead {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 62ch;
  margin: 6px 0 18px;
}

.ds-demo {
  background: var(--surface);
  border: 1px solid rgba(61, 18, 38, .07);
  border-radius: var(--r-md);
  padding: clamp(18px, 3vw, 28px);
}
.ds-demo-label {
  display: block;
  font: 700 11px/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.ds-demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ds-demo-stack { display: flex; flex-direction: column; gap: 24px; }
.ds-demo-cap { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; max-width: 62ch; }
.ds-demo .btn:disabled { opacity: .4; pointer-events: none; box-shadow: none; }
.ds-btn-sm { padding: 10px 18px; font-size: 13px; }

.ds-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ds-list li { display: flex; gap: 10px; align-items: flex-start; }
.ds-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  margin-top: 7px;
}

.ds-code {
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 18px 20px;
  font: 400 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-x: auto;
  margin: 18px 0 0;
}
.ds-code-chip {
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(61, 18, 38, .07);
  padding: 7px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

/* ---------- tabuľky ---------- */
.ds-scroll { overflow-x: auto; }
.ds-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.ds-table th {
  font: 700 11px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid rgba(61, 18, 38, .2);
}
.ds-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid rgba(61, 18, 38, .1);
  vertical-align: top;
}
.ds-table code {
  font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(61, 18, 38, .06);
  padding: 3px 7px;
  border-radius: 7px;
  white-space: nowrap;
}

/* ---------- 2. TVARY ---------- */
.ds-shape-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .ds-shape-grid { grid-template-columns: 1fr 1fr; } }
.ds-shape-card { display: flex; flex-direction: column; gap: 18px; }
.ds-shape-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ds-shape-name { font: 600 24px/1.1 var(--font-display); margin: 0; }
.ds-spec-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 3vw, 28px);
  flex-wrap: wrap;
}
.ds-spec { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.ds-spec figcaption { font: 500 12px/1.3 var(--font-body); color: var(--ink-soft); text-align: center; }
.ds-spec-pure { width: 92px; background: var(--ink); }
.ds-spec-photo { width: 150px; padding: 12px; border-radius: 24px; box-shadow: var(--shadow-soft); }
.ds-spec-avatar { width: 44px; }
.ds-shape-rule { font-size: 14.5px; margin: 0; }
.ds-shape-rule strong { font-weight: 600; }

.ds-forbid-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .ds-forbid-grid { grid-template-columns: 1fr 1fr; } }
.ds-forbid {
  background: var(--surface);
  border: 1.5px solid rgba(230, 4, 105, .35);
  border-radius: var(--r-md);
  padding: clamp(18px, 3vw, 26px);
}
.ds-no-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font: 700 11px/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ds-forbid .masked { width: 150px; }
.ds-bad-text {
  clip-path: url(#maska-oblacik);
  background: var(--peri);
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  padding: 30px 26px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- 3. FARBY ---------- */
.ds-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.ds-swatch {
  background: var(--surface);
  border: 1px solid rgba(61, 18, 38, .07);
  border-radius: 22px;
  padding: 10px 12px 14px;
}
.ds-swatch-chip {
  display: block;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(61, 18, 38, .08);
}
.ds-swatch strong { display: block; font: 600 14px/1.3 var(--font-body); margin: 12px 0 2px; }
.ds-swatch code { font: 500 12px/1.4 ui-monospace, Menlo, monospace; color: var(--ink-soft); display: block; }
.ds-swatch span { font: 400 12.5px/1.45 var(--font-body); color: var(--ink-soft); display: block; margin-top: 6px; }

/* ---------- 4. TYPOGRAFIA ---------- */
.ds-type-row {
  display: grid;
  gap: 6px 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(61, 18, 38, .12);
}
.ds-type-row:first-child { padding-top: 4px; }
@media (min-width: 760px) {
  .ds-type-row { grid-template-columns: 220px 1fr; align-items: baseline; }
}
.ds-type-meta { font: 500 12.5px/1.55 var(--font-body); color: var(--ink-soft); }
.ds-t56 { font: 600 clamp(40px, 6vw, 56px)/1.06 var(--font-display); letter-spacing: -.01em; }
.ds-t40 { font: 600 clamp(32px, 4.6vw, 40px)/1.08 var(--font-display); letter-spacing: -.01em; }
.ds-t32 { font: 600 32px/1.1 var(--font-display); letter-spacing: -.01em; }
.ds-t24 { font: 600 24px/1.15 var(--font-display); }
.ds-t20 { font: 600 20px/1.2 var(--font-display); }
.ds-t16 { font: 400 16px/1.6 var(--font-body); max-width: 62ch; }
.ds-t13 { font: 500 13.6px/1.55 var(--font-body); color: var(--ink-soft); max-width: 62ch; }
.ds-num-xl {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 110px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ds-num-md {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 6c. pill navigácia (statická ukážka) ---------- */
.ds-navdemo { overflow-x: auto; padding: 6px 2px; }
.ds-navdemo .nav-pill { width: max-content; margin-inline: auto; }
.ds-navdemo .nav-links { display: flex; max-width: none; }

/* ---------- 6d. anatómia karty ---------- */
.ds-anatomy-grid { display: grid; gap: clamp(24px, 4vw, 44px); align-items: center; }
@media (min-width: 900px) { .ds-anatomy-grid { grid-template-columns: auto 1fr; } }
.ds-anatomy { position: relative; width: min(340px, 100%); margin-inline: auto; }
.ds-anatomy-card { display: flex; flex-direction: column; gap: 14px; }
.ds-anno {
  position: absolute;
  z-index: 3;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font: 700 13px/28px var(--font-body);
  text-align: center;
  box-shadow: 0 6px 14px rgba(61, 18, 38, .28);
}
.ds-anno--1 { top: 46%; left: -13px; }
.ds-anno--2 { top: 42%; left: 50%; transform: translate(-50%, -50%); }
.ds-anno--3 { top: 16px; right: -13px; }
.ds-anno--4 { bottom: 24px; left: -13px; }
.ds-anno--5 { bottom: 24px; right: -13px; }
.ds-anno-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: anno;
  font-size: 14.5px;
}
.ds-anno-legend li { display: flex; gap: 12px; align-items: flex-start; counter-increment: anno; }
.ds-anno-legend li::before {
  content: counter(anno);
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font: 700 12px/24px var(--font-body);
  text-align: center;
}

/* ---------- 6e. stavový diagram decku ---------- */
.ds-flow { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.ds-flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ds-state {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 13px/1 var(--font-body);
  white-space: nowrap;
}
.ds-state--soft { background: var(--peri-soft); color: var(--ink); }
.ds-flow-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 12px/1.3 var(--font-body);
  color: var(--ink-soft);
}
.ds-flow-arrow::after { content: "→"; font-size: 15px; color: var(--ink); }

/* ---------- 6h. dock (statická ukážka) ---------- */
.ds-dock-demo { display: flex; flex-direction: column; gap: 20px; }
.ds-dock-demo .dock {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  width: min(430px, 100%);
}
.ds-dock-demo .ds-demo-cap { margin-top: 6px; }

/* ---------- 6i. formuláre ---------- */
.ds-form-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .ds-form-grid { grid-template-columns: 1fr 1fr; } }
.ds-field { display: flex; flex-direction: column; gap: 8px; }
.ds-field-label { font: 600 13px/1 var(--font-body); }
.ds-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(61, 18, 38, .18);
  background: var(--surface);
  font: 500 15px/1.3 var(--font-body);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ds-input::placeholder { color: rgba(61, 18, 38, .4); }
.ds-input:hover { border-color: rgba(61, 18, 38, .35); }
.ds-input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(61, 18, 38, .14);
}
.ds-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233D1226' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.ds-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px 3px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid rgba(61, 18, 38, .18);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ds-search svg { color: var(--ink-soft); flex: none; }
.ds-search input {
  border: 0;
  background: none;
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  font: 500 15px/1.3 var(--font-body);
  color: var(--ink);
}
.ds-search input::placeholder { color: rgba(61, 18, 38, .4); }
.ds-search input:focus-visible { outline: none; }
.ds-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(61, 18, 38, .14); }
.ds-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 14px/1.3 var(--font-body);
  cursor: pointer;
  position: relative;
}
.ds-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-toggle-track {
  width: 48px; height: 28px;
  border-radius: 999px;
  background: rgba(61, 18, 38, .18);
  position: relative;
  transition: background .18s ease;
  flex: none;
}
.ds-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(61, 18, 38, .25);
  transition: transform .18s var(--ease-spring);
}
.ds-toggle input:checked ~ .ds-toggle-track { background: var(--ink); }
.ds-toggle input:checked ~ .ds-toggle-track::after { transform: translateX(20px); }
.ds-toggle input:focus-visible ~ .ds-toggle-track { outline: 3px solid var(--ink); outline-offset: 3px; }
.reduced .ds-toggle-track::after { transition: none; }

/* ---------- telefónny rám ---------- */
.ds-phones { display: grid; gap: 28px; justify-items: center; }
@media (min-width: 760px) { .ds-phones { grid-template-columns: 1fr 1fr; } }
.ds-phone {
  width: min(320px, 100%);
  height: 660px;
  border-radius: 46px;
  border: 8px solid var(--ink);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  flex: none;
}
.ds-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px; height: 26px;
  border-radius: 999px;
  background: var(--ink);
  z-index: 6;
  pointer-events: none;
}
.ds-phone-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 56px 14px 26px;
  -webkit-overflow-scrolling: touch;
}
.ds-phone-title { font: 600 24px/1.1 var(--font-display); margin: 8px 0 16px; }
.ds-phone-cap { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }

/* zmenšené komponenty vnútri telefónu */
.ds-phone .deck { width: 100%; height: 400px; }
.ds-phone .deck-card { padding: 14px; gap: 10px; border-radius: 26px; }
.ds-phone .deck-head .deck-title { font-size: 15px; }
.ds-phone .avatar { width: 30px; height: 30px; }
.ds-phone .chip { padding: 6px 10px; font-size: 11px; }
.ds-phone .play-pill { padding: 8px 14px; font-size: 12px; }
.ds-phone .deck-nav { margin-top: 14px; }
.ds-phone .deck-arrow { width: 40px; height: 40px; }
.ds-phone .stackl-head { padding: 16px 14px; gap: 10px; }
.ds-phone .stackl-head .sl-name { font-size: 18px; }
.ds-phone .stackl-inner { grid-template-columns: 1fr; padding: 2px 14px 20px; gap: 14px; }
.ds-phone .stackl-inner .masked { max-width: 140px; }
.ds-phone .btn { padding: 11px 18px; font-size: 13px; }
.ds-phone .player-stage { width: 100%; margin: 0; padding: 16px 0; }
.ds-phone .player-card { padding: 18px; }
.ds-phone .player-card .masked { max-width: none; }
.ds-phone .player-top { width: 100%; }
.ds-phone .count-chip { padding: 10px 14px; font-size: 13px; }

/* ---------- 8. hlas značky ---------- */
.ds-voice { padding: clamp(20px, 3vw, 28px); }
.ds-voice--no { border-color: rgba(230, 4, 105, .3); }
.ds-voice h3 { font: 600 22px/1.15 var(--font-display); margin: 0 0 16px; }
.ds-voice ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14.5px;
}
.ds-voice li { display: flex; gap: 12px; align-items: flex-start; }
.ds-voice li em { font-style: normal; color: var(--ink-soft); font-size: 13px; display: block; }
.ds-mark {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 var(--font-body);
}
.ds-mark--yes { background: var(--mint-soft); color: var(--ink); }
.ds-mark--no { background: var(--blush-soft); color: var(--magenta); }

/* ---------- 9. footer mini ---------- */
.ds-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 44px 0 30px;
  margin-top: clamp(48px, 8vw, 96px);
  font-size: 13px;
}
.ds-footer p { margin: 0 0 20px; max-width: 60ch; color: rgba(246, 239, 227, .75); }
.ds-footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ds-footer-links a {
  color: inherit;
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid rgba(246, 239, 227, .28);
  border-radius: 999px;
  font: 600 13px/1 var(--font-body);
  transition: border-color .2s ease, color .2s ease;
}
.ds-footer-links a:hover { border-color: var(--blush); color: var(--blush); }
.ds-footer-note { color: rgba(246, 239, 227, .55); font-size: 12px; }
