/* Blue Chip College Football — JS port */
:root {
  --bg-page: #4a6f94;
  --bg-page-deep: #2d4a66;
  --bg-header: #00008b;
  --bg-card: #468c00;
  --bg-card-senior: #5d002f;
  --bg-sidebar: #dce8f4;
  --bg-content: #ffffff;
  --accent: #1a5fbf;
  --accent-bright: #2f7ae5;
  --text: #1a2a3a;
  --text-muted: #5a6d7d;
  --border: #b8c9d9;
  --shadow: 0 4px 24px rgba(15, 35, 60, 0.18);
  --radius: 12px;
  --font-main: 'Segoe UI', system-ui, -apple-system, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, #6f98be 0%, transparent 55%),
    linear-gradient(165deg, var(--bg-page) 0%, var(--bg-page-deep) 100%);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

/* --- Banner logo --- */
.banner {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.bc-logo-link {
  display: block;
  width: 100%;
  max-width: 920px;
  line-height: 0;
}

.bc-logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto;
}

.sister-games {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--bg-header);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.sister-games a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.sister-games a:last-child {
  border-right: 0;
}

.sister-games a:hover,
.sister-games a:focus-visible {
  background: var(--accent-bright);
}

/* --- Layout --- */
.main-layout {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
}

.sidebar {
  width: 210px;
  min-width: 210px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 400px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.sidebar-right .bc-panel {
  margin-bottom: 0;
}

.content-col {
  flex: 0 0 540px;
  width: 540px;
  min-width: 0;
  max-width: 540px;
}

.content {
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  min-height: 480px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-inner {
  padding: 20px 22px 24px;
}

.bc-panel {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  width: 190px;
}

.bc-panel:last-child {
  margin-bottom: 0;
}

.bc-panel h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--bg-header);
  border-bottom: 2px solid var(--bg-card);
  padding-bottom: 4px;
}

.bc-coach-name {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.25;
}

.bc-coach-record {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bg-header);
  line-height: 1.2;
}

.bc-coach-season-log {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 4px;
}

.bc-coach-season-log li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 1px 0;
}

.bc-coach-season-year {
  flex: 0 0 auto;
  color: var(--text-muted);
}

.bc-coach-season-school {
  margin-left: 4px;
  font-size: inherit;
  font-weight: 600;
  color: var(--bg-header);
}

.bc-coach-season-rec {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--bg-header);
}

.bc-coach-season-rank {
  margin-left: 5px;
  font-weight: 700;
}

.bc-coach-season-rank-up {
  color: #2f8f3a;
}

.bc-coach-season-rank-down {
  color: #c41e1e;
}

.bc-coach-hot-seat {
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 1px solid #c41e1e;
  border-radius: 4px;
  background: #fff0f0;
  color: #8f1515;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.bc-coach-hot-seat-warn {
  border-color: #c9a227;
  background: #fff8e8;
  color: #7a5b10;
}

.bc-season-register .bc-coach-hot-seat {
  margin: 0 0 10px;
  font-size: 12px;
}

.bc-fired-banner {
  margin: 8px auto 12px;
  max-width: 520px;
  padding: 9px 12px;
  border: 1px solid #c41e1e;
  border-radius: 6px;
  background: #fff0f0;
  color: #8f1515;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.bc-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bc-panel td {
  padding: 3px 2px;
  border-bottom: 1px solid #eef2f6;
  line-height: 1.2;
}

.bc-career-leaders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bc-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bc-standings-table th,
.bc-standings-table td {
  padding: 3px 2px;
  border-bottom: 1px solid #eef2f6;
  line-height: 1.25;
  vertical-align: top;
}

.bc-standings-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
}

.bc-standings-table th.bc-standings-num,
.bc-standings-table td.bc-standings-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 2.6em;
}

.bc-standings-table td.bc-standings-team {
  padding-right: 4px;
  word-break: break-word;
}

.bc-standings-table tr.bc-standings-mine td {
  background: #eef2ff;
  font-weight: 700;
  color: var(--bg-header);
}

.bc-career-leaders-table td {
  padding: 1px 2px;
  border-bottom: none;
  vertical-align: top;
}

.bc-leader-cat-row td {
  padding-top: 5px;
}

.bc-leader-cat-row:first-child td {
  padding-top: 0;
}

.bc-leader-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-header);
}

.bc-leader-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.bc-muted {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* --- Message area (welcome / pick school) --- */
.bc-message-area {
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(90deg, #0a0a9e, #1a3a8f);
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-bottom: 3px solid #ffd700;
}

.bc-message-area a {
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
}

.bc-message-area a:hover {
  color: #fff;
}

/* --- Welcome --- */
.bc-welcome {
  text-align: center;
}

.bc-welcome-hero {
  margin-bottom: 20px;
}

.bc-welcome-hero h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--bg-header);
}

