:root {
  color-scheme: light;
  --ink: #101318;
  --muted: #667085;
  --line: #d9e0e8;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --blue: #034694;
  --mint: #14b88a;
  --coral: #e2574c;
  --sun: #f4be3f;
  --shadow: 0 14px 40px rgba(16, 19, 24, 0.1);
  --app-topbar-blue: #071676;
  --app-topbar-glass-progress: 0;
  --app-topbar-blue-opacity: calc(1 - var(--app-topbar-glass-progress));
  --app-topbar-border-opacity: 0.18;
  --app-topbar-shadow-opacity: 0.08;
  --app-topbar-foreground: #ffffff;
  --match-topbar-brand-opacity: 1;
  --match-topbar-score-opacity: 0;
}

/* Premier League standings */

body.standings-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(5, 10, 30, 0.84), rgba(5, 9, 25, 0.95)),
    url("/stamford-bridge-calendar-bg.jpg") center 24% / cover fixed,
    #070b1c;
  color: #f7f8ff;
}

.standings-page .app-topbar {
  --app-topbar-blue: rgba(7, 12, 35, 0.92);
  --app-topbar-blue-opacity: 1;
  --app-topbar-glass-progress: 1;
  display: grid;
  background: rgba(7, 12, 35, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.league-table-shell {
  width: min(100%, 820px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 86px) 18px calc(env(safe-area-inset-bottom, 0px) + 42px);
}

.league-table-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 154px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(135, 160, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(89, 68, 255, 0.34), transparent 40%),
    linear-gradient(135deg, rgba(20, 29, 74, 0.92), rgba(8, 14, 42, 0.92));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.league-table-hero > div:first-child {
  position: relative;
  z-index: 1;
}

.league-table-hero > div:first-child > span {
  color: rgba(224, 230, 250, 0.52);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.league-table-hero h1 {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.league-table-badge {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.92), 0 12px 30px rgba(0, 0, 0, 0.24);
}

.league-table-badge img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.25));
}

.league-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(135, 160, 255, 0.14);
  border-radius: 17px;
  background: rgba(10, 16, 45, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
}

.league-table-toolbar > div {
  display: grid;
  gap: 3px;
}

.league-table-toolbar strong {
  color: #f7f8ff;
  font-size: 14px;
  font-weight: 900;
}

.league-table-toolbar > div span {
  color: rgba(222, 228, 248, 0.46);
  font-size: 11px;
  font-weight: 750;
}

.league-season-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(135, 160, 255, 0.24);
  border-radius: 999px;
  background: rgba(82, 105, 200, 0.12);
  color: #cdd7ff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.league-season-select:focus-within {
  border-color: rgba(151, 172, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(111, 137, 240, 0.12);
}

.league-season-select select {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}

.league-season-select select:disabled {
  cursor: default;
}

.league-season-select > span,
.league-season-select svg {
  pointer-events: none;
}

.league-season-select svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.league-table-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(135, 160, 255, 0.16);
  border-radius: 20px;
  background: rgba(8, 13, 38, 0.9);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}

.league-table-head,
.league-table-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) repeat(4, 38px) 50px 42px;
  align-items: center;
  min-width: 0;
}

.league-table-head {
  position: relative;
  z-index: 2;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(135, 160, 255, 0.14);
  background: rgba(15, 22, 58, 0.98);
  color: rgba(220, 226, 247, 0.5);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.league-table-head span:not(:nth-child(2)),
.league-table-row > span:not(.league-table-team),
.league-table-points {
  justify-self: center;
  text-align: center;
}

.league-table-row {
  position: relative;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(135, 160, 255, 0.09);
  color: rgba(232, 236, 250, 0.68);
  font-size: 12px;
  font-weight: 750;
}

.league-table-row:last-child {
  border-bottom: 0;
}

.league-table-row.is-chelsea {
  border-bottom-color: rgba(120, 150, 255, 0.32);
  background: linear-gradient(90deg, rgba(45, 76, 180, 0.5), rgba(32, 48, 113, 0.24));
  color: #ffffff;
  box-shadow: inset 3px 0 #87a1ff;
}

.league-table-rank,
.league-table-points {
  color: #f7f8ff;
  font-size: 13px;
  font-weight: 950;
}

.league-table-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.league-table-team img {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.league-table-team strong {
  min-width: 0;
  overflow: hidden;
  color: #f5f7ff;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-table-note {
  margin: 13px 6px 0;
  color: rgba(220, 226, 247, 0.38);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

.league-table-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
}

.league-table-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8da5ff;
  animation: league-table-pulse 900ms ease-in-out infinite alternate;
}

.league-table-loading span:nth-child(2) {
  animation-delay: 150ms;
}

.league-table-loading span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes league-table-pulse {
  from { opacity: 0.25; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

.league-table-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  color: rgba(224, 230, 250, 0.58);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.league-table-empty button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(135, 160, 255, 0.6);
  border-radius: 10px;
  background: rgba(81, 105, 207, 0.16);
  color: #dce3ff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 560px) {
  .league-table-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .league-table-hero {
    min-height: 132px;
    padding: 19px 18px;
    border-radius: 20px;
  }

  .league-table-hero h1 {
    font-size: 32px;
  }

  .league-table-badge {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .league-table-badge img {
    width: 52px;
    height: 52px;
  }

  .league-table-head,
  .league-table-row {
    grid-template-columns: 28px minmax(112px, 1fr) repeat(4, 27px) 38px 32px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .league-table-row {
    min-height: 52px;
    font-size: 11px;
  }

  .league-table-team {
    gap: 7px;
  }

  .league-table-team img {
    width: 24px;
    height: 24px;
  }

  .league-table-team strong {
    font-size: 12px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(3, 70, 148, 0.09), rgba(20, 184, 138, 0.06) 36%, rgba(244, 247, 251, 0.9)),
    var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: clip;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(20, 184, 138, 0.45);
  outline-offset: 3px;
}

.app-shell,
.admin-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 16px 16px 112px;
}

.home-screen .app-shell,
.player-screen .app-shell {
  padding-top: calc(env(safe-area-inset-top, 0px) + 86px);
}

.home-screen .app-shell {
  padding-top: 0;
}

.schedule-page .schedule-shell {
  padding-top: calc(env(safe-area-inset-top, 0px) + 88px);
}

.app-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 180;
  display: none;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  min-height: calc(env(safe-area-inset-top, 0px) + 64px);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, var(--app-topbar-border-opacity));
  border-radius: 0;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: var(--app-topbar-foreground);
  box-shadow: 0 8px 28px rgba(3, 10, 20, var(--app-topbar-shadow-opacity));
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.app-topbar::before,
.app-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.app-topbar::before {
  background: var(--app-topbar-blue);
  opacity: var(--app-topbar-blue-opacity);
}

.app-topbar::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.02);
  opacity: var(--app-topbar-glass-progress);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.app-topbar > * {
  position: relative;
  z-index: 1;
}

.home-screen .app-topbar,
.player-screen .app-topbar,
.schedule-page .app-topbar,
.videos-page .app-topbar,
.match-screen .app-topbar {
  display: grid;
}

.home-screen .app-topbar {
  --app-topbar-blue-opacity: 0;
  --app-topbar-border-opacity: 0;
  --app-topbar-shadow-opacity: 0;
  overflow: visible;
}

.home-screen .app-topbar::after {
  inset: 0 0 -12px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.92) 0%, rgba(246, 249, 255, 0.86) 84%, rgba(242, 247, 255, 0) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(218, 230, 255, 0.14));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, 0.78) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 84%, rgba(0, 0, 0, 0.78) 90%, transparent 100%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

@media (min-width: 921px) {
  .home-screen .app-topbar {
    right: auto;
    left: 50%;
    width: 920px;
    transform: translateX(-50%);
  }
}

.match-screen .app-topbar {
  --app-topbar-blue-opacity: 0;
  --app-topbar-border-opacity: calc(0.18 * var(--app-topbar-glass-progress));
  --app-topbar-shadow-opacity: calc(0.08 * var(--app-topbar-glass-progress));
}

.app-menu-button {
  position: relative;
  display: block;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--app-topbar-foreground);
  box-shadow: none;
}

.app-menu-button span {
  position: absolute;
  top: calc(50% - 1px);
  left: 13px;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms ease;
}

.app-menu-button span:nth-child(1) {
  transform: translateY(-6px);
}

.app-menu-button span:nth-child(3) {
  transform: translateY(6px);
}

.app-topbar-center {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  min-width: 0;
  pointer-events: none;
}

.app-topbar-logo,
.app-menu-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 8px;
  color: var(--app-topbar-foreground);
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-topbar-logo {
  grid-area: 1 / 1;
  pointer-events: auto;
}

.app-menu-logo {
  justify-self: center;
}

.app-topbar-logo img,
.app-menu-logo img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(3, 10, 20, 0.14);
}

.app-topbar-spacer,
.app-topbar-competition {
  width: 44px;
  height: 44px;
  justify-self: end;
}

.app-topbar-competition {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.96;
}

.app-topbar-competition::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 6px 18px rgba(3, 10, 20, 0.2),
    inset 0 0 0 1px rgba(3, 10, 20, 0.08);
}

.app-topbar-competition[hidden] {
  display: none;
}

.app-topbar-competition img {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(3, 10, 20, 0.18));
}

.app-topbar-match-score {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 8px;
  opacity: 0;
  transform: translateY(7px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.match-screen .app-topbar-logo {
  opacity: var(--match-topbar-brand-opacity, 1);
  transform: translateY(calc(-7px * var(--match-topbar-score-opacity, 0)));
}

.match-screen.match-topbar-score-visible .app-topbar-logo {
  pointer-events: none;
}

.match-screen .app-topbar-match-score {
  opacity: var(--match-topbar-score-opacity, 0);
  transform: translateY(calc(7px * var(--match-topbar-brand-opacity, 1)));
}

.app-topbar-match-score .compact-team-logo {
  width: 30px;
  height: 30px;
}

.app-topbar-match-score .compact-score-side {
  min-width: 20px;
  font-size: 28px;
}

.app-topbar-match-score .compact-status-pill {
  min-width: 40px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 14px;
}

.app-menu-overlay[hidden] {
  display: none;
}

.app-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 420;
  color: #ffffff;
  opacity: 0;
  transition: opacity 220ms ease;
}

.app-menu-overlay.is-open {
  opacity: 1;
}

.app-menu-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 66%, rgba(20, 184, 138, 0.13), rgba(20, 184, 138, 0) 34%),
    linear-gradient(180deg, rgba(10, 19, 20, 0.82), rgba(3, 8, 9, 0.92));
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
}

.app-menu-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(3, 8, 9, 0.2);
  transform: translateY(-10px);
  transition: transform 220ms ease;
}

.app-menu-overlay.is-open .app-menu-panel {
  transform: translateY(0);
}

.app-menu-head {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
  align-items: center;
  min-height: 48px;
  margin-bottom: 42px;
}

.app-menu-close {
  position: relative;
  justify-self: start;
  display: block;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.app-menu-close span {
  position: absolute;
  top: calc(50% - 1px);
  left: 13px;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms ease;
}

.app-menu-close span:nth-child(1) {
  transform: translateY(-6px);
}

.app-menu-close span:nth-child(3) {
  transform: translateY(6px);
}

.app-menu-overlay.is-open .app-menu-close span:nth-child(1),
body.app-menu-open .app-menu-button span:nth-child(1) {
  transform: rotate(45deg);
}

.app-menu-overlay.is-open .app-menu-close span:nth-child(2),
body.app-menu-open .app-menu-button span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.app-menu-overlay.is-open .app-menu-close span:nth-child(3),
body.app-menu-open .app-menu-button span:nth-child(3) {
  transform: rotate(-45deg);
}

.app-menu-list path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-logo {
  color: #ffffff;
  font-size: 19px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.app-menu-logo img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.app-menu-head-spacer {
  justify-self: end;
  width: 44px;
  height: 44px;
}

.app-menu-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.app-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 8vw, 52px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.app-menu-list a.is-active {
  color: #ffffff;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.2);
}

.app-menu-list svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

body.app-menu-open {
  overflow: hidden;
}

.hero-banner {
  --match-hero-progress: 0;
  --match-compact-opacity: 0;
  --match-compact-y: -10px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -16px -16px 18px;
  padding: 20px 16px 24px;
  background-color: #091524;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(3, 12, 24, 0.24);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(73, 118, 194, 0.24), rgba(73, 118, 194, 0) 34%),
    linear-gradient(180deg, rgba(3, 10, 20, 0.18), rgba(3, 10, 20, 0.5) 48%, rgba(3, 10, 20, 0.72)),
    linear-gradient(90deg, rgba(3, 10, 20, 0.18), rgba(3, 10, 20, 0.04) 38%, rgba(3, 10, 20, 0.22));
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(3, 10, 20, 0), rgba(244, 247, 251, 0.22));
}

.hero-banner > * {
  position: relative;
  z-index: 1;
}

.match-screen .hero-banner {
  z-index: 1;
  padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
}

.match-screen .match-back-button,
.match-screen .match-compact-bar {
  display: none;
}

.match-back-button {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 11px);
  left: 12px;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(3, 10, 20, 0.05);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
  opacity: var(--match-compact-opacity);
  transform: translateY(var(--match-compact-y));
  pointer-events: none;
}

.match-back-button svg {
  width: 25px;
  height: 25px;
}

.match-back-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.match-compact-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(env(safe-area-inset-top, 0px) + 66px);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 64px 10px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.018);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 6px 18px rgba(3, 10, 20, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  opacity: var(--match-compact-opacity);
  transform: translateY(var(--match-compact-y));
  pointer-events: none;
}

.compact-team-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(2, 8, 28, 0.22));
}

.compact-score-side {
  min-width: 24px;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.55),
    0 1px 12px rgba(3, 10, 20, 0.08);
}

.compact-score-side:empty {
  display: none;
}

