/* ------------------------------------------------------------------
   CHHL — components
   ------------------------------------------------------------------ */

/* ---------------- match layout ---------------- */

.match-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 24px;
  align-items: stretch;
}

#next-featured,
#last-featured {
  display: flex;
  min-width: 0;
}

.featured-match {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.featured-match__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ice);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--result {
  color: var(--red-soft);
}

.round {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
}

.featured-match__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
  flex: 1;
  gap: clamp(10px, 2vw, 20px);
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-align: center;
}

.team-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: linear-gradient(150deg, var(--logo-a), var(--logo-b));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.team-logo--lg {
  width: clamp(56px, 6vw, 70px);
  height: clamp(56px, 6vw, 70px);
  border-radius: 15px;
  font-size: clamp(1.18rem, 1.9vw, 1.4rem);
}

.team-logo--xs {
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 6px;
  font-size: .58rem;
}

.team__name {
  color: #f1f8ff;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.26rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}

.team__role {
  margin-top: -4px;
  color: #71859c;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.versus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.versus__circle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.featured-match__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: auto;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: .82rem;
  white-space: nowrap;
}

.meta-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--ice);
}

.featured-match__cta {
  margin-left: auto;
}

/* ---------------- result score ---------------- */

.result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.result-score__numbers {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-display);
  line-height: 1;
}

