:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #16324f;
  background: #f5f8fc;
  font-synthesis: none;
  --blue: #1686e8;
  --sky: #eaf6ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid #1686e8;
  outline-offset: 4px;
}
button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--sky);
  padding: 10px 18px;
  color: #16324f;
}
img {
  max-width: 100%;
}
.site-header {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 48px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.2px;
  line-height: 1.12;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  margin-top: 8px;
  font-weight: 600;
  color: #698499;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}
nav a {
  padding: 12px 0;
}
nav a[aria-current="page"] {
  color: var(--blue);
}
nav .login {
  padding: 13px 19px;
  border: 1px solid #d4e3ee;
  border-radius: 12px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 0 48px 80px;
  min-height: 60vh;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  color: #578099;
}
.next-game {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #fff 20%, #e8f6ff 80%, #d6eeff);
  border: 1px solid #d8eaf7;
  border-radius: 32px;
  padding: 40px 48px;
  box-shadow: 0 20px 60px #305a7c08;
}
.next-game:before {
  content: "ϟ";
  position: absolute;
  right: -30px;
  top: -150px;
  font-size: 660px;
  font-weight: 900;
  line-height: 1;
  color: #1686e807;
  pointer-events: none;
  transform: rotate(12deg);
}
.next-game > * {
  position: relative;
}
.hero-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.hero-head h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  margin: 10px 0;
}
.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff9;
  border: 1px solid #cce4f5;
  font-size: 12px;
  color: #46738f;
}
.teams {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin: 35px 0;
}
.team-logo {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid #d4e9f8;
  border-radius: 24px;
  margin: 0 auto 16px;
  background: #fff;
  box-shadow: 0 8px 22px #246b9e08;
  font-size: 35px;
  font-weight: 900;
  color: var(--blue);
}
.team-logo img {
  width: 70px;
  height: 70px;
}
.teams h2 {
  font-size: clamp(21px, 2.8vw, 38px);
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.1;
}
.teams small {
  display: block;
  color: #6a869e;
  font-size: 11px;
  margin-top: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.vs {
  font-size: 56px;
  font-weight: 950;
  font-style: italic;
  color: #65b6ee;
  letter-spacing: -5px;
}
.match-bottom {
  border-top: 1px solid #cde2ef;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.when {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.6;
}
.when small {
  display: block;
  color: #71899c;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.countdown {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 750;
  margin-top: 4px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 24px;
  background: var(--blue);
  border-radius: 13px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px #1686e820;
}
.announcement {
  max-width: 720px;
  color: #58748c;
  line-height: 1.7;
  font-size: 14px;
  white-space: pre-line;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 55px 0 22px;
}
.section-head h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 7px 0 0;
}
.section-head a {
  font-size: 13px;
  color: var(--blue);
  font-weight: 650;
}
.dashboard {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 26px;
}
.card {
  background: #fff;
  border: 1px solid #e0eaf2;
  border-radius: 24px;
  padding: 28px;
}
.card h3 {
  margin: 10px 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.metrics {
  display: flex;
  gap: 32px;
  margin-top: 22px;
}
.metrics strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1px;
}
.metrics small {
  font-size: 12px;
  color: #71899c;
}
.score {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 15px 0;
}
.muted {
  color: #71899c;
  font-size: 13px;
  line-height: 1.6;
}
.empty {
  text-align: center;
  padding: 48px 24px;
  color: #698499;
  background: #fff8;
  border: 1px dashed #cfe1ef;
  border-radius: 20px;
}
.empty .team-logo {
  margin-bottom: 24px;
}
.empty h2 {
  color: #16324f;
}
.photos {
  display: block;
  columns: 3;
  column-gap: 16px;
}
.photo {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  padding: 0;
  background: #eaf2f8;
  overflow: hidden;
  border-radius: 18px;
  align-self: start;
  position: relative;
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.page-title {
  padding: 32px 0 25px;
}
.page-title h1 {
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -2px;
  margin: 8px 0;
}
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.player {
  background: white;
  border: 1px solid #deebf4;
  border-radius: 22px;
  padding: 24px;
  transition: transform 0.2s;
}
.player:hover {
  transform: translateY(-4px);
}
.portrait {
  position: relative;
  background: linear-gradient(140deg, #eff8ff, #dcefff);
  height: 190px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d9efff;
  color: #1686e8;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar.big {
  width: 120px;
  height: 120px;
  font-size: 40px;
}
.jersey {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 30px;
  color: #1686e8;
  font-weight: 900;
}
.player h2 {
  font-size: 21px;
  letter-spacing: -0.7px;
  margin: 0 0 9px;
}
.player p {
  font-size: 12px;
  color: #6b879c;
  margin: 0;
}
.profile-head {
  display: flex;
  gap: 30px;
  align-items: center;
}
.profile-head h1 {
  font-size: 38px;
  margin: 10px 0;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filters select {
  background: white;
  border: 1px solid #d9e6ef;
  border-radius: 12px;
  padding: 12px;
  min-height: 44px;
  color: #16324f;
  max-width: 100%;
}
.match-list {
  display: grid;
  gap: 14px;
}
.match-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 20px;
  align-items: center;
  background: white;
  padding: 24px;
  border: 1px solid #e0eaf2;
  border-radius: 20px;
}
.match-row h2 {
  font-size: 19px;
  margin: 4px 0;
}
.match-row .score {
  font-size: 28px;
  letter-spacing: -1px;
}
.match-detail {
  max-width: 900px;
  margin: 20px auto;
}
.detail-copy {
  white-space: pre-line;
  line-height: 1.8;
  color: #58748c;
}
.set-scores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.set-scores span {
  background: #edf7ff;
  border-radius: 12px;
  padding: 14px;
}
.demo-note {
  background: #fff4dc;
  color: #88601c;
  border: 1px solid #f0ddae;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 12px;
  margin: 18px 0;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #71899c;
}
dialog {
  border: 0;
  padding: 45px;
  background: #0d2035f5;
  color: white;
  width: 96vw;
  max-width: 1400px;
  height: 92vh;
  border-radius: 20px;
}
dialog[open] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
dialog::backdrop {
  background: #071421dd;
}
dialog figure {
  margin: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: calc(100% - 100px);
  max-height: 100%;
}
dialog figure img {
  object-fit: contain;
  max-height: 72vh;
}
dialog button {
  background: #ffffff18;
  color: #fff;
  font-size: 25px;
  padding: 4px 14px;
  flex-shrink: 0;
}
#light-close {
  position: absolute;
  top: 8px;
  right: 14px;
}
figcaption {
  text-align: center;
  font-size: 13px;
  padding: 16px;
  white-space: pre-wrap;
}
.league-note {
  margin-top: 30px;
  font-size: 12px;
  color: #71899c;
  line-height: 1.8;
}
.league-note a {
  color: var(--blue);
}
.next-game h2 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
@media (max-width: 1000px) {
  .site-header {
    padding: 24px;
    flex-wrap: wrap;
  }
  main {
    padding: 0 24px 50px;
  }
  nav {
    gap: 20px;
  }
  .roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .next-game {
    padding: 30px;
  }
  .match-bottom {
    flex-wrap: wrap;
  }
  .teams {
    grid-template-columns: 1fr 70px 1fr;
  }
  .vs {
    font-size: 44px;
  }
}
@media (max-width: 650px) {
  .site-header {
    gap: 20px;
    padding: 20px;
  }
  .brand {
    font-size: 14px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    font-size: 11px;
    flex-wrap: wrap;
  }
  nav .login {
    padding: 9px 10px;
  }
  main {
    padding: 0 16px 40px;
  }
  .next-game {
    padding: 24px 19px;
    border-radius: 24px;
  }
  .hero-head {
    align-items: flex-start;
    gap: 10px;
  }
  .hero-head h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .pill {
    font-size: 10px;
    padding: 6px 8px;
    max-width: 48%;
    text-align: center;
  }
  .teams {
    grid-template-columns: minmax(0, 1fr) 35px minmax(0, 1fr);
    gap: 9px;
    margin: 28px 0;
  }
  .team-logo {
    width: 62px;
    height: 62px;
    border-radius: 17px;
    font-size: 25px;
  }
  .team-logo img {
    width: 52px;
    height: 52px;
  }
  .teams h2 {
    font-size: 20px;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
  }
  .teams small {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .vs {
    font-size: 31px;
    letter-spacing: -3px;
  }
  .when {
    font-size: 13px;
    gap: 15px;
  }
  .match-bottom {
    gap: 18px;
    padding-top: 20px;
  }
  .primary {
    width: 100%;
    padding: 15px;
  }
  .countdown {
    font-size: 20px;
  }
  .dashboard {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .card {
    padding: 22px;
    border-radius: 20px;
  }
  .section-head {
    margin-top: 35px;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .section-head a {
    font-size: 11px;
  }
  .photos {
    columns: 2;
  }
  .photo {
    border-radius: 12px;
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .player {
    padding: 13px;
    border-radius: 17px;
  }
  .portrait {
    height: 145px;
    margin-bottom: 16px;
  }
  .portrait .avatar.big {
    width: 90px;
    height: 90px;
    font-size: 30px;
  }
  .jersey {
    font-size: 24px;
    top: 8px;
    right: 8px;
  }
  .player h2 {
    font-size: 17px;
  }
  .player p {
    font-size: 10px;
  }
  .match-row {
    padding: 18px;
    gap: 12px;
    grid-template-columns: 70px minmax(0, 1fr) 45px;
  }
  .match-row h2 {
    font-size: 15px;
  }
  .match-row .score {
    font-size: 23px;
  }
  .match-row .muted {
    font-size: 11px;
  }
  .profile-head {
    align-items: flex-start;
    gap: 18px;
  }
  .profile-head h1 {
    font-size: 28px;
  }
  .profile-head .avatar.big {
    width: 85px;
    height: 85px;
    font-size: 30px;
  }
  .metrics {
    gap: 22px;
    flex-wrap: wrap;
  }
  .metrics strong {
    font-size: 32px;
  }
  footer {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 20px;
  }
  footer p {
    text-align: left;
  }
  dialog {
    padding: 40px 8px 12px;
    height: 88vh;
  }
  dialog[open] {
    gap: 4px;
  }
  dialog button {
    padding: 3px 10px;
  }
  dialog figure {
    max-width: calc(100% - 78px);
  }
  .page-title {
    padding-top: 24px;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    font-size: 13px;
    flex: 1;
  }
  .empty {
    padding: 32px 16px;
  }
}

.avatar {
  position: relative;
}
.avatar img {
  position: absolute;
  inset: 0;
}
.avatar img[hidden] {
  display: none;
}

/* Balanced club emblems, with no nested app-icon frame. */
.teams{align-items:center}
.teams>div:not(.vs){display:grid;grid-template-rows:96px minmax(86px,auto) 20px;justify-items:center;align-items:center;min-width:0}
.teams .team-logo{width:96px;height:96px;margin:0;border-radius:50%;background:#fff;border:1px solid #d8e9f5;box-shadow:0 6px 20px #173b6006}
.teams .team-logo img{width:80px;height:80px;display:block;object-fit:contain}
.teams h2{margin:16px 0 8px;line-height:1.15}
.teams small{align-self:end}
@media(max-width:600px){
 .teams>div:not(.vs){grid-template-rows:72px 66px 18px}
 .teams .team-logo{width:72px;height:72px}
 .teams .team-logo img{width:62px;height:62px}
 .teams h2{font-size:19px;margin:12px 0 6px}
}

.social-links{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.social-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;min-height:44px;border-radius:13px;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none;color:#fff;transition:filter .16s,transform .16s}
.social-button img{display:block;flex-shrink:0}
.social-vk{background:#0077ff}
.social-telegram{background:#229ed9}
.social-button:hover{filter:brightness(.94);transform:translateY(-1px)}
.social-button:focus-visible{outline:3px solid #8ecfff;outline-offset:3px}
.broadcast-note{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin:20px 0;border:1px solid #cde5f8;border-radius:18px;background:#ffffffb3}
.broadcast-note strong{font-size:14px;color:#16324f}
.broadcast-note p{font-size:12px;margin:6px 0 0;color:#698499}
.broadcast-dot{display:inline-block;width:7px;height:7px;margin-right:8px;border-radius:50%;background:#0077ff}
footer .social-links{gap:10px}
.developer-credit{font-size:12px;justify-self:end;align-self:end;color:#476b86}
@media(max-width:600px){.broadcast-note{align-items:stretch;flex-direction:column;padding:16px}.broadcast-note .social-button{align-self:flex-start}.developer-credit{justify-self:start}}

.site-footer{background:#fff;border-top:1px solid #e0eaf2;padding:40px max(24px,calc((100vw - 1304px)/2)) 22px;color:#698499;font-size:13px;display:block}
.footer-main{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(150px,1fr) auto;gap:40px;align-items:start}
.footer-identity .brand{display:flex;align-items:center;gap:12px;color:#16324f;font-size:16px;letter-spacing:.5px}
.footer-identity .brand img{flex-shrink:0;border-radius:10px}
.footer-identity p{margin:16px 0 7px;text-align:left}
.footer-identity small{font-size:12px}
.footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding-top:2px}
.footer-connect{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.footer-connect .social-links{gap:10px}
.android-download{font-size:12px}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e8eff5;padding-top:20px;margin-top:32px;font-size:11px}
.footer-bottom .developer-credit{font-size:12px}
@media(max-width:760px){.footer-main{grid-template-columns:1fr 1fr;gap:28px}.footer-identity{grid-column:1/-1}.footer-connect{justify-self:end}}
@media(max-width:480px){.site-footer{padding:30px 20px 22px}.footer-main{grid-template-columns:1fr;gap:26px}.footer-identity{grid-column:auto}.footer-identity .brand{font-size:14px}.footer-links{flex-direction:row;flex-wrap:wrap;gap:12px 20px}.footer-connect{justify-self:start}.footer-bottom{margin-top:28px;gap:12px;flex-wrap:wrap}}
.footer-links a{padding:0;font-weight:500;line-height:1.5;border:0;border-radius:0;background:transparent}

/* Clip uploaded photos to the same circular shape as fallback initials. */
.avatar { overflow: hidden; border-radius: 50%; isolation: isolate; }
.avatar > img { display: block; border-radius: inherit; object-fit: cover; clip-path: circle(50%); }

/* Public match protocols: one visible table, fixed player names and explicit horizontal navigation. */
.public-match-statistics {min-width:0;max-width:100%;}
.public-stats-tabs {display:flex;gap:8px;flex-wrap:wrap;margin:20px 0;}
.public-stats-tabs button {padding:10px 14px;border:1px solid #dbe4f3;border-radius:12px;background:#f1f5fc;color:#14284c;cursor:pointer;font:inherit;}
.public-stats-tabs button[aria-selected="true"] {background:#2456ff;color:white;border-color:#2456ff;}
.public-stats-scroll {overflow-x:auto;max-width:100%;border:1px solid #dbe4f3;border-radius:14px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:auto;scrollbar-color:#6c8de0 #eaf0fa;}
.public-stats-scroll::-webkit-scrollbar {height:12px;}
.public-stats-scroll::-webkit-scrollbar-thumb {background:#6c8de0;border-radius:8px;}
.public-stats-table {width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;font-size:14px;}
.public-stats-table th,.public-stats-table td {padding:12px 10px;border-bottom:1px solid #e4eaf4;border-right:1px solid #e4eaf4;text-align:center;min-width:88px;max-width:142px;}
.public-stats-table thead th {background:#eaf0ff;color:#102142;font-weight:600;}
.public-stats-table th:first-child {position:sticky;left:0;z-index:1;background:#fff;min-width:132px;max-width:180px;text-align:left;box-shadow:3px 0 5px #14284c12;}
.public-stats-table thead th:first-child {background:#eaf0ff;z-index:2;}
.public-stats-slider {display:grid;gap:8px;margin-top:14px;color:#657493;font-size:13px;}
.public-stats-slider input {width:100%;padding:0;min-height:32px;accent-color:#2456ff;}
.public-match-statistics [hidden] {display:none!important;}

.public-chart-section { margin-block: 16px; }
.public-chart-section > summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}