.compact-status-pill {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(3, 70, 148, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #073a78;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.match-screen .hero-banner.is-collapsed .match-back-button {
  pointer-events: auto;
}

.league-badge {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 72px;
  aspect-ratio: 1 / 1;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.league-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.channel-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 72px;
  margin: 4px 0 16px;
  gap: 16px;
}

.channel-head > img {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  justify-self: start;
}

.channel-head h1 {
  max-width: 100%;
  margin: 0;
  text-align: center;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-banner .channel-head {
  margin: 0 0 18px;
}

.hero-banner .channel-head h1 {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(3, 10, 20, 0.3);
}

.match-strip {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
}

.hero-banner .match-strip {
  gap: 16px;
  margin-bottom: 16px;
}

.match-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  text-align: center;
}

.match-kickoff {
  color: rgba(230, 237, 248, 0.92);
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(3, 10, 20, 0.26);
}

.match-status {
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(3, 10, 20, 0.24);
}

.match-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.team {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.team-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.team-form {
  display: flex;
  gap: 6px;
  min-height: 14px;
  justify-content: center;
}

.team-away .team-form {
  justify-content: center;
}

.form-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #98a2b3;
}

.form-W {
  background: var(--mint);
}

.form-D {
  background: #ffc107;
}

.form-L {
  background: var(--coral);
}

.team-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-banner .team {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(3, 10, 20, 0.28);
}

.hero-banner .team-logo {
  width: 74px;
  height: 74px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 14px 30px rgba(3, 10, 20, 0.34),
    0 0 0 7px rgba(255, 255, 255, 0.04);
  filter: drop-shadow(0 12px 24px rgba(3, 10, 20, 0.3)) saturate(1.06);
  transform: translateY(-1px);
}

.team-name {
  display: block;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 900;
}

.team-xg {
  display: block;
  max-width: 100%;
  color: rgba(16, 19, 24, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.hero-banner .team-xg {
  color: rgba(226, 236, 255, 0.74);
}

.team-outlook {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.team-outlook-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  color: rgba(235, 242, 255, 0.9);
  font-weight: 800;
}

.team-outlook-line small {
  color: rgba(196, 210, 236, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.team-outlook-line strong {
  font-size: 14px;
  line-height: 1;
}

.score-block {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-width: 172px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow:
    0 18px 34px rgba(3, 10, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-banner .score-block {
  background: rgba(255, 255, 255, 0.1);
}

.score-block strong {
  color: #ffffff;
  font-size: 66px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 8px 24px rgba(3, 10, 20, 0.24);
}

.draw-outlook {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.draw-outlook-line {
  color: rgba(228, 236, 252, 0.84);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.hero-venue {
  max-width: 100%;
  margin: 4px 0 0;
  color: rgba(230, 237, 248, 0.88);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(3, 10, 20, 0.26);
  overflow-wrap: anywhere;
}

.intro {
  margin: 0 0 18px;
}

.intro p {
  max-width: 680px;
  margin: 0 0 8px;
  color: var(--muted);
}

.intro h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.rating-intro {
  margin-top: 18px;
}

.lineup-intro {
  margin-top: 0;
}

.lineup-intro p:last-child {
  margin-bottom: 0;
}

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 87, 76, 0.32);
  border-radius: 8px;
  background: rgba(226, 87, 76, 0.08);
  color: #7d221b;
  font-weight: 700;
}

.empty-state {
  margin: 0 0 18px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.1;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.team-stats {
  margin: 0 0 18px;
}

.prematch-card {
  margin: 0 0 18px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
}

.match-videos-card {
  padding-bottom: 16px;
}

.match-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.match-video-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(3, 70, 148, 0.12);
  border-radius: 10px;
  background: #f6f8fc;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.match-video-card:active {
  transform: scale(0.985);
}

.match-video-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #0a102a;
}

.match-video-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.match-video-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.match-video-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.match-video-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.match-video-copy strong {
  color: var(--blue);
  font-size: 15px;
  line-height: 1.05;
  font-weight: 950;
}

.match-video-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #4f5968;
  font-size: 11px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lineups-card {
  padding-bottom: 16px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 44px rgba(16, 19, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(135%);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.lineup-view-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
}

.lineup-view-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #7c8087;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.lineup-view-tab.is-active {
  background: #202124;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 19, 24, 0.18);
}

.lineups-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid rgba(217, 224, 232, 0.72);
  border-radius: 8px;
  background: rgba(244, 247, 251, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lineup-team-tab {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.lineup-team-tab img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.lineup-team-tab.is-active {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 19, 24, 0.08);
}

.lineup-team-tab:active {
  transform: scale(0.985);
}

.lineup-selected-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.lineup-selected-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.08;
}

.lineup-selected-head span {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(3, 70, 148, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

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

.lineup-group {
  display: grid;
  gap: 8px;
}

.lineup-group h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
}

.lineup-list {
  display: grid;
  gap: 0;
}

.lineup-player-row,
.lineup-coach-row {
  display: grid;
  grid-template-columns: 42px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(217, 224, 232, 0.62);
}

.lineup-list .lineup-player-row:last-child,
.lineup-group:last-child .lineup-coach-row:last-child {
  border-bottom: 0;
}

.lineup-player-slot {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.lineup-player-slot strong {
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.lineup-player-slot span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.lineup-player-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #eef4fb;
  box-shadow: 0 0 0 1px rgba(217, 224, 232, 0.86);
}

.lineup-player-avatar-coach {
  grid-column: 1 / span 2;
}

.lineup-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineup-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.lineup-player-copy {
  min-width: 0;
}

.lineup-player-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.15;
}

.lineup-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.lineup-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.lineup-status-arrow {
  font-size: 12px;
  line-height: 1;
}

.lineup-status-pill-live {
  background: rgba(31, 184, 111, 0.14);
  color: #0d8a51;
}

.lineup-status-pill-on {
  background: rgba(3, 70, 148, 0.12);
  color: #034694;
}

.lineup-status-pill-off {
  background: rgba(220, 68, 55, 0.14);
  color: #b3271d;
}

.lineup-status-pill-bench {
  background: rgba(112, 128, 144, 0.12);
  color: #66788a;
}

.lineup-player-row-off {
  opacity: 0.72;
}

.lineup-empty {
  padding: 10px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.lineup-pitch {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  padding: 34px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0 47px, rgba(255, 255, 255, 0.22) 48px 51px, rgba(255, 255, 255, 0) 52px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #067744 0%, #057040 50%, #046339 100%);
  background-size: 100% 100%, 74px 100%, 100% 100%;
  box-shadow:
    inset 0 0 0 1px rgba(5, 43, 30, 0.28),
    inset 0 16px 36px rgba(255, 255, 255, 0.04);
}

.lineup-pitch::before,
.lineup-pitch::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lineup-pitch::before {
  inset: 14px 12px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.lineup-pitch::after {
  top: 50%;
  right: 12px;
  left: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.rating-pitch-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  max-width: 72%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.14);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: none;
}

.lineup-pitch-row {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 82px;
}

.lineup-pitch-player {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: min(104px, 100%);
  max-width: 100%;
  min-width: 0;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(3, 12, 24, 0.34);
}

.lineup-pitch-player-off {
  opacity: 0.72;
}

.lineup-pitch-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.86);
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: rgba(238, 244, 251, 0.96);
  box-shadow:
    0 0 0 1px rgba(14, 84, 56, 0.55),
    0 12px 24px rgba(3, 12, 24, 0.24);
}

.lineup-pitch-avatar .lineup-avatar-image,
.lineup-pitch-avatar .lineup-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.lineup-pitch-avatar .lineup-avatar-fallback {
  text-shadow: none;
}

.lineup-pitch-copy {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.lineup-pitch-copy strong {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 900;
}

.lineup-pitch-copy > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
}

.lineup-pitch-substitution {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 46px;
  min-height: 18px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(3, 12, 24, 0.42);
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.lineup-pitch-substitution span {
  font-size: 13px;
  line-height: 1;
}

.lineup-pitch-substitution-on span {
  color: #3ee38d;
}

.lineup-pitch-substitution-off span {
  color: #ff726b;
}

.lineup-pitch-copy .lineup-player-meta {
  justify-content: center;
  margin-top: 2px;
}

.lineup-pitch-copy .lineup-status-pill {
  min-height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(3, 12, 24, 0.42);
  color: #ffffff;
  font-size: 10px;
}

.lineup-event-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.lineup-player-row > .lineup-event-badges {
  justify-self: end;
}

.lineup-pitch-avatar .lineup-event-badges {
  position: absolute;
  right: -9px;
  bottom: -7px;
}

.lineup-event-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #202124;
  box-shadow: 0 5px 12px rgba(3, 12, 24, 0.22);
}

.lineup-event-badge .pill-event-icon {
  width: 15px;
  height: 15px;
}

.lineup-event-badge span:not(.lineup-event-count) {
  color: inherit;
  font-size: 10px;
  font-weight: 900;
}

.lineup-event-badge-multiple {
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  gap: 2px;
  width: auto;
  min-width: 43px;
  padding: 0 4px;
  border-radius: 999px;
}

.lineup-event-count {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 2px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.lineup-event-badge-assist {
  background: #ffffff;
  color: var(--blue);
}

.lineup-event-badge-yellow,
.lineup-event-badge-red {
  width: 18px;
  height: 24px;
  border-radius: 6px;
}

.lineup-event-badge-yellow {
  background: #ffc107;
}

.lineup-event-badge-red {
  background: #ef5350;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.forecast-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.forecast-odd-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  width: min(100%, 178px);
  height: 30px;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid rgba(3, 12, 24, 0.14);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(16, 19, 24, 0.05);
}

.forecast-odd-value {
  display: grid;
  place-items: center;
  padding: 0 8px;
  color: #101318;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.forecast-odd-brand {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: #1290e8;
}

.forecast-odd-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateY(-3px) scale(1.42);
  transform-origin: center;
}

.standings-table {
  display: grid;
  gap: 6px;
}

.standings-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px 32px 44px;
  align-items: stretch;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 224, 232, 0.82);
  border-radius: 8px;
  background: #f9fbfd;
  font-weight: 700;
}

.standings-head {
  min-height: 36px;
  align-items: center;
  border-style: dashed;
  background: #f3f7fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.standings-row > span {
  display: flex;
  align-items: center;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.standings-team img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.standings-team strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.15;
}

.standings-rank,
.standings-points {
  font-weight: 900;
}

.standings-row.is-home-team {
  border-color: var(--blue);
  background: linear-gradient(90deg, rgba(3, 70, 148, 0.96), rgba(18, 96, 194, 0.96));
  box-shadow: 0 8px 16px rgba(3, 70, 148, 0.2);
}

.standings-row.is-away-team {
  border-color: #c83e42;
  background: linear-gradient(90deg, rgba(200, 62, 66, 0.96), rgba(227, 85, 90, 0.96));
  box-shadow: 0 8px 16px rgba(200, 62, 66, 0.2);
}

.standings-row.is-home-team .standings-rank,
.standings-row.is-home-team .standings-team strong,
.standings-row.is-home-team .standings-points,
.standings-row.is-home-team span,
.standings-row.is-away-team .standings-rank,
.standings-row.is-away-team .standings-team strong,
.standings-row.is-away-team .standings-points,
.standings-row.is-away-team span {
  color: #ffffff;
}

.standings-row.is-home-team img,
.standings-row.is-away-team img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

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

.injury-column {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(217, 224, 232, 0.82);
  border-radius: 8px;
  background: #f9fbfd;
}

.injury-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.injury-column-head strong {
  font-size: 17px;
  line-height: 1.1;
}

.injury-column-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.injury-list {
  display: grid;
  gap: 8px;
}

.injury-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.injury-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(3, 70, 148, 0.12);
  border-radius: 50%;
  object-fit: cover;
  background: #eef4fb;
}

.injury-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.injury-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.injury-copy strong,
.injury-copy span {
  overflow-wrap: anywhere;
}

.injury-copy strong {
  font-size: 14px;
  line-height: 1.1;
}

.injury-copy span,
.injury-empty {
  color: var(--muted);
  font-size: 13px;
}

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

.h2h-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(217, 224, 232, 0.82);
  border-radius: 8px;
  background: #f9fbfd;
}

.h2h-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.h2h-meta span {
  font-weight: 900;
}

.h2h-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.h2h-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.h2h-scoreline span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.h2h-scoreline span:last-child {
  text-align: right;
}

.h2h-scoreline strong {
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(3, 70, 148, 0.08);
  color: var(--blue);
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.team-stats details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
}

.team-stats summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.team-stats summary::-webkit-details-marker {
  display: none;
}

.team-stats summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.stats-toggle {
  min-width: 74px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f2f5f8;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.stats-toggle::before {
  content: "Показать";
}

.team-stats details[open] .stats-toggle::before {
  content: "Скрыть";
}

.team-stats-body {
  padding: 2px 14px 14px;
  border-top: 1px solid var(--line);
}

.stat-possession {
  display: grid;
  gap: 8px;
  padding: 14px 0 10px;
}

.stat-possession div:first-child {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
}

.stat-possession strong {
  font-size: 17px;
  font-weight: 900;
}

.stat-possession strong:last-child {
  text-align: right;
}

.stat-possession span {
  color: var(--ink);
  text-align: center;
  font-weight: 800;
}

.stat-split {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.stat-split-home,
.stat-split-away {
  display: block;
  height: 100%;
}

.stat-split-home {
  background: var(--coral);
}

.stat-split-away {
  background: var(--blue);
}

.stat-table {
  display: grid;
  gap: 1px;
}

.stat-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.stat-label {
  min-width: 0;
  text-align: center;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stat-value {
  color: var(--muted);
  font-weight: 900;
}

.stat-value:last-child {
  text-align: right;
}

.stat-value.is-leading {
  justify-self: start;
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  text-align: center;
}

.stat-value:last-child.is-leading {
  justify-self: end;
}

.timeline-card {
  padding-bottom: 12px;
}

.timeline-list {
  display: grid;
  gap: 0;
}

.timeline-event {
  display: grid;
  grid-template-columns: 54px 18px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-height: 58px;
  padding: 9px 0;
}

.timeline-minute {
  align-self: start;
  justify-self: stretch;
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--blue);
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-marker {
  position: relative;
  min-height: 100%;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: -9px;
  bottom: -9px;
  left: 8px;
  width: 2px;
  background: #e3e9f0;
}

.timeline-event:first-child .timeline-marker::before {
  top: 13px;
}

.timeline-event:last-child .timeline-marker::before {
  bottom: calc(100% - 13px);
}

.timeline-marker::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(3, 70, 148, 0.18);
}

.timeline-goal .timeline-marker::after,
.timeline-penalty-goal .timeline-marker::after {
  background: var(--mint);
  box-shadow: 0 0 0 2px rgba(20, 184, 138, 0.2);
}

.timeline-own-goal .timeline-marker::after,
.timeline-missed-penalty .timeline-marker::after {
  background: var(--coral);
  box-shadow: 0 0 0 2px rgba(226, 87, 76, 0.2);
}

.timeline-yellow-card .timeline-marker::after,
.timeline-second-yellow .timeline-marker::after {
  background: #ffc107;
  box-shadow: 0 0 0 2px rgba(244, 190, 63, 0.24);
}

.timeline-red-card .timeline-marker::after {
  background: #ef5350;
  box-shadow: 0 0 0 2px rgba(239, 83, 80, 0.22);
}

.timeline-copy {
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(217, 224, 232, 0.78);
}

.timeline-event:last-child .timeline-copy {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-event-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 12px;
  min-width: 0;
}

.timeline-event-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  text-align: right;
}

.timeline-kind-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(3, 70, 148, 0.08);
  color: var(--blue);
}

.timeline-kind-icon .pill-event-icon {
  width: 15px;
  height: 15px;
}

.timeline-kind-icon-goal {
  background: rgba(20, 184, 138, 0.14);
  color: #0d8a51;
}

.timeline-kind-icon-substitution .rating-substitution-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.timeline-kind-icon-card {
  border-radius: 8px;
}

.timeline-kind-icon-card span {
  display: block;
  width: 11px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.timeline-kind-icon-card-yellow span {
  background: #ffc107;
}

.timeline-kind-icon-card-red span {
  background: #ef5350;
}

.timeline-team {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.timeline-team span {
  overflow-wrap: anywhere;
}

.timeline-team-logo,
.timeline-team-fallback {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.timeline-team-logo {
  object-fit: contain;
}

.timeline-team-fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4fb;
  color: var(--blue);
  font-size: 10px;
}

.timeline-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.timeline-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline-details strong {
  font-weight: 900;
}

.rating-panel {
  width: 100%;
  margin: 0 0 18px;
}

.rating-view-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.rating-view-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7c8087;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-size: 16px;
  font-weight: 900;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.rating-view-tab.is-active {
  background: #202124;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 19, 24, 0.18);
}

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

.rating-field-list {
  gap: 12px;
}

.rating-pitch {
  width: 100%;
  max-width: 100%;
  min-height: 620px;
  padding: 34px 14px 30px;
}

.rating-pitch-row {
  min-height: 92px;
}

.rating-pitch-player {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  width: min(110px, 100%);
  min-width: 0;
  min-height: 92px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 12px rgba(3, 12, 24, 0.38);
  cursor: pointer;
}

.rating-pitch-player:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.rating-pitch-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: visible;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: rgba(238, 244, 251, 0.98);
  box-shadow:
    0 0 0 1px rgba(14, 84, 56, 0.55),
    0 12px 24px rgba(3, 12, 24, 0.24);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.rating-pitch-avatar .lineup-avatar-image,
.rating-pitch-avatar .lineup-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.rating-pitch-avatar .lineup-avatar-fallback {
  text-shadow: none;
}

.rating-pitch-avatar .lineup-event-badges {
  position: absolute;
  right: -10px;
  bottom: -7px;
}

.rating-pitch-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rating-pitch-copy {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.rating-pitch-copy strong {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.12;
  font-weight: 900;
}

.rating-pitch-copy > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
}

.rating-pitch-copy .rating-pitch-score {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(3, 12, 24, 0.18);
}

.rating-substitution-badge {
  position: absolute;
  right: auto;
  bottom: -8px;
  left: -11px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 12px rgba(3, 12, 24, 0.22);
}

.rating-substitution-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.rating-substitution-icon-on {
  stroke: #10b981;
}

.rating-substitution-icon-off {
  stroke: #ff6b61;
}

.rating-pitch-player.selected .rating-pitch-avatar {
  border-color: #f4be3f;
  box-shadow:
    0 0 0 3px rgba(244, 190, 63, 0.26),
    0 14px 30px rgba(3, 12, 24, 0.34);
}

.rating-bench {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(217, 224, 232, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 30px rgba(16, 19, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(130%);
}

.rating-bench h3 {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.rating-bench .rating-pitch-player {
  width: 100%;
  min-height: 104px;
  padding: 8px 6px;
  border: 1px solid rgba(217, 224, 232, 0.72);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-shadow: none;
}

.rating-bench .rating-pitch-copy > span {
  color: var(--muted);
}

.line-heading {
  margin: 12px 0 0;
  padding: 8px 2px 2px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 1.45fr);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
  cursor: pointer;
}

.player-info {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  overflow: visible;
}

.avatar-frame,
.avatar-fallback {
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(3, 70, 148, 0.5);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow:
    0 6px 16px rgba(3, 70, 148, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.avatar-number {
  position: absolute;
  left: 50%;
  bottom: -7px;
  z-index: 1;
  min-width: 30px;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(86, 145, 221, 0.55);
  border-radius: 15px;
  background: #034694;
  box-shadow:
    0 8px 18px rgba(3, 70, 148, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
  color: #f5f9ff;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.player-name {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(3, 70, 148, 0.09);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pill-position {
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pill-position-G {
  background: linear-gradient(180deg, rgba(255, 172, 71, 0.24), rgba(255, 142, 25, 0.34));
  border-color: rgba(255, 149, 0, 0.22);
  color: #b45309;
}

.pill-position-D {
  background: linear-gradient(180deg, rgba(255, 231, 122, 0.3), rgba(250, 204, 21, 0.34));
  border-color: rgba(234, 179, 8, 0.22);
  color: #a16207;
}

.pill-position-M {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.24), rgba(34, 197, 94, 0.34));
  border-color: rgba(34, 197, 94, 0.22);
  color: #15803d;
}

.pill-position-F {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.24), rgba(37, 99, 235, 0.34));
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.pill-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid rgba(3, 70, 148, 0.14);
  color: var(--ink);
}

.pill-arrow {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.pill-on .pill-arrow {
  color: #1ea85d;
}

.pill-off .pill-arrow {
  color: #ef5350;
}

.pill-event,
.pill-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 36px;
  padding: 3px 7px;
  border: 1px solid rgba(3, 70, 148, 0.14);
  background: #ffffff;
  color: var(--ink);
}

.pill-event-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-event-icon-soccer {
  fill: currentColor;
  stroke: none;
}

.pill-event-assist .pill-event-icon:first-child path:first-child {
  fill: currentColor;
  stroke: none;
}

.pill-event-count,
.pill-card-count {
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  color: var(--muted);
}

.card-stack {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-icon {
  display: block;
  width: 12px;
  height: 16px;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 3px rgba(15, 23, 42, 0.14);
}

.pill-card-yellow .card-icon {
  background: #ffc107;
}

.pill-card-red .card-icon {
  background: #ef5350;
}

.rank-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
}

.rank-action-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-action:disabled {
  cursor: default;
  opacity: 0.72;
}

.rank-points {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 20px;
}

.player-row.selected {
  border-color: rgba(3, 70, 148, 0.45);
  background: #f5f9ff;
}

.player-row.selected .rank-action {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.player-row.selected .rank-points {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.results {
  margin-top: 22px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.results-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.results-head span {
  color: var(--muted);
  font-weight: 800;
}

.leader {
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #102033;
  color: #ffffff;
  font-weight: 900;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0 0 12px;
}

.podium-card {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.06);
}

.podium-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.podium-card strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.15;
}

.podium-card div {
  margin-top: 10px;
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.podium-card small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 900;
}

.podium-place-1 {
  min-height: 148px;
  background: #fff8e3;
  border-color: rgba(244, 190, 63, 0.7);
}

.podium-place-2 {
  min-height: 128px;
  background: #eef6ff;
}

.podium-place-3 {
  min-height: 112px;
  background: #fff1ee;
}

.result-list {
  display: grid;
  gap: 8px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(120px, 2fr) 54px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mint), var(--sun), var(--coral));
}

.submit-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 34px rgba(16, 19, 24, 0.12);
  backdrop-filter: blur(14px);
}

.submit-bar[hidden] {
  display: none;
}

.submit-bar > div:first-child {
  display: grid;
  align-content: center;
  width: min(560px, 100%);
  min-width: 0;
}

.submit-bar strong,
.submit-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit-bar span {
  color: var(--muted);
  font-size: 14px;
}

.submit-bar button {
  width: min(190px, 40vw);
  background: var(--mint);
  color: #06251e;
}

.submit-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.submit-actions button {
  width: auto;
  min-width: 132px;
}

.revote-button {
  border: 1px solid rgba(3, 70, 148, 0.18);
  background: #ffffff;
  color: var(--blue);
}

.share-button {
  border: 1px solid rgba(3, 70, 148, 0.18);
  background: var(--blue);
  color: #ffffff;
}

.submit-bar button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
}

.confetti-layer[hidden] {
  display: none;
}

.share-preview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
}

.share-preview[hidden] {
  display: none;
}

.share-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 28, 0.58);
  backdrop-filter: blur(10px);
}

