/* Modul: ljestvica („Ljestvica timova”, varijanta A). Stilovi su ograničeni na .lj-* klase. */
.lj { display: flex; flex-direction: column; gap: var(--s2); }
.lj-naslov { margin: 0; font-size: 14px; font-weight: 600; }   /* u kartici, na mjestu nekadašnjeg „Ovaj tjedan” (Josip, 15. 11.) */
.lj-kartica { padding: 14px 16px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.lj-vrh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lj-razlika { font-size: 13px; color: var(--muted); }
.lj-razlika b { color: var(--energija); }
.lj-tiho { color: var(--muted); font-size: 13px; }
/* Špil s jednakim trakama, varijanta B „Visoki špil” (Potez 552, prototip 2026-11-17-ljestvica-spil): svaki tim je
   kartica u omjeru banera (594×252); kartice se preklapaju tako da od svake viri traka --lj-t s vrhom slike. I zadnja
   viri jednako (negativan donji rub). Dodir izvuče karticu. */
.lj-popis { list-style: none; margin: 0 -8px; padding: 0; container-type: inline-size; --lj-t: 68px; --lj-kh: calc(100cqw * 252 / 594); overflow: hidden; border-radius: 18px; }
.lj-red { position: relative; isolation: isolate; display: block; height: var(--lj-kh); overflow: hidden; border-radius: 18px;
  background: color-mix(in srgb, var(--tim) 22%, var(--surface-2)); box-shadow: 0 -6px 14px rgba(0, 0, 0, .55);
  transition: margin var(--dur-base, 320ms) var(--ease); }
.lj-red + .lj-red { margin-top: calc(var(--lj-t) - var(--lj-kh)); }
.lj-red.lj-otv + .lj-red { margin-top: 8px; }
.lj-red:last-child { margin-bottom: calc(var(--lj-t) - var(--lj-kh)); }
.lj-red.lj-otv:last-child { margin-bottom: 0; }
.lj-ban { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -2; }
.lj-pod { position: absolute; left: 0; right: 0; top: 0; height: var(--lj-t); display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px 0 12px;
  background: linear-gradient(180deg, rgba(8, 10, 14, .66), rgba(8, 10, 14, 0) 85%); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.lj-mj { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800;
  color: var(--text); background: rgba(8, 10, 14, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); text-shadow: none; }
.lj-red[data-rang="1"] .lj-mj { color: #3a2a00; background: linear-gradient(160deg, #ffe680, #f0b400); box-shadow: none; }
.lj-red[data-rang="2"] .lj-mj { color: #23272e; background: linear-gradient(160deg, #f1f3f6, #a9b0bb); box-shadow: none; }
.lj-red[data-rang="3"] .lj-mj { color: #33190a; background: linear-gradient(160deg, #f0b98a, #b9703a); box-shadow: none; }
.lj-ime { flex: 1; min-width: 0; }
.lj-ime b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lj-ispod { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; white-space: nowrap; }
.lj-ispod em { font-style: normal; font-weight: 600; color: rgba(255, 255, 255, .86); overflow: hidden; text-overflow: ellipsis; }
.lj-tvoj { flex: none; padding: 1px 7px; border-radius: 999px; font-weight: 700; color: var(--stit-tamno); background: var(--stit); text-shadow: none; }
.lj-tvoj svg { vertical-align: -2px; }
.lj-red.lj-ja { outline: 2px solid var(--stit); outline-offset: -2px; }
.lj-otvori { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lj-otvori:focus-visible { outline: 3px solid var(--text); outline-offset: -4px; }
.lj-nw { white-space: nowrap; }
.lj-en { color: var(--energija); font-weight: 700; white-space: nowrap; }
.lj-red .lj-en { flex: none; height: 32px; display: inline-flex; align-items: center; gap: 2px; padding: 0 10px; border-radius: 999px; background: rgba(8, 10, 14, .62); text-shadow: none; }
/* Uski mobiteli (320–359 px): duga imena (Lauterbrunnen) moraju stati u redak */
@media (max-width: 359px) {
  .lj-pod { gap: 8px; }
  .lj-ime b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .lj-red { transition: none; } }

/* Izbor tima (prvo otvaranje / faza odlučivanja) */
.lj-izbor-naslov { margin: 0 0 2px; font: 700 18px/1.25 var(--font-display); }
.lj-izbor-mreza { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.lj-izbor-tim {
  display: grid; justify-items: center; gap: 4px; min-height: 44px; padding: 10px 4px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer;
}
@media (max-width: 359px) { .lj-izbor-mreza { grid-template-columns: repeat(2, 1fr); } }   /* duga imena (Lauterbrunnen) ne stanu u 3 stupca */
.lj-izbor-tim .lj-med { width: 64px; height: 64px; }
.lj-izbor-tim b { font-size: 13px; }
.lj-izbor-tim .lj-tiho { font-size: 11px; }
.lj-izbor-tim:active { transform: scale(.97); }
.lj-izbor-tim:focus-visible, .lj-promijeni:focus-visible { outline: 2px solid var(--tim, var(--live)); outline-offset: 2px; }
.lj-promijeni { position: relative; min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: none; color: var(--muted); font: 600 12px var(--font); cursor: pointer; }
.lj-promijeni::after { content: ""; position: absolute; inset: -6px 0; }   /* područje dodira 44 px, izgled isti (UX §5) */
.lj-vrh { gap: 8px; }
.lj-vrh .lj-razlika { margin-left: auto; }   /* bez „Ovaj tjedan” (Josip, 15. 11.): razlika ostaje desno */
.lj [hidden] { display: none !important; }   /* flex/grid ne smije nadjačati hidden */
.lj-pehar { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; color: var(--energija); }
