/* === Shared base styles === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1117;
  color: #e1e4e8;
  height: auto;
  overflow: auto;
  padding: 0;
}

header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #f0f6fc;
}

header a {
  color: #8b949e;
  text-decoration: none;
  font-size: 13px;
}

header a:hover { color: #58a6ff; }

#header-status {
  color: #8b949e;
  font-size: 14px;
}

#loading {
  text-align: center;
  padding: 48px 16px;
  color: #8b949e;
  font-size: 14px;
}

.league-content {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #30363d;
  margin-bottom: 16px;
}

.tab {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #8b949e;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover { color: #e1e4e8; }

.tab.active {
  color: #f0f6fc;
  border-bottom-color: #58a6ff;
}

.placeholder {
  padding: 24px 16px;
  text-align: center;
  color: #484f58;
  font-size: 14px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
}

/* Position badges */
.pos-QB { background: #c2185b; color: #fff; }
.pos-RB { background: #1565c0; color: #fff; }
.pos-WR { background: #2e7d32; color: #fff; }
.pos-TE { background: #e65100; color: #fff; }
.pos-K { background: #6a1b9a; color: #fff; }
.pos-DEF { background: #4e342e; color: #fff; }

/* Hamburger nav */
.hamburger {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.hamburger:hover { color: #f0f6fc; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
}

.nav-overlay.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: #161b22;
  border-left: 1px solid #30363d;
  z-index: 201;
  padding: 16px 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.nav-overlay.open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  border-bottom: 1px solid #30363d;
  margin-bottom: 8px;
}

.nav-drawer-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #f0f6fc;
}

.nav-close {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.nav-close:hover { color: #f0f6fc; }

.nav-drawer ul {
  list-style: none;
}

.nav-drawer li {
  margin: 0;
}

.nav-drawer a {
  display: block;
  padding: 10px 20px;
  color: #58a6ff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.1s;
}

.nav-drawer a:hover {
  background: #1c2128;
}

.nav-drawer .nav-section-label {
  display: block;
  padding: 10px 20px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #484f58;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-drawer .nav-sub a {
  padding-left: 36px;
  font-size: 13px;
}

@media (max-width: 500px) {
  .league-content {
    padding: 12px;
  }

  .tabs {
    overflow-x: auto;
  }
}