.share-preview-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(520px, 100%);
  max-height: min(86vh, 780px);
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(247, 250, 255, 0.96);
  box-shadow: 0 28px 80px rgba(3, 12, 28, 0.34);
  backdrop-filter: blur(18px);
}

.share-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.share-preview-head span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-preview-head h2 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.share-preview-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
}

.share-preview-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.share-preview-frame {
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(3, 70, 148, 0.18);
  border-radius: 18px;
  background: #071a44;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.share-preview-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.share-preview-note {
  margin: -2px 18px 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 190, 63, 0.34);
  border-radius: 12px;
  background: rgba(244, 190, 63, 0.14);
  color: #6e4a00;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.share-preview-note[hidden] {
  display: none;
}

.share-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.share-preview-actions button {
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}

.share-preview-primary {
  background: var(--blue);
  color: #ffffff;
}

.share-preview-secondary {
  border: 1px solid rgba(3, 70, 148, 0.22);
  background: #ffffff;
  color: var(--blue);
}

.share-preview-actions button:disabled {
  cursor: wait;
  opacity: 0.68;
}

body.share-preview-open {
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: confetti-drop 1050ms cubic-bezier(0.18, 0.72, 0.28, 1) forwards;
}

@keyframes confetti-drop {
  0% {
    opacity: 0;
    transform: translate3d(0, -18px, 0) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift, 0px), calc(100vh + 58px), 0) rotate(var(--confetti-rotate, 480deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece {
    animation: none;
  }
}

.home-view,
.player-view {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-view[hidden],
.player-view[hidden],
.match-view[hidden] {
  display: none;
}

.home-hero,
.player-profile-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.player-profile-hero {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 70, 148, 0.94), rgba(16, 19, 24, 0.88) 58%, rgba(20, 184, 138, 0.72)),
    #0b2346;
  box-shadow: 0 18px 46px rgba(3, 20, 44, 0.22);
}

.player-profile-hero::after {
  content: "CHELSEA";
  position: absolute;
  right: -10px;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 86px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.home-hero {
  display: grid;
  gap: 0;
  margin-inline: -16px;
  border-radius: 0 0 22px 22px;
  background: #050814;
  box-shadow: 0 20px 52px rgba(2, 8, 24, 0.28);
  isolation: isolate;
}

.home-hero-media {
  position: relative;
  min-height: clamp(270px, 50vw, 410px);
  background-color: #050814;
  background-image: url("/chelsea-home-kit-2026-hero.jpg");
  background-position: center 24%;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 18, 0.08) 0%, rgba(2, 7, 20, 0.02) 42%, #050814 100%),
    linear-gradient(90deg, rgba(2, 6, 18, 0.28), transparent 38%, transparent 66%, rgba(2, 6, 18, 0.18));
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: -62px;
  padding: 0 18px 20px;
  background: linear-gradient(180deg, transparent 0, #050814 62px);
}

.home-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
}

.home-brand img {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.home-brand div {
  min-width: 0;
}

.home-brand span,
.home-section-head span,
.player-profile-copy span {
  display: block;
  color: rgba(226, 236, 255, 0.78);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.home-brand h1,
.player-profile-copy h1 {
  margin: 2px 0 0;
  font-size: 32px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-hero-match {
  position: relative;
  z-index: 1;
}

.home-hero-socials {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-hero-socials a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 48, 0.76);
  color: #ffffff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
}

.home-hero-socials img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  object-fit: cover;
}

.home-hero-socials a > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-hero-socials strong {
  font-size: 13px;
  line-height: 1.05;
  font-weight: 950;
}

.home-hero-socials small {
  color: rgba(226, 236, 255, 0.66);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.home-next-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(13, 20, 42, 0.94);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px) saturate(115%);
}