.bc-welcome-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.bc-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px 14px;
  background: #f0f6fc;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.bc-promo-link:hover {
  background: #e3eef9;
  border-color: var(--accent-bright);
}

.bc-resume-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.bc-section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Conference card grid */
.bc-conf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.bc-conf-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.bc-conf-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bc-conf-option span {
  display: block;
  padding: 10px 12px;
  background: #f7fafc;
  border: 2px solid #e2eaf2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.bc-conf-option:hover span {
  border-color: var(--accent-bright);
  background: #eef5fc;
}

.bc-conf-option input:checked + span {
  border-color: var(--bg-header);
  background: #e8eeff;
  box-shadow: 0 0 0 1px var(--bg-header);
  color: var(--bg-header);
}

.bc-intro {
  margin-top: 24px;
  padding: 16px 18px;
  background: #f4f8fb;
  border-radius: 8px;
  border-left: 4px solid var(--bg-card);
  text-align: left;
  font-size: 14px;
  color: var(--text);
}

.bc-intro strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bg-header);
}

.bc-intro p:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */
.bc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 0;
}

.bc-btn {
  display: inline-block;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #52a028 0%, var(--bg-card) 55%, #357a18 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #2d5a12, 0 4px 12px rgba(70, 140, 0, 0.35);
  transition: transform 0.1s, box-shadow 0.15s, filter 0.15s;
}

.bc-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.bc-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #2d5a12;
}

.bc-btn-secondary {
  background: linear-gradient(180deg, #6a8caf 0%, #4a6f94 55%, #3a5878 100%);
  box-shadow: 0 2px 0 #2d4a66, 0 4px 12px rgba(45, 74, 102, 0.35);
}

.bc-btn-full {
  width: 100%;
}

.bc-sidebar-menu {
  margin-bottom: 10px;
}

/* --- Screen header bar --- */
.bc-header {
  background: linear-gradient(180deg, #1010b0 0%, var(--bg-header) 100%);
  color: #fff;
  margin: 0;
  padding: 10px 16px;
}

.bc-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
}

.bc-header-right {
  font-size: 15px;
  opacity: 0.95;
}

.bc-header-grades {
  margin-left: 0.35em;
  font-weight: 700;
  opacity: 0.95;
}

.bc-screen-body {
  padding: 12px 16px 14px;
}

.bc-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-header);
  margin: 0 0 14px;
}

.bc-program-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-header);
  text-align: left;
}

/* --- Program picker (conference / school columns) --- */
.program-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.picker-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f4f8fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.picker-pane h3 {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--bg-header);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.picker-list {
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.picker-item {
  padding: 4px 8px;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.25;
  touch-action: manipulation;
}

.picker-item:hover {
  background: #e8f0fa;
}

.picker-item:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: -2px;
}

.picker-item.selected {
  background: var(--bg-header);
  color: #fff;
  font-weight: 600;
}

.picker-item.selected:hover {
  background: #1010a0;
}

.picker-empty {
  padding: 4px 8px;
  cursor: default;
  font-size: 0.78rem;
  line-height: 1.25;
}

.bc-program-actions {
  margin-top: 4px;
}

.bc-btn-meet-squad {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 12px 20px;
  font-size: 15px;
}

.bc-btn-coach-rename-ad {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f0f6fc 100%);
  color: var(--bg-header);
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(15, 35, 60, 0.15);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.bc-btn-coach-rename-ad:hover:not(:disabled) {
  background: linear-gradient(180deg, #f7fbff 0%, #e3eef9 100%);
  border-color: var(--accent-bright);
}

.bc-btn-coach-rename-ad:disabled {
  opacity: 1;
  background: #ececec;
  border-color: #bbb;
  color: #666;
  cursor: not-allowed;
}

.bc-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bc-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 55, 0.65);
  cursor: pointer;
}

.bc-notice-panel {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 3px solid #c9a227;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  padding: 16px 18px;
}

.bc-notice-title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1a3a6b;
}

.bc-notice-body {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #333;
}

.bc-notice-ok {
  float: right;
}

.bc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.2);
}

.bc-btn:disabled:hover {
  transform: none;
  filter: grayscale(0.2);
}

/* --- Team picker (legacy) --- */
.bc-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.bc-team-col {
  min-width: 160px;
}

.bc-team-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
}

.bc-team-pick:hover {
  background: #f0f6fc;
}

.bc-team-pick input {
  accent-color: var(--bg-header);
}

.bc-field {
  margin: 16px 0;
}

.bc-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.bc-field input[type="text"] {
  width: 100%;
  max-width: 360px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
}

