/* Estilização da Tela de Elenco e Campinho Tático 2D */
.squad-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .squad-layout {
    grid-template-columns: 1fr;
  }
}

/* 2D Tactical Pitch */
.pitch-container {
  background: radial-gradient(circle, #2d6a4f 0%, #1b4332 70%, #081c15 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  height: 520px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 8px;
}

/* Pitch Line Markings */
.pitch-half-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pitch-lines);
  transform: translateY(-50%);
}

.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid var(--pitch-lines);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-penalty-area-top {
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 80px;
  border: 2px solid var(--pitch-lines);
  border-top: none;
  transform: translateX(-50%);
}

.pitch-penalty-area-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 200px;
  height: 80px;
  border: 2px solid var(--pitch-lines);
  border-bottom: none;
  transform: translateX(-50%);
}

/* Pitch Sector Rows */
.pitch-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  z-index: 10;
  min-height: 75px;
}

/* Player Token on Pitch */
.pitch-player-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pitch-player-slot:hover {
  transform: scale(1.12);
}

.player-jersey-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.player-name-label {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.player-str-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-top: 1px;
}

/* Tactics Options Bar */
.tactics-control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.tactic-select-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tactic-select-box label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.tactic-select-box select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.tactic-select-box select option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Squad Roster Table */
.squad-roster-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roster-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.energy-bar-wrap {
  width: 45px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.energy-bar-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
}

.star-player-icon {
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-left: 3px;
}

.starter-btn {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
}

.starter-btn.is-active {
  background: var(--accent-green);
  color: #03210e;
  font-weight: 800;
  border-color: var(--accent-green);
}
