/* MVP styles — intentionally basic */

* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }

.hidden { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.brand { font-weight: 700; }
.status { margin-right: 12px; font-size: 14px; color: #333; }

.container { padding: 16px; max-width: 900px; margin: 0 auto; }

.actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  padding: 10px 12px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.linklike {
  background: none;
  border: none;
  padding: 0;
  color: #0b57d0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.muted { color: #555; font-size: 14px; }
.error { color: #b00020; font-size: 14px; margin-top: 10px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modal-content {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 64px auto;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
}
.card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.list {
  margin: 0;
  padding-left: 18px;
}
.league-link {
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.league-link:hover {
  color: #000;
  text-decoration: underline;
  background-color: #f3f3f3;
}

.league-link:active {
  background-color: #e6e6e6;
}

.league-link:focus-visible {
  outline: 2px solid #999;
}
.league-link {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.modal.hidden {
  display: none;
}

.modal .wide {
  width: 90%;
  max-width: 1200px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  background: #eee;
}

.tabs button.active {
  background: #333;
  color: white;
}

.predictions-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.fixture {
  display: grid;
  grid-template-columns: 1fr 40px 40px 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.fixture input {
  width: 38px;
  text-align: center;
}

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

th, td {
  border: 1px solid #ddd;
  padding: 4px;
  text-align: center;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.avatar:hover {
  background: #333;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Profile sections */
.profile-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.profile-section:first-of-type {
  margin-top: 10px;
  border-top: none;
}

.profile-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.profile-item {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.profile-item label {
  flex: 1;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.player-item:last-child {
  border-bottom: none;
}

.player-name {
  font-weight: 500;
}

.player-actions {
  display: flex;
  gap: 6px;
}

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
}
/* MVP styles — intentionally basic */

* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }

.hidden { display: none !important; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.brand { font-weight: 700; }
.status { margin-right: 12px; font-size: 14px; color: #333; }

.container { padding: 16px; max-width: 900px; margin: 0 auto; }

.actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  padding: 10px 12px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  border-radius: 6px;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.linklike {
  background: none;
  border: none;
  padding: 0;
  color: #0b57d0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.muted { color: #555; font-size: 14px; }
.error { color: #b00020; font-size: 14px; margin-top: 10px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modal-content {
  position: relative;
  width: min(520px, calc(100% - 24px));
  margin: 64px auto;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #bbb;
}
.card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.list {
  margin: 0;
  padding-left: 18px;
}
.league-link {
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.league-link:hover {
  color: #000;
  text-decoration: underline;
  background-color: #f3f3f3;
}

.league-link:active {
  background-color: #e6e6e6;
}

.league-link:focus-visible {
  outline: 2px solid #999;
}
.league-link {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.modal.hidden {
  display: none;
}

.modal .wide {
  width: 90%;
  max-width: 1200px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  background: #eee;
}

.tabs button.active {
  background: #333;
  color: white;
}

.predictions-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.fixture {
  display: grid;
  grid-template-columns: 1fr 40px 40px 1fr;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.fixture input {
  width: 38px;
  text-align: center;
}

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

th, td {
  border: 1px solid #ddd;
  padding: 4px;
  text-align: center;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.avatar:hover {
  background: #333;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Profile sections */
.profile-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.profile-section:first-of-type {
  margin-top: 10px;
  border-top: none;
}

.profile-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.profile-item {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.profile-item label {
  flex: 1;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.player-item:last-child {
  border-bottom: none;
}

.player-name {
  font-weight: 500;
}

.player-actions {
  display: flex;
  gap: 6px;
}

.btn-small {
  padding: 4px 8px;
  font-size: 12px;
}

/* Predictor selection */
.predictor-selection {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}

.predictor-selection label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.predictor-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.predictor-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.predictor-checkbox-item:hover {
  background: #f0f0f0;
}

.predictor-checkbox-item input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.predictor-checkbox-label {
  cursor: pointer;
  flex: 1;
  user-select: none;
}

.predictor-role-badge {
  font-size: 11px;
  padding: 2px 6px;
  background: #111;
  color: white;
  border-radius: 3px;
}

/* ===== PREDICTIONS SYSTEM ===== */

/* Lock Timer */
.lock-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  border: 1px solid #ddd;
}

.lock-timer-icon { font-size: 18px; }

.lock-timer.safe {
  color: #2e7d32;
  background: #e8f5e9;
  border-color: #c8e6c9;
}

.lock-timer.warning {
  color: #e65100;
  background: #fff3e0;
  border-color: #ffe0b2;
}

.lock-timer.urgent {
  color: #c62828;
  background: #ffebee;
  border-color: #ffcdd2;
}

.lock-timer.critical {
  color: #c62828;
  background: #ffebee;
  border-color: #ef9a9a;
  animation: pulse 1s infinite;
}

.lock-timer.locked {
  color: #616161;
  background: #f5f5f5;
  border-color: #e0e0e0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Predictions Main Tabs */
.predictions-main-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
}

.predictions-main-tabs button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.predictions-main-tabs button:hover {
  color: #333;
}

.predictions-main-tabs button.active {
  color: #111;
  border-bottom-color: #111;
}

/* Group Sub-tabs */
.group-sub-tabs {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.group-sub-tabs button {
  padding: 5px 10px;
  font-size: 13px;
}

/* Predictions Content */
.predictions-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* Modal header for predictions */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
}

/* Group matches area */
.group-header {
  margin: 0 0 10px;
  font-size: 16px;
}

/* Match Row */
.match-row {
  display: grid;
  grid-template-columns: 55px 50px 44px 16px 44px 50px 80px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.match-row:last-child {
  border-bottom: none;
}

.match-row.locked {
  opacity: 0.7;
  background: #fafafa;
  border-radius: 4px;
  padding: 6px 4px;
}

.match-date {
  color: #888;
  font-size: 12px;
}

.match-home {
  text-align: right;
  font-weight: 500;
}

.match-away {
  font-weight: 500;
}

.match-separator {
  text-align: center;
  color: #999;
}

.score-input {
  width: 42px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  -moz-appearance: textfield;
}

.score-input::-webkit-inner-spin-button,
.score-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.score-input:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

.score-display {
  width: 42px;
  padding: 6px 4px;
  text-align: center;
  font-weight: 600;
  background: #f5f5f5;
  border-radius: 4px;
}

/* Save Indicator */
.save-indicator {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
}

.save-indicator.saving {
  color: #fb8c00;
}

.save-indicator.saved {
  color: #4caf50;
}

.save-indicator.error {
  color: #c62828;
}

.lock-icon {
  font-size: 14px;
  text-align: center;
}

/* Knockout Predictions */
.knockout-stage-section {
  margin-bottom: 20px;
}

.knockout-stage-header {
  margin: 0 0 8px;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}

.knockout-row {
  display: grid;
  grid-template-columns: 35px 55px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}

.knockout-row.locked {
  opacity: 0.7;
}

.knockout-label {
  color: #999;
  font-size: 11px;
}

.knockout-date {
  color: #888;
  font-size: 12px;
}

.knockout-matchup {
  font-size: 13px;
}

.winner-select {
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
  cursor: pointer;
}

.winner-select:focus {
  outline: none;
  border-color: #111;
}

.knockout-winner-display {
  font-weight: 500;
  font-size: 13px;
}

/* Top Scorer Section */
.top-scorer-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.top-scorer-section h3 {
  margin: 0 0 8px;
}

.top-scorer-section select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* All Predictions Comparison */
.all-preds-match-card {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.all-preds-match-header {
  background: #f5f5f5;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.all-preds-table {
  width: 100%;
}

.all-preds-table th {
  background: #fafafa;
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  padding: 6px 12px;
}

.all-preds-table td {
  padding: 6px 12px;
  font-size: 13px;
}

.all-preds-name {
  font-weight: 500;
}

.all-preds-stage-header {
  margin: 16px 0 8px;
  font-size: 15px;
}

/* Group Standings Table */
.group-standings-wrapper {
  margin-bottom: 16px;
}

.standings-title {
  margin: 0 0 6px;
  font-size: 15px;
}

.standings-hint {
  font-size: 12px;
  margin: 0 0 6px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 6px;
}

.standings-table th {
  background: #f5f5f5;
  padding: 5px 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid #ddd;
  text-align: center;
}

.standings-table th.col-team {
  text-align: left;
}

.standings-table td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.standings-table td.col-team {
  text-align: left;
  font-weight: 600;
}

.standings-table td.col-pts {
  font-weight: 700;
}

.standings-table tr.qualify-auto {
  background: #e8f5e9;
}

.standings-table tr.qualify-third {
  background: #fff8e1;
}

.standings-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #888;
  margin-bottom: 12px;
}

.legend-auto, .legend-third {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}

.legend-auto { background: #c8e6c9; }
.legend-third { background: #fff3e0; }

.group-matches-header {
  margin: 0 0 8px;
  font-size: 14px;
  color: #666;
}

/* ===== PHASE 2B: LAUNCH FEATURES ===== */

/* Team selection */
.team-display {
  font-size: 16px;
  font-weight: 600;
  padding: 6px 0;
}

.team-select-group {
  margin-top: 8px;
}

.warning-text {
  font-size: 12px;
  color: #e65100;
  margin: 4px 0 8px;
}

/* Donation link */
.donate-link {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}

.donate-link:hover {
  background: #f5f5f5;
  color: #333;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid #1565c0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 14px 20px;
}

.cookie-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cookie-content p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #f5f5f5;
  padding: 24px 20px;
  margin-top: 48px;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.footer-links {
  margin-top: 8px;
  font-size: 13px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Legal modals */
.legal-modal {
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.legal-content {
  padding: 20px;
}

.legal-content h1 {
  font-size: 22px;
  margin: 0 0 8px;
}

.legal-content h2 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: #333;
}

.legal-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 6px 0;
}

/* T&Cs checkbox at signup */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin: 12px 0;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

/* ===== PHASE 2A: UX IMPROVEMENTS ===== */

/* Task 1: Predictions modal header */
.predictions-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e0e0e0;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.predictions-title {
  margin: 0;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.header-join-code {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.code-label { color: #888; }

.join-code-value {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 15px;
  font-weight: 600;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

/* Task 3: Predictor switcher in modal */
.predictor-switch {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: white;
  max-width: 140px;
}

/* Stage sub-tabs (Group/Knockout within My Predictions) */
.stage-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 12px;
}

.stage-tabs button {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  transition: all 0.15s;
}

.stage-tabs button.active {
  color: #111;
  border-bottom-color: #111;
}

.stage-tabs button:hover:not(.active) {
  color: #555;
}

/* Task 2: Comparison table */
.comparison-table-wrapper {
  overflow-x: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
}

.comparison-table th,
.comparison-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #f0f0f0;
  white-space: nowrap;
  min-width: 80px;
}

.comparison-table th {
  background: #f8f8f8;
  font-size: 12px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Sticky match column */
.sticky-col.match-col {
  position: sticky;
  left: 0;
  background: white;
  z-index: 3;
  text-align: left;
  min-width: 110px;
  max-width: 140px;
  box-shadow: 2px 0 4px rgba(0,0,0,0.06);
}

th.sticky-col.match-col {
  background: #f8f8f8;
  z-index: 4;
}

/* Pinned current user column */
.pinned-col {
  position: sticky;
  left: 110px;
  background: #f0f7ff;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0,0,0,0.06);
  border-left: 2px solid #90caf9;
}

th.pinned-col {
  background: #e3f2fd;
  z-index: 3;
}

.match-name {
  font-weight: 600;
  font-size: 13px;
}

.match-date-small {
  font-size: 11px;
  color: #999;
}

.actual-result-inline {
  font-size: 11px;
  color: #1565c0;
  font-weight: 600;
}

.comp-prediction {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.comp-points {
  font-size: 11px;
  font-weight: 600;
}

.comp-points.pts-perfect { color: #2e7d32; }
.comp-points.pts-good { color: #558b2f; }
.comp-points.pts-ok { color: #f57f17; }
.comp-points.pts-low { color: #e65100; }
.comp-points.pts-zero { color: #c62828; }

.comp-no-pred {
  color: #ccc;
  font-size: 14px;
}

/* Task 6: Accordion */
.accordion-card {
  padding-bottom: 0 !important;
}

.accordion-card h2 {
  margin-bottom: 12px;
}

.accordion {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 14px 18px;
  background: white;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.accordion-header:hover {
  background: #f9f9f9;
}

.accordion-icon {
  transition: transform 0.25s;
  font-size: 12px;
  color: #999;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 18px;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
  padding: 0 18px 16px;
}

.accordion-content p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* ===== SCORING & LEADERBOARD ===== */

/* Score Summary Banner */
.score-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid #e0e0e0;
}

.score-total {
  display: flex;
  align-items: baseline;
}

.score-total-number {
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.score-total-label {
  font-size: 14px;
  color: #666;
  margin-left: 2px;
}

.score-breakdown-summary {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}

/* Match Score Badge */
.match-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: help;
  white-space: nowrap;
}

.badge-pts {
  font-weight: 700;
}

.badge-detail {
  font-size: 10px;
}

.badge-detail.none {
  color: #c62828;
}

.match-score-badge.pts-20 {
  background: #c8e6c9;
  color: #2e7d32;
}

.match-score-badge.pts-15 {
  background: #dcedc8;
  color: #558b2f;
}

.match-score-badge.pts-10 {
  background: #fff9c4;
  color: #f57f17;
}

.match-score-badge.pts-5 {
  background: #fff3e0;
  color: #e65100;
}

.match-score-badge.pts-0 {
  background: #ffebee;
  color: #c62828;
}

.match-score-badge.pts-correct {
  background: #c8e6c9;
  color: #2e7d32;
}

/* Actual Result Label */
.actual-result-label {
  font-size: 11px;
  color: #888;
  padding: 2px 0 2px 55px;
}

/* Results Entry */
.result-entry-row {
  display: grid;
  grid-template-columns: 55px 50px 44px 16px 44px 50px 44px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.result-entry-row:last-child {
  border-bottom: none;
}

.knockout-result-row {
  grid-template-columns: 35px 1fr auto 44px;
}

.result-save-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}

.result-save-btn:hover {
  background: #f5f5f5;
}

.result-save-btn.saved {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}

.result-save-btn.error {
  background: #ffebee;
  color: #c62828;
  border-color: #ffcdd2;
}

.result-input {
  border-color: #1565c0 !important;
}

.results-summary {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
}

/* Leaderboard Table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leaderboard-table th {
  background: #f5f5f5;
  padding: 8px 10px;
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  border-bottom: 2px solid #ddd;
  text-align: center;
}

.leaderboard-table th:nth-child(2) {
  text-align: left;
}

.leaderboard-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.lb-rank {
  font-size: 18px;
  width: 40px;
}

.lb-name {
  text-align: left !important;
  font-weight: 600;
}

.lb-total {
  font-weight: 700;
  font-size: 16px;
}

.lb-group, .lb-ko {
  color: #666;
  font-size: 13px;
}

.leaderboard-table tbody tr:hover {
  background: #f8f9fa;
}

.leaderboard-table tbody tr.expanded {
  background: #e8f0fe;
}

/* Breakdown row */
.lb-breakdown-row {
  background: #f8f9fa;
}

.lb-breakdown-cell {
  padding: 10px 14px !important;
  text-align: left !important;
  font-size: 12px;
  color: #555;
}

.lb-breakdown-section {
  margin-bottom: 6px;
}

.lb-breakdown-section strong {
  display: block;
  margin-bottom: 2px;
  color: #333;
}

.lb-group-summary, .lb-ko-summary {
  font-size: 11px;
  color: #777;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .match-row {
    grid-template-columns: 40px 40px 38px 12px 38px 40px 60px;
    gap: 3px;
    font-size: 12px;
  }

  .score-input {
    width: 36px;
    padding: 5px 2px;
    font-size: 13px;
  }

  .score-display {
    width: 36px;
    font-size: 13px;
  }

  .match-date { font-size: 10px; }

  .save-indicator { font-size: 10px; }

  .knockout-row {
    grid-template-columns: 30px 45px 1fr auto;
    font-size: 12px;
  }

  .knockout-row .save-indicator {
    display: none;
  }

  .predictions-content {
    max-height: 55vh;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .donate-link { font-size: 11px; padding: 4px 6px; }

  .legal-modal { max-height: 90vh; margin: 10px; }

  .predictions-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  .header-left {
    flex-wrap: wrap;
    width: 100%;
  }

  .predictions-title { font-size: 16px; }

  .predictor-switch { max-width: 120px; font-size: 12px; }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .header-join-code { font-size: 12px; }
  .join-code-value { font-size: 13px; }

  .sticky-col.match-col { min-width: 85px; max-width: 100px; padding: 6px 8px; }
  .pinned-col { left: 85px; }
  .comparison-table th, .comparison-table td { padding: 6px 8px; min-width: 65px; }
  .comp-prediction { font-size: 14px; }

  .stage-tabs button { font-size: 13px; padding: 8px 10px; }

  .modal-content.wide {
    width: 95%;
    max-width: none;
    margin: 20px auto;
    padding: 12px;
  }

  .result-entry-row {
    grid-template-columns: 40px 40px 38px 12px 38px 40px 36px;
    gap: 3px;
    font-size: 12px;
  }

  .knockout-result-row {
    grid-template-columns: 30px 1fr auto 36px;
  }

  .score-summary {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .leaderboard-table { font-size: 13px; }
  .leaderboard-table th { padding: 6px 6px; font-size: 11px; }
  .leaderboard-table td { padding: 8px 6px; }
  .lb-rank { font-size: 16px; width: 30px; }
  .lb-total { font-size: 14px; }

  .predictions-main-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .predictions-main-tabs button {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 10px;
  }
}