.bc-field input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(47, 122, 229, 0.2);
}

/* --- Transfer portal tables --- */
.bc-portal-coach {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.bc-portal-panel {
  margin-bottom: 20px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.bc-portal-panel-highlight {
  background: #eef4fc;
  border-color: #b8cfe8;
}

.bc-portal-heading {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--bg-header);
}

.bc-portal-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: #8b4513;
}

.bc-portal-instructions {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text);
}

.bc-portal-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.bc-portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bc-portal-table th,
.bc-portal-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #dde4ea;
  text-align: left;
}

.bc-portal-table th {
  background: var(--bg-header);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.bc-portal-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.6);
}

.bc-portal-pickable {
  cursor: pointer;
}

.bc-portal-pickable:hover {
  background: #e3eef9 !important;
}

.bc-portal-selected {
  background: #d4e8ff !important;
}

.bc-portal-check {
  width: 28px;
  text-align: center;
}

.bc-portal-name {
  font-weight: 600;
  white-space: nowrap;
}

.bc-portal-grade,
.bc-portal-skill {
  text-align: center;
  font-weight: 700;
}

.bc-portal-meta {
  margin: 4px 0;
  font-size: 13px;
}

.bc-portal-result {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #eef8ee;
  border-left: 4px solid var(--bg-card);
  border-radius: 4px;
  font-size: 14px;
}

/* --- Player cards (~original 100px CF layout) --- */
.bc-roster-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: center;
  margin: 0 auto 8px;
  max-width: 523px;
}

.bc-roster-def {
  max-width: 418px;
}

.bc-card-wrap {
  display: inline-block;
  padding: 0 3px 3px 0;
  background: #808080;
  vertical-align: top;
}

.bc-card {
  position: relative;
  bottom: 3px;
  right: 3px;
  width: 100px;
  background: #fff;
  border: 1px solid #000;
  overflow: hidden;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  line-height: 1.1;
  color: #000;
}

.bc-card-head {
  color: #fff;
  padding: 3px 3px;
  text-align: center;
  min-height: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bc-card-head strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}