.result-score__numbers strong {
  color: #8ea4bb;
  font-size: clamp(2.7rem, 5.4vw, 3.8rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.result-score__numbers strong.is-winner {
  color: #fff;
}

.result-score__numbers > span {
  color: #647a91;
  font-size: 1.7rem;
  font-weight: 500;
}

.result-score__status {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------------- compact match rows ---------------- */

.match-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.match-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-height: 76px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

.match-row:hover {
  background: rgba(255, 255, 255, .03);
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 42px;
}

.date-chip__day {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.date-chip__month {
  margin-top: 2px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.match-row__teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.match-row__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #c6d5e5;
  font-size: .84rem;
  font-weight: 500;
  line-height: 22px;
}

.match-row__team.is-winner {
  color: #fff;
  font-weight: 600;
}

.match-row__team .name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.match-row__meta {
  color: var(--muted);
  font-size: .63rem;
  letter-spacing: .02em;
}

.match-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  white-space: nowrap;
}

.match-row__time {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

.match-row__sub {
  color: var(--muted);
  font-size: .63rem;
  letter-spacing: .02em;
}

.match-row__scores {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.match-row__result {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.match-row__tag {
  padding: 3px 8px;
  border: 1px solid rgba(240, 180, 41, .4);
  border-radius: 999px;
  color: #f0b429;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-row--contumacy {
  cursor: default;
}

.match-row--contumacy:hover {
  background: transparent;
}

.score {
  color: #71859c;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.score.is-winner {
  color: #fff;
}

/* ---------------- news ---------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.news-card {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.news-card__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding-top: 18px;
}

.news-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .72rem;
}

.news-card__tag {
  color: var(--ice);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.news-card__title {
  color: #f0f7ff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.1vw, 1.6rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: .01em;
}

.news-card:hover .news-card__title {
  color: var(--ice);
}

.news-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
}

.news-card:hover .news-card__more {
  color: var(--ice);
}

.news-card__more svg {
  width: 14px;
  height: 14px;
}

/* ---------------- article modal ---------------- */

.article-modal {
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: 88vh;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

.article-modal::backdrop {
  background: rgba(3, 7, 12, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.article-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.article-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.article-modal__close:hover {
  border-color: var(--line-strong);
  color: var(--ice);
}

.article-modal__close svg {
  width: 17px;
  height: 17px;
}

.article-modal__body {
  padding: clamp(26px, 4vw, 40px);
  padding-right: clamp(52px, 6vw, 64px);
  overflow-y: auto;
}

.article-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .02em;
}

.article-modal__tag {
  color: var(--ice);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.article-modal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}

.article-modal__perex {
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.7;
}

.article-modal__text {
  margin-top: 18px;
  color: #a9bacd;
  font-size: .92rem;
  line-height: 1.78;
}

.article-modal__text p + p {
  margin-top: 14px;
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 12px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: #e9f3ff;
  font-size: .86rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
}

.toast svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--ice);
}

/* ------------------------------------------------------------------
   Detail zápasu
   ------------------------------------------------------------------ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: #fff;
}

/* ---------------- match banner ---------------- */

.match-banner {
  padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.match-banner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3.6vw, 34px);
}

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-soft);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.match-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.match-status--scheduled {
  color: var(--ice);
}

.match-banner__round {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: right;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(24px, 3.6vw, 40px) clamp(18px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.scoreboard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.scoreboard__team:hover .scoreboard__team-name {
  color: var(--ice);
}

.team-logo--xl {
  width: clamp(64px, 8vw, 88px);
  height: clamp(64px, 8vw, 88px);
  border-radius: 18px;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.scoreboard__team-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.scoreboard__team-role {
  color: #71859c;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scoreboard__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.scoreboard__score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  line-height: 1;
}

.scoreboard__score strong {
  color: #8ea4bb;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scoreboard__score strong.is-winner {
  color: #fff;
}

.scoreboard__score span {
  color: #647a91;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
}

.scoreboard__vs {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
}

.scoreboard__meta {
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
}

.scoreboard__venue {
  color: var(--muted);
  font-size: .75rem;
}

.match-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 18px;
}

.match-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: .82rem;
}

.match-fact svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--ice);
}

.section-note {
  color: var(--muted);
  font-size: .78rem;
}

/* ---------------- timeline ---------------- */

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding: 8px 0;
}

.event__time {
  z-index: 1;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.event__time-value {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.event__time-label {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.event__side {
  display: flex;
  min-width: 0;
}

.event--home .event__side {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-end;
}

.event--away .event__side {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-start;
}

.event__card {
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.event--home .event__card {
  text-align: right;
}

.event--away .event__card {
  text-align: left;
}

.event__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.event--home .event__head {
  flex-direction: row-reverse;
}

.event__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}

.event__icon--goal {
  background: rgba(99, 216, 255, .1);
  color: var(--ice);
}

.event__icon--penalty {
  background: rgba(255, 90, 103, .1);
  color: var(--red-soft);
}

.event__player {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.15;
}

.event__meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.event--marker {
  display: flex;
  justify-content: center;
  padding: 14px 0;
}

.event__marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.event__marker-time {
  color: var(--ice);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.event__marker-label {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------------- lineups ---------------- */

.lineups {
  display: grid;
  gap: 14px;
}

.lineup {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.lineup[open] {
  border-color: var(--line-strong);
}

.lineup__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.lineup__summary::-webkit-details-marker {
  display: none;
}

.lineup__summary:focus-visible {
  outline-offset: -3px;
}

.lineup__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lineup__identity:hover .lineup__name {
  color: var(--ice);
}

.lineup__team {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lineup__name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.1;
}

.lineup__role {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lineup__chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.lineup__chevron svg {
  width: 16px;
  height: 16px;
}

.lineup[open] .lineup__chevron {
  border-color: rgba(99, 216, 255, .3);
  color: var(--ice);
  transform: rotate(180deg);
}

.lineup__body {
  padding: 4px 20px 22px;
  border-top: 1px solid var(--line);
}

.lineup__label {
  margin: 18px 0 8px;
  color: #b9c7d8;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lineup__label--goalie {
  margin-top: 18px;
}

.player-list {
  display: grid;
}

.player {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(163, 190, 214, .08);
}

.player:last-child {
  border-bottom: 0;
}

.player__number {
  color: #71879e;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.player__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #e8f2fd;
  font-size: .9rem;
  font-weight: 500;
}

.player__captain {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 4px;
  background: var(--ice);
  color: #04121c;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
}

.player__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.player__stats:empty {
  display: none;
}

.stat-bubble {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
}

.stat-bubble svg {
  width: 13px;
  height: 13px;
}

.stat-bubble b {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
}

.stat-bubble--goal {
  border-color: rgba(99, 216, 255, .3);
  background: rgba(99, 216, 255, .08);
  color: var(--ice);
}

.stat-bubble--assist {
  border-color: rgba(163, 190, 214, .24);
  background: rgba(255, 255, 255, .04);
  color: var(--text-soft);
}

.stat-bubble__letter {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
}

.stat-bubble--penalty {
  border-color: rgba(255, 90, 103, .3);
  background: rgba(255, 90, 103, .08);
  color: var(--red-soft);
}

.stat-bubble__unit {
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
}

/* ---------------- officials ---------------- */

.officials {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.officials__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
}

.officials__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.official {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 20px 22px;
}

.official--referees {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-right: 1px solid var(--line);
}

.official--scorer {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid var(--line);
}

.official--timekeeper {
  grid-column: 2;
  grid-row: 2;
}

.official dt {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.official dd {
  margin: 0;
  color: #f0f7ff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
}

/* ------------------------------------------------------------------
   Statistiky hráčů
   ------------------------------------------------------------------ */

.stats-banner {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.stats-banner__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 56px);
}

.stats-banner__head h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: .01em;
}

.stats-banner__head p {
  max-width: 400px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.stats-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin-top: clamp(26px, 3.6vw, 38px);
}

.stats-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
}

.stats-filter > span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.stats-filter__control {
  position: relative;
  display: block;
}

.stats-filter__control select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: #fff;
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}

.stats-filter__control svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.stats-filter__note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .78rem;
}

.stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-bottom: 22px;
}

.stats-summary__item {
  color: var(--muted);
  font-size: .82rem;
}

.stats-summary__item strong {
  margin-right: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

/* ---------------- stats table ---------------- */

.stats-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.stats-table,
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.stats-table thead th,
.standings-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.stats-table tbody td,
.standings-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(163, 190, 214, .08);
  color: var(--text-soft);
  vertical-align: middle;
}

.stats-table tbody tr:last-child td,
.standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.stats-col-rank {
  width: 52px;
  color: var(--muted) !important;
  font-family: var(--font-display);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
}

.stats-col-num {
  width: 62px;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
}

.stats-col-points {
  color: var(--ice) !important;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.stats-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stats-player__number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 25px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #8ea4bb;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-player__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #e8f2fd;
  font-weight: 500;
}

.stats-player__badge {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 4px;
  background: var(--ice);
  color: #04121c;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 800;
}

.stats-player__badge--goalie {
  background: rgba(163, 190, 214, .16);
  color: #b9c7d8;
}

.stats-player__team {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.stats-team {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #c3d2e2;
}

/* ---------------- pagination ---------------- */

.stats-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.pagination__info {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination__btn {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .82rem;
  cursor: pointer;
}

.pagination__btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: #fff;
}

.pagination__btn:disabled {
  opacity: .35;
  cursor: default;
}

.pagination__btn.is-current {
  border-color: rgba(99, 216, 255, .4);
  background: rgba(99, 216, 255, .1);
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 700;
}

.pagination__dots {
  padding: 0 2px;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   Tabulka týmů
   ------------------------------------------------------------------ */

.standings-col-team {
  min-width: 220px;
}

.standings-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.standings-team:hover .standings-team__name,
.standings-team:hover .standings-team__short {
  color: var(--ice);
}

.standings-team__name {
  color: #e8f2fd;
  font-weight: 500;
  white-space: nowrap;
}

.standings-team__short {
  display: none;
  color: #e8f2fd;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
}

.standings-col-score,
.standings-col-diff {
  width: 86px;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
}

.standings-col-diff {
  width: 66px;
  color: var(--muted);
}

.standings-table tbody tr.is-first .standings-team__name {
  color: #fff;
  font-weight: 700;
}

.standings-table tbody tr.is-first .stats-col-rank {
  color: var(--ice) !important;
}

.standings-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   Program a výsledky
   ------------------------------------------------------------------ */

.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(26px, 3.6vw, 38px);
}

.match-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.match-filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.match-filter:hover {
  color: #fff;
}

.match-filter[aria-pressed="true"] {
  border-color: rgba(99, 216, 255, .35);
  background: rgba(99, 216, 255, .1);
  color: var(--ice);
}

.schedule-filters .stats-filter__note {
  margin-bottom: 0;
}

.schedule-filters .stats-filter__note strong {
  color: var(--text-soft);
  font-weight: 600;
}

.schedule-rounds {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.schedule-round__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.schedule-round__head h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.schedule-round__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.schedule-round .match-list {
  border-top: 0;
}

.schedule-round .match-row {
  padding: 12px 8px;
}

.schedule-round .match-row__side,
.schedule-round .match-row__scores {
  justify-self: end;
}

/* ------------------------------------------------------------------
   Týmy
   ------------------------------------------------------------------ */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.team-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.team-card__rank {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-card__name {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.team-card__facts {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .76rem;
}

.team-card__facts b {
  color: var(--text);
  font-weight: 600;
}

.team-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ice);
  font-size: .78rem;
  font-weight: 600;
}

.team-card:hover .team-card__link {
  color: #fff;
}

/* ---------------- detail týmu ---------------- */

.team-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.team-hero__identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.team-hero__identity h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.team-hero__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.chart-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.chart-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-card__head h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.chart-card__legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: .78rem;
  white-space: nowrap;
}

.chart-card__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.position-chart {
  width: 100%;
}

.position-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid line {
  stroke: var(--line);
}

.chart-grid text,
.chart-axis text {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
}

.chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 2;
}

.chart-card__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.chart-card__note strong {
  color: #fff;
}

.roster-panel {
  padding: 4px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.player__goalie {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ice);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
}

.team-match-list {
  display: grid;
  gap: 10px;
}

.team-match-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.team-match-row:hover {
  background: var(--surface-2);
}

.team-match-row--contumacy {
  cursor: default;
}

.team-match-row--contumacy:hover {
  background: var(--surface);
}

.team-match-row__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.team-match-row__label {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.team-match-row__opponent {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}

.team-match-row__opponent-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-match-row__meta {
  color: var(--muted);
  font-size: .72rem;
}

.team-match-row__result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.team-match-row__result strong,
.team-match-row__result time {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.team-match-row__outcome {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-match-row__outcome.is-win {
  color: var(--ice);
}

.team-match-row__outcome.is-contumacy {
  color: #f0b429;
}

/* ------------------------------------------------------------------
   Detail hráče
   ------------------------------------------------------------------ */

.player-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.player-hero__photo {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(99, 216, 255, .1), rgba(255, 255, 255, .02)), var(--surface);
  color: #71859c;
}

.player-hero__photo svg {
  width: 54px;
  height: 54px;
}

.player-hero__body {
  min-width: 0;
  flex: 1;
}

.player-hero__body h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.player-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: .84rem;
}

.player-hero__meta strong {
  color: var(--text-soft);
  font-weight: 600;
}

.player-hero__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.player-hero__team a {
  color: #fff;
  font-weight: 600;
}

.player-hero__team a:hover {
  color: var(--ice);
}

.player-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 20px;
}

.player-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.player-tab:hover {
  color: #fff;
}

.player-tab[aria-selected="true"] {
  border-color: rgba(99, 216, 255, .35);
  background: rgba(99, 216, 255, .1);
  color: var(--ice);
}

.player-panel[hidden] {
  display: none;
}

.player-panel__note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .82rem;
}

.career-table tfoot th,
.career-table tfoot td {
  padding: 12px;
  border-top: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .02);
  color: #fff;
  font-weight: 600;
}

.career-table tfoot th {
  text-align: left;
  font-size: .82rem;
}

.career-season {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.career-season__tag {
  padding: 2px 7px;
  border: 1px solid rgba(99, 216, 255, .35);
  border-radius: 999px;
  color: var(--ice);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.transfer-list {
  display: grid;
  gap: 10px;
}

.transfer-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.transfer-card__season {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.transfer-card__type {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.transfer-card__route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-soft);
  font-size: .88rem;
}

.transfer-card__arrow {
  color: var(--muted);
}

.transfer-card__player {
  margin: 0 0 6px;
  font-size: .95rem;
}

.transfer-card__player a {
  color: #fff;
  font-weight: 600;
}

.transfer-card__player a:hover {
  color: var(--ice);
}

.team-tabs {
  margin-bottom: 18px;
}

.stats-player__link,
.player__link {
  color: inherit;
}

.stats-player__link:hover,
.player__link:hover {
  color: var(--ice);
}

/* ------------------------------------------------------------------
   Organizace — pravidla
   ------------------------------------------------------------------ */

.rules-text {
  max-width: 820px;
}

.rules-text p {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.8;
}

.rules-text p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Organizace — historie
   ------------------------------------------------------------------ */

.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  min-width: 760px;
}

.history-season {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.history-champion {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.history-champion a {
  color: #fff;
  font-weight: 600;
}

.history-champion a:hover {
  color: var(--ice);
}

.history-current {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid rgba(99, 216, 255, .35);
  border-radius: 999px;
  color: var(--ice);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-muted {
  color: var(--muted);
}

.history-player {
  color: var(--text-soft);
}

.history-player:hover {
  color: var(--ice);
}

/* ------------------------------------------------------------------
   Organizace — kontakt
   ------------------------------------------------------------------ */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.contact-card h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
}

.contact-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
}

.contact-card a {
  color: var(--ice);
}

.contact-card a:hover {
  color: #93e6ff;
}
