/* Rocket League Roguelite - Main Styles */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  min-height: 100vh;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #e2e8f0;
  display: flex;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
  position: relative;
}

/* Replay Watcher Status */
.watcher-status {
  position: fixed;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #10b981;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

.watcher-status.active {
  display: block;
}

.container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}

.header {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 1px rgba(100, 181, 246, 0.3);
  border: 1px solid rgba(100, 181, 246, 0.2);
  flex-shrink: 0;
}

.header h1 {
  color: #60a5fa;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-align: center;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.7);
}

.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.stat { color: #94a3b8; }
.stat-money { color: #fbbf24; }
.stat-wins { color: #34d399; }
.stat-losses { color: #f87171; }

.controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
button:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
button:active {
  transform: translateY(0);
}
button:disabled {
  background: #1e293b;
  color: #475569;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: #334155;
}
button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.main-layout {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.panel {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(100, 181, 246, 0.15);
  flex-shrink: 0;
}

.panel h3 {
  color: #60a5fa;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-row {
  display: grid;
  grid-template-columns: 32px 80px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.balance-row .icon {
  font-size: 20px;
  text-align: center;
}

.balance-row .name {
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balance-row input[type="range"] {
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  width: 100%;
}

.balance-row .value {
  text-align: right;
  color: #60a5fa;
  font-weight: 800;
  font-size: 15px;
  min-width: 40px;
}
.balance-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.balance-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.legend {
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
  color: #94a3b8;
}

.map-panel {
  background: linear-gradient(rgba(15, 23, 42, 0.925), rgba(15, 23, 42, 0.925)), url('../shogun2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(100, 181, 246, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}


.legend-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(100, 181, 246, 0.3);
  border-radius: 12px;
  padding: 24px 32px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.8;
  color: #94a3b8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 50;
}

.legend-overlay h4 {
  color: #60a5fa;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-overlay {
  position: fixed;
  top: 80px;
  left: 20px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(100, 181, 246, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 50;
  max-width: 320px;
  transition: all 0.3s ease;
}

.balance-overlay.minimized {
  width: auto;
  max-width: none;
  padding: 8px 12px;
}

.balance-overlay.minimized #balanceControls,
.balance-overlay.minimized > div:nth-child(2) {
  display: none;
}

.balance-overlay h3 {
  color: #60a5fa;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-overlay.minimized h3 {
  margin-bottom: 0;
}

.map {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #e2e8f0;
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.map::-webkit-scrollbar {
  width: 10px;
}

.map::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 5px;
}

.map::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 5px;
}

.map::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

.map-content {
  position: relative;
  width: fit-content;
  height: 100%;
  margin: 0 auto;
}

.node {
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  background: #1e293b;
  cursor: pointer;
  position: absolute;
  box-sizing: border-box;
  transition: all 0.2s ease;
  border: 3px solid #475569;
  font-weight: 800;
  color: #cbd5e1;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.node:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
  border-color: rgba(96, 165, 250, 0.8);
}

.node.current {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3), 0 0 0 12px rgba(59, 130, 246, 0.15), 0 6px 25px rgba(59, 130, 246, 0.7);
  border-color: #60a5fa;
  border-width: 5px;
  animation: pulse 2s infinite;
  z-index: 10;
  transform: scale(1.05);
}

.node.current::before {
  content: '📍 YOU ARE HERE';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(59, 130, 246, 0.95);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
  border: 2px solid #60a5fa;
  letter-spacing: 0.5px;
}

.node.available {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  border: 4px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 6px 20px rgba(59, 130, 246, 0.6);
  color: #e2e8f0;
  animation: availablePulse 2s ease-in-out infinite;
}

.node.available::after {
  content: '➤ CLICK TO PLAY';
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(59, 130, 246, 0.9);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid #60a5fa;
}

.node.available:hover::after {
  opacity: 1;
}

.node.locked {
  background: #0f172a;
  cursor: not-allowed;
  color: #64748b;
  border-color: #334155;
}

.node.visited {
  background: #1e293b;
  border-color: #475569;
}

.node.won {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  border-width: 3px;
}
.node.lost {
  background: linear-gradient(135deg, #450a0a, #7f1d1d);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
  border-width: 3px;
}

.node.doubles { }
.node.standard { }
.node.hoops { }
.node.miniboss {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  color: white;
  border-color: #fbbf24;
  border-width: 3px;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.5);
  font-weight: 800;
}
.node.boss {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  font-size: 24px;
  font-weight: 900;
  border-color: #ef4444;
  border-width: 4px;
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6);
}
.node.start {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  border-color: #22d3ee;
  border-width: 3px;
  box-shadow: 0 4px 22px rgba(6, 182, 212, 0.5);
  font-weight: 800;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3), 0 0 0 12px rgba(59, 130, 246, 0.15), 0 6px 25px rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.4), 0 0 0 16px rgba(59, 130, 246, 0.2), 0 8px 30px rgba(59, 130, 246, 0.9);
  }
}

@keyframes availablePulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 6px 20px rgba(59, 130, 246, 0.6);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.4), 0 8px 25px rgba(59, 130, 246, 0.8);
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.modal h2 {
  color: #60a5fa;
  margin-bottom: 16px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.match-info {
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.8;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
}

.result-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.result-btn {
  padding: 14px 36px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.result-btn.win {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-color: #34d399;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.result-btn.win:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.result-btn.loss {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-color: #f87171;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.result-btn.loss:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.goals-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.goals-count {
  font-size: 48px;
  color: #60a5fa;
  font-weight: 800;
  min-width: 80px;
  text-align: center;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.earnings-preview {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  margin-top: 12px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
  border: 1px solid rgba(71, 85, 105, 0.5);
}

.shop-item:hover {
  background: rgba(51, 65, 85, 0.8);
  transform: translateX(4px);
  border-color: rgba(96, 165, 250, 0.4);
}

.shop-item-name {
  color: #e2e8f0;
  font-weight: 800;
  font-size: 17px;
}

.shop-item-desc {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.shop-item-cost {
  color: #fbbf24;
  font-weight: 800;
  font-size: 18px;
  margin: 0 12px;
}

.effect-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  border: 2px solid #3b82f6;
  border-radius: 6px;
  padding: 6px 12px;
  margin: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
}

.skip-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: 1px solid #fbbf24;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  z-index: 10;
}

.skip-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.6);
}

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.98);
  border: 2px solid #60a5fa;
  border-radius: 16px;
  padding: 36px 52px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 40px rgba(96, 165, 250, 0.5);
  text-align: center;
  min-width: 450px;
  animation: notificationSlide 0.3s ease-out;
}