.bc-card-active { background: #468c00; }
.bc-card-senior { background: #5d002f; }
.bc-card-super { background: #c9920a; color: #fff; }

.bc-card-head.bc-card-super,
.bc-card-class.bc-card-super,
.bc-card-posrow.bc-card-super {
  background: #c9920a;
  color: #fff;
}

.bc-card-super-wrap .bc-card {
  box-shadow: inset 3px 0 0 #ffc107;
}

.bc-super-pickable.bc-super-selected .bc-card-head,
.bc-super-pickable.bc-super-selected .bc-card-class,
.bc-super-pickable.bc-super-selected .bc-card-posrow {
  background: #c9920a;
  color: #fff;
}

.bc-super-pickable.bc-super-selected .bc-card-head.bc-card-senior,
.bc-super-pickable.bc-super-selected .bc-card-class.bc-card-senior,
.bc-super-pickable.bc-super-selected .bc-card-posrow.bc-card-senior {
  background: #c9920a;
}

.bc-super-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #e6c200;
  border-radius: 6px;
}

.bc-super-panel-main {
  flex: 1 1 200px;
  min-width: 0;
}

.bc-super-panel-ad {
  flex: 0 1 240px;
  min-width: 180px;
}

.bc-super-ad-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.bc-super-balance {
  margin: 0 0 6px;
  font-size: 14px;
}

.bc-super-hint,
.bc-super-earn-note {
  margin: 6px 0 0;
  font-size: 12px;
}

.bc-super-earn-note {
  color: #2d6a1f;
  font-weight: 600;
}

.bc-super-check {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 3px 2px;
  background: #fff8e6;
  border-bottom: 1px solid #e6c200;
  font-size: 8px;
  line-height: 1.1;
  cursor: pointer;
  box-sizing: border-box;
}

.bc-super-check input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.bc-super-check-label {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  min-width: 0;
}

.bc-super-pickable.bc-super-selected .bc-card {
  outline: 2px solid #ffc107;
  outline-offset: 1px;
}

.bc-portal-blocked {
  opacity: 0.55;
  pointer-events: none;
}

.bc-portal-blocked-note {
  margin: 4px 6px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #7a4f00;
  text-align: center;
}

.bc-btn-super-ad {
  margin-top: 0;
}

.bc-card-portal-signing .bc-card {
  box-shadow: inset 3px 0 0 rgba(212, 175, 55, 0.85);
}

.bc-card-walkon .bc-card {
  box-shadow: inset 3px 0 0 rgba(160, 170, 180, 0.9);
}

.bc-card-origin-tag,
.bc-card-portal-tag {
  font-weight: 600;
  font-size: 9px;
  opacity: 0.92;
  letter-spacing: 0;
}

.bc-card-walkon-tag {
  opacity: 0.88;
}

.bc-card-class {
  text-align: center;
  padding: 2px 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.bc-card-class strong {
  font-weight: 700;
}

.bc-card-posrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.bc-card-open .bc-card-open-body {
  min-height: 88px;
  background: #fff;
}

.bc-card-open-pos {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  color: #fff;
}

/* Cards carry a full and an abbreviated spelling of every label; one is hidden per viewport. */
.bc-lbl-abbr {
  display: none;
}

.bc-skill-table {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
  background: #fff;
}

.bc-skill-table td {
  padding: 1px 4px;
  border: none;
  vertical-align: top;
  line-height: 1.1;
}

.bc-skill-table td:first-child {
  text-align: left;
  font-weight: 400;
}

.bc-grade {
  text-align: right;
  font-weight: 400;
  font-size: 10px;
  white-space: nowrap;
}

.bc-card-extra {
  font-size: 10px;
  padding: 2px 4px;
  background: #fff;
  line-height: 1.1;
  border-top: 1px solid #e8e8e8;
}

.bc-card-extra table { width: 100%; }

.bc-card-extra td {
  padding: 1px 0;
}

.bc-recruit-check {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 3px;
  background: var(--bg-header);
  color: #fff;
}

.bc-recruit-check input {
  margin: 0;
  width: 13px;
  height: 13px;
}

/* --- Recruit / portal board (roster + aligned prospects) --- */
.bc-recruit-stack {
  margin: 0 auto;
}

.bc-recruit-board {
  margin: 0 auto;
}

.bc-recruit-board-roster {
  margin-bottom: 2px;
}

.bc-recruit-board-prospects {
  margin-bottom: 0;
}

.bc-recruit-board-roster .bc-recruit-columns,
.bc-recruit-board-prospects .bc-recruit-columns {
  margin-bottom: 2px;
}

.bc-recruit-columns {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  margin: 0 auto;
  max-width: 523px;
}

.bc-recruit-columns-def {
  max-width: 418px;
}

.bc-recruit-column {
  flex: 0 0 103px;
  width: 103px;
}

.bc-recruit-submit-row {
  text-align: center;
  margin: 6px 0 6px;
}

.bc-recruit-footer {
  text-align: center;
  margin: 10px 0 0;
}

.bc-recruit-hint {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 8px auto 10px;
  line-height: 1.4;
}

.bc-portal-stats {
  max-width: 420px;
  margin: 0 auto 8px;
  padding: 12px 16px 10px;
  background: #f4f7fb;
  border: 2px solid #00008b;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 40, 0.08);
}

.bc-portal-stats-primary {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #4a5568;
}

.bc-portal-stats-primary.bc-portal-stats-active {
  color: #00008b;
}

.bc-portal-stats-primary.bc-portal-stats-full {
  color: #b45309;
}

.bc-portal-stats-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.bc-portal-stat {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #2d3748;
}

.bc-portal-stat-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.bc-portal-stat-active {
  color: #1a5f2a;
}

.bc-btn-recruit-submit {
  background: linear-gradient(180deg, #f0f0f0 0%, #d4d4d4 55%, #c0c0c0 100%);
  color: #333;
  box-shadow: 0 2px 0 #999, 0 3px 8px rgba(0, 0, 0, 0.15);
}

.bc-btn-recruit-submit:hover {
  filter: brightness(1.03);
}

.bc-card-recruit .bc-card-head,
.bc-card-recruit-band {
  background: #00008b;
}

.bc-card-recruit-head {
  text-align: left;
  align-items: flex-start;
  padding: 3px 3px 2px;
  min-height: 34px;
}

.bc-card-recruit-head input[type="checkbox"] {
  display: block;
  margin: 0 0 2px 0;
  width: 12px;
  height: 12px;
}

.bc-card-recruit-head strong {
  font-size: 10px;
  line-height: 1.1;
}

.bc-recruit-prospect {
  cursor: pointer;
}

.bc-recruit-prospect.bc-portal-selected .bc-card {
  outline: 2px solid var(--accent-bright);
  outline-offset: 0;
}

.bc-card-stats {
  font-size: 10px;
  padding: 2px 4px;
  background: #fff;
  line-height: 1.1;
  border-top: 1px solid #e8e8e8;
}

.bc-card-stats table {
  width: 100%;
  border-collapse: collapse;
}

.bc-card-stats td {
  padding: 0;
}

/* --- LED scoreboard modal (game replay) --- */
.bc-scoreboard-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bc-scoreboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 60, 0.72);
}

.bc-scoreboard-panel {
  position: relative;
  width: min(440px, 100%);
  background: #1a1a1a;
  border-radius: 10px;
  border: 4px solid #333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #111;
  padding: 14px 16px 16px;
}

.bc-scoreboard-panel.bc-scoreboard-win {
  border-color: #468c00;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px #2d5a12;
}

.bc-scoreboard-panel.bc-scoreboard-loss {
  border-color: #8b2942;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px #5d002f;
}

.bc-scoreboard-panel.bc-scoreboard-spectator {
  border-color: #4a6a8a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px #2c4058;
}

.bc-scoreboard-panel.bc-scoreboard-spectator .bc-scoreboard-result {
  color: #c8d8ea;
}

.bc-scoreboard-led-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.bc-scoreboard-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #b8c9d9;
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.3;
  min-width: 0;
}

.bc-scoreboard-clock {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: #f4d03f;
  background: #0a0a0a;
  border: 2px solid #444;
  border-radius: 4px;
  padding: 4px 10px;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 8px rgba(244, 208, 63, 0.15);
  min-width: 4.5rem;
}

.bc-scoreboard-clock-q {
  font-size: 0.72rem;
  line-height: 1.1;
  opacity: 0.9;
}

.bc-scoreboard-clock-time {
  font-size: 1.05rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bc-scoreboard-row {
  margin-bottom: 12px;
}

.bc-scoreboard-row:last-of-type {
  margin-bottom: 8px;
}

.bc-scoreboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.bc-scoreboard-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #eee;
  font-family: Verdana, Geneva, sans-serif;
  min-width: 0;
  line-height: 1.25;
}

.bc-scoreboard-record {
  font-weight: 600;
  font-size: 0.78rem;
  color: #b8c4d0;
  white-space: nowrap;
}

.bc-scoreboard-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f4d03f;
  background: #0a0a0a;
  border: 2px solid #3a3a3a;
  border-radius: 4px;
  padding: 2px 10px;
  min-width: 2.2em;
  text-align: center;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 12px rgba(244, 208, 63, 0.12);
  line-height: 1.2;
}

