/* College Football Ranking System - Main Styles */

:root {
  --primary-color: #1a365d;
  --secondary-color: #2c5282;
  --accent-color: #d69e2e;
  --success-color: #38a169;
  --success-bg: #f0fdf4;
  --warning-color: #d69e2e;
  --warning-bg: #fffbeb;
  --error-color: #e53e3e;
  --danger-color: #e53e3e;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navigation */
nav {
  background-color: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, color 0.2s;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Cards */
.card {
  background-color: var(--bg-primary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Rankings Table */
.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-primary);
}

.rankings-table thead {
  background-color: var(--primary-color);
  color: white;
}

.rankings-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  vertical-align: middle;  /* Matches td alignment for consistency */
}

.rankings-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;  /* Centers content vertically - fixes row height inconsistency */
  line-height: 1.5;        /* Standardizes line height across all cells */
}

.rankings-table tbody tr:hover {
  background-color: var(--bg-secondary);
  cursor: pointer;
}

.rankings-table tbody tr:last-child td {
  border-bottom: none;
}

/* Rank Badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  vertical-align: middle;  /* Aligns with text baseline - prevents row height expansion */
  line-height: 1;          /* Prevents internal height expansion */
}

.rank-badge.top-5 {
  background-color: var(--accent-color);
  color: white;
}

.rank-badge.top-10 {
  background-color: #cbd5e0;
  color: var(--text-primary);
}

.rank-badge.top-25 {
  background-color: #e2e8f0;
  color: var(--text-secondary);
}

/* Team Name */
.team-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
}

/* Conference Badge */
.conference-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: middle;  /* Aligns with text baseline */
  line-height: 1.2;        /* Prevents internal height expansion */
}

.conference-badge.p5 {
  background-color: #3182ce;
  color: white;
}

.conference-badge.g5 {
  background-color: #38a169;
  color: white;
}

.conference-badge.fcs {
  background-color: #718096;
  color: white;
}

/* Record Badge */
.record {
  font-weight: 500;
  color: var(--text-secondary);
}

.record.undefeated {
  color: var(--success-color);
  font-weight: 600;
}

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

.stat-card {
  background-color: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-subtext {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  background-color: var(--bg-secondary);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.schedule-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.schedule-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.game-result {
  font-weight: 600;
}

.game-result.win {
  color: var(--success-color);
}

.game-result.loss {
  color: var(--danger-color);
}

/* Scheduled Games */
.game-scheduled {
  opacity: 0.75;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.game-scheduled td {
  color: var(--text-secondary);
  font-style: italic;
}

.game-scheduled a {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
}

.game-scheduled:hover {
  background-color: rgba(0, 0, 0, 0.02);
  border-left-color: var(--border-color);
  opacity: 0.85;
}

.game-scheduled:hover a {
  color: var(--primary-color) !important;
}

/* Loading Spinner */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.spinner {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Message */
.error {
  background-color: #fff5f5;
  border-left: 4px solid var(--danger-color);
  color: #742a2a;
  padding: 1rem;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Filters */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .rankings-table {
    font-size: 0.875rem;
    min-width: 650px;  /* Prevent column crush, allows horizontal scroll */
    margin-bottom: 0;  /* Remove bottom margin inside scroll container */
  }

  .rankings-table th,
  .rankings-table td {
    padding: 0.5rem;
  }

  /* Extra padding on first/last cells for touch scrolling */
  .rankings-table th:first-child,
  .rankings-table td:first-child {
    padding-left: 0.75rem;
  }

  .rankings-table th:last-child,
  .rankings-table td:last-child {
    padding-right: 0.75rem;
  }

  /* Hide SOS Rank column (7th column) - least critical (EPIC-005 Story 003) */
  .rankings-table th:nth-child(7),
  .rankings-table td:nth-child(7) {
    display: none;
  }

  .schedule-table {
    font-size: 0.875rem;
    min-width: 650px;
    margin-bottom: 0;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.5rem 0.25rem;
  }

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

  /* Table container scroll indicators */
  .table-container {
    /* Scroll hint using gradient fade */
    background:
      linear-gradient(90deg, var(--bg-primary) 0%, transparent 2%),
      linear-gradient(90deg, transparent 98%, var(--bg-primary) 100%),
      linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 2%),
      linear-gradient(270deg, rgba(0,0,0,0.1) 0%, transparent 2%);
    background-repeat: no-repeat;
    background-size: 30px 100%, 30px 100%, 10px 100%, 10px 100%;
    background-position: left center, right center, left center, right center;
    background-attachment: local, local, scroll, scroll;
  }

  /* Style scrollbar for better UX (Chrome/Safari) */
  .table-container::-webkit-scrollbar {
    height: 8px;
  }

  .table-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
  }

  .table-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
  }

  .table-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
  }
}

