.apz-field-container {
  display: flex;
  flex-direction: column;
  border: thin solid red;
  border: none;
  position: relative;
  padding: 0px !important;
}

.apz-field {
  flex: 1;
  position: relative;
  background: #4caf50;
  border: none;
  overflow: hidden;
}

.trajectory-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.apz-yard-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow:
    inset 60px 0 white,
    inset -60px 0 white;
  background-image:
    repeating-linear-gradient(to bottom, transparent, transparent 19px, rgba(255, 255, 255, 0.3) 20px),
    repeating-linear-gradient(to bottom, transparent, transparent 99px, rgba(255, 255, 255, 0.6) 100px),
    linear-gradient(to bottom, rgba(255,255,255,0.6) 0px, rgba(255,255,255,0.6) 5px, transparent 5px, transparent calc(100% - 5px), rgba(255,255,255,0.6) calc(100% - 5px), rgba(255,255,255,0.6) 100%);
  z-index: 0;
}

.apz-panel {
  height: 70px;
  background: #424242;
  color: white;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 0;  
}

.apz-player {
  position: absolute;
  width: 50px;
  height: 50px;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: grab;
  user-select: none;
  z-index: 10;
  color: white;
  border: 2px solid white;
  transition: transform 0.3s ease, border 0.2s ease;
}

.apz-player:hover {
  transform: scale(1.1);
}

/* Indicador de selección */
.apz-player.selected {
  border: 2px solid yellow;
}

/* Estilos jugadores ofensivos */
.apz-qb { background-color: #f44336; border-radius: 50%; }
.apz-wr { background-color: #2196f3; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.apz-rb { background-color: #ff9800; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.apz-c { background-color: #a1887f; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }

/* Estilos jugadores defensivos */
.apz-dl { background-color: #8e24aa; border-radius: 50%; }
.apz-lb { background-color: #6d4c41; border-radius: 40%; }
.apz-cb { background-color: #009688; clip-path: ellipse(50% 40% at 50% 50%); }
.apz-s  { background-color: #455a64; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }

/* Modal */
/*
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 20;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}
*/  

/* Botones */
.apz-button, button {
  margin: 10px;
  padding: 8px 16px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

button:hover, .apz-button:hover {
  background-color: #0b7dda;
}

/* Descripción */
.descriptrayectoria {
  margin: 10px 0;
  padding: 10px;
  background: #f5f5f5;
  background: none;
  border-radius: 4px;
  font-size: 14px;
  color: blue;
  font-weight: bold;
}

.player-animating {
  animation-duration: 2.5s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  z-index: 15;
}

/* Responsive */
@media (max-width: 768px) {
  .apz-player {
    width: 40px;
    height: 40px;
    font-size: 10px;
  }

  .modal-content {
    width: 80%;
  }
}

/* Estilo para trayectorias estáticas */
.trajectory-static {
  stroke-width: 2px;
  opacity: 0.7;
}


#toast-container {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}
/*
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}
*/
@keyframes moveFlatRight {
  to {
      transform: translateX(calc(var(--flat-length, 15) * 8px));
  }
}

@keyframes moveFlatLeft {
  to {
      transform: translateX(calc(var(--flat-length, 15) * -8px));
  }
}