@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(218, 161, 10, 0.3); }
  50% { text-shadow: 0 0 20px rgba(218, 161, 10, 0.6); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  color: #e0e0e0;
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 30px 20px 60px 20px;
  animation: fadeIn 0.5s ease-in;
}
h1 {
  font-size: 52px;
  color: #daa10a;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  animation: titleGlow 3s ease-in-out infinite;
}
.page-header {
  text-align: center;
  margin-bottom: 50px;
  animation: slideDown 0.6s ease-out;
}
.subtitle {
  color: #999;
  font-size: 15px;
  text-align: center;
  font-weight: 300;
  margin-bottom: 0;
}
.league-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 45px;
  animation: slideDown 0.7s ease-out;
}
.league-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border: 2px solid #2a2a3e;
  border-radius: 12px;
  padding: 24px 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}
.league-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(218, 161, 10, 0.1), transparent);
  transition: left 0.5s;
}
.league-card:hover::before {
  left: 100%;
}
.league-card:hover {
  border-color: #daa10a;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(218, 161, 10, 0.25);
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 100%);
}
.league-card.selected {
  border-color: #daa10a;
  background: linear-gradient(135deg, #252540 0%, #3a3a5a 100%);
  box-shadow: 0 0 20px rgba(218, 161, 10, 0.3);
}
.league-card h2 {
  color: #daa10a;
  font-size: 22px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.league-card p {
  color: #888;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.date-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
}
.date-section h3 {
  color: #daa10a;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.date-inputs {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.date-inputs label {
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
}
.date-inputs input[type="date"] {
  background: #0f0f1a;
  border: 1px solid #3a3a4e;
  border-radius: 6px;
  color: #e0e0e0;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s;
}
.date-inputs input[type="date"]:hover,
.date-inputs input[type="date"]:focus {
  border-color: #daa10a;
  outline: none;
  box-shadow: 0 0 8px rgba(218, 161, 10, 0.2);
}
.main-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: slideDown 0.9s ease-out;
}
.go-btn {
  background: linear-gradient(135deg, #daa10a 0%, #eab820 100%);
  color: #0f0f1a;
  border: 2px solid #daa10a;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.go-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s;
}
.go-btn:hover::before {
  left: 100%;
}
.go-btn:hover {
  background: linear-gradient(135deg, #f0b800 0%, #ffc930 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(218, 161, 10, 0.35);
}
.go-btn:active {
  transform: translateY(0);
}
.go-btn:disabled {
  background: #555;
  border-color: #555;
  cursor: not-allowed;
  opacity: 0.6;
}
.quick-links-section {
  text-align: center;
  margin-bottom: 50px;
  animation: slideDown 1s ease-out;
}
.or-text {
  color: #666;
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quick-links-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.quick-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid #3a3a4e;
  border-radius: 6px;
  transition: all 0.3s;
  background: rgba(218, 161, 10, 0.05);
}
.quick-link:hover {
  background: rgba(218, 161, 10, 0.15);
  border-color: #daa10a;
  color: #daa10a;
  transform: translateY(-2px);
}
.staff-tools-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border: 1px solid #2a2a3e;
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 600px;
  margin-top: 40px;
  animation: slideDown 1.1s ease-out;
}
.staff-tools-header {
  color: #daa10a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-align: center;
  opacity: 0.9;
}
.staff-tools-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.action-btn {
  background: transparent;
  color: #999;
  border: 2px solid #3a3a4e;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.action-btn:hover {
  background: rgba(218, 161, 10, 0.1);
  border-color: #666;
  color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.action-btn:active {
  transform: translateY(0);
}
.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.action-btn.secondary {
  border-color: #3a3a4e;
  color: #888;
}
.action-btn.secondary:hover {
  background: rgba(200, 200, 200, 0.05);
  border-color: #daa10a;
  color: #daa10a;
}
#logArea {
  margin-top: 32px;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in;
}
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border-bottom: 1px solid #3a3a4e;
  font-size: 14px;
  color: #daa10a;
  font-weight: 600;
}
.log-close {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.log-close:hover { color: #daa10a; }
#logOutput {
  padding: 14px 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: #999;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #0a0a0f;
}
#logOutput .log-line { margin-bottom: 4px; padding: 3px 0; line-height: 1.4; }
#logOutput .log-status { color: #daa10a; font-weight: bold; font-size: 13px; margin-top: 8px; }
#logOutput .log-progress { color: #5faadb; }
#logOutput .log-success { color: #5fdb7b; font-weight: bold; }
#logOutput .log-warn { color: #e8a84c; }
#logOutput .log-error { color: #ff6666; font-weight: bold; }
#logOutput .log-info { color: #aaa; }
#logOutput .log-debug { color: #555; font-size: 11px; }
#logOutput .log-done-ok { color: #5fdb7b; font-weight: bold; font-size: 14px; margin-top: 10px; border-top: 1px solid #2a2a3e; padding-top: 10px; }
#logOutput .log-done-fail { color: #ff6666; font-weight: bold; font-size: 14px; margin-top: 10px; border-top: 1px solid #2a2a3e; padding-top: 10px; }