.bc-scoreboard-bar-track {
  height: 10px;
  background: #2a2a2a;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #444;
}

.bc-scoreboard-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 5px;
  transition: width 0.2s linear;
}

.bc-scoreboard-bar-us {
  background: linear-gradient(90deg, #357a18, #468c00);
}

.bc-scoreboard-bar-opp {
  background: linear-gradient(90deg, #4a5560, #6b7a88);
}

.bc-scoreboard-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4e8ff;
  font-family: Verdana, Geneva, sans-serif;
  min-height: 1.3em;
}

.bc-scoreboard-result {
  margin: 10px 0 0;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  font-family: Verdana, Geneva, sans-serif;
}

.bc-scoreboard-panel.bc-scoreboard-win .bc-scoreboard-result {
  color: #7dce4a;
}

.bc-scoreboard-panel.bc-scoreboard-loss .bc-scoreboard-result {
  color: #e88;
}

.bc-scoreboard-actions {
  margin-top: 14px;
  text-align: center;
}

.bc-scoreboard-modal [hidden] {
  display: none !important;
}

.bc-prospects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.bc-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 12px;
}

.bc-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* --- Schedule / stats --- */
.bc-schedule-results {
  margin: 0 auto 4px;
  max-width: 520px;
  overflow-x: auto;
}

.bc-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.15;
}

.bc-schedule-table th,
.bc-schedule-table td {
  padding: 1px 4px;
  vertical-align: middle;
  border-bottom: 1px solid #e4eaf0;
}

.bc-schedule-table thead th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid #c8d4e0;
  white-space: nowrap;
}