.notification-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 199;
  display: none;
}

.notification-backdrop.active {
  display: block;
}

.notification h3 {
  color: #60a5fa;
  font-size: 30px;
  margin-bottom: 18px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
}

.notification p {
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 26px;
  white-space: pre-line;
}

.notification button {
  min-width: 120px;
  margin: 0 8px;
}

@keyframes notificationSlide {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .notification {
    min-width: 300px;
    padding: 24px 32px;
  }
  .balance-overlay {
    max-width: 280px;
    padding: 12px 16px;
  }
  .legend-overlay {
    font-size: 24px;
    padding: 16px 20px;
  }
}

/* Death Wall Styling */
.death-wall {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 5;
  transition: bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1), height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.death-wall-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
    rgba(139, 0, 0, 0.95) 0%,
    rgba(185, 28, 28, 0.85) 15%,
    rgba(220, 38, 38, 0.7) 30%,
    rgba(239, 68, 68, 0.5) 50%,
    rgba(248, 113, 113, 0.3) 70%,
    rgba(252, 165, 165, 0.15) 85%,
    transparent 100%
  );
  animation: wallPulse 3s ease-in-out infinite;
}

.death-wall-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom,
    rgba(255, 50, 50, 0.9) 0%,
    rgba(255, 100, 100, 0.6) 30%,
    transparent 100%
  );
  filter: blur(8px);
  animation: edgeCrackle 1.5s ease-in-out infinite;
}

.death-wall-particles {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 120px;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 80, 80, 0.9), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 100, 100, 0.8), transparent),
    radial-gradient(3px 3px at 50% 50%, rgba(255, 60, 60, 0.9), transparent),
    radial-gradient(2px 2px at 80% 10%, rgba(255, 90, 90, 0.8), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255, 70, 70, 0.9), transparent),
    radial-gradient(3px 3px at 15% 80%, rgba(255, 85, 85, 0.8), transparent),
    radial-gradient(2px 2px at 35% 25%, rgba(255, 75, 75, 0.9), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: particlesRise 8s linear infinite;
}

.death-wall-warning {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(139, 0, 0, 0.95);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid rgba(255, 100, 100, 0.8);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.4);
  animation: warningBlink 1s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
}

@keyframes wallPulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

@keyframes edgeCrackle {
  0%, 100% {
    opacity: 0.8;
    transform: translateY(0px);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes particlesRise {
  0% {
    background-position: 0% 100%;
    opacity: 0.6;
  }
  100% {
    background-position: 0% -100%;
    opacity: 0.9;
  }
}

@keyframes warningBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.9), 0 0 60px rgba(255, 0, 0, 0.6);
  }
}

.wall-distance-display {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.wall-distance-display.safe {
  border-color: rgba(34, 197, 94, 0.6);
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.wall-distance-display.warning {
  border-color: rgba(251, 191, 36, 0.8);
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
  animation: warningPulse 1.5s ease-in-out infinite;
}

.wall-distance-display.critical {
  border-color: rgba(239, 68, 68, 0.9);
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  animation: criticalPulse 0.8s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

@keyframes criticalPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
}

/* TRN Import Styles */
.trn-match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(71, 85, 105, 0.5);
  transition: all 0.2s ease;
}

.trn-match-item:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(96, 165, 250, 0.4);
}

.trn-match-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.trn-match-item label {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.match-result {
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  min-width: 50px;
  text-align: center;
}

.match-result.win {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.match-result.loss {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.match-playlist {
  color: #60a5fa;
  font-weight: 700;
  flex: 1;
}

.match-goals {
  color: #fbbf24;
  font-weight: 700;
}

.match-date {
  color: #94a3b8;
  font-size: 12px;
}

/* Stats Input Grid */
.stats-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.stat-input-item {
  display: flex;
  flex-direction: column;
}

