/* Lineup Overlays — fullscreen centered */

.lineup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
}

.lineup-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lineup-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
}

.lineup-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Two-team columns */
.lineup-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.lineup-team-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lineup-team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(75, 47, 163, 0.3);
}

.lineup-team-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.lineup-team-name {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Position groups */
.lineup-group-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* Player row */
.lineup-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.lineup-number {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.lineup-player-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lineup-player-name {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.lineup-captain {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.3);
  color: #FFD700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
}

/* Section labels (bench, coach) */
.lineup-section-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  margin-bottom: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(75, 47, 163, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lineup-bench .lineup-player-name {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.lineup-bench .lineup-number {
  width: 26px;
  height: 26px;
  font-size: 12px;
  opacity: 0.7;
}

/* Formation field */
.formation-field {
  position: relative;
  width: 100%;
  max-width: 1400px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.formation-pitch {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a5c1a 0%, #1e6b1e 50%, #1a5c1a 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.formation-ice {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e8f0f8 0%, #d0dff0 50%, #e8f0f8 100%);
  border: 2px solid #5080a0;
}

.formation-center-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.formation-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.formation-player {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.formation-player-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.formation-player-photo-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.formation-player-number {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.formation-player-name {
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Starting Five (hockey) */
.starting-five {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(10, 10, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(75, 47, 163, 0.3);
  padding: 0 40px;
}

.five-team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.five-players {
  display: flex;
  gap: 20px;
}

.five-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.five-player-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--team-color, #4B2FA3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.five-player-photo-fallback {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--team-color, #4B2FA3);
}

.five-player-number {
  font-size: 20px;
  font-weight: 700;
}

.five-player-name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.five-team-name {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

/* Lines/Zvenia (hockey) */
.lines-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
}

.lines-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.lines-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lines-team-name {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.lines-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 900px;
}

.lines-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(75, 47, 163, 0.12);
  border-radius: 8px;
  border-left: 3px solid rgba(75, 47, 163, 0.4);
}

.lines-row-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  width: 80px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.lines-row-players {
  display: flex;
  gap: 20px;
  flex: 1;
}

.lines-player {
  font-size: 16px;
  font-weight: 500;
}

.lines-player-number {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

.lines-goalies {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(75, 47, 163, 0.2);
}
