@keyframes blink-fade-green {
  0% {
    opacity: 1;
    background-color: transparent;
  }
  50% {
    opacity: 0.9;
    background-color: black;
  }
  100% {
    opacity: 1;
    background-color: transparent;
  }
}

/* Estilos específicos de tiradas que no están en header.css */
.btn-live {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  padding: 0.75rem 2rem !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 6px -1px rgb(5 150 105 / 0.3) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.95rem !important;
}

.btn-live:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 8px -1px rgb(5 150 105 / 0.4) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-live .spinner-grow {
  width: 0.9rem !important;
  height: 0.9rem !important;
}

/* Banner Memorial en tiradas - Homenaje a tirador fallecido */
.memorial-banner {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%) !important;
  border-top: 3px solid #dc2626 !important;
  border-bottom: 1px solid #9ca3af !important;
  padding: 0.75rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.memorial-banner::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%) !important;
  pointer-events: none !important;
}

.memorial-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  position: relative !important;
  z-index: 1 !important;
}

.memorial-photo {
  position: relative !important;
  flex-shrink: 0 !important;
}

.memorial-img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  border: 2px solid rgba(31, 41, 55, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  filter: grayscale(20%) !important;
}

.memorial-ribbon-container {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.memorial-ribbon-large {
  width: 40px !important;
  height: 40px !important;
  opacity: 0.85 !important;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4)) !important;
  transition: all 0.3s ease !important;
}

.memorial-ribbon-large:hover {
  opacity: 1 !important;
  transform: scale(1.1) !important;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.6)) !important;
}

.memorial-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  color: #1f2937 !important;
}

.memorial-message {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.2rem !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  letter-spacing: 0.3px !important;
}

.memorial-subtitle {
  font-size: 0.75rem !important;
  opacity: 0.75 !important;
  font-style: italic !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Efectos hover para la foto clickeable en tiradas */
.memorial-img:hover {
  transform: scale(1.05) !important;
  transition: transform 0.2s ease !important;
  opacity: 0.9 !important;
}

/* Modal Memorial en tiradas */
.memorial-modal-content {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
}

.memorial-modal-header {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 1.5rem 2rem !important;
  position: relative !important;
}

.memorial-modal-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #dc2626, #b91c1c, #dc2626) !important;
}

.memorial-modal-header .modal-title {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.memorial-modal-body {
  padding: 2rem !important;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  text-align: center !important;
}

.memorial-img-large {
  width: 350px !important;
  height: 350px !important;
  border-radius: 15px !important;
  object-fit: cover !important;
  border: 4px solid #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  margin-bottom: 1.5rem !important;
  filter: grayscale(10%) !important;
}

.memorial-modal-text h6 {
  color: #1f2937 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.5rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.memorial-modal-text p {
  color: #6b7280 !important;
  font-style: italic !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

/* Estilos del contenedor principal */
.results-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
}

.results-section {
  margin-bottom: 1rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
  min-height: 450px;
}

.section-header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.table-container {
  padding: 0;
  overflow: visible;
  width: 100%;
}

table {
  width: 100% !important;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  table-layout: fixed;
}

table tbody {
  background: #ffffff;
}

table thead {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

table tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

table td {
  text-align: center;
  height: auto;
  min-height: 45px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(1px);
  transition: all 0.2s ease;
  padding: 0.5rem 0.25rem;
}

table td:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

table tr td:first-child {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  background: var(--gray-50) !important;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-left: 2px solid var(--gray-300);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  width: 25%;
  max-width: 200px;
  min-width: 150px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.2;
  vertical-align: middle;
}

table tr td:first-child:hover {
  background: var(--gray-100) !important;
  border-left-color: var(--gray-400);
}

table tr td:last-child {
  font-weight: 700;
  font-size: 16px;
  background: var(--gray-50) !important;
  color: var(--text-primary);
  border-right: 2px solid var(--gray-300);
  padding: 0.5rem 0.5rem;
  width: 8%;
  max-width: 70px;
  min-width: 60px;
  text-align: center;
}

table tr td:last-child:hover {
  background: var(--gray-100) !important;
  border-right-color: var(--gray-400);
}

table th {
  font-size: smaller;
  text-align: center;
  padding: 12px 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  vertical-align: middle;
  height: auto;
  min-height: 45px;
}

table th:not(:first-child):not(:last-child) {
  width: calc(67% / 25);
  max-width: 35px;
  min-width: 25px;
  padding: 12px 4px;
  font-size: 11px;
}

table th:first-child {
  text-align: left;
  width: 25%;
  max-width: 200px;
  min-width: 150px;
}

table th:last-child {
  text-align: center;
  width: 8%;
  max-width: 70px;
  min-width: 60px;
}

table tr td:not(:first-child):not(:last-child) {
  width: calc(67% / 25) !important;
  max-width: 35px;
  min-width: 25px;
  position: relative;
  font-weight: 600;
  font-size: 13px;
  background-color: transparent;
  padding: 0.5rem 0.2rem;
  text-align: center;
}

table tr td:not(:first-child):not(:last-child):not(:empty) {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  color: white;
}

.table caption {
  font-size: 1.1rem !important;
  font-weight: bold !important;
  color: #1f2937 !important;
}

.tirofallado:not(.active-shot) {
  background-color: rgba(255, 0, 0, 0.9) !important;
  color: white !important;
  font-weight: bold;
  transition: background-color 0.5s ease;
}

.tirodoblado:not(.active-shot) {
  background-color: rgba(0, 180, 0, 0.9) !important;
  color: white !important;
  font-weight: bold;
  transition: background-color 0.5s ease;
}

.tiroacertado:not(.active-shot) {
  background-color: rgba(0, 128, 0, 0.9) !important;
  color: white !important;
  font-weight: bold;
  transition: background-color 0.5s ease;
}

.spinner-grow, .text-danger {
  height: 16px;
  width: 16px;
}