.th-team-identity { color: inherit; text-decoration: none; width: fit-content; max-width: 100%; border-radius: 8px; }
.team-card__head--archive { position: relative; }
.team-card__head--archive .th-team-identity {
  position: relative; z-index: 1; display: flex; align-items: center; gap: inherit;
  grid-column: 1 / 3; grid-row: 1 / 3; min-width: 0;
}
.th-team-caption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.team-card__head--archive .th-team-caption .team-card__rank { margin-inline-start: 0; }
.team-card__head--archive .th-team-caption .team-card__name { display: block; }
.team-card__toggle { grid-column: 3; grid-row: 1 / 3; align-self: center; margin-inline-start: auto; padding: 0; }
.team-card__toggle::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.team-card__toggle:focus-visible::after { outline: 2px solid var(--accent-hi, #ffca77); outline-offset: -4px; }
.team-card__toggle:focus-visible { outline: none; }
.th-team-identity:is(:hover,:focus-visible) :is(.team__logo,.cm-public-team-logo,.cup-team-mark) { outline: 1px solid var(--accent-hi, #ffca77); outline-offset: 2px; }
.site-front .team-card__head .th-team-identity:is(:hover,:focus-visible) .team-card__name,
.site-front .cm-public-team .th-team-identity:is(:hover,:focus-visible) h3,
.site-front .detail-head__team.th-team-identity:is(:hover,:focus-visible),
.site-front .cup-team-chip.th-team-identity:is(:hover,:focus-visible) { color: var(--accent-hi, #ffca77); }
.detail-head__team--b.th-team-identity { justify-self: end; }
.detail-head__team-name, .cup-team-name { transition: color .18s ease; }
.site-front .cup-team-chip.th-team-identity { min-height: 44px; }
.site-front .cup-team-chip.th-team-identity:focus-visible { outline-offset: -2px; }
.site-front .cup-team-marquee:is(:focus-visible,:has(:focus-visible)) { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
.site-front .cup-team-ribbon.is-looping .cup-team-marquee:is(:focus-visible,:has(:focus-visible)) .cup-team-track { animation: none; }
.site-front .cup-team-marquee:is(:focus-visible,:has(:focus-visible)) .cup-team-group[aria-hidden="true"] { display: none; }
.team-history-dialog {
  --th-ink: #111923;
  --th-text: #f4f1eb;
  --th-muted: #adb8c8;
  --th-line: #a8bfd228;
  --th-gold: #f2c681;
  --th-win: #8ce0aa;
  --th-gutter: clamp(23px, 4vw, 49px);
  --th-out: cubic-bezier(.2,.84,.25,1);
  box-sizing: border-box; width: min(1070px, calc(100% - 32px)); max-width: none;
  height: min(806px, 90dvh); max-height: none; padding: 0;
  border: 1px solid #b2bcc048; border-radius: 20px; overflow: hidden;
  background: var(--th-ink); color: var(--th-text); color-scheme: dark;
  box-shadow: 0 30px 110px #050910b8;
}
.team-history-dialog[open] { animation: th-open .52s var(--th-out) both; }
.team-history-dialog::backdrop { background: #080d16cc; backdrop-filter: blur(5px); animation: th-shade .38s ease-out both; }
.team-history-dialog[data-closing]::backdrop { animation: th-unshade .21s ease-in both; }
@keyframes th-open { from { opacity: 0; transform: translateY(22px) scale(.972); } }
@keyframes th-shade { from { opacity: 0; } }
@keyframes th-unshade { to { opacity: 0; } }
.th-content {
  height: 100%; min-width: 0; overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #526074 var(--th-ink);
}
.th-content > h2 { margin: 32px 74px 0 var(--th-gutter); font-size: 25px; }
.th-content > .th-empty, .th-content > .th-season-tab { margin: 16px var(--th-gutter); }
.th-close {
  z-index: 3; position: absolute; inset: 17px 17px auto auto; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid #c7ced447; border-radius: 12px;
  color: var(--th-text); background: #151a25; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.th-close:hover { color: var(--th-gold); background: #302a28; border-color: #f7bd6570; }
.th-close svg { width: 19px; height: 19px; }
.team-history-dialog :is(button,a):focus-visible, .th-team-identity:focus-visible { outline: 2px solid #ffca77; outline-offset: 3px; }
.team-history-dialog svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.team-history-dialog ::selection { background: #c99858; color: #191620; }
.th-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  gap: clamp(15px, 3vw, 29px); min-height: 181px; padding: 34px 76px 32px var(--th-gutter);
  background: radial-gradient(ellipse at 81% 5%, #71432f8f, transparent 65%),
    linear-gradient(110deg, #192532 5%, #201f29 63%, #28222a);
}
.th-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(126deg, transparent 64%, #edbd8133 64.14%, transparent 64.3%),
    linear-gradient(126deg, transparent 72%, #edbd8124 72.12%, transparent 72.25%),
    linear-gradient(to top, #101722b0, transparent 70%);
}
.th-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(117deg, transparent 34%, #ffd99939 49%, transparent 63%);
  animation: th-light .72s var(--th-out) both;
}
@keyframes th-light {
  from { opacity: 0; transform: translateX(-56%); }
  30% { opacity: 1; }
  to { opacity: 0; transform: translateX(44%); }
}
.th-wash {
  position: absolute; z-index: -1; right: -14px; top: 50%; width: min(58%, 410px); height: auto;
  aspect-ratio: 1; object-fit: cover; transform: translateY(-46%) rotate(-12deg);
  filter: saturate(.84) contrast(1.06); mix-blend-mode: screen; opacity: .31;
  mask-image: radial-gradient(ellipse at 54% 48%, #fff 4%, transparent 69%);
  pointer-events: none;
}
.th-logo, .th-match-logo, .th-avatar { position: relative; display: grid; place-items: center; flex: none; overflow: hidden; }
.th-logo {
  width: 84px; height: 84px; border-radius: 16px; background: #252631; color: var(--th-gold);
  border: 1px solid #b6a78c72; box-shadow: 0 10px 26px #090e186e;
}
.th-logo img, .th-match-logo img, .th-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-logo svg { width: 31px; }
.th-hero-copy { min-width: 0; }
.th-hero h2 {
  margin: 0; font: 700 clamp(32px, 5.6vw, 66px)/.98 Rajdhani, system-ui, sans-serif;
  letter-spacing: -.028em; overflow-wrap: anywhere; text-wrap: balance;
}
.th-hero-caption { margin: 7px 0 0; color: var(--th-gold); font-size: 13px; }
.th-seasons {
  position: relative; display: flex; align-items: stretch; gap: 9px; overflow: auto;
  padding-inline: var(--th-gutter); border-block: 1px solid var(--th-line);
  scrollbar-width: none; background: #171f2a;
}
.th-seasons::-webkit-scrollbar { display: none; }
.th-season-tab {
  flex: 0 0 auto; min-height: 49px; max-width: calc(100% - 8px); padding: 9px 13px; border: 0; border-radius: 0;
  background: transparent; color: var(--th-muted); text-align: left; overflow-wrap: anywhere;
  font: inherit; font-size: 14px; font-weight: 640; cursor: pointer; transition: color .18s, background .18s;
}
.th-season-tab small { display: block; color: inherit; opacity: .85; }
.th-season-tab:hover { background: #eebc7611; color: var(--th-text); }
.th-season-tab[aria-selected="true"] { color: var(--th-gold); }
.th-season-tab:focus-visible { outline-offset: -4px !important; }
.th-content > .th-season-tab { border: 1px solid var(--th-line); border-radius: 8px; }
.th-season-indicator {
  position: absolute; z-index: 1; inset: auto auto 0 0; height: 2px; border-radius: 2px 2px 0 0;
  background: var(--th-gold); box-shadow: 0 -2px 11px #eab86e68; pointer-events: none;
  transform-origin: left center;
}
.th-details { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; overflow: clip; }
.th-season { grid-area: 1 / 1; padding: 0 var(--th-gutter) 29px; }
.th-season--leaving { position: relative; z-index: 1; pointer-events: none; }
.th-season:not(.th-season--leaving) :is(.th-summary,.th-lineup,.th-matches > li,.th-results-head) {
  animation: th-arrive .40s var(--th-out) backwards; animation-delay: var(--th-delay, 0ms);
}
.th-matches > :nth-child(1) { --th-delay: 38ms; }
.th-matches > :nth-child(2) { --th-delay: 66ms; }
.th-matches > :nth-child(3) { --th-delay: 94ms; }
.th-matches > :nth-child(4) { --th-delay: 122ms; }
.th-matches > :nth-child(n+5) { --th-delay: 150ms; }
.th-lineup { --th-delay: 84ms; }
@keyframes th-arrive {
  from { opacity: 0; transform: translate(calc(var(--th-direction) * 14px), 7px); }
}
.th-season-name { margin: 0; padding: 10px 0 0; color: var(--th-muted); font-size: 13px; }
.th-summary {
  display: grid; grid-template-columns: 1.02fr 1.22fr .82fr; margin: 0 0 24px; padding-block: 14px;
  border-bottom: 1px solid var(--th-line);
}
.th-stat { display: flex; align-items: baseline; justify-content: center; gap: clamp(5px, 1.2vw, 13px); min-width: 0; padding-inline: 9px; }
.th-stat + .th-stat { border-inline-start: 1px solid var(--th-line); }
.th-stat dt { color: var(--th-muted); font-size: 12px; white-space: nowrap; }
.th-stat dd {
  margin: 0; font: 700 clamp(17px, 2.5vw, 31px)/1.15 Rajdhani, system-ui, sans-serif;
  font-variant-numeric: tabular-nums; text-align: center; overflow-wrap: anywhere;
}
.th-stat[data-medal="gold"] dd { color: var(--th-gold); }
.th-stat[data-medal="silver"] dd { color: #d8e6f6; }
.th-stat[data-medal="bronze"] dd { color: #efb58c; }
.th-columns { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); align-items: start; gap: 29px; }
.th-results, .th-lineup { min-width: 0; }
.th-lineup { padding: 13px 14px 6px; border: 1px solid var(--th-line); border-radius: 12px; background: linear-gradient(153deg, #1b2635, #131e2b 80%); }
.th-columns h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 8px;
  font-size: clamp(16px, 1.65vw, 21px); line-height: 1.4; font-weight: 720;
}
.th-columns h3::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #c2a07580, var(--th-line));
}
.th-results-head { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.th-results-head h3 { flex: 1; margin: 0; }
.th-form { display: flex; align-items: center; gap: 4px; flex: none; }
.th-form-caption { margin-inline-end: 3px; color: var(--th-muted); font-size: 11px; }
.th-roster, .th-matches { margin: 0; padding: 0; list-style: none; }
.th-roster li + li { border-top: 1px solid var(--th-line); }
.th-person { display: flex; align-items: center; gap: 9px; padding: 6px 2px; min-width: 0; min-height: 44px; color: var(--th-text); text-decoration: none; }
.th-person-name { min-width: 0; line-height: 1.45; }
.th-person strong, .th-match-team strong { font-size: 14px; font-weight: 650; line-height: 1.33; overflow-wrap: anywhere; }
.th-person[href]:hover, .th-match[href]:hover .th-match-team strong { color: var(--th-gold); }
.th-avatar, .th-match-logo { border-radius: 50%; width: 36px; height: 36px; background: #28364a; color: #bbcee4; border: 1px solid #a8bfd244; }
.th-match-logo { width: 40px; height: 40px; }
.th-avatar svg, .th-match-logo svg { width: 17px; }
.th-roster-badge { display: inline-flex; vertical-align: 1px; margin-inline-start: 6px; padding: 1px 5px; border: 1px solid #a8bfd225; border-radius: 5px; font-size: 11px; font-weight: 600; color: #bec8d7; background: #242e3c; white-space: nowrap; }
.th-captain { color: #f8d69e; background: #463724; border-color: #f8d69e37; }
.th-matches { display: grid; gap: 6px; }
.th-match {
  position: relative; isolation: isolate; display: grid; gap: 6px; min-height: 81px; padding: 8px 11px 10px;
  border: 1px solid #7a93ae28; border-radius: 9px; color: inherit; text-decoration: none;
  background: linear-gradient(105deg, #1c2939, #182230 53%, #1b2736);
  transition: border-color .2s; scroll-margin-block: 12px;
}
.th-match[href]::before {
  content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(108deg, #edb67513, transparent 54%, #e6b5770f);
  opacity: 0; transition: opacity .24s;
}
.th-match[href]:is(:hover,:focus-visible) { border-color: #efbe765d; }
.th-match[href]:is(:hover,:focus-visible)::before { opacity: 1; }
.th-match-meta { display: flex; align-items: center; gap: 7px; color: var(--th-muted); font-size: 12px; }
.th-format { flex: none; padding: 1px 5px; border-radius: 4px; background: #101925; color: #c4d2e3; font-size: 11px; font-weight: 650; }
.th-match-meta svg { flex: none; width: 14px; height: 14px; transition: transform .23s var(--th-out); }
.th-match[href]:is(:hover,:focus-visible) .th-match-meta svg { transform: translateX(3px); }
.th-fixture { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: clamp(7px, 1.8vw, 19px); align-items: center; }
.th-match-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.th-match-team--away { flex-direction: row-reverse; text-align: right; }
.th-score {
  display: inline-grid; grid-template-columns: 1fr auto 1fr; justify-items: center; align-items: center;
  gap: 6px; min-width: 67px; text-align: center;
  font: 700 31px/.92 Rajdhani, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.th-score--empty { display: block; }
.th-score-divider { color: var(--th-muted); font-size: .62em; }
.th-score-winner { color: var(--th-win); }
.th-result { display: inline-grid; place-items: center; flex: none; margin-inline-start: auto; padding: 1px 6px; border: 1px solid #a8bfd225; border-radius: 5px; color: #d0d8e3; background: #252f3f; white-space: nowrap; font-size: 11px; font-weight: 650; }
.th-result[data-result="win"] { color: var(--th-win); background: #19392e; border-color: #8ce0aa33; }
.th-result[data-result="loss"] { color: #f4adab; background: #3c282e; border-color: #f4adab35; }
.th-form-mark { width: 20px; height: 20px; padding: 0; margin: 0; }
.th-empty { color: var(--th-muted); padding: 9px 0; font-size: 14px; }
.th-team-identity, .team-card__toggle, .team-history-dialog :is(button,a) { touch-action: manipulation; }
@media (max-width: 730px) {
  .team-history-dialog { --th-gutter: 17px; width: calc(100% - 20px); height: 92dvh; border-radius: 16px; }
  .th-hero { min-height: 118px; padding: 23px 58px 20px var(--th-gutter); }
  .th-logo { width: 58px; height: 58px; border-radius: 12px; }
  .th-wash { right: 2px; width: min(69%, 270px); opacity: .26; }
  .th-close { inset: 8px 8px auto auto; }
  .th-seasons { gap: 4px; }
  .th-season-tab { padding-inline: 8px; font-size: 13px; }
  .th-summary { padding-block: 12px; margin-bottom: 17px; }
  .th-stat { flex-direction: column; align-items: center; gap: 3px; padding-inline: 4px; }
  .th-stat dd { font-size: 20px; }
  .th-columns { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .th-lineup { padding-inline: 11px; }
  .th-match { min-height: 94px; padding-inline: 8px; }
  .th-match-team, .th-match-team--away { flex-direction: column; text-align: center; justify-content: center; gap: 4px; }
  .th-match-team strong { font-size: 13px; }
  .th-match-logo { width: 32px; height: 32px; }
  .th-score { min-width: 53px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-history-dialog[open], .team-history-dialog::backdrop, .th-hero::after,
  .th-season:not(.th-season--leaving) :is(.th-summary,.th-lineup,.th-matches > li,.th-results-head) { animation: none; }
  .team-history-dialog :is(button,a,svg), .th-match[href]::before, .detail-head__team-name, .cup-team-name { transition: none; }
  .th-match[href]:is(:hover,:focus-visible) .th-match-meta svg { transform: none; }
}
