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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  color: #00d9ff;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  color: #888;
  font-size: 1.1rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #aaa;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00d9ff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

button:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00d9ff;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.error {
  background: rgba(255, 82, 82, 0.2);
  border: 1px solid #ff5252;
  border-radius: 8px;
  padding: 1rem;
  color: #ff5252;
  margin-bottom: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #333;
}

.user-details h2 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.user-details span {
  color: #666;
  font-size: 0.9rem;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card h3 {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.summary-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00d9ff;
}

.summary-card .sub {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.league-list {
  display: grid;
  gap: 0.75rem;
}

.league-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.league-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.league-name {
  font-weight: 500;
  color: #fff;
}

.league-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.league-type {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.roster-status {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
}

.roster-status.has-roster {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.roster-status.no-roster {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

/* Button row for Compare and Profile buttons */
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.button-row button {
  width: 100%;
}

#profileBtn {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

#profileBtn:hover {
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.3);
}

/* Profile Stats */
.profile-stats {
  margin-bottom: 2rem;
}

.format-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.format-bar {
  margin-top: 0.5rem;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.format-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.format-bar-fill.redraft {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.format-bar-fill.keeper {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.format-bar-fill.dynasty {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.summary-card.favorite {
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.favorite-text {
  background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.season-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 217, 255, 0.2);
  border-radius: 4px;
  color: #00d9ff;
  font-size: 0.8rem;
}

/* Player Comparison */
.player-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.player-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-section h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.player-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.player-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.2);
  color: #00d9ff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.player-info {
  flex: 1;
}

.player-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-position {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.player-position.pos-qb {
  background: rgba(255, 64, 129, 0.2);
  color: #ff4081;
}

.player-position.pos-rb {
  background: rgba(0, 200, 83, 0.2);
  color: #00c853;
}

.player-position.pos-wr {
  background: rgba(0, 176, 255, 0.2);
  color: #00b0ff;
}

.player-position.pos-te {
  background: rgba(255, 171, 64, 0.2);
  color: #ffab40;
}

.player-position.pos-k {
  background: rgba(124, 77, 255, 0.2);
  color: #7c4dff;
}

.player-position.pos-def {
  background: rgba(139, 69, 19, 0.2);
  color: #a67c52;
}

.player-team {
  font-size: 0.8rem;
  color: #666;
}

.player-count {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

/* Player section h3 */
.player-section h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Taxi Squad Section */
.player-section.taxi-section {
  border: 1px solid rgba(255, 193, 7, 0.3);
  background: rgba(255, 193, 7, 0.05);
}

.player-section.taxi-section h3 {
  color: #ffc107;
  border-bottom-color: rgba(255, 193, 7, 0.3);
}

/* Position Grid */
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Win Stats */
.win-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.win-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.win-stat-card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.win-stat-card .win-pct {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.win-stat-card.overall .win-pct {
  color: #00d9ff;
}

.win-stat-card.redraft .win-pct {
  color: #f44336;
}

.win-stat-card.keeper .win-pct {
  color: #ff9800;
}

.win-stat-card.dynasty .win-pct {
  color: #4caf50;
}

.win-record {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.win-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.win-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.win-stat-card.redraft .win-bar-fill {
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.win-stat-card.keeper .win-bar-fill {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.win-stat-card.dynasty .win-bar-fill {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

/* Weekly Scores */
.weekly-scores-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.weekly-scores-chart {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
  padding-bottom: 25px;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}

.chart-bar {
  width: 100%;
  max-width: 30px;
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
}

.chart-bar.avg-bar {
  background: linear-gradient(180deg, #00d9ff 0%, #0077aa 100%);
}

.chart-bar.median-bar {
  background: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);
  opacity: 0.7;
  position: absolute;
  bottom: 25px;
  width: 60%;
}

.chart-label {
  position: absolute;
  bottom: 0;
  font-size: 0.65rem;
  color: #666;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.avg {
  background: #00d9ff;
}

.legend-color.median {
  background: #ff9800;
}

.weekly-scores-table {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
}

.scores-table th,
.scores-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scores-table th {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.scores-table td {
  color: #ddd;
  font-size: 0.9rem;
}

.scores-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Playoff Stats */
.playoff-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.playoff-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.playoff-stat-card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.playoff-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #00d9ff;
}

.playoff-number.trophy {
  color: #ffd700;
}

.playoff-number.silver {
  color: #c0c0c0;
}

.playoff-sub {
  color: #888;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.playoff-stat-card.championship {
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

/* Trade Stats */
.trade-stats-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.trade-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.trade-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trade-stat-card h3 {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.trade-number {
  font-size: 2rem;
  font-weight: 700;
  color: #9c27b0;
}

.trade-sub {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.trade-partners {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trade-partners h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.partner-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(156, 39, 176, 0.2);
  color: #ce93d8;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.partner-name {
  flex: 1;
  color: #fff;
  font-weight: 500;
}

.partner-count {
  color: #888;
  font-size: 0.85rem;
}

/* FAAB Stats */
.faab-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.faab-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faab-stat-card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.faab-number {
  font-size: 2rem;
  font-weight: 700;
  color: #4caf50;
}

.faab-sub {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.faab-bar {
  margin-top: 0.75rem;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.faab-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Secondary Actions */
.secondary-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-actions .form-group {
  margin-bottom: 1rem;
}

#h2hBtn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  margin-bottom: 0.75rem;
}

#h2hBtn:hover {
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

#multiSeasonBtn {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

#multiSeasonBtn:hover {
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
}

/* Luck Stats */
.luck-stats-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.luck-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.luck-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.luck-stat-card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.luck-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00d9ff;
}

.luck-number.pf {
  color: #4caf50;
}

.luck-number.pa {
  color: #ff5252;
}

.luck-number.positive {
  color: #4caf50;
}

.luck-number.negative {
  color: #ff5252;
}

.luck-sub {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.luck-stat-card.luck-rating {
  border-width: 2px;
}

.luck-stat-card.luck-rating.lucky {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
}

.luck-stat-card.luck-rating.lucky .luck-number {
  color: #4caf50;
}

.luck-stat-card.luck-rating.unlucky {
  border-color: rgba(255, 82, 82, 0.5);
  background: rgba(255, 82, 82, 0.1);
}

.luck-stat-card.luck-rating.unlucky .luck-number {
  color: #ff5252;
}

.luck-stat-card.luck-rating.neutral {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.1);
}

.luck-stat-card.luck-rating.neutral .luck-number {
  color: #ffc107;
}

/* Luck Meter */
.luck-meter-bar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.luck-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.unlucky-label { color: #ff5252; }
.neutral-label { color: #ffc107; }
.lucky-label { color: #4caf50; }

.luck-meter-track {
  position: relative;
  height: 12px;
  background: linear-gradient(90deg, #ff5252 0%, #ffc107 50%, #4caf50 100%);
  border-radius: 6px;
}

.luck-meter-indicator {
  position: absolute;
  top: -4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Boom/Bust Stats */
.boom-bust-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.boom-bust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.boom-bust-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.boom-bust-stat-card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.boom-bust-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00d9ff;
}

.boom-bust-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.boom-bust-sub {
  color: #666;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.boom-bust-stat-card.very-consistent {
  border-color: rgba(76, 175, 80, 0.5);
}
.boom-bust-stat-card.very-consistent .boom-bust-number,
.boom-bust-stat-card.very-consistent .boom-bust-label {
  color: #4caf50;
}

.boom-bust-stat-card.consistent {
  border-color: rgba(139, 195, 74, 0.5);
}
.boom-bust-stat-card.consistent .boom-bust-number,
.boom-bust-stat-card.consistent .boom-bust-label {
  color: #8bc34a;
}

.boom-bust-stat-card.average {
  border-color: rgba(255, 193, 7, 0.5);
}
.boom-bust-stat-card.average .boom-bust-number,
.boom-bust-stat-card.average .boom-bust-label {
  color: #ffc107;
}

.boom-bust-stat-card.volatile {
  border-color: rgba(255, 82, 82, 0.5);
}
.boom-bust-stat-card.volatile .boom-bust-number,
.boom-bust-stat-card.volatile .boom-bust-label {
  color: #ff5252;
}

.boom-bust-stat-card.boom {
  border-color: rgba(76, 175, 80, 0.3);
}
.boom-bust-stat-card.boom .boom-bust-number {
  color: #4caf50;
}

.boom-bust-stat-card.bust {
  border-color: rgba(255, 82, 82, 0.3);
}
.boom-bust-stat-card.bust .boom-bust-number {
  color: #ff5252;
}

.boom-bust-stat-card.high .boom-bust-number {
  color: #ffd700;
}

.boom-bust-stat-card.low .boom-bust-number {
  color: #888;
}

/* Consistency Meter */
.consistency-meter-bar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.consistency-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.consistent-label { color: #4caf50; }
.volatile-label { color: #ff5252; }

.consistency-meter-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.consistency-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #ffc107 50%, #ff5252 100%);
  border-radius: 6px;
  transition: width 0.5s ease;
}

/* Waiver Stats */
.waiver-stats-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.waiver-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.waiver-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.waiver-stat-card h3 {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.waiver-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #00d9ff;
}

.waiver-number.add { color: #4caf50; }
.waiver-number.drop { color: #ff5252; }
.waiver-number.positive { color: #4caf50; }
.waiver-number.negative { color: #ff5252; }

.waiver-sub {
  color: #666;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.waiver-players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.waiver-players-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.waiver-players-section h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Head-to-Head Styles */
.h2h-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.h2h-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.h2h-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #00d9ff;
}

.h2h-user-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.h2h-vs {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b6b;
}

.h2h-verdict {
  margin-bottom: 1.5rem;
}

.verdict-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid rgba(0, 217, 255, 0.3);
}

.verdict-card.winner {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
}

.verdict-card.tie {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.1);
}

.verdict-label {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.verdict-winner {
  font-size: 2rem;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 1rem;
}

.verdict-card.tie .verdict-winner {
  color: #ffc107;
}

.verdict-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.verdict-reason {
  color: #aaa;
  font-size: 0.9rem;
}

.h2h-stats-comparison {
  margin-bottom: 1.5rem;
}

.h2h-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.h2h-stats-table th,
.h2h-stats-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.h2h-stats-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #00d9ff;
  font-size: 0.9rem;
}

.h2h-stats-table td {
  color: #ddd;
  font-size: 1rem;
}

.h2h-stats-table td.winner {
  color: #4caf50;
  font-weight: 700;
}

.h2h-record {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.h2h-record-card {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 8px;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.h2h-record-label {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.h2h-record-value {
  color: #ff6b6b;
  font-size: 1.5rem;
  font-weight: 700;
}

.common-leagues-list {
  display: grid;
  gap: 0.5rem;
}

.common-league-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.h2h-matchups-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.h2h-matchups-table th,
.h2h-matchups-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.h2h-matchups-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.h2h-matchups-table td {
  color: #ddd;
  font-size: 0.9rem;
}

.h2h-matchups-table td.winner {
  color: #4caf50;
  font-weight: 600;
}

/* Multi-Season Styles */
.career-totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.career-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.career-stat-card h3 {
  color: #888;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.career-number {
  font-size: 2rem;
  font-weight: 700;
  color: #00d9ff;
}

.career-number.trophy {
  color: #ffd700;
}

.career-sub {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.career-stat-card.championship {
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
}

.trend-indicators {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.trend-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-icon {
  font-size: 1.25rem;
  font-weight: 700;
}

.trend-icon.improving { color: #4caf50; }
.trend-icon.declining { color: #ff5252; }
.trend-icon.stable { color: #ffc107; }

.trend-label {
  color: #aaa;
  font-size: 0.9rem;
}

.season-trends-chart {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.season-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  height: 200px;
  padding-bottom: 30px;
}

.season-chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.season-chart-bar {
  width: 60px;
  background: linear-gradient(180deg, #00d9ff 0%, #0077aa 100%);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
  min-height: 30px;
}

.bar-value {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.season-chart-label {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

.legend-color.season {
  background: linear-gradient(180deg, #00d9ff 0%, #0077aa 100%);
}

.season-trends-table {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.season-trends-table table {
  width: 100%;
  border-collapse: collapse;
}

.season-trends-table th,
.season-trends-table td {
  padding: 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.season-trends-table th {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.season-trends-table td {
  color: #ddd;
  font-size: 0.9rem;
}

.season-trends-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .league-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .league-meta {
    width: 100%;
    justify-content: space-between;
  }

  .player-comparison {
    grid-template-columns: 1fr;
  }

  .position-grid {
    grid-template-columns: 1fr;
  }

  .weekly-scores-container {
    grid-template-columns: 1fr;
  }

  .win-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chart-bars {
    overflow-x: auto;
  }

  .playoff-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trade-stats-container {
    grid-template-columns: 1fr;
  }

  .faab-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .luck-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .boom-bust-stats {
    grid-template-columns: 1fr 1fr;
  }

  .waiver-players-grid {
    grid-template-columns: 1fr;
  }

  .waiver-summary {
    grid-template-columns: 1fr 1fr;
  }

  .h2h-users {
    flex-direction: column;
    gap: 1rem;
  }

  .h2h-vs {
    font-size: 1.25rem;
  }

  .h2h-stats-table th,
  .h2h-stats-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .trend-indicators {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .season-chart-bars {
    gap: 1rem;
  }

  .season-chart-bar {
    width: 50px;
  }

  .career-totals-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================== */
/* NAVIGATION BAR        */
/* ===================== */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: #aaa;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: #00d9ff;
  background: rgba(0, 217, 255, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  width: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.2s;
}

/* Push content below fixed nav */
.container {
  padding-top: 80px;
}

/* ===================== */
/* PAGE STRUCTURE        */
/* ===================== */

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  color: #00d9ff;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #888;
  font-size: 1rem;
}

/* ===================== */
/* DASHBOARD PAGE        */
/* ===================== */

.dashboard-hero-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.2));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.1);
}

.dashboard-card.featured {
  border-color: rgba(66, 165, 245, 0.3);
  background: rgba(66, 165, 245, 0.05);
}

.dashboard-card.featured:hover {
  border-color: rgba(66, 165, 245, 0.5);
  box-shadow: 0 8px 30px rgba(66, 165, 245, 0.15);
}

.dashboard-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.dashboard-card-icon.profile-icon {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.dashboard-card-icon.h2h-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.dashboard-card-icon.trends-icon {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.dashboard-card-icon.compare-icon {
  background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
}

.dashboard-card-icon.degen-icon {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.dashboard-card h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.dashboard-card p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

.new-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.quick-lookup {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.quick-lookup h2 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.quick-lookup-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.quick-lookup-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
}

.quick-lookup-form input:focus {
  outline: none;
  border-color: #00d9ff;
}

.quick-lookup-form button {
  width: auto;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

/* ===================== */
/* DEGENERATE SCORE PAGE */
/* ===================== */

#degenBtn {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #000;
}

#degenBtn:hover {
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.degen-score-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

/* Gauge Styles */
.degen-gauge {
  position: relative;
  width: 240px;
  height: 140px;
}

.gauge-body {
  position: relative;
  width: 240px;
  height: 120px;
  overflow: hidden;
}

.gauge-fill {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 1.5s ease-out;
}

.gauge-cover {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #1a1a2e;
}

.gauge-text {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}

.gauge-score {
  font-size: 3rem;
  font-weight: 700;
  color: #00d9ff;
  display: block;
  line-height: 1;
}

.gauge-label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  color: #666;
  font-size: 0.75rem;
  margin-top: 4px;
}

.degen-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.degen-grade {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.degen-grade.grade-a { color: #4caf50; }
.degen-grade.grade-b { color: #8bc34a; }
.degen-grade.grade-c { color: #ffc107; }
.degen-grade.grade-d { color: #ff9800; }
.degen-grade.grade-f { color: #ff5252; }

.degen-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.degen-percentile {
  font-size: 0.9rem;
  color: #888;
}

.degen-epstein {
  font-size: 0.8rem;
  color: #ff5252;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Score Breakdown */
.degen-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.breakdown-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-card.activity {
  border-color: rgba(156, 39, 176, 0.3);
}

.breakdown-card.longevity {
  border-color: rgba(0, 217, 255, 0.3);
}

.breakdown-card.success {
  border-color: rgba(76, 175, 80, 0.3);
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.breakdown-header h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

.breakdown-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.breakdown-card.activity .breakdown-score { color: #9c27b0; }
.breakdown-card.longevity .breakdown-score { color: #00d9ff; }
.breakdown-card.success .breakdown-score { color: #4caf50; }

.breakdown-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.breakdown-card.activity .breakdown-bar-fill {
  background: linear-gradient(90deg, #9c27b0, #ce93d8);
}

.breakdown-card.longevity .breakdown-bar-fill {
  background: linear-gradient(90deg, #0099cc, #00d9ff);
}

.breakdown-card.success .breakdown-bar-fill {
  background: linear-gradient(90deg, #388e3c, #4caf50);
}

.breakdown-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.breakdown-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.metric-label {
  color: #888;
}

.metric-value {
  color: #fff;
  font-weight: 500;
}

/* League Rankings Table */
.section-subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}

.rankings-table th,
.rankings-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rankings-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.rankings-table td {
  color: #ddd;
  font-size: 0.9rem;
}

.rankings-table .league-name-cell {
  font-weight: 500;
  color: #fff;
}

.rankings-table .rank-cell {
  font-weight: 600;
}

.rankings-table .percentile-cell {
  font-weight: 500;
}

.rankings-table tr.rank-top .rank-cell,
.rankings-table tr.rank-top .percentile-cell {
  color: #4caf50;
}

.rankings-table tr.rank-mid .rank-cell,
.rankings-table tr.rank-mid .percentile-cell {
  color: #ffc107;
}

.rankings-table tr.rank-low .rank-cell,
.rankings-table tr.rank-low .percentile-cell {
  color: #ff5252;
}

.rankings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rankings-table-clickable tbody tr:hover {
  background: rgba(66, 165, 245, 0.08);
}

.explore-cell {
  text-align: right;
}

.explore-link {
  color: #42a5f5;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}

.rankings-table-clickable tbody tr:hover .explore-link {
  opacity: 1;
}

/* Checkbox Group Styles */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #ddd;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00d9ff;
  cursor: pointer;
}

/* ===================== */
/* RESPONSIVE NAVIGATION */
/* ===================== */

@media (max-width: 900px) {
  .nav-title {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    padding: 1rem;
    gap: 0.25rem;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-lookup-form {
    flex-direction: column;
  }

  .degen-score-main {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .degen-info {
    text-align: center;
  }

  .degen-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .rankings-table th,
  .rankings-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* ===================== */
/* ANALYTICS DASHBOARD   */
/* ===================== */

#analyticsAuthBtn,
#analyticsRefreshBtn {
  background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
}

#analyticsAuthBtn:hover,
#analyticsRefreshBtn:hover {
  box-shadow: 0 4px 20px rgba(96, 125, 139, 0.3);
}

.analytics-status-grid,
.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-stat-card h3 {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.analytics-number {
  font-size: 2rem;
  font-weight: 700;
  color: #00d9ff;
}

.analytics-number-sm {
  font-size: 1rem;
  font-weight: 600;
  color: #00d9ff;
  word-break: break-word;
}

/* Analytics Bar Chart */
.analytics-bar-chart {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.analytics-bar-chart h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  align-items: center;
  gap: 0.75rem;
}

.analytics-bar-label {
  color: #ccc;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-bar-track {
  height: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.analytics-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 2px;
}

.analytics-bar-fill.page-bar {
  background: linear-gradient(90deg, #00d9ff 0%, #0099cc 100%);
}

.analytics-bar-fill.api-fast {
  background: linear-gradient(90deg, #4caf50 0%, #388e3c 100%);
}

.analytics-bar-fill.api-medium {
  background: linear-gradient(90deg, #ffc107 0%, #f57c00 100%);
}

.analytics-bar-fill.api-slow {
  background: linear-gradient(90deg, #ff5252 0%, #d32f2f 100%);
}

.analytics-bar-value {
  color: #ddd;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.analytics-bar-sub {
  color: #888;
  font-size: 0.75rem;
  font-weight: 400;
}

.analytics-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #888;
}

.analytics-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.analytics-legend-dot.api-fast {
  background: #4caf50;
}

.analytics-legend-dot.api-medium {
  background: #ffc107;
}

.analytics-legend-dot.api-slow {
  background: #ff5252;
}

/* Recent Activity Panels */
.analytics-recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.analytics-recent-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-recent-panel h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 400px;
  overflow-y: auto;
}

.analytics-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.analytics-recent-path {
  color: #ccc;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.analytics-recent-time {
  color: #888;
  font-size: 0.75rem;
  white-space: nowrap;
}

.analytics-recent-time.api-fast {
  color: #4caf50;
}

.analytics-recent-time.api-medium {
  color: #ffc107;
}

.analytics-recent-time.api-slow {
  color: #ff5252;
}

@media (max-width: 768px) {
  .analytics-recent-grid {
    grid-template-columns: 1fr;
  }

  .analytics-bar-row {
    grid-template-columns: 100px 1fr 60px;
  }
}

/* ===================== */
/* SHARE BUTTONS         */
/* ===================== */

.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  color: #fff;
  background: rgba(0, 217, 255, 0.1);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 2px 12px rgba(0, 217, 255, 0.15);
  transform: translateY(-1px);
}

.share-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: #666;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.share-btn-success {
  border-color: rgba(76, 175, 80, 0.5) !important;
  background: rgba(76, 175, 80, 0.12) !important;
  color: #4caf50 !important;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes spin-icon {
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin-icon 1s linear infinite;
}

@media (max-width: 600px) {
  .share-bar {
    flex-direction: column;
    gap: 0.75rem;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================== */
/* SKELETON LOADING      */
/* ===================== */

.skeleton-container {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-row {
  display: flex;
  gap: 1rem;
}

.skeleton-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skeleton-card.wide {
  flex: 1 1 100%;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-line.full {
  width: 100%;
}

.skeleton-line.three-quarter {
  width: 75%;
}

.skeleton-line.half {
  width: 50%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 600px) {
  .skeleton-row {
    flex-direction: column;
  }
}

/* ===================== */
/* ERROR RETRY BUTTON    */
/* ===================== */

.error-retry-btn {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: 6px;
  color: #ff5252;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
}

.error-retry-btn:hover {
  background: rgba(255, 82, 82, 0.25);
  border-color: #ff5252;
  box-shadow: 0 2px 12px rgba(255, 82, 82, 0.2);
  transform: translateY(-1px);
}

/* ===================== */
/* LEAGUE EXPLORER       */
/* ===================== */

/* ===================== */
/* SITE FOOTER / KO-FI   */
/* ===================== */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #ff5e5b 0%, #e84545 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}

.kofi-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 94, 91, 0.3);
}

.kofi-btn svg {
  flex-shrink: 0;
}

.footer-text {
  color: #555;
  font-size: 0.8rem;
}

.dad-joke {
  color: #666;
  font-size: 0.8rem;
  font-style: italic;
  max-width: 500px;
  line-height: 1.4;
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

#leagueExplorerBtn {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

#leagueExplorerBtn:hover {
  box-shadow: 0 4px 20px rgba(66, 165, 245, 0.3);
}

#leagueFinderBtn {
  background: linear-gradient(135deg, #78909c 0%, #546e7a 100%);
}

#leagueFinderBtn:hover {
  box-shadow: 0 4px 20px rgba(120, 144, 156, 0.3);
}

.dashboard-card-icon.league-icon {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

/* Divider */
.league-finder-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #666;
  font-size: 0.85rem;
}

.league-finder-divider::before,
.league-finder-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Finder Results List */
.league-finder-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.league-finder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.league-finder-item:hover {
  background: rgba(66, 165, 245, 0.1);
  border-color: rgba(66, 165, 245, 0.3);
}

.league-finder-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.league-finder-item-name {
  color: #fff;
  font-weight: 500;
}

.league-finder-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.league-finder-item-teams,
.league-finder-item-season {
  color: #888;
}

.league-finder-item-arrow {
  color: #42a5f5;
  font-size: 1.25rem;
}

/* League Explorer Info Header */
.league-explorer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.league-explorer-name {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.league-explorer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.league-explorer-teams {
  color: #888;
  font-size: 0.9rem;
}

/* Members Grid */
.league-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* Member Card */
.member-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  color: inherit;
}

.member-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.member-card.rank-gold {
  border-color: rgba(255, 215, 0, 0.4);
}

.member-card.rank-silver {
  border-color: rgba(192, 192, 192, 0.4);
}

.member-card.rank-bronze {
  border-color: rgba(205, 127, 50, 0.4);
}

.member-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  flex-shrink: 0;
}

.member-rank.gold {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.member-rank.silver {
  background: rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
}

.member-rank.bronze {
  background: rgba(205, 127, 50, 0.2);
  color: #cd7f32;
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-team-name {
  color: #666;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-record {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.member-points {
  text-align: right;
  flex-shrink: 0;
}

.member-pf {
  color: #4caf50;
  font-size: 0.85rem;
  font-weight: 500;
}

.member-pa {
  color: #ff5252;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* Responsive */
@media (max-width: 600px) {
  .league-members-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    flex-wrap: wrap;
  }

  .member-points {
    width: 100%;
    display: flex;
    gap: 1rem;
    text-align: left;
    padding-top: 0.5rem;
    margin-left: calc(32px + 44px + 1.7rem);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .league-explorer-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
