.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  width: 100%;
  max-width: 960px;
}
.breadcrumb a { color: #daa10a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #555; }

.ops-link-row { margin-top: 28px; text-align: center; }
.ops-link { color: #666; font-size: 13px; text-decoration: none; }
.ops-link:hover { color: #daa10a; }

@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;
}
a.league-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.league-card-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.season-badge {
  background: rgba(218, 161, 10, 0.15);
  border: 1px solid rgba(218, 161, 10, 0.35);
  color: #daa10a;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.match-count-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid #2a2a3e;
  color: #888;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
}
.leagues-section, .cross-league-section { width: 100%; max-width: 960px; }
.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 16px;
  text-align: center;
}
.cross-league-section { margin-top: 12px; }
.cross-league-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cross-link-mvp { grid-column: 2; border-color: rgba(218, 161, 10, 0.45); }
.cross-link-mvp:hover { border-color: rgba(218, 161, 10, 0.85); }
.cross-link-mvp .cross-link-label { color: #daa10a; }

.cross-link {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border: 2px solid #2a2a3e;
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cross-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(218, 161, 10, 0.08), transparent);
  transition: left 0.4s;
}
.cross-link:hover::before { left: 100%; }
.cross-link:hover {
  border-color: #daa10a;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(218, 161, 10, 0.2);
}
.cross-link-icon { font-size: 28px; margin-bottom: 10px; }
.cross-link-label {
  font-size: 16px;
  font-weight: 700;
  color: #daa10a;
  margin-bottom: 6px;
}
.cross-link-desc { font-size: 13px; color: #777; line-height: 1.4; }
.cross-link-search { cursor: default; }
.cross-link-search:hover { transform: none; box-shadow: none; border-color: rgba(218, 161, 10, 0.4); }
.player-search-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.player-search-form input {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  background: #0f0f1a;
  border: 1px solid #3a3a4e;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
}
.player-search-form input:focus { border-color: #daa10a; }
.player-search-form button {
  padding: 8px 14px;
  background: #daa10a;
  border: none;
  border-radius: 6px;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.player-search-form button:hover { background: #f0b800; }
.steam-login-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  background: #1b2838;
  border: 1px solid rgba(103, 193, 245, 0.4);
  border-radius: 6px;
  color: #67c1f5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.steam-login-link:hover {
  background: #2a475e;
  border-color: #67c1f5;
  color: #c7ecff;
}
.account-links {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.account-link {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #b8c4d0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.account-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  color: #f0f4f8;
}
.steam-login-note {
  margin-top: 8px;
  max-width: 260px;
  color: #7b8a99;
  font-size: 11px;
  line-height: 1.45;
}
.steam-login-note a {
  color: #9fb4c6;
  text-decoration: underline;
}
#landing-steam-error {
  color: #ff8a82;
}
@media (max-width: 640px) {
  .cross-league-grid { grid-template-columns: 1fr; }
  .cross-link-mvp { grid-column: auto; }
}
.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; }

body::after {
  content: '';
  order: 1;
  flex: 1 0 56px;
}

body > .global-footer {
  order: 2;
  align-self: stretch;
  margin: 0 -20px -60px;
}
