/* KK Sūduva – NKL API. Spalvas galima perrašyti temoje per --snkl-* kintamuosius. */
:root {
  --snkl-accent: #ff0000;       /* raudona iš logotipo */
  --snkl-accent-contrast: #fff;
  --snkl-card: #fff;
  --snkl-border: rgba(0,0,0,.1);
  --snkl-muted: #6b7280;
  --snkl-ink: #111111;          /* juoda */
  --snkl-win: #111111;
  --snkl-loss: #8a8a8a;
  --snkl-table-head: #ff0000;
  --snkl-table-head-contrast: #fff;
  font-variant-numeric: tabular-nums;
}

.snkl-error { padding: 12px 16px; border-left: 4px solid #b91c1c; background: #fef2f2; color: #7f1d1d; margin: 1em 0; }
.snkl-empty { padding: 16px; color: #6b7280; text-align: center; }

/* Sudėtis */
.snkl-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 1.5em 0; }
.snkl-player { background: var(--snkl-card); border: 1px solid var(--snkl-border); border-radius: 10px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.snkl-player:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.snkl-player__photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #f4f4f4, #e2e2e2); overflow: hidden; }
.snkl-player__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.snkl-player__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; color: rgba(0,0,0,.25); }
.snkl-player__num { position: absolute; left: 10px; bottom: 10px; min-width: 42px; height: 42px; padding: 0 8px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--snkl-accent); color: var(--snkl-accent-contrast); font-size: 20px; font-weight: 800; line-height: 1; }
.snkl-player__body { padding: 12px 14px 14px; }
.snkl-player__name { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.snkl-player__name span { display: block; font-weight: 400; font-size: 14px; text-transform: none; color: var(--snkl-muted); }
.snkl-player__meta { margin: 6px 0 0; font-size: 13px; color: var(--snkl-muted); }

/* Tvarkaraštis */
.snkl-schedule { display: flex; flex-direction: column; gap: 10px; margin: 1.5em 0; }
.snkl-game { display: grid; grid-template-columns: 70px 1fr; gap: 6px 16px; align-items: center; padding: 14px 16px; background: var(--snkl-card); border: 1px solid var(--snkl-border); border-radius: 10px; }
.snkl-game__date { grid-row: span 2; text-align: center; line-height: 1.1; border-right: 1px solid var(--snkl-border); padding-right: 12px; }
.snkl-game__date strong { display: block; font-size: 26px; font-weight: 800; color: var(--snkl-accent); }
.snkl-game__date span, .snkl-game__date small { display: block; font-size: 12px; color: var(--snkl-muted); }
.snkl-game__teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.snkl-game__team { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.snkl-game__team:last-child { flex-direction: row-reverse; text-align: right; }
.snkl-game__team img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.snkl-game__team.is-us { color: var(--snkl-ink); font-weight: 800; }
.snkl-game__tname { overflow: hidden; text-overflow: ellipsis; }
.snkl-game__vs { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.snkl-game__time { padding: 4px 10px; border-radius: 6px; background: var(--snkl-ink); color: #fff; }
.snkl-game__time.is-tbd { background: #f1f1f1; color: var(--snkl-muted); }
.snkl-game__score { font-size: 18px; }
.snkl-game__result { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.snkl-game__result.is-win { background: var(--snkl-win); }
.snkl-game__result.is-loss { background: var(--snkl-loss); }
.snkl-game__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--snkl-muted); align-items: center; justify-content: center; text-align: center; }
.snkl-game__live { font-weight: 600; color: var(--snkl-ink); text-decoration: underline; text-decoration-color: var(--snkl-accent); }

/* Lentelė */
.snkl-standings-wrap { overflow-x: auto; margin: 1.5em 0; }
.snkl-standings { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--snkl-card); }
.snkl-standings th { background: var(--snkl-table-head); color: var(--snkl-table-head-contrast); font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 10px 8px; text-align: center; }
.snkl-standings td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--snkl-border); }
.snkl-standings .snkl-l { text-align: left; }
.snkl-standings tr.is-us td { background: rgba(255,0,0,.07); font-weight: 700; }
.snkl-standings tr.is-us td:first-child { box-shadow: inset 3px 0 0 var(--snkl-table-head); }
.snkl-muted { color: var(--snkl-muted); }
.snkl-form { white-space: nowrap; }
.snkl-form__dot { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 3px; margin: 0 1px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #fff; }
.snkl-form__dot.is-win, .snkl-ser__val.is-win { background: var(--snkl-win); }
.snkl-form__dot.is-loss, .snkl-ser__val.is-loss { background: var(--snkl-loss); }
.snkl-ser__val { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; }
.snkl-st-team { display: inline-flex; align-items: center; gap: 8px; }
.snkl-st-team { gap: 10px; }
.snkl-st-logo { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.snkl-st-logo img { max-width: 28px; max-height: 28px; width: auto; height: auto; object-fit: contain; display: block; }

@media (max-width: 600px) {
  .snkl-roster { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .snkl-player__name { font-size: 15px; }
  .snkl-game { grid-template-columns: 1fr; }
  .snkl-game__date { grid-row: auto; border-right: 0; padding: 0; display: flex; gap: 6px; align-items: baseline; text-align: left; }
  .snkl-game__date strong { font-size: 16px; }
  .snkl-game__team img { width: 28px; height: 28px; }
  .snkl-game__tname { font-size: 13px; }
}

/* Kalendoriaus prenumerata */
.snkl-cal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 1.5em 0; padding: 16px 18px; border: 1px solid var(--snkl-border, rgba(0,0,0,.1)); border-left: 4px solid #ff0000; border-radius: 10px; background: #fff; }
.snkl-cal__text { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 1 1 260px; }
.snkl-cal__text strong { font-size: 16px; color: #111; }
.snkl-cal__text span { font-size: 13px; color: #6b7280; }
.snkl-cal__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.snkl-cal__btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 6px; border: 1px solid #111; background: #111; color: #fff !important; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.snkl-cal__btn:hover { background: #ff0000; border-color: #ff0000; }
.snkl-cal__btn.is-ghost { background: #fff; color: #111 !important; }
.snkl-cal__btn.is-ghost:hover { background: #fff; color: #ff0000 !important; border-color: #ff0000; }
@media (max-width: 600px) { .snkl-cal__btn { flex: 1 1 calc(50% - 8px); justify-content: center; } }

/* Sudėties lentelė */
.snkl-roster-table td { padding: 11px 8px; }
.snkl-roster-table .snkl-num { font-weight: 800; font-size: 16px; color: var(--snkl-accent); width: 48px; }
.snkl-pl-name a { color: var(--snkl-ink); text-decoration: none; }
.snkl-pl-name a:hover .snkl-pl-last,
.snkl-pl-name a:hover .snkl-pl-first { color: var(--snkl-accent); }
.snkl-pl-last { font-weight: 800; text-transform: uppercase; }

/* Žaidėjo profilis */
.snkl-profile { margin: 1.5em 0; border: 1px solid var(--snkl-border); border-top: 4px solid var(--snkl-accent); border-radius: 10px; background: #fff; overflow: hidden; }
.snkl-profile__head { display: flex; align-items: center; gap: 24px; padding: 20px; }
.snkl-profile__id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.snkl-profile__num { min-width: 64px; height: 64px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--snkl-accent); color: #fff; font-size: 32px; font-weight: 800; line-height: 1; }
.snkl-profile__photo { flex: 0 0 auto; width: 200px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #f2f2f2; }
.snkl-profile__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.snkl-profile__photo.is-empty { display: flex; align-items: flex-end; justify-content: center; border: 1px dashed #cfcfcf; }
.snkl-profile__photo svg { width: 78%; fill: #d6d6d6; }
.snkl-profile__name { font-size: 30px; line-height: 1.1; font-weight: 800; text-transform: uppercase; color: var(--snkl-ink); }
.snkl-profile__name span { display: block; font-size: 18px; font-weight: 400; text-transform: none; color: var(--snkl-muted); }
.snkl-profile__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--snkl-border); }
.snkl-profile__facts > div { padding: 14px 20px; border-right: 1px solid var(--snkl-border); }
.snkl-profile__facts > div:last-child { border-right: 0; }
.snkl-profile__facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--snkl-muted); margin: 0 0 4px; }
.snkl-profile__facts dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--snkl-ink); }
.snkl-h { margin: 1.6em 0 .6em; font-size: 20px; font-weight: 800; text-transform: uppercase; color: var(--snkl-ink); }
.snkl-stats-table { font-size: 13px; }
.snkl-stats-table td, .snkl-stats-table th { white-space: nowrap; }
.snkl-stats-table tfoot td { border-top: 2px solid var(--snkl-ink); background: #f6f6f6; }
.snkl-note { font-size: 12px; color: var(--snkl-muted); }
.snkl-career { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.snkl-career li { padding: 6px 0; border-bottom: 1px solid var(--snkl-border); break-inside: avoid; }
.snkl-career li span { display: inline-block; min-width: 86px; font-weight: 700; color: var(--snkl-ink); }
.snkl-back a { font-weight: 700; color: var(--snkl-ink); text-decoration: underline; text-decoration-color: var(--snkl-accent); }
@media (max-width: 700px) {
  .snkl-profile__facts { grid-template-columns: repeat(2, 1fr); }
  .snkl-profile__facts > div:nth-child(2) { border-right: 0; }
  .snkl-profile__facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--snkl-border); }
  .snkl-profile__name { font-size: 22px; }
  .snkl-profile__head { gap: 14px; padding: 14px; }
  .snkl-profile__photo { width: 110px; }
  .snkl-profile__id { flex-direction: column; align-items: flex-start; gap: 10px; }
  .snkl-profile__num { min-width: 48px; height: 48px; font-size: 24px; }
  .snkl-career { columns: 1; }
  .snkl-roster-table .snkl-hide-sm { display: none; }
}

/* Karjeros klubai ir rankinė statistika */
.snkl-clubs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--snkl-border); border-radius: 10px; overflow: hidden; background: #fff; }
.snkl-clubs li { display: grid; grid-template-columns: 48px 110px 1fr; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--snkl-border); }
.snkl-clubs li:last-child { border-bottom: 0; }
.snkl-clubs__logo { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.snkl-clubs__logo img { max-width: 40px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.snkl-clubs__years { font-weight: 800; color: var(--snkl-ink); font-variant-numeric: tabular-nums; }
.snkl-clubs__team { color: var(--snkl-ink); }
.snkl-h3 { margin: 1.4em 0 .5em; font-size: 16px; font-weight: 800; color: var(--snkl-ink); }
.snkl-stats-table td small { display: block; font-size: 11px; color: var(--snkl-muted); font-weight: 400; }
.snkl-stats-table td.snkl-strong { font-weight: 800; }
@media (max-width: 600px) { .snkl-clubs li { grid-template-columns: 40px 90px 1fr; gap: 8px; padding: 8px 12px; } }

/* Lentelė: serija skaičiais, pergalės Past. 5 – baltame rėmelyje */
.snkl-ser__num { font-weight: 700; white-space: nowrap; }
.snkl-standings .snkl-form__dot.is-win { background: #fff; color: #111; box-shadow: inset 0 0 0 1px #111; }

/* Tiesioginės transliacijos nuoroda tvarkaraštyje */
.snkl-game__tv, .snkl-game__tv:visited { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: var(--snkl-accent); color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none; }
.snkl-game__tv::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: snkl-tv-pulse 1.2s ease-in-out infinite; }
.snkl-game__tv:hover, .snkl-game__tv:focus { background: var(--snkl-ink); }
@keyframes snkl-tv-pulse { 50% { opacity: .3; } }
