/* Scoreboard-style stat digits — the signature motif of the portal */
.scoreboard-digit {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Match/ticket card — a torn-edge stub feel for fixtures & events */
.ticket-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27, 37, 51, 0.06), 0 8px 24px rgba(27, 37, 51, 0.08);
}
.ticket-card::before,
.ticket-card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #F7FAFC;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket-card::before { left: -8px; }
.ticket-card::after { right: -8px; }

.stub-divider {
  border-left: 2px dashed rgba(27, 37, 51, 0.15);
}

/* Hero slideshow */
.slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
  filter: saturate(1.18) contrast(1.08) brightness(0.94);
}
.slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18,25,36,0.92) 0%, rgba(18,25,36,0.55) 42%, rgba(29,90,120,0.28) 78%, rgba(29,90,120,0.15) 100%);
}
.slide-dots {
  display: flex;
  gap: 8px;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.slide-dot.is-active {
  background: #4FC3E8;
  width: 22px;
}

/* Pitch / lineup view — Premier League matchday-graphic style */
.pitch {
  position: relative;
  min-height: 620px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%),
    repeating-linear-gradient(115deg, #1B7A42 0px, #1B7A42 64px, #1E8548 64px, #1E8548 128px);
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.35), 0 20px 50px rgba(11,31,58,0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 18px;
}
.pitch-touchline {
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  pointer-events: none;
}
.pitch-line-halfway {
  position: absolute;
  left: 10px; right: 10px; top: 50%;
  height: 2px;
  background: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}
.pitch-circle {
  position: absolute;
  width: 130px; height: 130px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}
.pitch-center-spot {
  position: absolute;
  width: 6px; height: 6px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}
.pitch-box-top, .pitch-box-bottom {
  position: absolute;
  left: 50%;
  width: 230px; height: 64px;
  border: 2px solid rgba(255,255,255,0.4);
  transform: translateX(-50%);
}
.pitch-box-top { top: 10px; border-top: none; }
.pitch-box-bottom { bottom: 10px; border-bottom: none; }
.pitch-box-small-top, .pitch-box-small-bottom {
  position: absolute;
  left: 50%;
  width: 110px; height: 30px;
  border: 2px solid rgba(255,255,255,0.4);
  transform: translateX(-50%);
}
.pitch-box-small-top { top: 10px; border-top: none; }
.pitch-box-small-bottom { bottom: 10px; border-bottom: none; }
.pitch-arc {
  position: absolute;
  width: 60px; height: 60px;
  left: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translateX(-50%);
}
.pitch-arc-top { top: 66px; clip-path: inset(66% 0 0 0); }
.pitch-arc-bottom { bottom: 66px; clip-path: inset(0 0 66% 0); }
.pitch-corner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
}
.pitch-corner.tl { top: -8px; left: -8px; }
.pitch-corner.tr { top: -8px; right: -8px; }
.pitch-corner.bl { bottom: -8px; left: -8px; }
.pitch-corner.br { bottom: -8px; right: -8px; }

.pitch-formation-label {
  position: absolute;
  top: 14px; right: 22px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.28);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.pitch-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.pitch-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 82px;
  text-decoration: none;
}
.pitch-chip .chip-jersey {
  position: relative;
  width: 44px; height: 44px;
  clip-path: polygon(22% 0%, 78% 0%, 100% 22%, 82% 32%, 82% 100%, 18% 100%, 18% 32%, 0% 22%);
  background: linear-gradient(155deg, #26334A 0%, #1B2533 55%, #121924 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pitch-chip:hover .chip-jersey { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 16px rgba(0,0,0,0.5); }
.pitch-chip .chip-jersey .chip-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.pitch-chip.is-captain .chip-jersey { background: linear-gradient(155deg, #FBBF24 0%, #F59E0B 60%, #B9740A 100%); box-shadow: 0 0 0 2px #F59E0B, 0 6px 14px rgba(245,158,11,0.45); }
.pitch-chip.is-captain .chip-jersey .chip-num { color: #1B2533; }
.pitch-chip.is-vice .chip-jersey { box-shadow: 0 0 0 2px #4FC3E8, 0 6px 14px rgba(79,195,232,0.4); }
.pitch-chip .chip-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pitch-chip .chip-role {
  font-size: 8.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pitch-chip .chip-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
  background: #F59E0B;
  color: #1B2533;
}


@media (max-width: 480px) {
  .pitch { min-height: 480px; padding: 20px 10px; }
  .pitch-chip { width: 64px; }
  .pitch-chip .chip-jersey { width: 36px; height: 36px; }
  .pitch-chip .chip-jersey .chip-num { font-size: 12px; }
  .pitch-chip .chip-name { font-size: 9px; max-width: 64px; }
  .pitch-chip .chip-role { font-size: 7.5px; }
  .pitch-box-top, .pitch-box-bottom { width: 160px; height: 44px; }
  .pitch-circle { width: 90px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .slide { transition: opacity 0.4s ease; transform: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}