.bc-schedule-table .bc-schedule-play-col {
  width: 1.35rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.bc-schedule-table .bc-schedule-num {
  width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.bc-schedule-table .bc-schedule-spread-col {
  width: 2.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bc-spread-line {
  font-weight: 700;
  color: var(--bg-header);
}

.bc-spread-cover-badge {
  font-size: 0.85em;
  margin-left: 0.1em;
}

.bc-scoreboard-spread {
  font-weight: 700;
  margin-left: 0.35em;
  opacity: 0.92;
}

.bc-play-week-line {
  text-align: center;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.bc-schedule-table .bc-schedule-matchup {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.bc-schedule-match-part {
  font-weight: 600;
}

.bc-schedule-at {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0.15em;
}

.bc-schedule-table tr.row-win .bc-schedule-us-part {
  color: var(--bg-card);
}

.bc-schedule-table tr.row-loss .bc-schedule-us-part {
  color: #8b2942;
}

.bc-schedule-play-cb {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  vertical-align: middle;
}

.bc-schedule-row:not(.bc-schedule-played) {
  cursor: pointer;
}

.bc-schedule-row.bc-schedule-play-checked:not(.bc-schedule-current) {
  background: rgba(0, 51, 102, 0.06);
}

.bc-schedule-row.bc-schedule-current {
  font-weight: 700;
  color: var(--bg-header);
  background: rgba(0, 51, 102, 0.04);
}

.bc-schedule-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.bc-team-grades {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.picker-item .bc-team-grades {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.bc-playoff-game .bc-team-grades {
  display: inline;
  font-size: 0.82em;
}

.bc-schedule-meta {
  max-width: 520px;
  margin: 4px auto 6px;
}

.bc-record {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-header);
  margin: 0 0 4px;
  line-height: 1.2;
}

.bc-rank {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bg-header);
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.bc-rank::before {
  content: 'Rank ';
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.85;
}

.bc-conf-record {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 4px;
  line-height: 1.2;
}

.bc-spread-tag-progress {
  text-align: center;
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.bc-spread-tag-progress strong {
  color: #1a5f2a;
}

.bc-rank-super-note {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  padding: 4px 8px;
  background: #f4f8fb;
  border-radius: 6px;
  line-height: 1.3;
}

.bc-rank-super-earned {
  color: #1a6b2e;
  background: #e8f5ec;
}

.bc-bcs {
  text-align: center;
  padding: 5px 8px;
  background: #f4f8fb;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  margin: 0;
  line-height: 1.3;
}

.bc-bowl-invite {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  padding: 12px;
  background: #eef5ff;
  border-radius: 8px;
}

.bc-national-champ {
  color: #c41e1e;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  padding: 16px;
  background: linear-gradient(180deg, #fff8e6, #fff);
  border: 2px solid #ffd700;
  border-radius: 8px;
}

.bc-schedule-key {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 3px;
  line-height: 1.2;
}

.bc-playoff-bracket {
  margin: 12px 0;
  font-size: 0.92rem;
}

.bc-playoff-game {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 6px 0;
  border-bottom: 1px solid #e8edf2;
}

.bc-playoff-game[data-game-index] {
  cursor: pointer;
}

.bc-playoff-play-col {
  flex: 0 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.1rem;
  cursor: pointer;
}

.bc-playoff-play-cb {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  vertical-align: middle;
}

.bc-playoff-game-line {
  flex: 1 1 auto;
  min-width: 0;
}

.bc-playoff-game.bc-playoff-play-checked:not(.bc-playoff-current) {
  background: rgba(0, 51, 102, 0.06);
}

.bc-playoff-game.bc-playoff-current {
  color: var(--bg-header);
  background: rgba(0, 51, 102, 0.04);
}

.bc-playoff-record {
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bc-playoff-game-user {
  font-weight: 700;
}

.bc-playoff-seed,
.bc-playoff-user {
  font-weight: 600;
  margin-bottom: 10px;
}

.bc-playoff-qual {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
  border: 1px solid #b8d4f0;
  border-left: 4px solid var(--bg-header);
  border-radius: 8px;
  max-width: 640px;
}

.bc-playoff-qual-head {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.bc-playoff-qual-detail {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

.bc-playoff-line-key {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #64748b;
  max-width: 640px;
}

.bc-playoff-spread {
  font-weight: 700;
}

.bc-playoff-miss {
  text-align: center;
  padding: 5px 8px;
  background: #f7fafc;
  border-radius: 6px;
  margin: 6px auto;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.3;
}

.bc-playoff-champ {
  text-align: center;
  font-weight: 600;
  margin: 4px auto 6px;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.3;
}

.bc-scoreline {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 8px 0 16px;
  color: var(--bg-header);
}

.bc-scoreline-win .bc-schedule-us-part {
  color: var(--bg-card);
}

.bc-scoreline-loss .bc-schedule-us-part {
  color: #8b2942;
}

.bc-play-week .bc-scoreline {
  margin: 2px 0 4px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.bc-play-week .bc-play-week-meta {
  margin: 0 0 6px;
}

.bc-play-week .bc-play-week-meta .bc-record {
  font-size: 1.05rem;
  margin: 0 0 3px;
}

.bc-play-week .bc-play-week-meta .bc-rank {
  font-size: 1.15rem;
  margin: 0 0 3px;
}

.bc-play-week .bc-play-week-meta .bc-conf-record {
  font-size: 11px;
  margin: 0;
}

.bc-play-week .bc-stats {
  margin: 0 0 4px;
}

.bc-play-week .bc-stats-def {
  margin-bottom: 6px;
}

.bc-play-week .bc-stats caption {
  padding: 4px 6px;
}

.bc-play-week .bc-stats th,
.bc-play-week .bc-stats td {
  padding: 2px 6px;
  line-height: 1.15;
}

.bc-play-week .bc-actions {
  margin-top: 4px;
}

.bc-stats {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.bc-stats caption {
  background: var(--bg-page);
  color: #fff;
  font-weight: 700;
  padding: 8px;
  caption-side: top;
}

.bc-stats th,
.bc-stats td {
  border: 1px solid #dde4ea;
  padding: 6px 8px;
}

.bc-stats th {
  background: #eef2f6;
  font-weight: 600;
}

.bc-stats-off tr:nth-child(even),
.bc-stats-def tr:nth-child(even) {
  background: #f9fbfc;
}

.bc-season-final-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 6px;
  margin: 4px 0 2px;
}

.bc-final-stats-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 11px;
  table-layout: fixed;
}

.bc-final-stats-table caption {
  background: var(--bg-page);
  color: #fff;
  font-weight: 700;
  padding: 3px 6px;
  caption-side: top;
  text-align: center;
  font-size: 11px;
}

.bc-final-stats-table th,
.bc-final-stats-table td {
  border: 1px solid #dde4ea;
  padding: 2px 4px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-final-stats-table th {
  background: #eef2f6;
  font-weight: 600;
  text-align: center;
}

.bc-final-stats-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bc-final-stats-table td:first-child,
.bc-final-stats-table th:first-child {
  text-align: left;
  width: 38%;
}

.bc-final-stats-off tbody tr:nth-child(even),
.bc-final-stats-def tbody tr:nth-child(even) {
  background: #f9fbfc;
}

.bc-season-register {
  max-width: 520px;
  margin: 6px auto 0;
}

.bc-register-heading {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-header);
  line-height: 1.2;
}

.bc-register {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  margin: 0;
}

.bc-register th,
.bc-register td {
  border: 1px solid var(--border);
  padding: 3px 6px;
  line-height: 1.2;
}

.bc-register th {
  background: #eef2f6;
  text-align: left;
}

.bc-register-rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bc-register-school {
  margin-left: 4px;
  font-size: inherit;
  font-weight: 600;
  color: var(--bg-header);
}

/* --- Footer --- */
.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  margin-top: 24px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: none;
}

/* Gatekeeper/Ezoic persistent CMP gear — footer link replaces it */
#ez-privacy-settings-button {
  position: fixed !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* --- Narrow viewports: let content column shrink (desktop layout unchanged above 820px) --- */
@media (max-width: 820px) {
  .content-col {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }
}

/* --- Mobile / small screens --- */
@media (max-width: 768px) {
  html {
    font-size: 17px;
  }

  body {
    overflow-x: hidden;
    padding-bottom: 90px;
  }

  .wrap {
    padding: 12px 8px 24px;
  }

  .banner {
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .bc-logo-img {
    max-height: 120px;
  }

  .main-layout {
    flex-direction: column;
    gap: 12px;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    min-height: 0;
    order: 2;
    font-size: 13px;
  }

  .sidebar-right {
    order: 3;
    margin-top: -4px;
  }

  .content-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .content {
    overflow-x: visible;
    min-height: 0;
  }

  .content-inner {
    padding: 14px 12px 18px;
  }

  .bc-screen-body {
    padding: 10px 10px 12px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bc-panel {
    width: 100%;
    max-width: 100%;
  }

  .bc-panel h3 {
    font-size: 14px;
  }

  .bc-panel table,
  .bc-career-leaders-table {
    font-size: 12px;
  }

  .bc-message-area {
    font-size: 13px;
    padding: 10px 12px;
  }

  .bc-conf-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-picker {
    grid-template-columns: 1fr;
  }

  .picker-list {
    max-height: 220px;
  }

  .picker-item {
    padding: 8px 10px;
    min-height: 44px;
    font-size: 0.82rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(26, 95, 191, 0.15);
  }

  .bc-header {
    padding: 10px 12px;
  }

  .bc-header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
  }

  .bc-header-right {
    font-size: 14px;
  }

  .bc-btn {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(70, 140, 0, 0.15);
  }

  .bc-actions {
    gap: 10px;
  }

  .bc-actions .bc-btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

  .bc-btn-meet-squad {
    max-width: 100%;
  }

  /* Keep position columns aligned — scroll horizontally instead of wrapping cards */
  .bc-roster-row,
  .bc-recruit-columns {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
  }

  .bc-roster-def,
  .bc-recruit-columns-def {
    max-width: 100%;
  }

  .bc-card-wrap,
  .bc-recruit-column {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .bc-recruit-board {
    max-width: 100%;
  }

  .bc-super-panel {
    flex-direction: column;
    justify-content: flex-start;
  }

  .bc-super-panel-main {
    flex: 0 1 auto;
  }

  .bc-super-panel-ad {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Keep the long tag explanation off the first screen so O+D cards stay comparable. */
  .bc-super-hint {
    display: none;
  }

  .bc-super-panel {
    margin-bottom: 10px;
    padding: 10px 12px;
    gap: 8px;
  }

  .bc-super-balance {
    margin: 0;
  }

  .bc-portal-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .bc-schedule-results {
    -webkit-overflow-scrolling: touch;
  }

  .bc-season-final-stats {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bc-final-stats-table {
    font-size: 11px;
  }

  .bc-stats,
  .bc-register {
    font-size: 11px;
  }

  .bc-stats th,
  .bc-stats td,
  .bc-register th,
  .bc-register td {
    padding: 4px 5px;
  }

  .bc-scoreboard-modal {
    padding: 10px;
  }

  .bc-scoreboard-panel {
    max-width: 100%;
  }

  .bc-notice-panel {
    max-width: 100%;
  }
}

/* Tablet: side-by-side sidebars below main content */
@media (max-width: 768px) and (min-width: 560px) {
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "side-l side-r";
  }

  .content-col {
    grid-area: main;
    order: unset;
  }

  #sidebar {
    grid-area: side-l;
    order: unset;
  }

  #sidebar-right {
    grid-area: side-r;
    order: unset;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .wrap {
    padding: 8px 6px 24px;
  }

  .banner {
    padding: 6px 8px;
  }

  .bc-logo-img {
    max-height: 96px;
  }

  .bc-conf-grid {
    grid-template-columns: 1fr;
  }

  .content-inner {
    padding: 12px 10px 16px;
  }

  .bc-welcome-hero h1 {
    font-size: 1.2rem;
  }

  .bc-section-title,
  .bc-program-title {
    font-size: 1rem;
  }

  .bc-record {
    font-size: 1.1rem;
  }

  .bc-scoreline {
    font-size: 1.15rem;
  }

  .bc-national-champ {
    font-size: 1.15rem;
    padding: 12px;
  }

  .bc-actions .bc-btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .bc-resume-row .bc-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* --- Phones: swap in abbreviated card text so a full position row fits without side-scrolling.
       Must stay last so it wins over the fixed card widths in the queries above. --- */
@media (max-width: 600px) {
  .bc-lbl-full {
    display: none;
  }

  .bc-lbl-abbr {
    display: inline;
  }

  .bc-screen-body {
    padding: 8px 6px 10px;
  }

  /* Five equal columns across the row; the four-card defense row reuses the same width. */
  .bc-roster-row,
  .bc-recruit-columns {
    --bc-card-col: calc((100% - 8px) / 5);
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .bc-roster-row > .bc-card-wrap,
  .bc-recruit-column {
    flex: 0 0 var(--bc-card-col);
    width: var(--bc-card-col);
    min-width: 0;
  }

  .bc-card-wrap {
    display: block;
    width: 100%;
    padding: 0 2px 2px 0;
  }

  .bc-card {
    width: auto;
    bottom: 2px;
    right: 2px;
    font-size: 9px;
  }

  .bc-card-head {
    padding: 2px;
    min-height: 24px;
  }

  .bc-card-head strong {
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  .bc-card-recruit-head {
    padding: 2px 2px 1px;
    min-height: 30px;
  }

  .bc-card-recruit-head strong {
    font-size: 9px;
  }

  .bc-skill-table {
    font-size: 9px;
    table-layout: fixed;
  }

  .bc-skill-table td {
    padding: 1px 2px;
  }

  .bc-grade {
    font-size: 9px;
    width: 1.9em;
  }

  .bc-card-class,
  .bc-card-posrow {
    font-size: 9px;
    letter-spacing: 0;
  }

  .bc-card-posrow {
    padding: 2px 3px;
  }

  .bc-card-origin-tag,
  .bc-card-portal-tag {
    font-size: 8px;
  }

  .bc-card-stats,
  .bc-card-extra {
    font-size: 9px;
    padding: 2px;
  }

  .bc-card-open .bc-card-open-body {
    min-height: 74px;
  }

  .bc-card-open-pos {
    font-size: 10px;
  }

  .bc-super-check {
    gap: 2px;
    padding: 2px 1px;
    font-size: 7px;
  }

  .bc-super-check input[type="checkbox"] {
    width: 12px;
    height: 12px;
  }

  .bc-portal-blocked-note {
    margin: 3px 2px 4px;
    font-size: 8px;
  }

  /* Lock In sits under defense (after both boards) on phones. */
  .bc-recruit-stack {
    display: flex;
    flex-direction: column;
  }

  .bc-recruit-board-roster {
    order: 1;
  }

  .bc-recruit-board-prospects {
    order: 2;
  }

  .bc-recruit-submit-row {
    order: 3;
    margin: 10px 0 4px;
  }
}