/* Small mobile phones - Hide additional low-priority columns (EPIC-005 Story 003) */
@media (max-width: 480px) {
  /* Hide SOS column (6th column) in addition to SOS Rank */
  .rankings-table th:nth-child(6),
  .rankings-table td:nth-child(6),
  .rankings-table th:nth-child(7),
  .rankings-table td:nth-child(7) {
    display: none;
  }

  /* Reduce table minimum width since fewer columns */
  .table-container .rankings-table {
    min-width: 500px;
  }

  /* Adjust remaining column widths for better balance */
  .rankings-table th:nth-child(1),
  .rankings-table td:nth-child(1) {
    width: 60px;
  }

  .rankings-table th:nth-child(2),
  .rankings-table td:nth-child(2) {
    min-width: 150px;
  }

  .rankings-table th:nth-child(4),
  .rankings-table td:nth-child(4) {
    width: 70px;
  }

  /* Info box responsive adjustments */
  .info-box {
    font-size: 0.875rem;
    padding: 0.75rem;
  }

  /* Filter dropdown full width on small screens */
  .filters {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }
}

/* Very small mobile phones - Hide Conference, keep core data only (EPIC-005 Story 003) */
@media (max-width: 375px) {
  /* Hide Conference column (3rd column) in addition to SOS/SOS Rank */
  .rankings-table th:nth-child(3),
  .rankings-table td:nth-child(3),
  .rankings-table th:nth-child(6),
  .rankings-table td:nth-child(6),
  .rankings-table th:nth-child(7),
  .rankings-table td:nth-child(7) {
    display: none;
  }

  /* Further reduce minimum width */
  .table-container .rankings-table {
    min-width: 380px;
  }

  /* Optimize visible column widths */
  .rankings-table {
    font-size: 0.875rem;
  }

  /* Further optimize info-box for tiny screens */
  .info-box {
    font-size: 0.8125rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Table Container for horizontal scroll on mobile (EPIC-005 Story 002) */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;  /* Smooth momentum scrolling on iOS */
  margin: 0 -1.5rem;  /* Extend to card edges for full-width scroll */
  padding: 0 1.5rem;  /* Restore padding inside container */
}

/* No scroll on desktop */
@media (min-width: 769px) {
  .table-container {
    overflow-x: visible;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden {
  display: none !important;
}

.sos-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;  /* Aligns with text baseline */
}

.sos-indicator.elite { background-color: #742a2a; }
.sos-indicator.hard { background-color: #c05621; }
.sos-indicator.average { background-color: #d69e2e; }
.sos-indicator.easy { background-color: #38a169; }

/* FCS Game Styling (Story 009) */
.game-fcs {
  background-color: rgba(0, 0, 0, 0.02);
  opacity: 0.75;
}

.game-fcs:hover {
  background-color: rgba(0, 0, 0, 0.04);
  opacity: 0.85;
}

/* FCS Badge */
.fcs-badge {
  display: inline-block;
  padding: 2px 6px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
  margin-left: 8px;
  cursor: help;
}

.fcs-badge:hover {
  background-color: var(--accent-color);
  color: white;
}

/* EPIC-022: Conference Championship Badge */
.conf-champ-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;

  /* Gold/yellow color to indicate championship significance */
  background-color: #FFD700;  /* Gold */
  color: #1a1a1a;  /* Dark text for contrast */

  /* Subtle border for definition */
  border: 1px solid #DAA520;  /* Darker gold */

  /* Spacing */
  margin-left: 0.5rem;
  vertical-align: middle;

  /* Visual emphasis */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover effect for tooltip visibility */
.conf-champ-badge:hover {
  background-color: #FFED4E;  /* Lighter gold on hover */
  cursor: help;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .conf-champ-badge {
    background-color: #DAA520;  /* Darker gold for dark mode */
    color: #1a1a1a;  /* Keep dark text */
    border-color: #B8860B;  /* Even darker border */
  }

  .conf-champ-badge:hover {
    background-color: #F0C020;  /* Brighter on hover */
  }
}

/* EPIC-023: Bowl Game Badge */
.bowl-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;

  /* Blue color to indicate bowl game */
  background-color: #4A90E2;  /* Medium blue */
  color: white;

  /* Subtle border for definition */
  border: 1px solid #357ABD;  /* Darker blue */

  /* Spacing */
  margin-left: 0.5rem;
  vertical-align: middle;

  /* Visual emphasis */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover effect for tooltip visibility */
.bowl-badge:hover {
  background-color: #5BA3F5;  /* Lighter blue on hover */
  cursor: help;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .bowl-badge {
    background-color: #357ABD;  /* Darker blue for dark mode */
    color: white;
    border-color: #2A5F8F;  /* Even darker border */
  }

  .bowl-badge:hover {
    background-color: #4A90E2;  /* Brighter on hover */
  }
}

/* EPIC-023: Playoff Game Badge */
.playoff-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;

  /* Red/crimson color to indicate CFP playoff significance */
  background-color: #DC143C;  /* Crimson */
  color: white;

  /* Subtle border for definition */
  border: 1px solid #B21030;  /* Darker crimson */

  /* Spacing */
  margin-left: 0.5rem;
  vertical-align: middle;

  /* Visual emphasis */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover effect for tooltip visibility */
.playoff-badge:hover {
  background-color: #FF1744;  /* Brighter red on hover */
  cursor: help;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .playoff-badge {
    background-color: #B21030;  /* Darker crimson for dark mode */
    color: white;
    border-color: #8B0A24;  /* Even darker border */
  }

  .playoff-badge:hover {
    background-color: #DC143C;  /* Brighter on hover */
  }
}

/* Team Record Note */
.record-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 4px;
  font-weight: normal;
  cursor: help;
}

/* Info Box */
.info-box {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-color);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 1.2rem;
}

.info-text {
  line-height: 1.4;
}

/* ============================================================================
   PREDICTIONS SECTION
   ============================================================================ */

/* Filter Buttons */
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: var(--bg-secondary);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.refresh-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--success-color);
  background: white;
  color: var(--success-color);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}

.refresh-btn:hover {
  background: var(--success-color);
  color: white;
}

/* Predictions Grid */
.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

/* Prediction Card */
.prediction-card {
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.prediction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Prediction Header */
.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.prediction-badge {
  background: #ffc107;
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.game-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Matchup */
.matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: white;
  transition: all 0.2s;
}

.team.predicted-winner {
  background: #e7f3ff;
  border: 2px solid var(--primary-color);
  font-weight: bold;
}

.team-name {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.team .score {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--text-primary);
}

.team.predicted-winner .score {
  color: var(--primary-color);
}

.matchup-separator {
  padding: 0 1rem;
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: bold;
}

/* Prediction Details */
.prediction-details {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.win-probability {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.prob-label {
  font-weight: 600;
}

.prob-values {
  color: var(--text-primary);
}

.confidence-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.confidence-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.confidence-value {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.75rem;
}

.confidence-high .confidence-value {
  background: #d4edda;
  color: #155724;
}

.confidence-medium .confidence-value {
  background: #fff3cd;
  color: #856404;
}

.confidence-low .confidence-value {
  background: #f8d7da;
  color: #721c24;
}

/* Neutral Site Badge */
.neutral-site-badge {
  margin-top: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--text-secondary);
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .predictions-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    margin-top: 1rem;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-btn, .filter-select, .refresh-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* ========================================
   EPIC-009: Prediction Accuracy Styles
   ======================================== */

/* Prediction cell in schedule table */
.prediction-cell {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}

.prediction-correct {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.prediction-incorrect {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Prediction accuracy stat card */
#prediction-accuracy-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-left: 3px solid var(--primary-color);
}

/* Overall accuracy banner on rankings page */
.accuracy-banner {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.accuracy-banner h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.accuracy-banner .accuracy-value {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.accuracy-banner .accuracy-subtext {
  font-size: 1rem;
  opacity: 0.9;
}

/* EPIC-024: Historical Season Indicator */
.historical-banner {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.historical-icon {
  font-size: 1.5rem;
}

.historical-text {
  font-size: 1rem;
  line-height: 1.5;
}

.historical-text strong {
  font-weight: 700;
}

.historical-return-btn {
  background: white;
  color: #d97706;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.historical-return-btn:hover {
  background: #fffbeb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