.home-next-card > span {
  color: rgba(226, 236, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-next-teams {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-next-teams img {
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  object-fit: contain;
}

.home-next-teams strong {
  font-size: 25px;
  line-height: 1;
}

.home-next-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-next-copy strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.16;
}

.home-next-copy small {
  color: rgba(226, 236, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(217, 224, 232, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 12px 30px rgba(16, 19, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
}

.home-nav-link {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.home-nav-link.is-active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 19, 24, 0.18);
}

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

.home-stat-card {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
}

.home-stat-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-card strong {
  margin-top: 3px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.home-primary,
.home-secondary,
.player-profile-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-section,
.player-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
}

.home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-section-head span {
  color: var(--muted);
}

.home-section-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.home-section-link {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.home-player-group {
  display: grid;
  gap: 8px;
}

.home-player-group + .home-player-group {
  margin-top: 14px;
}

.home-player-group h3 {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.home-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-player-card,
.home-leader-row,
.home-match-row,
.player-match-row {
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.home-player-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(217, 224, 232, 0.88);
  border-radius: 8px;
  background: #f8fafc;
}

.home-player-photo {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(3, 70, 148, 0.18);
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.home-player-fallback {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.home-player-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.home-player-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-player-meta span {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
}

.home-leader-list,
.home-match-list,
.player-match-list {
  display: grid;
  gap: 8px;
}

.home-leader-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(217, 224, 232, 0.88);
  border-radius: 8px;
  background: #f8fafc;
}

.home-leader-place,
.home-leader-score {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  font-weight: 900;
}

.home-leader-place {
  background: rgba(3, 70, 148, 0.1);
  color: var(--blue);
}

.home-leader-row .home-player-photo {
  width: 42px;
  height: 42px;
}

.home-leader-row strong,
.home-match-row strong,
.player-match-row strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.15;
}

.home-leader-row small,
.player-match-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-leader-score {
  min-width: 44px;
  background: var(--blue);
  color: #ffffff;
}

.home-match-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(217, 224, 232, 0.88);
  border-radius: 8px;
  background: #f8fafc;
}

.home-match-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.home-match-row b {
  min-width: 44px;
  color: var(--blue);
  text-align: right;
  font-size: 15px;
}

.home-fixtures-section {
  overflow: hidden;
}

.home-fixtures-section .home-section-head {
  margin-bottom: 18px;
}

.home-fixtures-strip {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-fixtures-strip::-webkit-scrollbar {
  display: none;
}

.home-fixture-card {
  display: grid;
  grid-template-rows: auto 72px auto auto auto;
  justify-items: center;
  flex: 0 0 clamp(210px, 66vw, 252px);
  min-height: 270px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid rgba(217, 224, 232, 0.92);
  border-radius: 14px;
  background: #f6f8fb;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
}

.home-fixture-card.is-upcoming {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef4ff 100%);
}

.home-fixture-card-meta {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.home-fixture-card-meta > span {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-fixture-card-meta time {
  color: var(--blue);
}

.home-fixture-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding-top: 10px;
}

.home-fixture-logos img,
.home-fixture-logo-fallback {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.home-fixture-logo-fallback {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 950;
}

.home-fixture-opponent {
  align-self: end;
  width: 100%;
  overflow: hidden;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-fixture-result {
  align-self: center;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
}

.home-fixture-card.is-result .home-fixture-result {
  color: var(--blue);
  font-size: 27px;
}

.home-fixture-card > small {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.home-fixtures-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.home-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

.home-section.home-sports-section {
  margin-inline: -16px;
  padding: 16px 16px 8px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.home-sports-section .home-section-head {
  align-items: center;
  margin-bottom: 10px;
  padding-inline: 2px;
}

.home-sports-section .home-section-head > div {
  display: grid;
  gap: 2px;
}

.home-sports-section .home-section-head span {
  letter-spacing: 0;
  text-transform: none;
}

.home-sports-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-sports-brand img {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.home-sports-section .home-section-link {
  min-height: 0;
  padding: 6px 2px;
  background: transparent;
}

.home-sports-list {
  display: flex;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.home-sports-list::-webkit-scrollbar {
  display: none;
}

.home-sports-post {
  display: grid;
  flex: 0 0 clamp(270px, 38%, 420px);
  grid-template-rows: 152px minmax(0, 1fr);
  min-width: 0;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 232, 0.88);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 19, 24, 0.08);
  scroll-snap-align: start;
}

.home-sports-media {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #071e61, #0f48aa);
}

.home-sports-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.home-sports-post:hover .home-sports-media > img {
  transform: scale(1.025);
}

.home-sports-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.home-sports-media-fallback img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(2, 8, 22, 0.28);
}

.home-sports-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px 13px 14px;
}

.home-sports-copy time {
  color: var(--blue);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.home-sports-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.16;
  font-weight: 950;
}

.home-sports-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
}

.player-back-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(3, 70, 148, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--blue);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.06);
}

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

.player-back-link path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-profile-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.player-profile-hero > * {
  position: relative;
  z-index: 1;
}

.player-profile-photo-wrap .home-player-photo {
  width: 112px;
  height: 112px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(3, 10, 20, 0.24);
}

.player-profile-copy {
  min-width: 0;
}

.player-profile-copy p {
  margin: 8px 0 0;
  color: rgba(226, 236, 255, 0.78);
  font-weight: 800;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.player-stat-grid article {
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 19, 24, 0.05);
}

.player-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-stat-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
}

.player-season-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.player-season-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(96px, 1.2fr) 34px 34px 34px 48px;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  font-weight: 800;
}

.player-season-table.is-outfield .player-season-row {
  grid-template-columns: minmax(68px, 1.3fr) repeat(6, minmax(28px, 0.62fr));
}

.player-season-table.is-goalkeeper .player-season-row {
  grid-template-columns: minmax(68px, 1.3fr) repeat(5, minmax(30px, 0.72fr));
}

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

.player-season-head {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(217, 224, 232, 0.88);
  border-radius: 8px;
  background: #f8fafc;
}

.player-match-row > div:first-child > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.player-match-score {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.player-match-score strong {
  color: var(--blue);
  font-size: 17px;
}

.player-match-score span {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-controls,
.admin-matches article,
.vote-log {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-controls input {
  min-height: 44px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-actions button,
.match-actions button {
  padding: 0 14px;
  background: var(--blue);
  color: #ffffff;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-matches h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.admin-matches p {
  margin: 4px 0;
  color: var(--muted);
}

.vote-log-head,
.vote-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vote-log-head p,
.vote-log-summary,
.vote-card p,
.vote-card span {
  margin: 0;
  color: var(--muted);
}

.vote-log-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.15;
}

.vote-log-head button {
  padding: 0 14px;
  background: var(--ink);
  color: #ffffff;
}

.vote-log-summary {
  margin-top: 10px;
  font-weight: 800;
}

.vote-log-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.vote-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.vote-card-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.vote-card-head span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.vote-average {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  text-align: center;
  font-weight: 900;
}

.vote-rating-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.vote-rating-grid span {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

.vote-rating-grid strong {
  color: var(--coral);
}

.schedule-page {
  background: #eef2f6;
}

.schedule-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 16px 86px;
}

.schedule-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
  gap: 18px;
  margin-bottom: 14px;
  padding: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #071676;
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(3, 20, 52, 0.18);
}

.schedule-brand,
.schedule-season-pill {
  position: relative;
  z-index: 1;
}

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

.schedule-brand img {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(3, 12, 24, 0.24);
}

.schedule-brand span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-brand h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.schedule-season-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 950;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(135%);
}

.schedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.schedule-summary-card {
  display: grid;
  align-content: center;
  min-height: 88px;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(16, 19, 24, 0.06);
}

.schedule-summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-summary-card strong {
  color: #07111f;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 950;
}

.schedule-summary-next strong {
  font-size: 20px;
  line-height: 1.18;
}

.schedule-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.schedule-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 430px);
  padding: 4px;
  border: 1px solid rgba(207, 215, 226, 0.92);
  border-radius: 14px;
  background: #e4e9ef;
}

.schedule-view-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.schedule-view-switch button.is-active {
  background: #ffffff;
  color: #071676;
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.1);
}

.schedule-view-switch svg {
  width: 19px;
  height: 19px;
}

.schedule-view-switch path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-calendar-sync {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 310px);
  min-height: 50px;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(207, 215, 226, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #071676;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
}

.schedule-calendar-sync svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.schedule-calendar-sync path,
.calendar-sync-dialog path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-sync-dialog[hidden] {
  display: none;
}

.calendar-sync-dialog {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  align-items: end;
  color: #f7f8ff;
  opacity: 0;
  transition: opacity 220ms ease;
}

.calendar-sync-dialog.is-open {
  opacity: 1;
}

.calendar-sync-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 17, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}

.calendar-sync-panel {
  position: relative;
  width: min(520px, calc(100% - 20px));
  margin: 0 auto 10px;
  padding: 22px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  border: 1px solid rgba(157, 175, 244, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 27, 67, 0.98), rgba(8, 13, 37, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
  transform: translateY(24px);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-sync-panel:focus {
  outline: none;
}

.calendar-sync-dialog.is-open .calendar-sync-panel {
  transform: translateY(0);
}

.calendar-sync-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.calendar-sync-head span {
  display: block;
  margin-bottom: 4px;
  color: rgba(211, 220, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calendar-sync-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.calendar-sync-close {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 255, 0.88);
  box-shadow: none;
}

.calendar-sync-close svg {
  width: 19px;
  height: 19px;
}

.calendar-sync-panel > p {
  margin: 14px 0 18px;
  color: rgba(220, 227, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-sync-options {
  display: grid;
  gap: 8px;
}

.calendar-sync-options > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 66px;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(151, 169, 236, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffffff;
  text-decoration: none;
}

.calendar-sync-provider-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: -2px;
}

.calendar-sync-provider-icon img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.calendar-sync-options > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.calendar-sync-options strong {
  font-size: 15px;
  line-height: 1.2;
}

.calendar-sync-options small {
  overflow: hidden;
  color: rgba(218, 225, 252, 0.52);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-sync-arrow {
  width: 20px;
  height: 20px;
  color: rgba(221, 228, 255, 0.58);
}

.calendar-sync-source {
  display: block;
  margin-top: 16px;
  color: rgba(210, 218, 247, 0.42);
  font-size: 10px;
  text-align: center;
}

.calendar-sync-source a {
  color: inherit;
}

body.calendar-sync-open {
  overflow: hidden;
}

.schedule-month-nav {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(207, 215, 226, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.schedule-month-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.schedule-month-tabs::-webkit-scrollbar {
  display: none;
}

.schedule-month-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 1px;
  border-radius: 0;
  background: transparent;
  color: #7a8496;
  font-size: 14px;
  font-weight: 850;
  text-transform: capitalize;
  box-shadow: none;
}

.schedule-month-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #6f8dff;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.schedule-month-tabs button.is-active {
  color: #071676;
}

.schedule-month-tabs button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.schedule-current-month {
  display: none;
}

.schedule-month-nav > button {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f8;
  color: var(--blue);
}

.schedule-month-nav > button:disabled {
  cursor: default;
  opacity: 0.42;
}

.schedule-month-nav > button svg {
  width: 22px;
  height: 22px;
}

.schedule-month-nav > button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-panel {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(16, 19, 24, 0.1);
}

.schedule-calendar-panel {
  padding: 18px;
  background: #0b0f29;
  color: #ffffff;
}

.schedule-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 10px;
}

.schedule-weekdays span {
  color: rgba(220, 226, 243, 0.5);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

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

.schedule-mobile-month-list {
  display: none;
}

.schedule-day {
  position: relative;
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr);
  min-height: 104px;
  padding: 5px 3px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
}

.schedule-day.is-muted {
  opacity: 0.18;
}

.schedule-day.has-match {
  color: #ffffff;
}

.schedule-day.is-today {
  background: rgba(111, 141, 255, 0.08);
}

.schedule-day.is-highlighted {
  background: rgba(111, 141, 255, 0.1);
}

.schedule-day-number {
  position: relative;
  z-index: 1;
  color: rgba(240, 244, 255, 0.86);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.schedule-calendar-match {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 68px;
  gap: 4px;
  padding: 4px 2px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.schedule-calendar-match:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.schedule-calendar-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 4px;
}

.schedule-calendar-logos img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.schedule-calendar-logos .schedule-team-logo {
  box-sizing: border-box;
}

.schedule-calendar-logos .schedule-calendar-competition {
  width: 14px;
  height: 14px;
  align-self: flex-start;
  margin-left: -8px;
  padding: 1px;
  border-radius: 50%;
  background: #ffffff;
}

.schedule-calendar-match strong {
  color: rgba(240, 244, 255, 0.82);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.schedule-calendar-match small {
  color: rgba(220, 226, 243, 0.48);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
}

.schedule-calendar-match.is-live strong {
  color: var(--coral);
}

.schedule-calendar-match.is-highlighted,
.schedule-mobile-match.is-highlighted {
  box-shadow:
    0 0 0 3px rgba(244, 190, 63, 0.34),
    0 14px 28px rgba(3, 12, 24, 0.18);
}

.schedule-calendar-match.is-selected {
  background: rgba(70, 111, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(123, 151, 255, 0.78), 0 0 22px rgba(55, 99, 255, 0.24);
}

.schedule-calendar-preview {
  margin-top: 16px;
}

.schedule-preview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(129, 151, 226, 0.22);
  border-radius: 18px;
  background: #101735;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.schedule-preview-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.schedule-preview-actions {
  display: grid;
  gap: 8px;
}

.schedule-preview-videos,
.schedule-mobile-videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.schedule-preview-video:only-child,
.schedule-mobile-video:only-child {
  grid-column: 1 / -1;
}

.schedule-preview-video,
.schedule-mobile-video {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 74, 74, 0.38);
  border-radius: 7px;
  background: rgba(255, 45, 45, 0.08);
  color: #ffb5b5;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.schedule-preview-video svg,
.schedule-mobile-video svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.schedule-youtube-icon rect {
  fill: #ff0033;
}

.schedule-youtube-icon path {
  fill: #ffffff;
}

.schedule-preview-meta {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.schedule-preview-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 233, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
}

.schedule-preview-meta img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.schedule-preview-meta strong {
  font-size: 13px;
  line-height: 1.2;
}

.schedule-preview-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.schedule-preview-team {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.schedule-preview-team img {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.schedule-preview-team strong {
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-preview-score {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.schedule-preview-score strong {
  font-size: 24px;
  line-height: 1;
}

.schedule-preview-score small {
  color: rgba(226, 233, 255, 0.52);
  font-size: 10px;
  font-weight: 900;
}

.schedule-preview-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  box-sizing: border-box;
  border-top: 1px solid rgba(226, 233, 255, 0.12);
  color: #a9bbff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.schedule-preview-action:link,
.schedule-preview-action:visited,
.schedule-preview-action:hover,
.schedule-preview-action:active {
  color: #a9bbff;
  text-decoration: none;
}

.schedule-preview-action-arrow {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}

.schedule-calendar-panel[data-view="list"] {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-calendar-panel[data-view="list"] .schedule-weekdays,
.schedule-calendar-panel[data-view="list"] .schedule-calendar-grid,
.schedule-calendar-panel[data-view="list"] .schedule-calendar-preview {
  display: none;
}

.schedule-calendar-panel[data-view="list"] .schedule-mobile-month-list {
  display: grid;
  gap: 14px;
}

.schedule-list-month-heading {
  display: grid;
  gap: 2px;
  padding: 2px 2px 8px;
  color: #ffffff;
}

.schedule-list-month-heading span {
  color: rgba(224, 231, 255, 0.66);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.schedule-list-month-heading strong {
  font-size: clamp(32px, 8vw, 46px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.schedule-mobile-match {
  display: block;
  min-height: 224px;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: 16px;
  background: #ffffff;
  color: #07111f;
  text-decoration: none;
}

.schedule-mobile-main {
  display: grid;
  gap: 20px;
  min-height: 174px;
  padding: 18px 18px 20px;
  border-bottom: 1px solid rgba(7, 17, 31, 0.1);
  color: inherit;
  text-decoration: none;
}

.schedule-mobile-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.schedule-mobile-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding-top: 3px;
  text-align: right;
}

.schedule-mobile-meta > img {
  width: 24px;
  height: 24px;
  padding: 3px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
}

.schedule-mobile-meta > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.schedule-mobile-meta strong,
.schedule-mobile-meta small {
  overflow-wrap: anywhere;
}

.schedule-mobile-meta strong {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.schedule-mobile-meta small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 750;
}

.schedule-mobile-card-body {
  display: grid;
  grid-template-columns: minmax(116px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.schedule-mobile-clubs {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.schedule-mobile-club {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 58px;
  min-width: 0;
}

.schedule-mobile-club img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.schedule-mobile-club small {
  width: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-mobile-result {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

.schedule-mobile-result strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: clamp(25px, 7vw, 38px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.schedule-mobile-result.is-score strong {
  font-size: clamp(34px, 10vw, 52px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.schedule-mobile-result small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.schedule-mobile-actions {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.schedule-mobile-videos {
  padding: 0;
}

.schedule-mobile-video,
.schedule-mobile-center {
  min-height: 42px;
}

.schedule-mobile-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid rgba(92, 120, 232, 0.48);
  border-radius: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 620px) {
  .match-video-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .match-video-copy > span {
    display: none;
  }
}

.schedule-mobile-date {
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 58px;
  border-radius: 10px;
  background: transparent;
  color: var(--blue);
  font-style: normal;
}

.schedule-mobile-date strong {
  font-size: 34px;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.schedule-mobile-date span {
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.schedule-loading,
.schedule-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 720px) {
  .hero-banner {
    margin: -16px -16px 18px;
    padding: 18px 16px 20px;
    background-position: center 55%;
  }

  .league-badge {
    width: 60px;
    padding: 7px;
  }

  .channel-head {
    grid-template-columns: 62px minmax(0, 1fr) 60px;
    min-height: 62px;
  }

  .channel-head > img {
    width: 62px;
    height: 62px;
  }

  .channel-head h1 {
    font-size: 24px;
  }

  .intro h2 {
    font-size: 24px;
  }

  .match-meta-row {
    gap: 8px 12px;
  }

  .match-kickoff {
    font-size: 15px;
  }

  .match-board {
    grid-template-columns: minmax(0, 1fr) 156px minmax(0, 1fr);
    gap: 16px;
  }

  .team {
    gap: 8px;
    font-size: 14px;
  }

  .team-copy {
    gap: 7px;
    width: 100%;
  }

  .team-logo {
    width: 38px;
    height: 38px;
  }

  .hero-banner .team-logo {
    width: 62px;
    height: 62px;
    box-shadow:
      0 12px 24px rgba(3, 10, 20, 0.3),
      0 0 0 5px rgba(255, 255, 255, 0.04);
  }

  .team-name {
    font-size: 18px;
  }

  .score-block {
    min-width: 156px;
    padding: 14px 16px;
  }

  .score-block strong {
    font-size: 56px;
  }

  .draw-outlook-line {
    font-size: 11px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .lineup-team-tab {
    min-height: 50px;
  }

  .lineup-team-tab img {
    width: 26px;
    height: 26px;
  }

  .lineup-selected-head strong {
    font-size: 17px;
  }

  .lineup-group h3 {
    font-size: 18px;
  }

  .forecast-grid {
    gap: 6px;
  }

  .player-info {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .player-avatar {
    width: 52px;
    height: 52px;
  }

  .avatar-number {
    bottom: -6px;
    min-width: 26px;
    min-height: 19px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .player-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rating-pitch {
    min-height: 580px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .rating-pitch-player {
    width: min(92px, 100%);
  }

  .rank-action {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .podium {
    grid-template-columns: 1fr;
  }

  .podium-place-1 {
    order: -1;
  }

  .podium-card,
  .podium-place-1,
  .podium-place-2,
  .podium-place-3 {
    min-height: 96px;
  }

  .submit-bar {
    align-items: center;
  }

  .submit-actions {
    display: grid;
    gap: 7px;
  }

  .submit-actions button {
    min-width: 116px;
  }

  .revote-button {
    min-width: 132px;
  }
}

@media (max-width: 560px) {
  .app-shell,
  .admin-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-banner {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .league-badge {
    width: 54px;
    padding: 6px;
  }

  .channel-head {
    min-height: 56px;
    grid-template-columns: 56px minmax(0, 1fr) 54px;
    gap: 10px;
  }

  .channel-head > img {
    width: 56px;
    height: 56px;
  }

  .hero-banner .channel-head {
    margin-bottom: 14px;
  }

  .channel-head h1 {
    font-size: 18px;
    line-height: 1.05;
  }

  .match-meta-row {
    gap: 8px;
  }

  .match-kickoff {
    width: 100%;
    font-size: 14px;
  }

  .match-status {
    font-size: 12px;
  }

  .hero-banner .match-strip {
    gap: 12px;
  }

  .match-board {
    grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1fr);
    gap: 10px;
  }

  .team {
    gap: 6px;
  }

  .score-block {
    min-width: 116px;
    padding: 12px 10px;
  }

  .score-block strong {
    font-size: 42px;
  }

  .team-name {
    font-size: 14px;
    line-height: 1.08;
  }

  .team-outlook-line {
    gap: 4px;
  }

  .team-outlook-line small {
    font-size: 10px;
  }

  .team-outlook-line strong {
    font-size: 12px;
  }

  .player-info {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .player-avatar {
    width: 48px;
    height: 48px;
  }

  .avatar-frame,
  .avatar-fallback {
    width: 48px;
    height: 48px;
  }

  .team-xg {
    font-size: 11px;
  }

  .hero-banner .team-logo {
    width: 56px;
    height: 56px;
    padding: 5px;
  }

  .form-dot {
    width: 10px;
    height: 10px;
  }

  .team-form {
    gap: 3px;
  }

  .section-head {
    display: grid;
    gap: 4px;
  }

  .section-head span {
    text-align: left;
  }

  .lineup-view-tabs {
    gap: 8px;
    margin-bottom: 12px;
  }

  .lineup-view-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 15px;
  }

  .lineups-tabs {
    width: min(100%, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    gap: 5px;
    padding: 3px;
  }

  .lineup-team-tab {
    min-height: 46px;
    padding: 6px;
  }

  .lineup-team-tab img {
    width: 24px;
    height: 24px;
  }

  .lineup-selected-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lineup-selected-head strong {
    font-size: 17px;
  }

  .lineup-selected-head span {
    text-align: left;
    justify-self: start;
  }

  .lineup-group h3 {
    font-size: 17px;
  }

  .lineup-pitch {
    width: min(100%, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    gap: 13px;
    min-height: 500px;
    padding: 26px 7px;
    background-size: 100% 100%, 64px 100%, 100% 100%;
  }

  .lineup-pitch::before {
    inset: 11px 7px;
  }

  .lineup-pitch::after {
    right: 7px;
    left: 7px;
  }

  .lineup-pitch-row {
    gap: 4px;
    min-height: 70px;
  }

  .lineup-pitch-player {
    width: min(70px, 100%);
  }

  .lineup-pitch-avatar {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .lineup-pitch-copy strong {
    font-size: 10.5px;
    line-height: 1.1;
  }

  .lineup-pitch-copy > span {
    font-size: 9px;
  }

  .rating-pitch-watermark {
    font-size: 26px;
  }

  .lineup-pitch-substitution {
    min-width: 42px;
    min-height: 16px;
    padding: 0 6px;
    font-size: 9px;
  }

  .lineup-pitch-substitution span {
    font-size: 12px;
  }

  .lineup-pitch-copy .lineup-status-pill {
    min-height: 16px;
    padding: 0 5px;
    font-size: 9px;
  }

  .lineup-pitch-avatar .lineup-event-badges {
    right: -7px;
    bottom: -6px;
  }

  .lineup-event-badge {
    width: 22px;
    height: 22px;
    border-width: 2px;
  }

  .lineup-event-badge .pill-event-icon {
    width: 13px;
    height: 13px;
  }

  .lineup-event-badge-multiple {
    min-width: 38px;
    padding: 0 3px;
  }

  .lineup-event-count {
    min-width: 14px;
    height: 14px;
    padding: 0 1px;
    font-size: 8px;
  }

  .rating-view-tabs {
    gap: 8px;
    margin-bottom: 12px;
  }

  .rating-view-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 15px;
  }

  .rating-pitch {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    min-height: 510px;
    padding: 26px 6px 24px;
  }

  .rating-pitch-row {
    gap: 4px;
    min-height: 74px;
  }

  .rating-pitch-player {
    width: min(72px, 100%);
    min-height: 78px;
    gap: 5px;
  }

  .rating-pitch-avatar {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }

  .rating-pitch-avatar .lineup-event-badges {
    right: -7px;
    bottom: -6px;
  }

  .rating-pitch-copy strong {
    font-size: 10.5px;
    line-height: 1.1;
  }

  .rating-pitch-copy > span {
    font-size: 9px;
  }

  .rating-substitution-badge {
    bottom: -7px;
    left: -9px;
    width: 21px;
    height: 21px;
    border-width: 2px;
  }

  .rating-substitution-icon {
    width: 13px;
    height: 13px;
  }

  .rating-bench {
    padding: 11px;
  }

  .rating-bench-grid {
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 8px;
  }

  .rating-bench .rating-pitch-player {
    min-height: 96px;
    padding: 7px 4px;
  }

  .lineup-player-row,
  .lineup-coach-row {
    grid-template-columns: 32px 34px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 50px;
  }

  .lineup-player-avatar {
    width: 34px;
    height: 34px;
  }

  .lineup-player-slot strong {
    font-size: 14px;
  }

  .lineup-player-slot span {
    font-size: 10px;
  }

  .forecast-odd-chip {
    grid-template-columns: minmax(0, 1fr) 62px;
    width: min(100%, 148px);
    height: 28px;
    min-height: 28px;
  }

  .forecast-odd-value {
    font-size: 12px;
  }

  .standings-row {
    grid-template-columns: 24px minmax(0, 1fr) 24px 28px 40px;
    gap: 6px;
    padding: 8px;
  }

  .standings-team img {
    width: 18px;
    height: 18px;
  }

  .standings-team strong {
    font-size: 13px;
  }

  .timeline-event {
    grid-template-columns: 44px 16px minmax(0, 1fr);
    gap: 8px;
    min-height: 54px;
  }

  .timeline-minute {
    min-height: 26px;
    padding: 5px 4px;
    font-size: 12px;
  }

  .timeline-marker::before {
    left: 7px;
  }

  .timeline-marker::after {
    left: 2px;
  }

  .timeline-event-head {
    display: grid;
    justify-content: stretch;
    gap: 5px;
  }

  .timeline-event-head strong {
    text-align: left;
  }

  .timeline-details {
    display: grid;
    gap: 5px 8px;
    font-size: 13px;
  }

  .h2h-meta {
    display: grid;
    gap: 4px;
  }

  .h2h-meta small {
    text-align: left;
  }

  .hero-banner .team-logo {
    width: 50px;
    height: 50px;
    padding: 4px;
  }

  .avatar-number {
    bottom: -5px;
    min-width: 24px;
    min-height: 18px;
    padding: 1px 5px;
    font-size: 9px;
  }

  .hero-venue {
    padding: 0 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  .result-row {
    grid-template-columns: 1fr 70px;
  }

  .result-row .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .home-player-grid {
    grid-template-columns: 1fr;
  }

  .schedule-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .player-profile-hero {
    padding: 14px;
  }

  .player-profile-hero::after {
    right: -8px;
    bottom: -18px;
    font-size: 56px;
  }

  .home-hero-media {
    min-height: max(270px, 66vw);
  }

  .home-hero-content {
    padding-inline: 16px;
  }

  .home-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .home-brand h1,
  .player-profile-copy h1 {
    font-size: 26px;
  }

  .home-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-section,
  .player-section {
    padding: 14px;
  }

  .home-section-head h2 {
    font-size: 22px;
  }

  .player-profile-hero {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .player-profile-photo-wrap .home-player-photo {
    width: 86px;
    height: 86px;
  }

  .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-season-table {
    overflow-x: auto;
  }

  .player-season-row {
    min-width: 0;
  }

  .schedule-shell {
    padding: 10px 10px 72px;
  }

  .schedule-hero {
    min-height: 42px;
    margin-bottom: 8px;
    padding: 0 2px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    color: #101318;
    box-shadow: none;
  }

  .schedule-brand {
    gap: 0;
  }

  .schedule-brand img {
    display: none;
  }

  .schedule-brand span {
    display: none;
  }

  .schedule-brand h1 {
    font-size: 26px;
  }

  .schedule-season-pill {
    min-height: 32px;
    padding: 0 9px;
    border-color: #d2d9e4;
    background: #ffffff;
    color: #445067;
    font-size: 12px;
    backdrop-filter: none;
  }

  .schedule-summary-grid {
    display: none;
  }

  .schedule-summary-card {
    min-height: 58px;
    padding: 9px 8px;
  }

  .schedule-summary-card strong {
    font-size: 21px;
  }

  .schedule-summary-card span {
    font-size: 11px;
  }

  .schedule-summary-next strong {
    font-size: 14px;
  }

  .schedule-toolbar {
    gap: 8px;
  }

  .schedule-month-nav {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
    padding: 6px;
  }

  .schedule-month-nav > button {
    width: 38px;
    min-height: 38px;
  }

  .schedule-month-tabs {
    gap: 18px;
  }

  .schedule-month-tabs button {
    min-height: 38px;
    font-size: 13px;
  }

  .schedule-calendar-panel {
    padding: 14px 10px 10px;
    border-radius: 18px;
  }

  .schedule-weekdays {
    display: grid;
    margin-bottom: 6px;
  }

  .schedule-calendar-grid {
    display: grid;
  }

  .schedule-day {
    grid-template-rows: 16px minmax(0, 1fr);
    min-height: 66px;
    padding: 3px 1px;
    border-radius: 10px;
  }

  .schedule-day-number {
    font-size: 11px;
  }

  .schedule-calendar-match {
    min-height: 45px;
    gap: 0;
    padding: 1px;
    border-radius: 9px;
  }

  .schedule-calendar-logos {
    min-height: 34px;
  }

  .schedule-calendar-logos img {
    width: 33px;
    height: 33px;
  }

  .schedule-calendar-logos .schedule-calendar-competition {
    width: 12px;
    height: 12px;
    margin-left: -7px;
  }

  .schedule-calendar-match strong {
    font-size: 9px;
  }

  .schedule-calendar-match small {
    display: none;
  }

  .schedule-preview-card {
    gap: 13px;
    padding: 14px;
    border-radius: 16px;
  }

  .schedule-preview-board {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 8px;
  }

  .schedule-preview-team img {
    width: 52px;
    height: 52px;
  }

  .schedule-preview-team strong {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .home-hero {
    margin-inline: -12px;
  }

  .home-section.home-sports-section {
    margin-inline: -12px;
    padding: 16px 12px 8px;
  }

  .home-nav {
    gap: 4px;
    padding: 5px;
  }

  .home-nav-link {
    min-height: 38px;
    padding: 0 5px;
    font-size: 12px;
  }

  .home-stat-card {
    min-height: 62px;
    padding: 9px;
  }

  .home-stat-card strong {
    font-size: 24px;
  }

  .home-section-head {
    align-items: flex-start;
  }

  .home-section-link {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .home-match-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-match-row span {
    grid-column: 1 / -1;
  }

  .home-leader-row {
    grid-template-columns: 28px 38px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .home-leader-place {
    min-width: 28px;
    height: 28px;
  }

  .home-leader-row .home-player-photo {
    width: 38px;
    height: 38px;
  }

  .home-leader-score {
    min-width: 40px;
  }

  .home-hero-socials a {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 48px;
    padding: 6px 8px;
  }

  .home-hero-socials img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .home-sports-list {
    padding-inline: 2px;
  }

  .home-sports-post {
    flex-basis: min(82vw, 310px);
    grid-template-rows: 158px minmax(0, 1fr);
    min-height: 292px;
  }

  .home-sports-copy strong {
    font-size: 15px;
  }

  .player-profile-hero {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .player-profile-photo-wrap .home-player-photo {
    width: 74px;
    height: 74px;
  }

  .player-profile-copy p {
    font-size: 13px;
  }

  .player-stat-grid article {
    min-height: 64px;
    padding: 9px;
  }

  .player-stat-grid strong {
    font-size: 23px;
  }

  .schedule-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .schedule-hero {
    display: flex;
  }

  .schedule-season-pill {
    justify-self: auto;
  }
}

@media (max-width: 360px) {
  .schedule-calendar-logos {
    gap: 2px;
  }

  .schedule-calendar-logos img {
    width: 29px;
    height: 29px;
  }

  .schedule-calendar-logos .schedule-calendar-competition {
    width: 10px;
    height: 10px;
    margin-left: -6px;
  }
}

/* Real Madrid-inspired classic calendar: a single, flat match surface. */
.schedule-page.schedule-classic-mode {
  background:
    linear-gradient(180deg, rgba(5, 8, 28, 0.78), rgba(5, 9, 30, 0.84) 48%, rgba(4, 7, 24, 0.94) 100%),
    url("/stamford-bridge-calendar-bg.jpg") center 58% / cover fixed no-repeat,
    #0b0f29;
}

.schedule-classic-mode .app-topbar {
  --app-topbar-blue: rgba(7, 11, 34, 0.78);
  --app-topbar-border-opacity: 0;
  --app-topbar-shadow-opacity: 0;
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.schedule-classic-mode .schedule-hero,
.schedule-classic-mode .schedule-summary-grid {
  display: none;
}

.schedule-classic-mode .schedule-toolbar {
  gap: 0;
  margin: 0;
  background: transparent;
}

.schedule-classic-mode .schedule-view-switch {
  border: 0;
  background: rgba(10, 20, 63, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.schedule-classic-mode .schedule-view-switch button {
  color: rgba(220, 226, 245, 0.58);
}

.schedule-classic-mode .schedule-view-switch button.is-active {
  background: #8da5ff;
  color: #07113c;
  box-shadow: none;
}

.schedule-classic-mode .schedule-month-nav {
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.schedule-classic-mode .schedule-month-nav > button {
  display: none;
}

.schedule-classic-mode .schedule-month-tabs {
  gap: 24px;
}

.schedule-classic-mode .schedule-month-tabs button {
  color: rgba(210, 216, 237, 0.48);
}

.schedule-classic-mode .schedule-month-tabs button.is-active {
  color: rgba(235, 239, 255, 0.92);
}

.schedule-classic-mode .schedule-month-tabs button::after {
  background: #91a7ff;
}

.schedule-classic-mode .schedule-calendar-panel {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-classic-mode .schedule-weekdays span {
  color: rgba(210, 216, 237, 0.42);
  font-size: 10px;
}

.schedule-classic-mode .schedule-day {
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  border-radius: 0;
}

.schedule-classic-mode .schedule-day-number {
  grid-area: 1 / 1;
  place-self: center;
}

.schedule-classic-mode .schedule-day.is-today,
.schedule-classic-mode .schedule-day.is-highlighted {
  background: transparent;
}

.schedule-classic-mode .schedule-day.is-today .schedule-day-number {
  color: #ffffff;
}

.schedule-classic-mode .schedule-day.has-match .schedule-day-number {
  display: none;
}

.schedule-classic-mode .schedule-day.has-match .schedule-calendar-match {
  grid-area: 1 / 1;
  place-self: center;
  width: 100%;
}

.schedule-classic-mode .schedule-calendar-logos {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  gap: 0;
}

.schedule-classic-mode .schedule-calendar-logos .schedule-team-logo {
  width: auto;
  height: auto;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  object-position: center;
}

.schedule-classic-mode .schedule-calendar-logos .schedule-calendar-competition {
  position: absolute;
  top: -3px;
  right: -7px;
  width: 15px;
  height: 15px;
  margin: 0;
}

.schedule-classic-mode .schedule-calendar-match:hover,
.schedule-classic-mode .schedule-calendar-match.is-selected,
.schedule-classic-mode .schedule-calendar-match.is-highlighted {
  background: transparent;
  box-shadow: none;
}

.schedule-classic-mode .schedule-calendar-match.is-selected .schedule-calendar-logos::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  outline: 2px solid #7897ff;
  outline-offset: 5px;
  box-shadow: none;
  pointer-events: none;
}

.schedule-classic-mode .schedule-calendar-match strong,
.schedule-classic-mode .schedule-calendar-match small {
  display: none;
}

.schedule-classic-mode .schedule-calendar-preview {
  position: relative;
  margin-top: 8px;
}

.schedule-classic-mode .schedule-preview-carousel {
  display: flex;
  gap: 10px;
  padding: 0 22px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.schedule-classic-mode .schedule-preview-carousel::-webkit-scrollbar {
  display: none;
}

.schedule-classic-mode .schedule-preview-card {
  flex: 0 0 calc(100% - 44px);
  min-width: 0;
  gap: 13px;
  border: 1px solid rgba(153, 171, 229, 0.13);
  background: linear-gradient(180deg, rgba(16, 22, 57, 0.78), rgba(9, 13, 38, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  opacity: 0.68;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(0.975);
  transition: opacity 180ms ease, transform 180ms ease;
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  backdrop-filter: blur(16px) saturate(115%);
}

.schedule-classic-mode .schedule-preview-card.is-selected {
  opacity: 1;
  transform: scale(1);
}

.schedule-classic-mode .schedule-preview-meta > span {
  color: rgba(222, 228, 248, 0.48);
}

.schedule-classic-mode .schedule-preview-meta strong {
  color: rgba(243, 246, 255, 0.86);
}

.schedule-classic-mode .schedule-preview-team {
  grid-template-rows: 64px auto;
  align-items: center;
}

.schedule-classic-mode .schedule-preview-team img {
  width: auto;
  height: auto;
  max-width: 64px;
  max-height: 64px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.48))
    drop-shadow(0 0 10px rgba(83, 124, 255, 0.5));
}

.schedule-classic-mode .schedule-preview-action {
  justify-self: stretch;
  align-self: end;
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(135, 160, 255, 0.78);
  border-radius: 7px;
  background: rgba(71, 95, 180, 0.08);
  color: #a9bbff;
}

@media (max-width: 720px) {
  .schedule-page.schedule-classic-mode {
    background-position: 0 0, center bottom;
    background-size: auto, auto 120%;
  }

  .schedule-classic-mode .schedule-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .schedule-classic-mode .schedule-view-switch {
    width: auto;
    margin: 0 16px 10px;
  }

  .schedule-classic-mode .schedule-month-nav {
    padding: 0 16px 8px;
  }

  .schedule-classic-mode .schedule-month-tabs {
    gap: 22px;
  }

  .schedule-classic-mode .schedule-calendar-panel {
    padding: 12px 16px 24px;
  }

  .schedule-classic-mode .schedule-weekdays {
    margin-bottom: 8px;
  }

  .schedule-classic-mode .schedule-day {
    min-height: 69px;
  }

  .schedule-classic-mode .schedule-calendar-match {
    min-height: 47px;
  }

  .schedule-classic-mode .schedule-calendar-logos .schedule-team-logo {
    width: auto;
    height: auto;
    max-width: 38px;
    max-height: 34px;
  }

  .schedule-classic-mode .schedule-calendar-logos {
    width: 40px;
    height: 40px;
  }

  .schedule-classic-mode .schedule-calendar-logos .schedule-calendar-competition {
    width: 14px;
    height: 14px;
  }

  .schedule-classic-mode .schedule-calendar-preview {
    margin: 4px -8px 0;
  }

  .schedule-classic-mode .schedule-preview-carousel {
    padding-right: 20px;
    padding-left: 20px;
    scroll-padding-inline: 20px;
  }

  .schedule-classic-mode .schedule-preview-card {
    flex-basis: calc(100% - 40px);
    min-height: 250px;
    padding: 18px 16px 14px;
    border-radius: 20px;
  }

  .schedule-classic-mode .schedule-preview-team img {
    width: auto;
    height: auto;
    max-width: 58px;
    max-height: 58px;
  }

  .schedule-classic-mode .schedule-preview-team {
    grid-template-rows: 58px auto;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .schedule-page .schedule-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  }

  .schedule-classic-mode .schedule-view-switch {
    margin-bottom: 4px;
  }

  .schedule-classic-mode .schedule-view-switch button {
    min-height: 36px;
  }

  .schedule-classic-mode .schedule-month-nav {
    padding-bottom: 2px;
  }

  .schedule-classic-mode .schedule-month-tabs button {
    min-height: 32px;
  }

  .schedule-classic-mode .schedule-calendar-panel {
    padding-top: 6px;
    padding-bottom: 12px;
  }

  .schedule-classic-mode .schedule-weekdays {
    margin-bottom: 2px;
  }

  .schedule-classic-mode .schedule-calendar-grid {
    gap: 3px;
  }

  .schedule-classic-mode .schedule-day {
    min-height: 48px;
  }

  .schedule-classic-mode .schedule-calendar-match {
    min-height: 38px;
  }

  .schedule-classic-mode .schedule-calendar-logos {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .schedule-classic-mode .schedule-calendar-logos .schedule-team-logo {
    max-width: 32px;
    max-height: 30px;
  }

  .schedule-classic-mode .schedule-calendar-logos .schedule-calendar-competition {
    top: -2px;
    right: -6px;
    width: 12px;
    height: 12px;
  }

  .schedule-classic-mode .schedule-calendar-preview {
    margin-top: 0;
  }

  .schedule-classic-mode .schedule-preview-carousel {
    padding-bottom: 8px;
  }

  .schedule-classic-mode .schedule-preview-card {
    min-height: 196px;
    padding-top: 14px;
  }

  .schedule-classic-mode .schedule-preview-team {
    grid-template-rows: 48px auto;
  }

  .schedule-classic-mode .schedule-preview-team img {
    max-width: 48px;
    max-height: 48px;
  }
}

/* YouTube feed */

body.videos-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 4%, rgba(48, 71, 184, 0.28), transparent 30%),
    radial-gradient(circle at 10% 34%, rgba(3, 70, 148, 0.2), transparent 34%),
    linear-gradient(180deg, #10152e 0%, #0a0f24 46%, #070b1b 100%);
  color: #f7f8ff;
}

.videos-page .app-topbar {
  --app-topbar-blue: rgba(7, 12, 35, 0.9);
  --app-topbar-blue-opacity: 1;
  --app-topbar-glass-progress: 0;
  --app-topbar-border-opacity: 0;
  --app-topbar-shadow-opacity: 0;
  color: #ffffff;
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.videos-page .app-menu-button,
.videos-page .app-topbar-logo {
  color: #ffffff;
}

.videos-shell {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 88px) 18px 80px;
}

.videos-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 12px 0 22px;
  border-bottom: 1px solid rgba(169, 183, 244, 0.2);
}

.videos-kicker {
  display: block;
  margin-bottom: 4px;
  color: rgba(220, 227, 255, 0.58);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.videos-hero h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 70px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.videos-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(158, 175, 248, 0.22);
  border-radius: 999px;
  background: rgba(17, 27, 66, 0.72);
  color: rgba(244, 247, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.videos-channel-link img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.videos-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 14px;
}

.videos-feed-head > div {
  display: grid;
  gap: 1px;
}

.videos-feed-head strong {
  font-size: 17px;
  line-height: 1.2;
}

.videos-feed-head span:not(.videos-live-dot) {
  color: rgba(220, 227, 255, 0.55);
  font-size: 12px;
  font-weight: 650;
}

.videos-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff354f;
  box-shadow: 0 0 0 5px rgba(255, 53, 79, 0.11), 0 0 18px rgba(255, 53, 79, 0.5);
}

.videos-channel-filter {
  display: flex;
  gap: 6px;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid rgba(145, 163, 255, 0.14);
  border-radius: 14px;
  background: rgba(12, 19, 46, 0.68);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.videos-channel-filter button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(220, 227, 255, 0.58);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.videos-channel-filter button.is-active {
  background: #91a5ff;
  color: #09132d;
  box-shadow: 0 7px 20px rgba(83, 107, 224, 0.28);
}

.videos-feed {
  display: grid;
  gap: 30px;
}

.video-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(240px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(145, 163, 255, 0.16);
  border-radius: 18px;
  background: rgba(16, 24, 55, 0.86);
  box-shadow: 0 24px 58px rgba(1, 4, 17, 0.36);
}

.video-featured-media,
.video-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #11162d;
}

.video-featured-media {
  min-height: 280px;
}

.video-featured-media img,
.video-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.video-featured-media:hover img,
.video-card-media:hover img {
  transform: scale(1.018);
}

.video-featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(8, 13, 34, 0.28));
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(9, 13, 31, 0.5);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

.video-play svg {
  width: 25px;
  height: 25px;
}

.video-play path {
  fill: currentColor;
}

.video-featured-copy {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 26px;
}

.video-featured-copy > span,
.video-card-copy > span {
  color: rgba(220, 227, 255, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-featured-copy h2,
.video-card-copy h2 {
  margin: 0;
}

.video-featured-copy h2 {
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.video-featured-copy a,
.video-card-copy a {
  color: inherit;
  text-decoration: none;
}

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

.video-card {
  min-width: 0;
}

.video-card-media {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.video-card .video-play {
  width: 46px;
  height: 46px;
}

.video-card .video-play svg {
  width: 21px;
  height: 21px;
}

.video-kind {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 36, 67, 0.92);
  color: #ffffff;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-card-copy {
  display: grid;
  gap: 6px;
  padding: 12px 2px 0;
}

.video-card-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -0.022em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.videos-loading span {
  min-height: 210px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(31, 42, 82, 0.6), rgba(52, 67, 122, 0.72), rgba(31, 42, 82, 0.6));
  background-size: 220% 100%;
  animation: videos-loading 1.35s ease-in-out infinite;
}

.videos-loading span:first-child {
  grid-column: 1 / -1;
  min-height: 340px;
}

@keyframes videos-loading {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.videos-empty {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 28px 0;
  border-top: 1px solid rgba(169, 183, 244, 0.16);
  color: rgba(229, 234, 255, 0.62);
}

.videos-empty strong {
  color: #ffffff;
  font-size: 20px;
}

.videos-empty button {
  margin-top: 10px;
  padding: 0 16px;
  background: #91a5ff;
  color: #07132d;
}

@media (min-width: 921px) {
  .videos-page .app-topbar {
    right: auto;
    left: 50%;
    width: 920px;
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .videos-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .videos-hero {
    min-height: 88px;
    padding-bottom: 18px;
  }

  .videos-hero h1 {
    font-size: 44px;
  }

  .videos-channel-filter {
    margin-bottom: 18px;
  }

  .videos-channel-filter button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  .video-featured {
    display: block;
  }

  .video-featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .video-featured-copy {
    gap: 7px;
    padding: 17px 16px 19px;
  }

  .video-featured-copy h2 {
    font-size: 21px;
    line-height: 1.08;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .videos-loading {
    grid-template-columns: 1fr;
  }

  .videos-loading span:first-child {
    grid-column: auto;
    min-height: 250px;
  }
}

/* Shared calendar shell: both layouts keep one visual language. */
.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) {
  background:
    linear-gradient(180deg, rgba(5, 8, 28, 0.78), rgba(5, 9, 30, 0.84) 48%, rgba(4, 7, 24, 0.94) 100%),
    url("/stamford-bridge-calendar-bg.jpg") center 58% / cover fixed no-repeat,
    #0b0f29;
  color: #f5f7ff;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .app-topbar {
  --app-topbar-blue: rgba(7, 11, 34, 0.78);
  --app-topbar-border-opacity: 0;
  --app-topbar-shadow-opacity: 0;
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-hero {
  display: flex;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 0 4px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  color: #f7f8ff;
  box-shadow: none;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-brand {
  gap: 0;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-brand img,
.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-brand span {
  display: none;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-brand h1 {
  color: #f7f8ff;
  font-size: 30px;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-season-pill {
  min-height: 34px;
  padding: 0 11px;
  border-color: rgba(170, 188, 244, 0.26);
  background: rgba(17, 25, 65, 0.68);
  color: rgba(239, 243, 255, 0.86);
  font-size: 12px;
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-summary-grid {
  display: none;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-toolbar {
  grid-template-columns: minmax(0, 430px) minmax(0, 310px);
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  background: transparent;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-view-switch {
  border: 0;
  background: rgba(10, 20, 63, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-view-switch button {
  color: rgba(220, 226, 245, 0.58);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-view-switch button.is-active {
  background: #8da5ff;
  color: #07113c;
  box-shadow: none;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-calendar-sync {
  width: 100%;
  border-color: rgba(145, 165, 237, 0.18);
  background: rgba(10, 20, 63, 0.74);
  color: rgba(236, 241, 255, 0.9);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-nav {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-nav > button {
  display: none;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-tabs {
  gap: 24px;
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-tabs button {
  color: rgba(210, 216, 237, 0.48);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-tabs button.is-active {
  color: rgba(235, 239, 255, 0.92);
}

.schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-tabs button::after {
  background: #91a7ff;
}

.schedule-list-mode .schedule-calendar-panel[data-view="list"] {
  padding: 0 16px 24px;
}

.schedule-list-mode .schedule-mobile-month-list {
  gap: 16px;
}

.schedule-list-mode .schedule-mobile-match {
  border-color: rgba(153, 171, 229, 0.16);
  background: linear-gradient(180deg, rgba(16, 22, 57, 0.82), rgba(9, 13, 38, 0.92));
  color: #f7f8ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
}

.schedule-list-mode .schedule-mobile-date {
  color: #b9c7ff;
}

.schedule-list-mode .schedule-mobile-main {
  border-bottom-color: rgba(177, 191, 238, 0.14);
}

.schedule-list-mode .schedule-mobile-meta small,
.schedule-list-mode .schedule-mobile-result small {
  color: rgba(220, 226, 245, 0.5);
}

.schedule-list-mode .schedule-mobile-result strong {
  color: #f7f8ff;
}

.schedule-list-mode .schedule-mobile-center {
  border-color: rgba(135, 160, 255, 0.68);
  background: rgba(71, 95, 180, 0.08);
  color: #a9bbff;
}

@media (max-width: 420px) {
  .schedule-mobile-main {
    gap: 16px;
    padding: 16px;
  }

  .schedule-mobile-card-head {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  .schedule-mobile-date strong {
    font-size: 31px;
  }

  .schedule-mobile-card-body {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
  }

  .schedule-mobile-clubs {
    gap: 4px;
  }

  .schedule-mobile-club {
    width: 54px;
  }

  .schedule-mobile-club img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 720px) {
  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) {
    position: relative;
    isolation: isolate;
    background: #0b0f29;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode)::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: -1px;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(5, 8, 28, 0.76), rgba(5, 9, 30, 0.84) 52%, rgba(4, 7, 24, 0.95) 100%),
      url("/stamford-bridge-calendar-bg.jpg") center calc(50% - 24svh) / cover no-repeat,
      #0b0f29;
    transform: translateZ(0);
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-shell {
    padding: calc(env(safe-area-inset-top, 0px) + 72px) 0 72px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-hero {
    min-height: 42px;
    margin: 0 16px 8px;
    padding: 0;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-brand h1 {
    font-size: 26px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-view-switch {
    width: auto;
    margin: 0 16px 10px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-calendar-sync {
    width: auto;
    min-height: 44px;
    margin: 0 16px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-nav {
    padding: 0 16px 8px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-month-tabs {
    gap: 22px;
  }
}

@media (max-width: 720px) and (max-height: 700px) {
  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 68px);
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-hero {
    min-height: 32px;
    margin-bottom: 4px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-brand h1 {
    font-size: 22px;
  }

  .schedule-page:is(.schedule-classic-mode, .schedule-list-mode) .schedule-season-pill {
    min-height: 28px;
    font-size: 11px;
  }
}

/* Real Madrid-inspired squad and player profile */

body.squad-screen,
body.player-screen {
  background:
    radial-gradient(circle at 72% 8%, rgba(39, 65, 182, 0.22), transparent 30%),
    linear-gradient(180deg, #11152d 0%, #0b1025 44%, #080c1d 100%);
  color: #f7f8ff;
}

.squad-screen .app-shell {
  min-height: 100vh;
  padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  background:
    radial-gradient(circle at 18% 22%, rgba(104, 81, 255, 0.11), transparent 28%),
    transparent;
}

.squad-screen .home-hero,
.squad-screen .home-summary {
  display: none;
}

.squad-screen .home-view {
  gap: 22px;
}

.squad-screen .home-nav {
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  z-index: 12;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(145, 163, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 32, 72, 0.9);
  box-shadow: 0 14px 30px rgba(2, 6, 24, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.squad-screen .home-nav-link {
  min-height: 44px;
  border-radius: 999px;
  color: rgba(235, 239, 255, 0.76);
  font-weight: 700;
}

.squad-screen .home-nav-link.is-active {
  background: linear-gradient(135deg, #9badff, #8798ef);
  color: #07132d;
  box-shadow: none;
}

.squad-screen .home-primary,
.squad-screen .home-secondary {
  gap: 0;
}

.squad-screen .home-primary > .home-section:not(.is-full) {
  border-color: rgba(143, 160, 255, 0.16);
  background: rgba(15, 23, 52, 0.78);
  color: rgba(235, 239, 255, 0.76);
  box-shadow: none;
}

.home-squad-section.is-full {
  padding: 2px 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-squad-section.is-full .home-section-head {
  align-items: center;
  margin-bottom: 24px;
  padding: 0 2px;
}

.home-squad-section.is-full .home-section-head span {
  color: #91a6ff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.home-squad-section.is-full .home-section-head h2 {
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: -0.045em;
}

.squad-section-badge {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

.home-squad-section.is-full .home-player-group {
  gap: 12px;
}

.home-squad-section.is-full .home-player-group + .home-player-group {
  margin-top: 24px;
}

.home-squad-section.is-full .home-player-group h3 {
  color: #f7f8ff;
  font-size: clamp(23px, 5vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
}

.home-squad-section.is-full .home-player-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-player-card-featured {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 0.84 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(190, 199, 255, 0.22);
  border-radius: 22px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 255, 255, 0.96), rgba(229, 231, 255, 0.9) 30%, transparent 55%),
    linear-gradient(180deg, #dfe4ff 0%, #a89bf7 46%, #2440d7 78%, #081c4e 100%);
  box-shadow: 0 16px 34px rgba(3, 7, 30, 0.28);
  transform: translateZ(0);
}

.home-player-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 48%, rgba(6, 17, 64, 0.06) 60%, rgba(3, 15, 52, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(49, 21, 173, 0.08));
  pointer-events: none;
}

.home-player-card-featured:active {
  transform: scale(0.985);
}

.squad-player-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.squad-player-media .home-player-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 13px rgba(11, 10, 55, 0.22));
  transform: translateY(2%) scale(0.96);
  transform-origin: center bottom;
}

.squad-player-media .home-player-fallback {
  width: 100%;
  height: 100%;
  color: rgba(20, 30, 100, 0.72);
  font-size: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(73, 60, 209, 0.28));
  transform: none;
}

.squad-player-caption {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  color: #ffffff;
  text-shadow: 0 2px 9px rgba(0, 5, 28, 0.44);
}

.squad-player-caption > div {
  min-width: 0;
  padding-bottom: 2px;
}

.squad-player-number {
  flex: 0 0 auto;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 0.82;
  font-weight: 650;
  letter-spacing: -0.07em;
}

.squad-player-name {
  display: block;
  overflow: hidden;
  font-size: clamp(16px, 3.1vw, 20px);
  line-height: 1.02;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.squad-player-caption small {
  display: block;
  margin-top: 4px;
  color: rgba(244, 246, 255, 0.88);
  font-size: clamp(11px, 2.4vw, 14px);
  line-height: 1;
  font-weight: 700;
}

.player-screen .app-topbar {
  display: none;
}

.player-screen .app-shell {
  width: min(660px, 100%);
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 88px;
  background: #0d1027;
}

.player-screen .player-view,
.player-screen .player-profile-body {
  gap: 0;
  width: 100%;
  min-width: 0;
}

.player-screen .player-back-link {
  position: relative;
  z-index: 5;
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 6px 18px 12px;
  padding: 0;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(225, 232, 255, 0.68);
  box-shadow: none;
}

.player-screen .player-back-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.player-screen .player-back-link svg {
  width: 32px;
  height: 32px;
}

.player-screen .player-profile-hero {
  display: block;
  min-height: clamp(470px, 105vw, 650px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 9%, rgba(255, 255, 255, 0.98), rgba(243, 244, 255, 0.94) 36%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #eff0ff 42%, #9287ef 66%, #2842d4 78%, #071d4c 100%);
  box-shadow: none;
}

.player-screen .player-profile-hero::before,
.player-screen .player-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.player-screen .player-profile-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(43, 23, 159, 0.08)),
    radial-gradient(circle at 50% 58%, transparent 38%, rgba(28, 24, 114, 0.14) 100%);
}

.player-screen .player-profile-hero::after {
  right: 0;
  bottom: 0;
  z-index: 2;
  color: transparent;
  font-size: 0;
  background: linear-gradient(180deg, transparent 53%, rgba(7, 25, 79, 0.08) 68%, rgba(5, 22, 63, 0.94) 100%);
}

.player-profile-photo-wrap {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.player-profile-photo-wrap .home-player-photo {
  width: 100%;
  height: 84%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
  box-shadow: none;
  filter: drop-shadow(0 18px 20px rgba(19, 12, 84, 0.22));
  transform: translateY(2%);
  transform-origin: center bottom;
}

.player-profile-photo-wrap .home-player-fallback {
  width: 100%;
  height: 100%;
  color: rgba(22, 31, 107, 0.66);
  font-size: 82px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(80, 67, 213, 0.2));
  transform: none;
}

.player-screen .player-profile-copy {
  position: absolute !important;
  right: 28px;
  bottom: 24px;
  left: 28px;
  z-index: 3 !important;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 7, 34, 0.42);
}

.player-profile-number {
  flex: 0 0 auto;
  font-size: clamp(64px, 15vw, 90px);
  line-height: 0.8;
  font-weight: 600;
  letter-spacing: -0.08em;
}

.player-screen .player-profile-copy h1 {
  margin: 0;
  font-size: clamp(30px, 7.5vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.player-screen .player-profile-copy p {
  margin: 8px 0 0;
  color: rgba(241, 244, 255, 0.88);
  font-size: clamp(17px, 4vw, 22px);
  line-height: 1;
  font-weight: 750;
}

.player-profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 22px 20px 4px;
  padding: 4px;
  border: 1px solid rgba(121, 145, 255, 0.08);
  border-radius: 999px;
  background: #08204a;
}

.player-profile-tabs button {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: #f3f5ff;
  font-size: 15px;
  font-weight: 650;
}

.player-profile-tabs button.is-active {
  background: linear-gradient(135deg, #9dadff, #8597ef);
  color: #09152e;
}

.player-profile-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 20px 24px;
}

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

.player-screen .player-section {
  min-width: 0;
  padding: 26px 16px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-content-heading {
  margin-bottom: 18px;
}

.player-content-heading span,
.player-screen .home-section-head span {
  display: block;
  color: #91a6ff;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-content-heading h2,
.player-screen .home-section-head h2 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.player-detail-list {
  display: grid;
}

.player-detail-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border-bottom: 1px solid rgba(154, 167, 221, 0.12);
}

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

.player-detail-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(155, 174, 255, 0.3);
  border-radius: 50%;
  color: #a9b8ff;
  font-size: 17px;
  font-weight: 850;
}

.player-detail-row small,
.player-detail-row strong {
  display: block;
}

.player-detail-row small {
  color: rgba(222, 226, 244, 0.7);
  font-size: 14px;
}

.player-detail-row strong {
  margin-top: 2px;
  color: #ffffff;
  font-size: 17px;
}

.player-career-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.player-career-totals article,
.player-screen .player-stat-grid article {
  min-height: 84px;
  padding: 13px;
  border: 1px solid rgba(153, 170, 255, 0.14);
  border-radius: 16px;
  background: rgba(22, 31, 65, 0.82);
  box-shadow: none;
}

.player-career-totals span,
.player-screen .player-stat-grid span {
  display: block;
  color: rgba(216, 222, 245, 0.66);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}

.player-career-totals strong,
.player-screen .player-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.player-season-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: 18px;
  padding: 0 18px;
  border: 1px solid rgba(172, 184, 228, 0.12);
  border-radius: 16px;
  background: #3b4965;
  color: #f5f7ff;
  font-size: 17px;
  font-weight: 650;
}

.player-season-selector svg {
  width: 24px;
  height: 24px;
}

.player-season-selector path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-screen .player-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.player-screen .player-season-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-color: rgba(153, 170, 224, 0.14);
  border-radius: 16px;
  background: rgba(17, 25, 54, 0.84);
}

.player-screen .player-season-row {
  border-bottom-color: rgba(153, 170, 224, 0.12);
  background: transparent;
  color: rgba(238, 241, 255, 0.86);
}

.player-screen .player-season-head {
  background: rgba(75, 91, 137, 0.3);
  color: rgba(219, 225, 246, 0.66);
}

.player-screen .home-empty {
  border-color: rgba(153, 170, 224, 0.2);
  background: rgba(20, 29, 61, 0.72);
  color: rgba(221, 226, 246, 0.7);
}

.player-screen .player-match-row {
  border-color: rgba(153, 170, 224, 0.14);
  border-radius: 16px;
  background: rgba(22, 31, 65, 0.82);
  color: #ffffff;
}

.player-screen .player-match-row > div:first-child > span,
.player-screen .player-match-row small {
  color: rgba(218, 224, 246, 0.64);
}

.player-screen .player-match-score strong {
  color: #a6b6ff;
}

.player-screen .player-match-score span {
  background: rgba(143, 160, 255, 0.14);
  color: #dfe5ff;
}

@media (max-width: 820px) {
  .home-squad-section.is-full .home-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .squad-screen .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .squad-screen .home-nav {
    margin-inline: 2px;
  }

  .squad-screen .home-nav-link {
    padding-inline: 4px;
    font-size: 11px;
  }

  .home-squad-section.is-full .home-section-head {
    padding-inline: 4px;
  }

  .squad-section-badge {
    width: 46px;
    height: 46px;
  }

  .home-squad-section.is-full .home-player-grid {
    gap: 9px;
  }

  .home-player-card-featured {
    border-radius: 18px;
  }

  .squad-player-caption {
    right: 9px;
    bottom: 12px;
    left: 9px;
    gap: 6px;
  }

  .player-screen .player-profile-hero {
    min-height: max(455px, 120vw);
  }

  .player-screen .player-profile-copy {
    right: 20px;
    bottom: 22px;
    left: 20px;
    gap: 13px;
  }

  .player-profile-tabs {
    margin-inline: 16px;
  }

  .player-profile-panel {
    padding-inline: 8px;
  }

  .player-screen .player-season-row {
    min-width: 0;
  }

  .player-screen .player-season-table.is-goalkeeper .player-season-row {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-player-card-featured {
    transition: transform 150ms ease, border-color 150ms ease;
  }

  .player-profile-panel:not([hidden]) {
    animation: player-panel-in 180ms ease-out;
  }
}

@keyframes player-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Editorial player profile */

body.player-screen {
  background: #e9edf2;
  color: #111827;
}

.player-screen .app-shell {
  width: min(880px, 100%);
  min-height: 100vh;
  padding: 0 0 72px;
  background: #ffffff;
  box-shadow: 0 0 48px rgba(18, 31, 53, 0.08);
}

.player-screen .player-back-link {
  position: relative;
  z-index: 5;
  display: flex;
  width: auto;
  height: 64px;
  min-height: 64px;
  margin: 0;
  padding: 0 28px;
  justify-self: stretch;
  justify-content: flex-start;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #e4e8ee;
  border-radius: 0;
  background: #ffffff;
  color: #17233a;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
}

.player-screen .player-back-link span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.player-screen .player-back-link svg {
  width: 20px;
  height: 20px;
}

.player-screen .player-profile-hero {
  display: block;
  height: 510px;
  min-height: 510px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: #034694;
  box-shadow: none;
}

.player-screen .player-profile-hero::before {
  display: none;
}

.player-screen .player-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 39, 86, 0.92) 0%, rgba(2, 48, 105, 0.72) 34%, rgba(3, 70, 148, 0.08) 72%),
    linear-gradient(180deg, transparent 60%, rgba(2, 34, 77, 0.28) 100%);
  pointer-events: none;
}

.player-screen .player-profile-photo-wrap {
  position: absolute !important;
  inset: 0 0 0 auto;
  z-index: 0 !important;
  display: grid;
  width: 64%;
  place-items: end center;
  overflow: hidden;
}

.player-screen .player-profile-photo-wrap .home-player-photo {
  width: 100%;
  height: 95%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center bottom;
  box-shadow: none;
  filter: none;
  transform: none;
}

.player-screen .player-profile-photo-wrap .home-player-fallback {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 88px;
  background: #034694;
}

.player-screen .player-profile-copy {
  position: absolute !important;
  right: auto;
  bottom: 42px;
  left: 42px;
  z-index: 2 !important;
  display: block;
  max-width: 52%;
  color: #ffffff;
  text-shadow: none;
}

.player-screen .player-profile-copy .player-profile-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-screen .player-profile-copy h1 {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: clamp(48px, 7vw, 68px);
  line-height: 0.94;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.player-screen .player-profile-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 650;
}

.player-screen .player-profile-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0 34px;
  border: 0;
  border-bottom: 1px solid #e1e6ec;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.player-screen .player-profile-tabs button {
  width: auto;
  min-height: 62px;
  padding: 1px 0 0;
  border-radius: 0;
  background: transparent;
  color: #697386;
  font-size: 14px;
  font-weight: 750;
}

.player-screen .player-profile-tabs button.is-active {
  background: transparent;
  color: #034694;
  box-shadow: inset 0 -3px 0 #034694;
}

.player-screen .player-profile-panel {
  display: grid;
  gap: 44px;
  min-width: 0;
  overflow: hidden;
  padding: 40px 34px 64px;
  background: #ffffff;
}

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

.player-screen .player-section {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-screen .player-content-heading,
.player-screen .home-section-head {
  margin-bottom: 22px;
}

.player-screen .player-content-heading span,
.player-screen .home-section-head span {
  display: block;
  color: #034694;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.player-screen .player-content-heading h2,
.player-screen .home-section-head h2 {
  margin: 6px 0 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.player-screen .player-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 46px;
  border-top: 1px solid #dfe4ea;
}

.player-screen .player-detail-row {
  display: block;
  min-height: 82px;
  padding: 17px 0;
  border-bottom: 1px solid #dfe4ea;
}

.player-screen .player-detail-row:last-child {
  border-bottom: 1px solid #dfe4ea;
}

.player-screen .player-detail-mark {
  display: none;
}

.player-screen .player-detail-row small,
.player-screen .player-detail-row strong {
  display: block;
}

.player-screen .player-detail-row small {
  color: #788294;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
}

.player-screen .player-detail-row strong {
  margin-top: 7px;
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 760;
}

.player-screen .player-career-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid #dfe4ea;
  border-bottom: 1px solid #dfe4ea;
}

.player-screen .player-career-totals article,
.player-screen .player-stat-grid article {
  min-height: 0;
  padding: 22px 20px;
  border: 0;
  border-right: 1px solid #dfe4ea;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-screen .player-career-totals article:first-child {
  padding-left: 0;
}

.player-screen .player-career-totals article:last-child {
  border-right: 0;
}

.player-screen .player-career-totals strong,
.player-screen .player-stat-grid strong {
  display: block;
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.player-screen .player-career-totals span,
.player-screen .player-stat-grid span {
  display: block;
  margin-top: 8px;
  color: #788294;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-screen .player-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #dfe4ea;
  border-left: 1px solid #dfe4ea;
}

.player-screen .player-stat-grid article {
  min-height: 110px;
  border-right: 1px solid #dfe4ea;
  border-bottom: 1px solid #dfe4ea;
}

.player-screen .player-season-selector {
  display: none;
}

.player-screen .player-season-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
  background: #ffffff;
}

.player-screen .player-season-row {
  min-height: 50px;
  border-bottom: 1px solid #e5e9ee;
  background: #ffffff;
  color: #263247;
  font-size: 14px;
  font-weight: 700;
}

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

.player-screen .player-season-head {
  background: #f2f5f8;
  color: #6f7a8d;
  font-size: 11px;
  font-weight: 800;
}

.player-screen .home-empty {
  border-color: #d9e0e8;
  border-radius: 4px;
  background: #f6f8fa;
  color: #697386;
}

.player-screen .player-match-list {
  gap: 0;
  border-top: 1px solid #dfe4ea;
}

.player-screen .player-match-row {
  min-height: 76px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid #dfe4ea;
  border-radius: 0;
  background: transparent;
  color: #172033;
}

.player-screen .player-match-row > div:first-child > span,
.player-screen .player-match-row small {
  color: #788294;
}

.player-screen .player-match-score strong {
  color: #034694;
}

.player-screen .player-match-score span {
  background: #edf3fa;
  color: #034694;
}

@media (max-width: 620px) {
  .player-screen .player-back-link {
    height: 58px;
    min-height: 58px;
    padding-inline: 18px;
  }

  .player-screen .player-profile-hero {
    height: max(440px, 112vw);
    min-height: 440px;
    max-height: 540px;
  }

  .player-screen .player-profile-photo-wrap {
    width: 88%;
  }

  .player-screen .player-profile-hero::after {
    background:
      linear-gradient(90deg, rgba(2, 39, 86, 0.94) 0%, rgba(2, 48, 105, 0.67) 38%, rgba(3, 70, 148, 0.04) 82%),
      linear-gradient(180deg, transparent 52%, rgba(2, 34, 77, 0.52) 100%);
  }

  .player-screen .player-profile-copy {
    right: 20px;
    bottom: 26px;
    left: 20px;
    max-width: 76%;
  }

  .player-screen .player-profile-copy h1 {
    margin-top: 9px;
    font-size: clamp(40px, 13vw, 58px);
  }

  .player-screen .player-profile-copy p {
    margin-top: 13px;
    font-size: 15px;
  }

  .player-screen .player-profile-tabs {
    gap: 24px;
    padding-inline: 20px;
  }

  .player-screen .player-profile-tabs button {
    min-height: 56px;
  }

  .player-screen .player-profile-panel {
    gap: 38px;
    padding: 32px 20px 52px;
  }

  .player-screen .player-content-heading h2,
  .player-screen .home-section-head h2 {
    font-size: 25px;
  }

  .player-screen .player-detail-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .player-screen .player-detail-row {
    min-height: 76px;
    padding-block: 15px;
  }

  .player-screen .player-career-totals article {
    padding: 18px 12px;
  }

  .player-screen .player-career-totals article:first-child {
    padding-left: 0;
  }

  .player-screen .player-career-totals strong,
  .player-screen .player-stat-grid strong {
    font-size: 29px;
  }

  .player-screen .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-screen .player-season-row {
    padding-inline: 7px;
    font-size: 12px;
  }
}

/* Chelsea-style squad catalogue */

body.squad-screen {
  background: #e8ebf0;
  color: #071b61;
}

.squad-screen .app-topbar {
  --app-topbar-foreground: #071b61;
  --app-topbar-blue-opacity: 0;
  --app-topbar-border-opacity: 0.08;
  --app-topbar-shadow-opacity: 0.04;
  background: rgba(255, 255, 255, 0.94);
}

.squad-screen .app-shell {
  width: min(680px, 100%);
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top, 0px) + 72px) 0 72px;
  background: #e8ebf0;
  box-shadow: 0 0 48px rgba(22, 35, 58, 0.08);
}

.squad-screen .home-view,
.squad-screen .home-primary,
.squad-screen .home-secondary {
  gap: 0;
}

.squad-screen .home-nav {
  display: none;
}

.home-squad-section.is-full {
  padding: 0 0 34px;
  overflow: hidden;
  background: #e8ebf0;
}

.home-squad-section.is-full .home-section-head {
  align-items: flex-start;
  min-height: 180px;
  margin: 0;
  padding: 32px 22px 26px;
  background: #ffffff;
}

.home-squad-section.is-full .home-section-head span {
  color: #687288;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.home-squad-section.is-full .home-section-head h2 {
  max-width: 520px;
  margin-top: 12px;
  color: #071b61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 10vw, 76px);
  line-height: 0.88;
  font-weight: 500;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-squad-section.is-full .squad-section-badge {
  width: 58px;
  height: 58px;
  filter: none;
}

.squad-roster-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px 22px 20px;
  border-top: 1px solid #edf0f4;
  background: #ffffff;
}

.squad-team-selector,
.squad-roster-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 850;
}

.squad-team-selector {
  gap: 8px;
  background: #071b61;
  color: #ffffff;
}

.squad-team-selector svg {
  width: 14px;
  height: 14px;
}

.squad-team-selector path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.squad-roster-active {
  background: #0645f5;
  color: #ffffff;
}

.home-squad-section.is-full .home-player-group {
  gap: 12px;
  margin: 0;
  padding: 22px 16px 0;
}

.home-squad-section.is-full .home-player-group + .home-player-group {
  margin-top: 8px;
}

.home-squad-section.is-full .home-player-group h3 {
  color: #071b61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.home-squad-section.is-full .home-player-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-squad-section.is-full .home-player-card-featured {
  aspect-ratio: 1.18 / 1;
  border: 1px solid rgba(19, 43, 105, 0.09);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 44, 68, 0.08);
}

.home-squad-section.is-full .home-player-card-featured::before {
  z-index: 1;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, 0.22) 76%, #ffffff 88%);
}

.home-squad-section.is-full .squad-player-media {
  inset: 0 0 66px;
  background: #ffffff;
}

.home-squad-section.is-full .squad-player-media .home-player-photo {
  position: absolute;
  top: -2%;
  left: 50%;
  width: 92%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center top;
  filter: none;
  transform: translateX(-50%);
}

.home-squad-section.is-full .squad-player-media .home-player-photo.is-fallback-photo {
  top: 2%;
  width: 78%;
}

.home-squad-section.is-full .squad-player-media .home-player-fallback {
  height: 100%;
  color: rgba(7, 27, 97, 0.62);
  background: linear-gradient(180deg, #ffffff, #edf1f7);
  transform: none;
}

.home-squad-section.is-full .squad-player-caption {
  right: 16px;
  bottom: 13px;
  left: 16px;
  z-index: 3;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #071b61;
  text-shadow: none;
}

.home-squad-section.is-full .squad-player-caption > div {
  min-width: 0;
  padding: 0;
}

.home-squad-section.is-full .squad-player-name {
  color: #071b61;
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.08;
  font-weight: 800;
}

.home-squad-section.is-full .squad-player-caption small {
  margin-top: 5px;
  color: #0645f5;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.home-squad-section.is-full .squad-player-side {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.home-squad-section.is-full .squad-player-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 19px;
  overflow: hidden;
  border-radius: 2px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 23px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(7, 27, 97, 0.18));
}

.home-squad-section.is-full .squad-player-number {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  flex: 0 0 auto;
  color: #071b61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.8;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.home-squad-section.is-full .squad-player-number span {
  color: #0645f5;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .squad-screen .app-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .home-squad-section.is-full .home-section-head {
    min-height: 164px;
    padding: 26px 20px 22px;
  }

  .home-squad-section.is-full .home-section-head h2 {
    max-width: 300px;
    font-size: clamp(45px, 13vw, 58px);
  }

  .home-squad-section.is-full .squad-section-badge {
    width: 46px;
    height: 46px;
  }

  .squad-roster-switch {
    padding-inline: 20px;
  }

  .home-squad-section.is-full .home-player-group {
    padding: 20px 12px 0;
  }

  .home-squad-section.is-full .home-player-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-squad-section.is-full .home-player-card-featured {
    aspect-ratio: 1.48 / 1;
    border-radius: 13px;
  }

  .home-squad-section.is-full .squad-player-media {
    bottom: 68px;
  }

  .home-squad-section.is-full .squad-player-media .home-player-photo {
    top: -3%;
    width: 94%;
    height: auto;
    object-position: center top;
    transform: translateX(-50%);
  }

  .home-squad-section.is-full .squad-player-media .home-player-photo.is-fallback-photo {
    top: 1%;
    width: 80%;
  }

  .home-squad-section.is-full .squad-player-caption {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .home-squad-section.is-full .squad-player-name {
    font-size: 18px;
  }

  .home-squad-section.is-full .squad-player-number {
    font-size: 32px;
  }

  .home-squad-section.is-full .squad-player-flag {
    min-width: 26px;
    height: 18px;
    font-size: 22px;
  }
}
