@charset "utf-8";
/* =====================================================
   GBSA Baseball Pages - 경기도 야구소프트볼협회
   Figma Design Spec: 1652px wrapper / 1500px content
   ===================================================== */

/* ----- Design Tokens (CSS Variables) ----- */
:root {
  --bb-primary: #3c50e0;
  --bb-primary-light: #eef0fc;
  --bb-coral: #ff5470;
  --bb-dark: #1c2434;
  --bb-dark-alt: #202224;
  --bb-gray: #64748b;
  --bb-gray-light: #94a3b8;
  --bb-gray-bg: #eff4fb;
  --bb-border: #e2e8f0;
  --bb-bg: #f5f5f5;
  --bb-white: #ffffff;
  --bb-success: #10b981;
  --bb-warning: #f59e0b;
  --bb-danger: #d34053;
  --bb-live: #5ecfff;
  --bb-end: #bababa;
  --bb-font: 'Roboto', 'Noto Sans KR', sans-serif;
  --bb-font-title: 'Nunito Sans', 'Roboto', 'Noto Sans KR', sans-serif;
  --bb-radius: 20px;
  --bb-radius-sm: 4px;
  --bb-radius-md: 14px;
  --bb-radius-pill: 50px;
  --bb-radius-badge: 15px;
  --bb-shadow-card: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  --bb-shadow-tab: 0px 1px 3px rgba(0, 0, 0, 0.08);
  --bb-shadow-filter: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --bb-shadow-hover: 0px 12px 20px -4px rgba(0, 0, 0, 0.12);
  --bb-row-height: 77px;
  --bb-header-height: 50px;
  --bb-tab-height: 58px;
  --bb-transition: all 0.2s ease;
}

/* ----- Layout Wrappers ----- */
body:has(.bb-wrap) {
  background: #f5f5f5;
}

/* Match site chrome to content width (1652px) */
body:has(.bb-wrap) #tnb {
  max-width: 1652px;
  margin-left: auto;
  margin-right: auto;
}
body:has(.bb-wrap) #gnb .gnb_wrap {
  max-width: 1652px;
}
body:has(.bb-wrap) .subTopLocNav {
  max-width: 1652px;
}

#ctWrap:has(.bb-wrap) {
  max-width: 1692px;
  padding: 0;
}
.bb-wrap {
  max-width: 1692px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: var(--bb-font);
  font-variation-settings: 'wdth' 100;
  color: var(--bb-dark);
  font-size: 16px;
  line-height: 1.6;
  background: #f5f5f5;
}
.bb-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* ----- Page Title (68px Figma) ----- */
.bb-page-title {
  font-size: 68px;
  font-weight: 700;
  color: var(--bb-coral);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  font-family: var(--bb-font);
  line-height: 1.15;
}
.bb-page-subtitle {
  font-size: 16px;
  color: var(--bb-gray);
  margin-bottom: 30px;
}

/* ----- Section Title (26px Nunito Sans Bold) ----- */
.bb-section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--bb-dark-alt);
  margin-bottom: 16px;
  font-family: var(--bb-font-title);
  font-variation-settings:
    'YTLC' 500,
    'wdth' 100;
  letter-spacing: -0.1143px;
}
.bb-section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ----- Tab Navigation (58px height) ----- */
.bb-tabs {
  display: flex;
  align-items: center;
  height: var(--bb-tab-height);
  border-bottom: 0.8px solid var(--bb-border);
  margin-bottom: 30px;
  gap: 0;
  background: var(--bb-white);
  box-shadow: var(--bb-shadow-tab);
  border-radius: 0;
  overflow-x: auto;
}
.bb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-gray);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--bb-transition);
  font-family: var(--bb-font);
}
.bb-tab:hover {
  color: var(--bb-primary);
}
.bb-tab.active {
  color: var(--bb-primary);
  font-size: 18px;
  font-weight: 700;
  border-bottom-color: var(--bb-primary);
}

/* ----- Sub Tabs (Pill Style - 15px Inter Medium) ----- */
.bb-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bb-sub-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--bb-radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--bb-gray);
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--bb-transition);
  font-family: 'Inter', var(--bb-font);
}
.bb-sub-tab:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}
.bb-sub-tab.active {
  background: var(--bb-primary);
  color: var(--bb-white);
  border-color: var(--bb-primary);
}

/* ----- Filter Bar (14px Roboto Medium) ----- */
.bb-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bb-filter-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--bb-font);
  color: var(--bb-gray);
  background: var(--bb-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 120px;
  box-shadow: var(--bb-shadow-filter);
}
.bb-filter-select:focus {
  border-color: var(--bb-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 80, 224, 0.1);
}
.bb-search-input {
  padding: 10px 14px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font-size: 14px;
  font-family: var(--bb-font);
  min-width: 200px;
  box-shadow: var(--bb-shadow-filter);
}
.bb-search-input:focus {
  border-color: var(--bb-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 80, 224, 0.1);
}
.bb-filter-bar .bb-btn {
  margin-left: auto;
}

/* ----- Data Table (77px rows / 50px headers) ----- */
.bb-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  background: var(--bb-white);
}
.bb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bb-white);
  font-size: 16px;
}
.bb-table th {
  height: var(--bb-header-height);
  padding: 0 16px;
  background: var(--bb-white);
  color: var(--bb-dark);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 2px solid var(--bb-border);
}
.bb-table td {
  height: var(--bb-row-height);
  padding: 0 16px;
  text-align: center;
  border-bottom: 1px solid var(--bb-border);
  white-space: nowrap;
  vertical-align: middle;
  font-size: 16px;
}
.bb-table tbody tr:last-child td {
  border-bottom: none;
}
.bb-table tbody tr:hover {
  background: var(--bb-gray-bg);
}
.bb-table .bb-col-rank {
  font-weight: 700;
  color: var(--bb-primary);
  width: 60px;
}
.bb-table .bb-col-team {
  text-align: left;
  font-weight: 600;
}
.bb-table .bb-col-name {
  text-align: left;
  font-weight: 600;
}
.bb-table .bb-col-name a {
  color: var(--bb-dark);
  text-decoration: none;
}
.bb-table .bb-col-name a:hover {
  color: var(--bb-primary);
}
.bb-table .bb-highlight {
  color: var(--bb-primary);
  font-weight: 700;
}
.bb-table-compact td,
.bb-table-compact th {
  height: 48px;
  padding: 0 10px;
  font-size: 14px;
}
.bb-table .bb-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bb-team-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bb-bg);
  flex-shrink: 0;
}
.bb-team-logo-sm {
  width: 24px;
  height: 24px;
}
.bb-team-logo-lg {
  width: 48px;
  height: 48px;
}

/* ----- Card Component (rounded-20px) ----- */
.bb-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
  transition: var(--bb-transition);
}
.bb-card:hover {
  box-shadow: var(--bb-shadow-hover);
  transform: translateY(-2px);
}
.bb-card-body {
  padding: 28px;
}
.bb-card-header {
  padding: 16px 28px;
  border-bottom: 1px solid var(--bb-border);
  font-weight: 600;
}

/* ----- Card Grid ----- */
.bb-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.bb-card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.bb-card-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* ----- Badge ----- */
.bb-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--bb-radius-badge);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.bb-badge-primary {
  background: var(--bb-primary-light);
  color: var(--bb-primary);
}
.bb-badge-coral {
  background: #fff0f3;
  color: var(--bb-coral);
}
.bb-badge-success {
  background: #ecfdf5;
  color: var(--bb-success);
}
.bb-badge-warning {
  background: #fffbeb;
  color: var(--bb-warning);
}
.bb-badge-live {
  background: var(--bb-live);
  color: var(--bb-white);
  font-family: 'Cairo', var(--bb-font);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--bb-radius-badge);
  animation: bb-pulse 1.5s infinite;
}
@keyframes bb-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.bb-badge-end {
  background: var(--bb-end);
  color: var(--bb-white);
  font-family: 'Cairo', var(--bb-font);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--bb-radius-badge);
}
.bb-badge-gray {
  background: #f1f5f9;
  color: var(--bb-gray);
}
.bb-badge-school {
  background: rgba(211, 64, 83, 0.08);
  color: var(--bb-danger);
  border-radius: 30px;
  padding: 2px 10px;
  font-size: 14px;
}

/* ----- Stat Box ----- */
.bb-stat-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.bb-stat-box {
  flex: 1;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  padding: 24px;
  text-align: center;
}
.bb-stat-box .bb-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--bb-primary);
  line-height: 1.2;
}
.bb-stat-box .bb-stat-label {
  font-size: 14px;
  color: var(--bb-gray);
  margin-top: 4px;
}

/* ----- Score Board Component (1168x260 dark) ----- */
.bb-score-board {
  background: var(--bb-dark);
  border-radius: var(--bb-radius);
  padding: 30px;
  color: var(--bb-white);
  margin-bottom: 30px;
  max-width: 1168px;
}
.bb-score-board-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}
.bb-score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.bb-score-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}
.bb-score-team-name {
  font-size: 18px;
  font-weight: 700;
}
.bb-score-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bb-score-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bb-score-divider {
  font-size: 28px;
  color: var(--bb-gray-light);
}
.bb-score-info {
  font-size: 13px;
  color: var(--bb-gray-light);
}

/* Score Board Inning Table */
.bb-inning-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 14px;
}
.bb-inning-table th,
.bb-inning-table td {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 51px;
  height: 30px;
}
.bb-inning-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bb-gray-light);
  font-weight: 500;
  font-size: 13px;
}
.bb-inning-table tbody td {
  font-weight: 600;
}
.bb-inning-table .bb-col-total {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 16px;
  color: var(--bb-coral);
}
.bb-inning-table .bb-team-name-col {
  text-align: left;
  padding-left: 16px;
  min-width: 120px;
  font-weight: 700;
}

/* ----- Score Card (for schedule/scoreboard) ----- */
.bb-score-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: var(--bb-transition);
}
.bb-score-card:hover {
  box-shadow: var(--bb-shadow-hover);
}
.bb-score-card-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.bb-score-card-team.home {
  justify-content: flex-end;
  text-align: right;
}
.bb-score-card-team-name {
  font-size: 16px;
  font-weight: 700;
}
.bb-score-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}
.bb-score-card-result {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
}
.bb-score-card-status {
  font-size: 12px;
  color: var(--bb-gray);
}
.bb-score-card-meta {
  font-size: 13px;
  color: var(--bb-gray);
  min-width: 100px;
  text-align: right;
}
.bb-score-card-buttons {
  display: flex;
  gap: 8px;
}
.bb-score-card-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font-size: 16px;
  font-weight: 500;
  font-family: var(--bb-font);
  color: var(--bb-dark);
  background: var(--bb-white);
  text-decoration: none;
  cursor: pointer;
  transition: var(--bb-transition);
}
.bb-score-card-btn:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}

/* Date Group Header */
.bb-date-group {
  margin-bottom: 30px;
}
.bb-date-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--bb-dark-alt);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bb-border);
}

/* ----- Profile Card (130px wide, 105px photo) ----- */
.bb-profile-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
  text-align: center;
  transition: var(--bb-transition);
}
.bb-profile-card:hover {
  box-shadow: var(--bb-shadow-hover);
  transform: translateY(-2px);
}
.bb-profile-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bb-bg);
}
.bb-profile-card-body {
  padding: 16px;
}
.bb-profile-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bb-primary);
  color: var(--bb-white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.bb-profile-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--bb-dark);
  margin-bottom: 4px;
}
.bb-profile-card-name a {
  color: var(--bb-dark);
  text-decoration: none;
}
.bb-profile-card-name a:hover {
  color: var(--bb-primary);
}
.bb-profile-card-pos {
  font-size: 13px;
  color: var(--bb-gray);
}
.bb-profile-card-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bb-border);
  font-size: 13px;
}
.bb-profile-card-stats dt {
  color: var(--bb-gray);
  font-weight: 400;
}
.bb-profile-card-stats dd {
  font-weight: 700;
  color: var(--bb-primary);
}

/* Player Profile Photo (105px circle for carousel) */
.bb-profile-photo {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bb-bg);
}

/* ----- Cover Image / Hero Section (260px height) ----- */
.bb-cover {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, var(--bb-dark), #2d3a4f);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: -60px;
}
.bb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.bb-profile-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 30px 30px;
}
.bb-profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--bb-white);
  object-fit: cover;
  background: var(--bb-bg);
  box-shadow: var(--bb-shadow-card);
  flex-shrink: 0;
}
.bb-profile-avatar-square {
  border-radius: var(--bb-radius);
}
.bb-profile-info {
  flex: 1;
  padding-bottom: 8px;
}
.bb-profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--bb-dark);
  margin-bottom: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bb-profile-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--bb-gray);
  flex-wrap: wrap;
}
.bb-profile-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bb-profile-meta-label {
  color: var(--bb-gray-light);
}

/* ----- Player Detail Stats ----- */
.bb-detail-stats {
  display: flex;
  gap: 16px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}
.bb-detail-stat-item {
  flex: 1;
  min-width: 100px;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  padding: 16px;
  text-align: center;
}
.bb-detail-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--bb-primary);
}
.bb-detail-stat-label {
  font-size: 12px;
  color: var(--bb-gray);
  margin-top: 2px;
}

/* ----- Calendar ----- */
.bb-calendar {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
}
.bb-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bb-dark);
  color: var(--bb-white);
}
.bb-calendar-title {
  font-size: 20px;
  font-weight: 700;
}
.bb-calendar-nav {
  display: flex;
  gap: 8px;
}
.bb-calendar-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--bb-radius-sm);
  background: transparent;
  color: var(--bb-white);
  cursor: pointer;
  font-size: 16px;
  transition: var(--bb-transition);
}
.bb-calendar-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.bb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.bb-calendar-day-header {
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--bb-gray);
  background: #fafbfc;
  border-bottom: 1px solid var(--bb-border);
}
.bb-calendar-day {
  min-height: 100px;
  padding: 8px;
  border-right: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
  font-size: 13px;
}
.bb-calendar-day:nth-child(7n) {
  border-right: none;
}
.bb-calendar-day-num {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--bb-dark);
}
.bb-calendar-day.other-month .bb-calendar-day-num {
  color: var(--bb-gray-light);
}
.bb-calendar-day.today {
  background: var(--bb-primary-light);
}
.bb-calendar-day.today .bb-calendar-day-num {
  color: var(--bb-primary);
  font-weight: 700;
}
.bb-calendar-day.sunday .bb-calendar-day-num {
  color: var(--bb-coral);
}
.bb-calendar-event {
  display: block;
  padding: 2px 6px;
  margin-bottom: 2px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.bb-calendar-event-game {
  background: var(--bb-primary-light);
  color: var(--bb-primary);
}
.bb-calendar-event-live {
  background: #fef2f2;
  color: var(--bb-coral);
}

/* ----- Timeline (Play-by-Play) ----- */
.bb-timeline {
  position: relative;
  padding-left: 32px;
}
.bb-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bb-border);
}
.bb-timeline-item {
  position: relative;
  padding: 16px 0 16px 24px;
  border-bottom: 1px solid var(--bb-border);
}
.bb-timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bb-primary);
  border: 2px solid var(--bb-white);
  box-shadow: 0 0 0 2px var(--bb-primary);
}
.bb-timeline-item.highlight::before {
  background: var(--bb-coral);
  box-shadow: 0 0 0 2px var(--bb-coral);
}
.bb-timeline-inning {
  font-size: 13px;
  font-weight: 700;
  color: var(--bb-primary);
  margin-bottom: 4px;
}
.bb-timeline-desc {
  font-size: 15px;
  color: var(--bb-dark);
}
.bb-timeline-time {
  font-size: 12px;
  color: var(--bb-gray-light);
  margin-top: 4px;
}

/* ----- Buttons ----- */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--bb-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--bb-font);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--bb-border);
  background: var(--bb-white);
  color: var(--bb-dark);
  transition: var(--bb-transition);
}
.bb-btn:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}
.bb-btn-primary {
  background: var(--bb-primary);
  color: var(--bb-white);
  border-color: var(--bb-primary);
}
.bb-btn-primary:hover {
  background: #2d3ec0;
  border-color: #2d3ec0;
  color: var(--bb-white);
}
.bb-btn-search {
  background: var(--bb-primary);
  color: var(--bb-gray-bg);
  border-color: var(--bb-primary);
  border-radius: var(--bb-radius-sm);
  font-size: 16px;
  font-weight: 500;
}
.bb-btn-coral {
  background: var(--bb-coral);
  color: var(--bb-white);
  border-color: var(--bb-coral);
}
.bb-btn-coral:hover {
  background: #e8405a;
  border-color: #e8405a;
  color: var(--bb-white);
}
.bb-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.bb-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}
.bb-btn-more {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  text-align: center;
}

/* ----- Tab Content ----- */
.bb-tab-content {
  display: none;
}
.bb-tab-content.active {
  display: block;
}
.bb-subtab-content {
  display: none;
}
.bb-subtab-content.active {
  display: block;
}

/* ----- Pagination ----- */
.bb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 30px;
}
.bb-pagination a,
.bb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--bb-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-gray);
  text-decoration: none;
  transition: var(--bb-transition);
}
.bb-pagination a:hover {
  background: var(--bb-primary-light);
  color: var(--bb-primary);
}
.bb-pagination .active {
  background: var(--bb-primary);
  color: var(--bb-white);
  font-weight: 700;
}

/* ----- Team Info Grid ----- */
.bb-team-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.bb-team-info-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
}
.bb-team-info-label {
  color: var(--bb-gray);
  min-width: 70px;
}
.bb-team-info-value {
  font-weight: 600;
  color: var(--bb-dark);
}

/* ----- Empty State ----- */
.bb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--bb-gray);
}
.bb-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.bb-empty-text {
  font-size: 16px;
}

/* ----- Month Tabs (for schedule/scoreboard) ----- */
.bb-month-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bb-month-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--bb-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-gray);
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  cursor: pointer;
  text-decoration: none;
  transition: var(--bb-transition);
}
.bb-month-tab:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}
.bb-month-tab.active {
  background: var(--bb-primary);
  color: var(--bb-white);
  border-color: var(--bb-primary);
}

/* ----- Team Logo Row (horizontal scrollable) ----- */
.bb-team-logo-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.bb-team-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
  padding: 8px;
  border-radius: var(--bb-radius-sm);
  cursor: pointer;
  transition: var(--bb-transition);
  text-decoration: none;
  color: var(--bb-dark);
}
.bb-team-logo-item:hover {
  background: var(--bb-gray-bg);
}
.bb-team-logo-item.active {
  background: var(--bb-primary-light);
}
.bb-team-logo-item .bb-team-logo {
  width: 48px;
  height: 48px;
}
.bb-team-logo-item span {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ----- Utility Classes ----- */
.bb-text-primary {
  color: var(--bb-primary);
}
.bb-text-coral {
  color: var(--bb-coral);
}
.bb-text-gray {
  color: var(--bb-gray);
}
.bb-text-bold {
  font-weight: 700;
}
.bb-text-center {
  text-align: center;
}
.bb-text-left {
  text-align: left;
}
.bb-text-right {
  text-align: right;
}
.bb-mt-0 {
  margin-top: 0;
}
.bb-mt-10 {
  margin-top: 10px;
}
.bb-mt-20 {
  margin-top: 20px;
}
.bb-mt-30 {
  margin-top: 30px;
}
.bb-mb-0 {
  margin-bottom: 0;
}
.bb-mb-10 {
  margin-bottom: 10px;
}
.bb-mb-20 {
  margin-bottom: 20px;
}
.bb-mb-30 {
  margin-bottom: 30px;
}
.bb-flex {
  display: flex;
}
.bb-flex-center {
  align-items: center;
  justify-content: center;
}
.bb-flex-between {
  justify-content: space-between;
}
.bb-gap-10 {
  gap: 10px;
}
.bb-gap-20 {
  gap: 20px;
}

/* ----- Win/Loss Colors ----- */
.bb-win {
  color: var(--bb-primary);
  font-weight: 700;
}
.bb-loss {
  color: var(--bb-coral);
  font-weight: 700;
}
.bb-draw {
  color: var(--bb-gray);
  font-weight: 700;
}

/* ----- Boxscore Page Layout (Two-column: 1168 + 412) ----- */
.bb-boxscore-layout {
  display: flex;
  gap: 72px;
  max-width: 1652px;
  width: 100%;
}
.bb-boxscore-main {
  flex: 1 1 0;
  max-width: 1168px;
  min-width: 0;
  overflow-x: hidden;
}
.bb-boxscore-side {
  flex: 0 0 412px;
  max-width: 412px;
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

/* Scoreboard Cards Container */
.bb-sb-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Schedule header used on scoreboard page */
.bb-schedule-header-only {
  margin-bottom: 30px;
}

/* ScoreBoard Hero (1168x260, #092077) */
.bb-sb-hero {
  position: relative;
  width: 100%;
  min-height: 260px;
  background: #092077;
  border-radius: 20px;
  box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.bb-sb-hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0 0;
}
.bb-sb-tournament {
  font-size: 15px;
  font-weight: 500;
  color: #4880ff;
  text-align: center;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  margin-bottom: 2px;
  line-height: 24px;
}
.bb-sb-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}
.bb-sb-team-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  flex: 1;
}
.bb-sb-team-info.away {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row;
}
.bb-sb-team-info.home {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row;
}
.bb-sb-team-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}
.bb-sb-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-sb-team-name {
  font-size: 23px;
  font-weight: 600;
  color: #e2e8f0;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-sb-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 260px;
}
.bb-sb-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 125px;
}
.bb-sb-score-num {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 1;
  width: 67px;
  text-align: center;
}
.bb-sb-score-center {
  position: relative;
}
.bb-sb-score-center > .bb-sb-badge-live,
.bb-sb-score-center > .bb-sb-badge-end {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.bb-sb-badge-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 23px;
  min-width: 46px;
  border-radius: 20px;
  background: #5ecfff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}
.bb-sb-badge-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 23px;
  min-width: 46px;
  border-radius: 20px;
  background: #bababa;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}
.bb-sb-datetime {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 20px;
  margin-top: 0;
}
.bb-sb-venue {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 18px;
}

/* ScoreBoard Inning Table (inside hero) */
.bb-sb-inning-wrap {
  margin-top: auto;
  align-self: stretch;
  margin-bottom: 25px;
  margin-left: 211px;
  margin-right: 158px;
  padding: 0;
  overflow-x: auto;
}
.bb-sb-inning-header,
.bb-sb-inning-row {
  display: flex;
  height: 30px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-sb-inning-header {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  color: #4880ff;
}
.bb-sb-inning-row {
  color: #fff;
}
.bb-sb-inning-cell {
  text-align: center;
  flex: 1 1 0;
  min-width: 20px;
}
.bb-sb-inning-cell.team-name {
  flex: 0 0 90px;
  width: 90px;
  text-align: left;
  padding-left: 8px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-sb-inning-cell.summary {
  color: #4880ff;
}

/* ScoreBoard Buttons (Box / Plays) */
.bb-sb-btn-box,
.bb-sb-btn-plays {
  position: absolute;
  bottom: 50px;
  width: 80px;
  height: 35px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: var(--bb-transition);
}
.bb-sb-btn-box {
  left: 57px;
}
.bb-sb-btn-plays {
  right: 48px;
}
/* 기본 비활성 상태 */
.bb-sb-btn-box,
.bb-sb-btn-plays {
  opacity: 0.5;
  pointer-events: none;
}
/* 활성 카드의 버튼만 활성화 */
.bb-sb-hero.active .bb-sb-btn-box,
.bb-sb-hero.active .bb-sb-btn-plays {
  opacity: 1;
  pointer-events: auto;
}
.bb-sb-btn-box:hover,
.bb-sb-btn-plays:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #4880ff;
}

/* Boxscore page: filled buttons */
.bb-boxscore-main .bb-sb-btn-box,
.bb-boxscore-main .bb-sb-btn-plays {
  background: #fff;
  border-color: #e2e8f0;
  color: #071a5f;
  opacity: 1;
  pointer-events: auto;
}
.bb-boxscore-main .bb-sb-btn-box:hover,
.bb-boxscore-main .bb-sb-btn-plays:hover {
  background: #f0f4ff;
  border-color: #4880ff;
}

/* Scoreboard Cards List (scoreboard page) */
.bb-sb-cards-list {
  max-width: 1652px;
  margin: 0 auto;
}

/* Scoreboard Row (card + result panel) */
.bb-sb-row {
  display: flex;
  gap: 72px;
  margin-bottom: 30px;
}
.bb-sb-row .bb-sb-hero {
  flex: 1;
  min-width: 0;
}

/* Result Pitcher Panel */
.bb-sb-result-panel {
  width: 412px;
  min-height: 260px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 20px 10px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 20px;
}
.bb-sb-result-panel::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -10px;
  right: -10px;
  bottom: -18px;
  background: url(img/side-panel-bg.png) no-repeat center / cover;
  z-index: 0;
}
.bb-sb-result-panel > * {
  position: relative;
  z-index: 1;
}
.bb-sb-result-time {
  font-family: var(--bb-font);
  font-size: 13px;
  font-weight: 400;
  color: #212b36;
  width: 380px;
  line-height: 26px;
}
.bb-sb-result-pitchers {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}
.bb-sb-result-pitcher-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  padding: 10px;
}
.bb-sb-result-photo-wrap {
  position: relative;
  width: 105px;
  height: 105px;
}
.bb-sb-result-photo-placeholder {
  width: 105px;
  height: 105px;
  border-radius: 25px;
  background: #e2e8f0;
}
.bb-sb-result-photo-wrap img {
  width: 105px;
  height: 105px;
  border-radius: 25px;
  object-fit: cover;
}
.bb-sb-result-role {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 105px;
  height: 38px;
  border-radius: 0 0 25px 25px;
  color: #fff;
  font-family: var(--bb-font);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-sb-result-role.win { background: #35c691; }
.bb-sb-result-role.loss { background: #64748b; }
.bb-sb-result-role.save { background: #c63563; }
.bb-sb-result-role.hold { background: #96ccd7; }
.bb-sb-result-pitcher-name {
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 600;
  color: #202020;
  text-align: center;
}
.bb-sb-result-pitcher-stats {
  font-family: 'Open Sans', var(--bb-font);
  font-size: 15px;
  font-weight: 400;
  color: #a5a5a5;
  line-height: 20px;
  text-align: center;
}
.bb-sb-result-pitcher-stats .frac {
  font-size: 10px;
}

/* 스코어보드 더보기 */
.bb-sb-more {
  text-align: center;
  margin: 20px 0 40px;
}
.bb-sb-more-btn {
  display: inline-block;
  width: 100%;
  max-width: 864px;
  height: 50px;
  line-height: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-family: var(--bb-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--bb-dark);
  text-decoration: none;
}
.bb-sb-more-btn:hover {
  background: #f8fafc;
  border-color: #4880ff;
  color: #4880ff;
}

@media (max-width: 1200px) {
  .bb-sb-row {
    flex-direction: column;
    gap: 20px;
  }
  .bb-sb-result-panel {
    width: 100%;
    height: auto;
  }
  .bb-sb-result-pitchers {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  .bb-schedule-header-only {
    margin-bottom: 20px;
  }
  .bb-sb-cards {
    gap: 20px;
  }
  .bb-sb-row {
    gap: 16px;
    margin-bottom: 0;
  }
  .bb-sb-result-panel {
    border-radius: 14px;
    padding: 16px 10px;
  }
  .bb-sb-result-time {
    width: auto;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
  }
  .bb-sb-result-pitchers {
    gap: 16px;
    padding: 0 10px;
  }
  .bb-sb-result-pitcher-box {
    gap: 8px;
    padding: 6px;
  }
  .bb-sb-result-photo-wrap {
    width: 80px;
    height: 80px;
  }
  .bb-sb-result-photo-wrap img,
  .bb-sb-result-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .bb-sb-result-role {
    width: 80px;
    height: 30px;
    border-radius: 0 0 20px 20px;
    font-size: 11px;
  }
  .bb-sb-result-pitcher-name {
    font-size: 14px;
  }
  .bb-sb-result-pitcher-stats {
    font-size: 13px;
    line-height: 18px;
  }
  .bb-sb-more {
    margin: 16px 0 30px;
  }
  .bb-sb-more-btn {
    max-width: 100%;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    border-radius: 8px;
  }
}
@media (max-width: 480px) {
  .bb-sb-cards {
    gap: 16px;
  }
  .bb-sb-row {
    gap: 12px;
  }
  .bb-sb-result-panel {
    border-radius: 12px;
    padding: 12px 8px;
  }
  .bb-sb-result-time {
    font-size: 11px;
    line-height: 20px;
  }
  .bb-sb-result-pitchers {
    gap: 12px;
    padding: 0;
  }
  .bb-sb-result-pitcher-box {
    gap: 6px;
    padding: 4px;
  }
  .bb-sb-result-photo-wrap {
    width: 70px;
    height: 70px;
  }
  .bb-sb-result-photo-wrap img,
  .bb-sb-result-photo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }
  .bb-sb-result-role {
    width: 70px;
    height: 26px;
    border-radius: 0 0 18px 18px;
    font-size: 10px;
  }
  .bb-sb-result-pitcher-name {
    font-size: 13px;
  }
  .bb-sb-result-pitcher-stats {
    font-size: 12px;
    line-height: 16px;
  }
  .bb-sb-result-pitcher-stats .frac {
    font-size: 9px;
  }
  .bb-sb-more {
    margin: 12px 0 24px;
  }
  .bb-sb-more-btn {
    height: 40px;
    line-height: 40px;
    font-size: 13px;
  }
}

/* Menu Tabs (below scoreboard) */
.bb-sb-menu {
  display: flex;
  gap: 60px;
  height: 60px;
  align-items: flex-end;
  padding: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
  max-width: min(1040px, 100%);
}
.bb-sb-menu a {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 0;
  font-size: 28px;
  font-weight: 500;
  color: #202224;
  text-decoration: none;
  border-bottom: none;
  transition: var(--bb-transition);
  white-space: nowrap;
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-variation-settings:
    'YTLC' 500,
    'wdth' 100;
  letter-spacing: -0.1143px;
}
.bb-sb-menu a:hover,
.bb-sb-menu a.active {
  color: var(--bb-primary);
  font-weight: 700;
  font-size: 32px;
  border-bottom: none;
  font-variation-settings:
    'YTLC' 500,
    'wdth' 100;
}

/* Tab content white box (below menu tabs) */
.bb-boxscore-main .bb-tab-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  padding: 24px;
  overflow: hidden;
}
.bb-boxscore-main .bb-tab-content.active {
  padding-top: 24px;
}

/* Pitcher Result Carousel (Figma: flex, gap 20px, px 30px, max 930px) */
.bb-pitcher-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
  margin: 0 auto 38px;
  max-width: min(1040px, 100%);
  box-sizing: border-box;
}
.bb-pitcher-arrow {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--bb-transition);
}
.bb-pitcher-arrow img {
  width: 50px;
  height: 50px;
}
.bb-pitcher-arrow:hover {
  opacity: 0.7;
}
.bb-pitcher-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  flex: 1;
  justify-content: safe center;
}
.bb-pitcher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
  min-width: 130px;
  overflow: hidden;
}
.bb-pitcher-card-img {
  position: relative;
  width: 105px;
  height: 105px;
}
.bb-pitcher-card-img img,
.bb-pitcher-card-img .bb-pitcher-card-placeholder {
  width: 105px;
  height: 105px;
  border-radius: 25px;
  object-fit: cover;
  background: var(--bb-bg);
  display: block;
}
.bb-pitcher-card-role {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  border-radius: 0 0 25px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-pitcher-card-role.win {
  background: #35c691;
}
.bb-pitcher-card-role.loss {
  background: #64748b;
}
.bb-pitcher-card-role.save {
  background: #c63563;
}
.bb-pitcher-card-role.hold {
  background: #96ccd7;
}
.bb-pitcher-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #202020;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  text-align: center;
  white-space: nowrap;
}
.bb-pitcher-card-stats {
  font-size: 15px;
  color: #a5a5a5;
  text-align: center;
  font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 20px;
}
.bb-pitcher-card-stats .frac {
  font-size: 10px;
}

/* Boxscore Batter/Pitcher Table (Figma: flex row, gap 30px, px 30px) */
.bb-bs-tables {
  display: flex;
  gap: 30px;
  max-width: min(1060px, 100%);
  margin: 0 auto 38px;
  padding: 0 11px;
  box-sizing: border-box;
}
/* 2열 영역: max-width 통일, 세로 구분선 */
.bb-bs-two-col-area {
  position: relative;
  max-width: min(1060px, 100%);
  margin: 0 auto;
  padding: 0 11px;
  box-sizing: border-box;
}
.bb-bs-two-col-area::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #e2e8f0;
  z-index: 1;
  pointer-events: none;
}
/* 각 half 상단 진한 구분선 (피그마: 양쪽 따로, 가운데 끊김) */
.bb-bs-two-col-area > .bb-bs-tables,
.bb-bs-two-col-area > .bb-bs-substitutions,
.bb-bs-two-col-area > .bb-bs-hit-records,
.bb-bs-two-col-area > .bb-bs-pitcher-extras {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.bb-bs-two-col-area .bb-bs-table-half,
.bb-bs-two-col-area .bb-bs-sub-half,
.bb-bs-two-col-area .bb-bs-hit-half,
.bb-bs-two-col-area .bb-bs-pitcher-extra-half {
  border-top: 2px solid #1c2434;
  padding-top: 20px;
}
.bb-bs-two-col-area .bb-bs-table-half {
  padding-top: 0;
}
.bb-bs-table-half {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 50%;
  overflow-x: auto;
  position: relative;
}
/* 스크롤 가능 표시: 바깥 래퍼 + 우측 흰색 그라데이션 */
.bb-scroll-outer {
  position: relative;
  overflow: hidden;
}
/* bb-bs-tables flex 레이아웃에서 scroll-outer가 감쌀 때 */
.bb-bs-tables > .bb-scroll-outer {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 50%;
  overflow: hidden;
}
.bb-scroll-outer > .bb-bs-table-half {
  max-width: 100%;
}
.bb-scroll-outer.has-scroll::after {
  display: none;
}
.bb-bs-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
/* Figma: th 64px height, stat cols stacked 2-line (leading-15px), col-name 85px + divider */
.bb-bs-table th {
  height: 64px;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  border-bottom: 1px solid var(--bb-border);
  vertical-align: middle;
  line-height: 15px;
  padding: 0 3px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
/* Stacked header: each span is a line */
.bb-bs-table th.col-stat span {
  display: block;
  line-height: 14px;
}
.bb-bs-table th.col-avg span {
  display: block;
  line-height: 14px;
}
.bb-bs-table th.col-name {
  width: 120px;
  text-align: left;
  padding-left: 35px;
  font-weight: 600;
  font-size: 16px;
  border-right: 1px solid var(--bb-border);
  line-height: 24px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}
.bb-bs-table th.col-stat {
  width: 34px;
}
.bb-bs-table th.col-avg {
  width: 55px;
  line-height: 24px;
}
.bb-bs-table td {
  height: 64px;
  text-align: center;
  border-bottom: 1px solid var(--bb-border);
  vertical-align: middle;
  font-size: 14px;
  font-weight: 500;
  padding: 0 3px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 15px;
}
.bb-bs-table td.col-name {
  width: 120px;
  text-align: left;
  padding-left: 0;
  border-right: 1px solid var(--bb-border);
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.bb-bs-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 8px 0;
}
.bb-bs-player-order {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  min-width: 23px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}
.bb-bs-player-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bb-bs-player-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  line-height: 24px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  white-space: nowrap;
}
.bb-bs-player-num {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}
.bb-bs-player-pos {
  font-size: 12px;
  font-weight: 300;
  color: #000;
  line-height: 20px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
}
.bb-bs-table td.col-stat {
  width: 34px;
  font-size: 14px;
  font-weight: 500;
}
.bb-bs-table td.col-avg {
  width: 55px;
  font-size: 14px;
  font-weight: 500;
}
.bb-bs-table tr.total-row td {
  height: 36px;
  font-weight: 500;
  border-top: 1px solid var(--bb-border);
}
.bb-bs-table tr.total-row td.col-name {
  border-right: 1px solid var(--bb-border);
  padding-left: 0;
}
.bb-bs-total-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  padding-left: 35px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
}

/* Substitutions (Figma: flex row, gap 30px, px 30px, 2x454px cols) */
.bb-bs-substitutions {
  display: flex;
  gap: 30px;
  max-width: min(1060px, 100%);
  margin: 0 auto 38px;
  padding: 0 11px;
  box-sizing: border-box;
}
.bb-bs-sub-half {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bb-bs-sub-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  line-height: 24px;
}
.bb-bs-sub-inning {
  width: 59px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-bs-sub-desc {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
}

/* Hit Records (Figma: flex row, gap 30px, px 30px, 2x454px cols) */
.bb-bs-hit-records {
  display: flex;
  gap: 30px;
  max-width: min(1060px, 100%);
  margin: 0 auto 38px;
  padding: 0 11px;
  box-sizing: border-box;
}
.bb-bs-hit-half {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bb-bs-hit-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  line-height: 24px;
}
.bb-bs-hit-label {
  width: 59px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-bs-hit-value {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
}

/* Pitcher Extras (Figma: 2 cols 454px, gap 30px, px 10px) */
.bb-bs-pitcher-extras {
  display: flex;
  gap: 30px;
  max-width: min(1060px, 100%);
  margin: 0 auto 38px;
  padding: 0 11px;
  box-sizing: border-box;
}
.bb-bs-pitcher-extra-half {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bb-bs-pitcher-extra-item {
  display: flex;
  gap: 0;
  padding: 0;
  align-items: baseline;
}
.bb-bs-pitcher-extra-label {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  margin-right: 10px;
}
.bb-bs-pitcher-extra-value {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 20px;
}

/* Officials (898x75) - Figma: chip style with border */
.bb-bs-officials {
  max-width: min(1000px, 100%);
  margin: 0 auto 38px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bb-bs-official-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 0 10px;
  min-height: 35px;
}
.bb-bs-official-icon,
.bb-bs-official-label {
  line-height: 34px;
}
.bb-bs-official-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bb-bs-official-persons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  flex: 1;
  min-width: 0;
}
.bb-bs-official-icon img {
  width: 24px;
  height: 24px;
}
.bb-bs-official-label {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  width: 59px;
  flex-shrink: 0;
}
.bb-bs-official-person {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #eef0f2;
  border-radius: 17px;
  padding: 2px;
}
.bb-bs-official-avatar {
  width: 30px;
  height: 30px;
  border-radius: 16px;
  background: var(--bb-bg);
  flex-shrink: 0;
  object-fit: cover;
}
.bb-bs-official-name {
  font-size: 15px;
  font-weight: 400;
  color: #1c2434;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  padding: 0 3px;
  white-space: nowrap;
}

/* Game info section (960x128) - Figma: outer px-10 + inner px-10 = 20px total */
.bb-bs-gameinfo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(1060px, 100%);
  margin: 0 auto 38px;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
}
.bb-bs-gameinfo-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.bb-bs-gameinfo-label {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  min-width: 98px;
  flex-shrink: 0;
}
.bb-bs-gameinfo-label.short {
  min-width: 59px;
}
.bb-bs-gameinfo-value {
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  font-family: 'Roboto', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  white-space: nowrap;
}

/* Right Panel - 문자중계 (styles in relay section below) */

/* Bottom mini game cards */
/* ----- Top Game Carousel (1652x121) ----- */
.bb-top-carousel {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1652px;
  width: 100%;
  height: 120px;
  margin-bottom: 49px;
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
  padding: 0 62px 0 106px;
  overflow: hidden;
}
.bb-top-carousel-arrows {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
  margin-left: 38px;
}
.bb-top-carousel-arrow {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--bb-transition);
  z-index: 1;
}
.bb-top-carousel-arrow img {
  width: 84px;
  height: 84px;
}
.bb-top-carousel-arrow:hover {
  opacity: 0.7;
}
.bb-top-carousel-cards {
  display: flex;
  gap: 0;
  overflow-x: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bb-top-carousel-cards::-webkit-scrollbar {
  display: none;
}
.bb-top-carousel-card {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border: none;
  border-radius: 0;
  padding: 19px 19px 21px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--bb-transition);
  background: transparent;
  position: relative;
  box-sizing: border-box;
}
.bb-top-carousel-card::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 19px;
  width: 158px;
  height: 80px;
  background: transparent;
  z-index: 0;
}
.bb-top-carousel-card:hover::before {
  background: #efefef;
}
.bb-top-carousel-card.active::before {
  background: #efefef;
}
.bb-top-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.bb-top-card-date {
  font-size: 13px;
  font-weight: 300;
  color: #1c2434;
  font-family: 'Roboto', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
}
.bb-top-card-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.bb-top-card-team-name {
  font-size: 16px;
  font-weight: 500;
  color: #1c2434;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 90px;
}
.bb-top-card-score {
  font-size: 20px;
  font-weight: 500;
  color: #625b71;
  font-family: 'Roboto', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 24px;
  width: 40px;
  text-align: right;
}
.bb-top-card-score.win {
  color: #f57c7c;
}
.bb-top-card-divider {
  position: absolute;
  left: 172px;
  top: 19px;
  height: 80px;
  width: 1px;
  background: #e2e8f0;
  z-index: 1;
}
.bb-top-carousel .bb-sb-badge-live,
.bb-top-carousel .bb-sb-badge-end {
  border-radius: 15px;
  min-width: 42px;
}

/* ----- Score Comparison Chart (898x280) ----- */
.bb-score-chart {
  max-width: min(1000px, 100%);
  margin: 0 auto 38px;
  padding: 20px 0;
  border-radius: 4px;
  overflow: clip;
}
.bb-chart-headers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 20px;
}
.bb-chart-header-left,
.bb-chart-header-right {
  font-size: 20px;
  font-weight: 500;
  color: #222;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-chart-header-left {
  text-align: right;
}
.bb-chart-header-center {
  flex: 1;
}
.bb-chart-body {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.bb-chart-side {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr;
  min-height: 200px;
}
.bb-chart-side.left {
  grid-template-columns: 1fr auto;
}
.bb-chart-side.right {
  grid-template-columns: auto 1fr;
}
.bb-chart-axis-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0 8px;
  min-width: 30px;
}
.bb-chart-axis-num {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  font-family: 'Source Sans Pro', 'Roboto', sans-serif;
  text-align: center;
  height: 29px;
  line-height: 29px;
}
.bb-chart-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.bb-chart-grid-line {
  height: 100%;
}
.bb-chart-grid-line.large {
  width: 2px;
  background: #222;
  border-radius: 10px;
}
.bb-chart-grid-line.small {
  width: 1px;
  background: #d5d5d5;
  border-radius: 10px;
}
.bb-chart-side.left .bb-chart-grid {
  flex-direction: row-reverse;
}
.bb-chart-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  z-index: 1;
}
.bb-chart-side.left .bb-chart-grid,
.bb-chart-side.left .bb-chart-bars {
  grid-column: 1;
  grid-row: 1;
}
.bb-chart-side.left .bb-chart-bars {
  align-items: flex-end;
  padding-right: 2px;
}
.bb-chart-side.right .bb-chart-grid,
.bb-chart-side.right .bb-chart-bars {
  grid-column: 2;
  grid-row: 1;
}
.bb-chart-side.right .bb-chart-bars {
  align-items: flex-start;
  padding-left: 2px;
}
.bb-chart-bar {
  height: 20px;
  border-radius: 0 2px 2px 0;
  min-width: 4px;
}
.bb-chart-side.left .bb-chart-bar {
  border-radius: 2px 0 0 2px;
}
.bb-chart-bar.away {
  background: #27a8cf;
}
.bb-chart-bar.home {
  background: #0fb5ae;
}
.bb-chart-center-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  min-width: 50px;
  padding: 0 4px;
  z-index: 2;
}
.bb-chart-cat-label {
  font-size: 15px;
  font-weight: 500;
  color: #464646;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  text-align: center;
  height: 29px;
  line-height: 29px;
  white-space: nowrap;
}

/* ----- Inning Result Columns (타석별 결과) ----- */
.bb-bs-table th.col-inn {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  text-align: center;
  padding: 3px 2px;
  min-width: 50px;
  white-space: nowrap;
}
.bb-bs-table td.col-inn {
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-align: center;
  padding: 3px 2px;
  min-width: 50px;
  white-space: nowrap;
}

/* ----- Substitute Batter Row ----- */
.bb-bs-table tr.sub-row td.col-name {
  padding-left: 0;
}
/* Chrome border-collapse bug: border between sub-row and next row doesn't render.
   Workaround: inset box-shadow on the following row simulates the top border. */
.bb-bs-table tr.sub-row + tr td {
  box-shadow: inset 0 1px 0 0 var(--bb-border);
}
.bb-bs-sub-icon {
  color: #35c691;
  font-weight: 700;
  font-size: 16px;
}

/* ----- Divider Line ----- */
.bb-bs-divider {
  height: 2px;
  background: #1c2434;
  max-width: min(1060px, 100%);
  margin: 38px auto;
}

/* ----- Relay Toggle Switch (Figma: 24x12px, #FF5470) ----- */
.bb-relay-toggle {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 12px;
  cursor: pointer;
}
.bb-relay-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bb-relay-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 10px;
  transition: 0.3s;
}
.bb-relay-toggle-slider::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  left: 2px;
  top: 2px;
  transition: 0.3s;
}
.bb-relay-toggle input:checked + .bb-relay-toggle-slider {
  background: #ff5470;
}
.bb-relay-toggle input:checked + .bb-relay-toggle-slider::before {
  transform: translateX(12px);
}

/* ----- Relay Header (Figma 199:1097) ----- */
.bb-relay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 10px;
}
.bb-relay-header-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.bb-relay-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.bb-relay-back img {
  width: 40px;
  height: 40px;
}
.bb-relay-title {
  font-size: 28px;
  font-weight: 500;
  color: #202224;
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-variation-settings:
    'YTLC' 500,
    'wdth' 100;
  letter-spacing: -0.1143px;
  white-space: nowrap;
}
.bb-relay-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bb-relay-auto-label {
  font-size: 13px;
  font-weight: 400;
  color: #212b36;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 26px;
  white-space: nowrap;
}
.bb-relay-live-badge {
  background: #5ecfff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  padding: 0 6px;
  height: 23px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bb-relay-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ----- Relay Inning Tabs (Figma 199:1112) ----- */
.bb-relay-innings {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  overflow-x: auto;
  align-items: center;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #092077;
  margin: 0 16px;
  height: 40px;
}
.bb-relay-innings::-webkit-scrollbar {
  display: none;
}
.bb-relay-inning-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 33px;
  height: 40px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
  transition: var(--bb-transition);
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  letter-spacing: -0.408px;
  font-variation-settings: 'wght' 400;
  white-space: nowrap;
}
.bb-relay-inning-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}
.bb-relay-inning-tab.active {
  color: #ff5470;
  font-weight: 700;
}

/* ----- Relay Body ----- */
.bb-relay-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px 16px;
  overflow-y: auto;
}

/* ----- Relay Inning Header (Figma 199:2517) ----- */
.bb-relay-inning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 0 8px;
  border-top: 1px solid #454545;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
}
.bb-relay-inning-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}
.bb-relay-inning-icon img {
  width: 100%;
  height: 100%;
}
.bb-relay-inning-label {
  font-size: 18px;
  font-weight: 700;
  color: #212b36;
}
.bb-relay-inning-team {
  font-size: 16px;
  font-weight: 400;
  color: #212b36;
}

/* ===== Cast List - Batter At-bat Card (Figma 199:2527) ===== */
.bb-cast-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  border-radius: 5px;
  margin-bottom: 0;
  background: #f8f8f8;
  overflow: hidden;
  padding: 10px 16px;
}

/* Cast Header: batter card + pitcher */
.bb-cast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bb-cast-batter-card {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: #fff;
  border-radius: 10px;
  width: 270px;
  flex-shrink: 0;
}
.bb-cast-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.bb-cast-info {
  flex: 1;
  min-width: 0;
}
.bb-cast-name {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  line-height: 22px;
  width: 190px;
}
.bb-cast-avg {
  font-size: 13px;
  font-weight: 300;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-cast-stats {
  font-size: 13px;
  font-weight: 500;
  color: #777777;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wght' 400;
  line-height: 16px;
  white-space: normal;
  word-break: break-all;
  width: 184px;
  margin-top: 2px;
}
.bb-cast-sep {
  font-weight: 300;
  color: #ccc;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
}

/* Pitcher section */
.bb-cast-pitcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 83px;
}
.bb-cast-pitcher-label {
  font-size: 10px;
  color: #bdbdbd;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wght' 400;
  text-align: center;
  line-height: 16px;
  letter-spacing: -0.408px;
  order: -1;
}
.bb-cast-pitcher-avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.bb-cast-pitcher-name {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wght' 400;
  white-space: nowrap;
  text-align: center;
  line-height: 16px;
  letter-spacing: -0.408px;
}

/* ===== Cast Content (Figma: flex-col gap 7px, py 5px) ===== */
.bb-cast-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 5px 0;
}
.bb-cast-pitch-row {
  display: flex;
  align-items: center;
  padding: 0;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-cast-pitch-no {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.408px;
}
/* Pitch circle colors from Figma */
.bb-cast-pitch-no.strike {
  background: #ecbf15;
}
.bb-cast-pitch-no.ball {
  background: #55d522;
}
.bb-cast-pitch-no.foul {
  background: #d58722;
}
.bb-cast-pitch-no.hit {
  background: #3283fd;
}
.bb-cast-pitch-type {
  width: 124px;
  font-size: 16px;
  font-weight: 300;
  color: #202020;
  margin-left: 9px;
  letter-spacing: -0.408px;
  line-height: 22px;
}
.bb-cast-pitch-count {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  min-width: 33px;
  text-align: center;
  line-height: 22px;
  letter-spacing: -0.408px;
}
.bb-cast-pitch-speed {
  font-size: 16px;
  font-weight: 400;
  color: #777777;
  margin-left: auto;
  line-height: 22px;
  letter-spacing: -0.408px;
  white-space: nowrap;
}

/* ===== Cast Result Badge (Figma: bg #092077, border 1px black, r19px, h38px) ===== */
.bb-cast-result {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0 10px;
  background: #092077;
  border: 1px solid #000;
  border-radius: 19px;
  height: 38px;
  font-size: 18px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -0.408px;
}
.bb-cast-result-text {
  color: #fff;
  white-space: nowrap;
}
.bb-cast-result-label {
  font-weight: 300;
}
.bb-cast-result-value {
  font-weight: 600;
}

/* ===== Cast Extra Row (runner/error badges - separate pills) ===== */
.bb-cast-extra-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bb-cast-extra {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 38px;
  font-size: 18px;
  color: #000;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
  background: #fff;
  border: 1px solid #000;
  border-radius: 19px;
  letter-spacing: -0.408px;
  white-space: nowrap;
}
.bb-cast-extra-label {
  font-weight: 300;
}
.bb-cast-extra-value {
  font-weight: 600;
}
/* Error badge: all text in coral #FF5470 */
.bb-cast-extra.error {
  color: #ff5470;
}
.bb-cast-extra.error .bb-cast-extra-label,
.bb-cast-extra.error .bb-cast-extra-value {
  color: #ff5470;
}
/* Diamond badge (separate pill next to runner badge) */
.bb-cast-diamond-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 38px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 19px;
}
.bb-cast-base {
  font-size: 20px;
  font-weight: 700;
  color: #efefef;
  font-family: 'Roboto', 'Noto Sans', sans-serif;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -0.408px;
  line-height: 22px;
}
.bb-cast-base.active {
  color: #ecbf15;
}

/* ===== Cast Divider (Figma: dashed line #C2CFDB) ===== */
.bb-cast-divider {
  height: 10px;
  display: flex;
  align-items: center;
  position: relative;
}
.bb-cast-divider::after {
  content: '';
  display: block;
  width: 100%;
  height: 0;
  border-top: 1px dashed #c2cfdb;
}

/* ===== Cast Events (Figma: 30px height, gap 8px) ===== */
.bb-cast-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  height: 30px;
  font-size: 16px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wdth' 100;
}
.bb-cast-event-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 50%;
}
.bb-cast-event-desc {
  font-size: 16px;
  font-weight: 300;
  color: #000;
  line-height: 30px;
  letter-spacing: -0.408px;
}
.bb-cast-event-label {
  font-weight: 700;
}
.bb-cast-event.move .bb-cast-event-label {
  color: #16d7ec;
}
.bb-cast-event.sub .bb-cast-event-label {
  color: #28d046;
}
.bb-cast-event.out .bb-cast-event-label {
  color: #ff5470;
  font-weight: 600;
}
.bb-cast-event.mound .bb-cast-event-label {
  color: #92400e;
}
.bb-cast-event-sub-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

/* ===== Relay Inning Summary (Figma 199:2965: bg #efefef, h40px) ===== */
.bb-relay-inning-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  background: #efefef;
  border: none;
  border-radius: 5px;
  font-family: 'Poppins', 'Noto Sans KR', sans-serif;
  font-variation-settings: 'wght' 400;
}
.bb-relay-summary-label {
  font-size: 16px;
  font-weight: 500;
  color: #9f9f9f;
  text-align: center;
  width: 98px;
  flex-shrink: 0;
  letter-spacing: -0.408px;
  line-height: 22px;
}
.bb-relay-summary-stat {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: center;
  width: 70px;
  flex-shrink: 0;
  letter-spacing: -0.408px;
  line-height: 22px;
}
.bb-relay-summary-top {
  margin-left: auto;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== Team Sub-Tabs (Mobile-only, desktop hidden) ===== */
.bb-team-tabs {
  display: none;
}

/* ======================================================
   Responsive Design
   ====================================================== */
@media all and (max-width: 1200px) {
  .bb-content {
    padding: 20px 0 40px;
  }
  .bb-page-title {
    font-size: 36px;
  }
  .bb-section-title {
    font-size: 20px;
  }
  .bb-tabs {
    height: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bb-tab {
    padding: 0 16px;
    font-size: 14px;
    min-height: 48px;
  }
  .bb-tab.active {
    font-size: 15px;
  }
  .bb-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bb-card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bb-card-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bb-top-carousel {
    height: auto;
    padding: 8px 16px;
    flex-wrap: wrap;
  }
  .bb-top-carousel-arrows {
    gap: 8px;
    padding-right: 10px;
  }
  .bb-top-carousel-arrow {
    width: 56px;
    height: 56px;
  }
  .bb-top-carousel-arrow img {
    width: 56px;
    height: 56px;
  }
  .bb-top-carousel-card {
    width: 150px;
    height: 100px;
    padding: 15px 22px 17px 18px;
  }
  .bb-top-carousel-card::before {
    left: 14px;
    top: 15px;
    width: 122px;
    height: 70px;
  }
  .bb-top-card-divider {
    left: 136px;
    top: 15px;
    height: 70px;
  }
  .bb-score-chart {
    max-width: 100%;
    overflow-x: auto;
  }
  .bb-boxscore-layout {
    flex-direction: column;
    gap: 0;
  }
  .bb-boxscore-main {
    flex: none;
    max-width: 100%;
    overflow-x: clip;
  }
  .bb-boxscore-side {
    flex: none;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    margin-top: 20px;
    display: none;
    position: relative;
    z-index: 1000;
  }
  /* 위로가기 버튼이 사이드패널과 겹치지 않도록 */
  body:has(.bb-wrap) #top_btn {
    right: 10px;
    bottom: 10px !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 24px;
  }
  /* 모바일: 중계 탭 활성화 시에만 사이드패널 표시 */
  .bb-boxscore-side.bb-relay-active {
    display: block;
  }
  .bb-sb-hero {
    height: auto;
    min-height: 220px;
  }
  .bb-sb-inning-wrap {
    margin-top: 10px;
    margin-left: 16px;
    margin-right: 16px;
    align-self: stretch;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bb-sb-inning-wrap::-webkit-scrollbar {
    display: none;
  }
  .bb-sb-teams-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .bb-sb-score-num {
    font-size: 36px;
  }
  .bb-sb-team-name {
    font-size: 18px;
  }
  .bb-pitcher-carousel {
    padding: 16px 10px;
    gap: 10px;
  }
  .bb-bs-tables {
    flex-direction: column;
    gap: 20px;
  }
  .bb-bs-table-half,
  .bb-bs-tables > .bb-scroll-outer {
    max-width: 100%;
  }
  .bb-bs-substitutions,
  .bb-bs-hit-records,
  .bb-bs-pitcher-extras {
    flex-direction: column;
    gap: 0;
  }
  .bb-bs-two-col-area::before {
    display: none;
  }
  .bb-bs-sub-half:first-child,
  .bb-bs-hit-half:first-child,
  .bb-bs-pitcher-extra-half:first-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  /* Team sub-tabs */
  .bb-team-tabs {
    display: flex;
    gap: 0;
    margin: 0 auto 20px;
    max-width: min(1060px, 100%);
    padding: 0 11px;
    box-sizing: border-box;
  }
  .bb-team-tab {
    flex: 1;
    height: 44px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-family: 'Roboto', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .bb-team-tab:first-child {
    border-radius: 10px 0 0 10px;
    border-right: none;
  }
  .bb-team-tab:last-child {
    border-radius: 0 10px 10px 0;
  }
  .bb-team-tab.active {
    background: #092077;
    color: #fff;
    border-color: #092077;
    font-weight: 600;
  }
  /* Team filtering: active team only (exclude tab buttons) */
  .bb-tab-content[data-tab-content='record'][data-active-team='away']
    .bb-bs-table-half[data-team='home'],
  .bb-tab-content[data-tab-content='record'][data-active-team='away']
    .bb-bs-sub-half[data-team='home'],
  .bb-tab-content[data-tab-content='record'][data-active-team='away']
    .bb-bs-hit-half[data-team='home'],
  .bb-tab-content[data-tab-content='record'][data-active-team='away']
    .bb-bs-pitcher-extra-half[data-team='home'],
  .bb-tab-content[data-tab-content='record'][data-active-team='home']
    .bb-bs-table-half[data-team='away'],
  .bb-tab-content[data-tab-content='record'][data-active-team='home']
    .bb-bs-sub-half[data-team='away'],
  .bb-tab-content[data-tab-content='record'][data-active-team='home']
    .bb-bs-hit-half[data-team='away'],
  .bb-tab-content[data-tab-content='record'][data-active-team='home']
    .bb-bs-pitcher-extra-half[data-team='away'] {
    display: none;
  }
  .bb-bs-extra {
    flex-direction: column;
  }
  .bb-score-board {
    padding: 20px;
  }
  .bb-score-board-header {
    gap: 20px;
  }
  .bb-score-num {
    font-size: 32px;
  }
  .bb-stat-row {
    flex-wrap: wrap;
  }
  .bb-stat-box {
    min-width: calc(50% - 10px);
  }
  .bb-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .bb-filter-select {
    width: 100%;
  }
  .bb-score-card {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .bb-score-card-team {
    justify-content: center;
    min-width: auto;
  }
  .bb-score-card-team.home {
    justify-content: center;
    text-align: center;
  }
  .bb-score-card-meta {
    text-align: center;
  }
  .bb-cover {
    height: 180px;
  }
  .bb-profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bb-profile-avatar {
    width: 120px;
    height: 120px;
  }
  .bb-profile-meta {
    justify-content: center;
  }
  .bb-detail-stats {
    flex-wrap: wrap;
  }
  .bb-detail-stat-item {
    min-width: calc(33% - 12px);
  }
  .bb-team-info-grid {
    grid-template-columns: 1fr;
  }
  .bb-calendar-day {
    min-height: 60px;
    padding: 4px;
  }
  .bb-calendar-event {
    font-size: 10px;
  }
  .bb-table td,
  .bb-table th {
    height: auto;
    padding: 8px 12px;
  }
  /* Menu tabs: horizontal scroll on tablet */
  .bb-sb-menu {
    gap: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    height: auto;
  }
  .bb-sb-menu::-webkit-scrollbar {
    display: none;
  }
  .bb-sb-menu a {
    font-size: 20px;
  }
  .bb-sb-menu a:hover,
  .bb-sb-menu a.active {
    font-size: 24px;
  }
  /* Pitcher carousel compact */
  .bb-pitcher-carousel {
    padding: 0 10px;
    gap: 10px;
  }
  .bb-pitcher-arrow {
    width: 36px;
    height: 36px;
  }
  .bb-pitcher-arrow img {
    width: 36px;
    height: 36px;
  }
  .bb-pitcher-card {
    min-width: 110px;
    padding: 8px;
    gap: 8px;
  }
  .bb-pitcher-card-img {
    width: 80px;
    height: 80px;
  }
  .bb-pitcher-card-img img,
  .bb-pitcher-card-img .bb-pitcher-card-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .bb-pitcher-card-role {
    height: 30px;
    border-radius: 0 0 20px 20px;
    font-size: 11px;
  }
  /* Score chart: tighter */
  .bb-chart-headers {
    padding: 0 10px;
  }
  .bb-chart-header-left,
  .bb-chart-header-right {
    font-size: 16px;
  }
  .bb-chart-cat-label {
    font-size: 13px;
    min-width: 40px;
  }
  .bb-chart-axis-num {
    font-size: 14px;
  }
  /* Officials */
  .bb-bs-official-row {
    padding: 6px 10px;
    gap: 8px;
  }
  .bb-bs-official-persons {
    gap: 8px;
  }
  /* Boxscore side panel: full width with padding */
  .bb-boxscore-side {
    margin: 0;
  }
  .bb-relay-header {
    padding: 16px 12px 8px;
  }
  .bb-relay-title {
    font-size: 22px;
  }
  .bb-relay-innings {
    margin: 0 12px;
  }
  .bb-cast-list {
    padding: 8px 12px;
  }
  /* ----- Mobile optimization (merged from 768px) ----- */
  .bb-wrap {
    padding: 0 16px;
  }
  /* Top carousel: compact horizontal scroll */
  .bb-top-carousel {
    height: 90px;
    padding: 0 12px;
    border-radius: 12px;
    margin-bottom: 24px;
  }
  .bb-top-carousel-arrows {
    display: none;
  }
  .bb-top-carousel-card {
    width: 140px;
    height: 90px;
    padding: 12px 14px;
  }
  .bb-top-carousel-card::before {
    left: 10px;
    top: 12px;
    width: 120px;
    height: 66px;
  }
  .bb-top-card-divider {
    left: 132px;
    top: 12px;
    height: 66px;
  }
  .bb-top-card-team-name {
    font-size: 14px;
    width: 70px;
  }
  .bb-top-card-score {
    font-size: 16px;
    width: 30px;
  }
  .bb-top-card-date {
    font-size: 11px;
  }
  /* Scoreboard hero: tighter */
  .bb-sb-hero {
    min-height: 200px;
    border-radius: 14px;
  }
  .bb-sb-hero-inner {
    padding: 10px 0 0;
  }
  .bb-sb-tournament {
    font-size: 13px;
  }
  .bb-sb-teams-row {
    flex-wrap: nowrap;
    gap: 0;
    max-width: calc(100% - 20px);
  }
  .bb-sb-team-info {
    min-width: 0;
    flex: 1;
    gap: 6px;
  }
  .bb-sb-team-logo {
    width: 36px;
    height: 32px;
  }
  .bb-sb-score-num {
    font-size: 32px;
    width: 44px;
  }
  .bb-sb-team-name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bb-sb-score-center {
    min-width: 120px;
    flex-shrink: 0;
  }
  .bb-sb-datetime {
    font-size: 12px;
  }
  .bb-sb-venue {
    font-size: 10px;
  }
  .bb-sb-btn-box,
  .bb-sb-btn-plays {
    display: none;
  }
  .bb-sb-inning-wrap {
    margin-bottom: 16px;
  }
  .bb-sb-inning-cell {
    width: 36px;
    min-width: 24px;
    font-size: 14px;
    flex: 1 1 0;
  }
  .bb-sb-inning-header,
  .bb-sb-inning-row {
    height: 26px;
    font-size: 14px;
  }
  .bb-sb-inning-cell.team-name {
    width: 70px;
    min-width: 50px;
    font-size: 14px;
    padding-left: 6px;
  }
  /* Menu tabs: mobile-friendly with active indicator */
  .bb-sb-menu {
    gap: 24px;
    height: auto;
    margin: 16px 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bb-border);
    overflow: visible;
    align-items: baseline;
  }
  .bb-sb-menu a {
    font-size: 17px;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
  }
  .bb-sb-menu a:hover,
  .bb-sb-menu a.active {
    font-size: 17px;
    border-bottom-color: var(--bb-primary);
  }
  /* Boxscore tab content */
  .bb-boxscore-main .bb-tab-content {
    border-radius: 14px;
    padding: 20px 16px;
  }
  .bb-boxscore-main .bb-tab-content.active {
    padding-top: 20px;
  }
  /* Score chart: prevent overflow */
  .bb-score-chart {
    overflow: hidden;
    padding: 12px 8px;
  }
  .bb-chart-body {
    overflow: hidden;
  }
  .bb-chart-side {
    min-width: 0;
    overflow: hidden;
  }
  .bb-chart-bars {
    overflow: hidden;
    min-width: 0;
  }
  .bb-chart-grid {
    min-width: 0;
  }
  .bb-chart-bar {
    max-width: 100%;
  }
  /* Pitcher carousel: hide arrows, scroll only */
  .bb-pitcher-carousel {
    padding: 0 12px;
    gap: 8px;
  }
  .bb-pitcher-arrow {
    display: none;
  }
  .bb-pitcher-cards {
    gap: 12px;
  }
  .bb-pitcher-card {
    min-width: 100px;
    gap: 6px;
    padding: 6px;
  }
  .bb-pitcher-card-img {
    width: 72px;
    height: 72px;
  }
  .bb-pitcher-card-img img,
  .bb-pitcher-card-img .bb-pitcher-card-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .bb-pitcher-card-role {
    height: 26px;
    border-radius: 0 0 18px 18px;
    font-size: 10px;
  }
  .bb-pitcher-card-name {
    font-size: 14px;
  }
  .bb-pitcher-card-stats {
    font-size: 13px;
    line-height: 18px;
  }
  /* Tables: comfortable */
  .bb-bs-tables {
    padding: 0;
    gap: 20px;
    margin-bottom: 28px;
  }
  .bb-bs-table {
    min-width: 340px;
  }
  .bb-bs-table-half {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bb-bs-table th,
  .bb-bs-table td {
    height: 52px;
    font-size: 13px;
    padding: 0 2px;
  }
  .bb-bs-table th.col-name {
    width: 100px;
    padding-left: 8px;
    font-size: 14px;
  }
  .bb-bs-table td.col-name {
    width: 100px;
  }
  .bb-bs-player-cell {
    gap: 6px;
    padding: 6px 2px 6px 0;
  }
  .bb-bs-player-order {
    font-size: 13px;
    min-width: 18px;
  }
  .bb-bs-player-name {
    font-size: 14px;
  }
  .bb-bs-player-pos {
    font-size: 11px;
  }
  .bb-bs-total-label {
    padding-left: 8px;
    font-size: 14px;
  }
  .bb-bs-table tr.total-row td {
    height: 32px;
  }
  /* Section gaps */
  .bb-bs-substitutions,
  .bb-bs-hit-records,
  .bb-bs-pitcher-extras {
    margin-bottom: 28px;
    padding: 0;
  }
  .bb-bs-sub-half:first-child,
  .bb-bs-hit-half:first-child,
  .bb-bs-pitcher-extra-half:first-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  .bb-team-tabs {
    padding: 0;
    margin-bottom: 20px;
  }
  .bb-team-tab {
    height: 42px;
    font-size: 15px;
  }
  .bb-bs-divider {
    margin: 28px auto;
  }
  /* Score chart */
  .bb-score-chart {
    padding: 12px 0;
    margin-bottom: 28px;
  }
  .bb-chart-header-left,
  .bb-chart-header-right {
    font-size: 15px;
  }
  .bb-chart-axis-labels {
    min-width: 24px;
    padding: 0 4px;
  }
  .bb-chart-axis-num {
    font-size: 13px;
  }
  .bb-chart-cat-label {
    font-size: 12px;
    min-width: 36px;
  }
  .bb-chart-center-labels {
    min-width: 40px;
    padding: 0 2px;
  }
  /* Officials */
  .bb-bs-officials {
    margin-bottom: 28px;
    padding: 6px 0;
  }
  .bb-bs-official-row {
    gap: 8px;
    padding: 6px 0;
  }
  .bb-bs-official-persons {
    gap: 8px;
  }
  .bb-bs-official-label {
    font-size: 11px;
    width: 48px;
  }
  .bb-bs-official-name {
    font-size: 13px;
    padding: 0 2px;
  }
  .bb-bs-official-avatar {
    width: 24px;
    height: 24px;
    border-radius: 12px;
  }
  /* Game info */
  .bb-bs-gameinfo {
    margin-bottom: 28px;
    padding: 0;
    gap: 8px;
  }
  .bb-bs-gameinfo-label {
    font-size: 14px;
    min-width: 80px;
  }
  .bb-bs-gameinfo-label.short {
    min-width: 50px;
  }
  .bb-bs-gameinfo-value {
    font-size: 13px;
  }
  /* Relay panel: mobile friendly */
  .bb-relay-header {
    padding: 12px 12px 8px;
  }
  .bb-relay-title {
    font-size: 20px;
  }
  .bb-relay-innings {
    margin: 0 8px;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
  }
  .bb-relay-inning-tab {
    font-size: 15px;
  }
  .bb-cast-list {
    padding: 8px 10px;
    gap: 8px;
  }
  .bb-cast-batter-card {
    width: 100%;
    max-width: none;
  }
  .bb-relay-inning-header {
    padding: 8px 0 6px;
    gap: 2px;
  }
  .bb-relay-inning-icon {
    width: 26px;
    height: 26px;
  }
  .bb-relay-inning-icon img {
    width: 26px;
    height: 26px;
  }
  .bb-relay-inning-label {
    font-size: 16px;
  }
  .bb-relay-inning-team {
    font-size: 14px;
  }
  /* ----- Small phone (600px) ----- */
  .bb-wrap {
    padding: 0 10px;
  }
  .bb-boxscore-main .bb-tab-content {
    border-radius: 12px;
    padding: 16px 14px;
  }
  .bb-page-title {
    font-size: 28px;
  }
  .bb-card-grid,
  .bb-card-grid-3,
  .bb-card-grid-5 {
    grid-template-columns: 1fr;
  }
  .bb-stat-box {
    min-width: 100%;
  }
  .bb-detail-stat-item {
    min-width: calc(50% - 8px);
  }
  .bb-score-num {
    font-size: 24px;
  }
  .bb-table {
    font-size: 13px;
  }
  .bb-table th,
  .bb-table td {
    padding: 0 8px;
    height: 48px;
  }
  /* Top carousel: minimal */
  .bb-top-carousel {
    height: 100px;
    padding: 0 8px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .bb-top-carousel-card {
    width: 130px;
    height: 100px;
    padding: 10px 12px;
  }
  .bb-top-carousel-card::before {
    left: 8px;
    top: 10px;
    width: 116px;
    height: 80px;
  }
  .bb-top-card-divider {
    left: 124px;
    top: 10px;
    height: 80px;
  }
  .bb-top-card-team-name {
    font-size: 13px;
    width: 60px;
  }
  .bb-top-card-score {
    font-size: 15px;
    width: 26px;
  }
  .bb-top-card-date {
    font-size: 10px;
  }
  /* Scoreboard: compact */
  .bb-sb-hero {
    min-height: 170px;
    border-radius: 12px;
  }
  .bb-sb-hero-inner {
    padding: 8px 0 0;
  }
  .bb-sb-tournament {
    font-size: 11px;
  }
  .bb-sb-team-logo {
    width: 30px;
    height: 26px;
  }
  .bb-sb-team-info,
  .bb-sb-team-info.away,
  .bb-sb-team-info.home {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
  }
  .bb-sb-team-info.away,
  .bb-sb-team-info.home {
    justify-content: center;
  }
  .bb-sb-score-num {
    font-size: 28px;
    width: 40px;
  }
  .bb-sb-team-name {
    font-size: 12px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    order: 1;
  }
  .bb-sb-team-logo {
    order: 0;
  }
  .bb-sb-score-center {
    min-width: 90px;
  }
  /* Live badge: move above scores */
  .bb-sb-score-center > .bb-sb-badge-live,
  .bb-sb-score-center > .bb-sb-badge-end {
    position: static;
    transform: none;
    margin-bottom: 2px;
  }
  .bb-sb-scores {
    gap: 40px;
  }
  /* Inning table team name: show full name, fixed width for column alignment */
  .bb-sb-inning-cell.team-name {
    width: 72px;
    min-width: 72px;
    font-size: 10px;
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
    flex: 0 0 72px;
    overflow: visible;
    text-overflow: unset;
  }
  .bb-sb-datetime {
    font-size: 12px;
  }
  .bb-sb-venue {
    font-size: 10px;
  }
  .bb-sb-badge-live,
  .bb-sb-badge-end {
    height: 20px;
    font-size: 12px;
    min-width: 38px;
  }
  .bb-sb-inning-wrap {
    margin-bottom: 12px;
    margin-left: 12px;
    margin-right: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bb-sb-inning-cell {
    width: 22px;
    min-width: 18px;
    font-size: 11px;
    padding: 0 1px;
    flex: 1 1 0;
  }
  .bb-sb-inning-cell.summary {
    min-width: 20px;
  }
  .bb-sb-inning-header,
  .bb-sb-inning-row {
    height: 22px;
    font-size: 11px;
    flex-wrap: nowrap;
  }
  /* buttons hidden via 768px rule */
  /* Menu tabs: phone size */
  .bb-sb-menu {
    gap: 20px;
    height: auto;
    padding: 10px 12px 0;
    overflow: visible;
    align-items: baseline;
  }
  .bb-sb-menu a {
    font-size: 16px;
  }
  .bb-sb-menu a:hover,
  .bb-sb-menu a.active {
    font-size: 16px;
  }
  /* Pitcher carousel */
  .bb-pitcher-carousel {
    margin-bottom: 20px;
  }
  .bb-pitcher-card {
    min-width: 90px;
  }
  .bb-pitcher-card-img {
    width: 64px;
    height: 64px;
  }
  .bb-pitcher-card-img img,
  .bb-pitcher-card-img .bb-pitcher-card-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .bb-pitcher-card-role {
    height: 22px;
    border-radius: 0 0 16px 16px;
    font-size: 9px;
  }
  .bb-pitcher-card-name {
    font-size: 13px;
  }
  .bb-pitcher-card-stats {
    font-size: 12px;
    line-height: 16px;
  }
  /* Tables */
  .bb-bs-tables {
    padding: 0;
    gap: 16px;
    margin-bottom: 24px;
  }
  .bb-bs-table {
    min-width: 0;
    width: 100%;
  }
  .bb-bs-table th,
  .bb-bs-table td {
    height: 44px;
    font-size: 12px;
    line-height: 14px;
  }
  .bb-bs-table th.col-name {
    width: 110px;
    padding-left: 24px;
    font-size: 12px;
    text-align: left;
  }
  .bb-bs-table td.col-name {
    width: 110px;
    overflow: hidden;
  }
  .bb-bs-table .bb-bs-player-cell {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bb-bs-table th.col-stat {
    width: 22px;
  }
  .bb-bs-table td.col-stat {
    width: 22px;
  }
  .bb-bs-table th.col-avg {
    width: 38px;
  }
  .bb-bs-table td.col-avg {
    width: 38px;
    font-size: 11px;
  }
  .bb-bs-player-cell {
    gap: 4px;
    padding: 4px 2px 4px 0;
  }
  .bb-bs-player-order {
    font-size: 12px;
    min-width: 16px;
  }
  .bb-bs-player-name {
    font-size: 13px;
    line-height: 20px;
  }
  .bb-bs-player-pos {
    font-size: 10px;
    line-height: 16px;
  }
  .bb-bs-total-label {
    padding-left: 24px;
    font-size: 13px;
  }
  .bb-bs-table tr.total-row td {
    height: 28px;
  }
  .bb-bs-table th.col-name,
  .bb-bs-table td.col-name {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }
  .bb-bs-table th.col-name {
    z-index: 3;
  }
  .bb-bs-table tr.total-row td.col-name {
    background: #fff;
  }
  /* Sub/hit/extra sections */
  .bb-bs-substitutions,
  .bb-bs-hit-records,
  .bb-bs-pitcher-extras {
    margin-bottom: 24px;
    padding: 0;
  }
  .bb-bs-sub-half:first-child,
  .bb-bs-hit-half:first-child,
  .bb-bs-pitcher-extra-half:first-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  .bb-team-tabs {
    padding: 0;
    margin-bottom: 18px;
  }
  .bb-team-tab {
    height: 40px;
    font-size: 14px;
  }
  .bb-team-tab:first-child {
    border-radius: 8px 0 0 8px;
  }
  .bb-team-tab:last-child {
    border-radius: 0 8px 8px 0;
  }
  .bb-bs-sub-inning {
    width: 44px;
    font-size: 14px;
  }
  .bb-bs-sub-desc {
    font-size: 13px;
    line-height: 20px;
  }
  .bb-bs-hit-label {
    width: 40px;
    font-size: 14px;
  }
  .bb-bs-hit-value {
    font-size: 13px;
    line-height: 18px;
  }
  .bb-bs-pitcher-extra-label {
    font-size: 13px;
    line-height: 20px;
    min-width: 0;
    word-break: keep-all;
  }
  .bb-bs-pitcher-extra-value {
    font-size: 13px;
    line-height: 20px;
  }
  .bb-bs-divider {
    margin: 24px auto;
  }
  /* Score chart */
  .bb-score-chart {
    padding: 8px 0;
    margin-bottom: 24px;
  }
  .bb-chart-headers {
    margin-bottom: 10px;
  }
  .bb-chart-header-left,
  .bb-chart-header-right {
    font-size: 14px;
  }
  .bb-chart-bar {
    height: 16px;
  }
  .bb-chart-bars {
    gap: 5px;
  }
  .bb-chart-center-labels {
    min-width: 34px;
  }
  .bb-chart-cat-label {
    font-size: 11px;
    height: 23px;
    line-height: 23px;
  }
  .bb-chart-axis-num {
    font-size: 12px;
    height: 23px;
    line-height: 23px;
  }
  .bb-chart-axis-labels {
    min-width: 20px;
    padding: 0 2px;
  }
  /* Officials */
  .bb-bs-officials {
    margin-bottom: 24px;
  }
  .bb-bs-official-label {
    width: auto;
    min-width: 36px;
    font-size: 10px;
    white-space: nowrap;
  }
  .bb-bs-official-person {
    padding: 2px;
  }
  .bb-bs-official-avatar {
    width: 22px;
    height: 22px;
    border-radius: 11px;
  }
  .bb-bs-official-name {
    font-size: 12px;
  }
  /* Game info */
  .bb-bs-gameinfo {
    margin-bottom: 24px;
    padding: 0;
    gap: 6px;
  }
  .bb-bs-gameinfo-label {
    font-size: 13px;
    min-width: auto;
    margin-right: 8px;
    white-space: nowrap;
  }
  .bb-bs-gameinfo-label.short {
    min-width: auto;
  }
  .bb-bs-gameinfo-value {
    font-size: 13px;
    white-space: normal;
  }
  /* Relay panel */
  .bb-relay-innings {
    height: 34px;
    gap: 6px;
    padding: 0 10px;
    margin: 0 6px;
  }
  .bb-relay-inning-tab {
    font-size: 14px;
  }
  .bb-cast-batter-card {
    padding: 10px;
  }
  .bb-cast-batter-avatar {
    width: 50px;
    height: 50px;
  }
  .bb-cast-batter-name {
    font-size: 16px;
  }
  .bb-cast-batter-avg {
    font-size: 12px;
  }
  .bb-cast-pitcher-avatar {
    width: 36px;
    height: 36px;
  }
  .bb-cast-pitcher-name {
    font-size: 12px;
  }
  .bb-cast-pitch-circle {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .bb-cast-pitch-type {
    font-size: 14px;
  }
  .bb-cast-result {
    height: 32px;
    font-size: 15px;
  }
}

/* =====================================================
   Schedule Page (일정결과) - bb-sch-*
   Figma: file gR5LPtyiO2AqERESy0nO8p, node 363:5102
   ===================================================== */

.bb-schedule {
  max-width: 1652px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ----- Filter Bar ----- */
.bb-sch-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.bb-sch-filter-select {
  position: relative;
}
.bb-sch-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 9px 36px 9px 15px;
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-gray);
  cursor: pointer;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 80px;
}
.bb-sch-select.wide {
  min-width: 200px;
}
/* ----- Custom Select Dropdown ----- */
.bb-custom-select {
  position: relative;
}
.bb-custom-select-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 9px 36px 9px 15px;
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-gray);
  cursor: pointer;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  height: 40px;
  min-width: 80px;
  text-align: left;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.bb-custom-select.wide .bb-custom-select-trigger {
  min-width: 200px;
}
.bb-custom-select.open .bb-custom-select-trigger {
  border-color: var(--bb-primary);
}
.bb-custom-select-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px 0;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  z-index: 100;
  min-width: 100%;
  max-height: 200px;
  overflow-y: auto;
}
.bb-custom-select.open .bb-custom-select-list {
  display: block;
}
.bb-custom-select-list li {
  padding: 8px 15px;
  font-family: var(--bb-font);
  font-size: 14px;
  color: var(--bb-dark);
  cursor: pointer;
  white-space: nowrap;
}
.bb-custom-select-list li:hover {
  background: #f1f5f9;
}
.bb-custom-select-list li.selected {
  color: var(--bb-primary);
  font-weight: 600;
}

.bb-sch-filter-btn {
  background: var(--bb-primary);
  color: var(--bb-gray-bg);
  border: none;
  border-radius: var(--bb-radius-sm);
  padding: 0 30px;
  height: 40px;
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--bb-transition);
}
.bb-sch-filter-btn:hover {
  opacity: 0.9;
}

/* ----- Month Card (white container) ----- */
.bb-sch-month-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  padding: 0 34px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}
.bb-sch-year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.bb-sch-recent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
  border: 1px solid #232323;
  border-radius: var(--bb-radius-pill);
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #232323;
  text-decoration: none;
  transition: var(--bb-transition);
}
.bb-sch-recent-btn:hover {
  background: #232323;
  color: var(--bb-white);
}
.bb-sch-year-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  text-decoration: none;
  transition: var(--bb-transition);
}
.bb-sch-year-arrow img {
  display: block;
  width: 23px;
  height: 23px;
}
.bb-sch-year-arrow:hover {
  opacity: 0.7;
}
.bb-sch-year-label {
  font-family: var(--bb-font);
  font-size: 30px;
  font-weight: 800;
  color: #0c1030;
  min-width: 80px;
  text-align: center;
}
.bb-sch-calendar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
}
.bb-sch-calendar-icon .bb-cal-icon-active {
  display: none;
}
.bb-sch-calendar-icon.active .bb-cal-icon-default {
  display: none;
}
.bb-sch-calendar-icon.active .bb-cal-icon-active {
  display: block;
}
.bb-sch-calendar-icon img,
.bb-sch-calendar-icon svg {
  display: block;
}

/* ----- Month Tabs ----- */
.bb-sch-month-tabs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  width: 100%;
  overflow-x: auto;
}
.bb-sch-month-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bb-font);
  font-size: 28px;
  font-weight: 500;
  color: var(--bb-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--bb-transition);
  line-height: 34px;
}
.bb-sch-month-tab:hover {
  color: #f57c7c;
}
.bb-sch-month-tab.active {
  color: #f57c7c;
}

/* ----- Team Filter ----- */
.bb-sch-team-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  min-height: 65px;
}
.bb-sch-team-filter-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 63px;
}
.bb-sch-team-filter-inner::-webkit-scrollbar {
  display: none;
}
.bb-sch-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  min-height: 60px;
  border: 1px solid transparent;
  border-radius: 30px;
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--bb-transition);
  background: transparent;
  flex-shrink: 0;
}
.bb-sch-team-chip:hover {
  background: rgba(60, 80, 224, 0.05);
}
.bb-sch-team-chip.active {
  background: var(--bb-white);
  border-color: var(--bb-white);
}
.bb-sch-team-chip.active span {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-size: 17px;
  color: #232323;
}
.bb-sch-team-logo {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}
.bb-sch-team-arrows {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.bb-sch-team-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
  transition: var(--bb-transition);
  padding: 0;
}
.bb-sch-team-arrow img {
  width: 20px;
  height: 20px;
}
.bb-sch-team-arrow:hover {
  background: #e0e0e0;
}

/* ----- Date Group ----- */
.bb-sch-date-group {
  margin-bottom: 20px;
}
.bb-sch-date-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bb-sch-date-label {
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #202224;
  letter-spacing: -0.11px;
}
.bb-sch-tournament-label {
  font-family: var(--bb-font);
  font-size: 20px;
  font-weight: 500;
  color: #212b36;
  text-align: right;
  line-height: 26px;
}

/* ----- Game Card ----- */
.bb-sch-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  overflow: hidden;
}
.bb-sch-card-divider {
  height: 1px;
  background: var(--bb-border);
  margin: 0;
}
.bb-sch-game-row {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 77px;
  gap: 16px;
}
.bb-sch-game-time {
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-dark);
  min-width: 47px;
}
.bb-sch-game-round {
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-dark);
  min-width: 45px;
}
.bb-sch-game-venue {
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-dark);
  min-width: 114px;
}

/* ----- Matchup ----- */
.bb-sch-game-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
}
.bb-sch-game-team {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bb-sch-game-team.away {
  flex-direction: row;
  justify-content: flex-end;
  min-width: 148px;
}
.bb-sch-game-team.home {
  flex-direction: row;
  justify-content: flex-start;
  min-width: 148px;
}
.bb-sch-game-team-name {
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-dark);
  line-height: 24px;
}
.bb-sch-game-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bb-sch-game-score {
  font-family: var(--bb-font);
  font-size: 20px;
  font-weight: 500;
  color: #625b71;
  min-width: 26px;
  text-align: center;
}
.bb-sch-game-score.win {
  color: #f57c7c;
}

/* ----- Status Badges ----- */
.bb-sch-game-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  text-align: center;
}
.bb-sch-game-status.scheduled {
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: #5dcfff;
  background: none;
  padding: 0;
}
.bb-sch-game-status.live {
  background: #5ecfff;
  color: var(--bb-white);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--bb-radius-badge);
  height: 23px;
  padding: 0 6px;
}
.bb-sch-game-status.end {
  background: #bababa;
  color: var(--bb-white);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--bb-radius-badge);
  height: 23px;
  padding: 0 6px;
}

/* ----- Action Buttons ----- */
.bb-sch-game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.bb-sch-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 40px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--bb-dark);
  text-decoration: none;
  transition: var(--bb-transition);
  white-space: nowrap;
  background: var(--bb-white);
}
.bb-sch-action-btn:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}

/* ----- More Button ----- */
.bb-sch-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.bb-sch-more-btn {
  background: #e7edff;
  border: 2px solid var(--bb-primary);
  border-radius: var(--bb-radius-sm);
  padding: 14px 0;
  width: 280px;
  font-family: var(--bb-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--bb-primary);
  cursor: pointer;
  transition: var(--bb-transition);
}
.bb-sch-more-btn:hover {
  background: var(--bb-primary);
  color: var(--bb-white);
}

/* ----- Calendar Popup ----- */
.bb-sch-cal-popup {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 412px;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: 2px;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  z-index: 100;
  padding: 24px 24px 28px;
  box-sizing: border-box;
}
.bb-sch-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bb-sch-cal-title {
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  color: #202224;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}
.bb-sch-cal-month-label {
  font-size: 20px;
}
.bb-sch-cal-year-label {
  font-size: 15px;
}
.bb-sch-cal-nav {
  display: flex;
  gap: 6px;
}
.bb-sch-cal-prev,
.bb-sch-cal-next {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #e7e9ee;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  color: #121212;
  opacity: 0.68;
  transition: var(--bb-transition);
  line-height: 1;
}
.bb-sch-cal-prev:hover,
.bb-sch-cal-next:hover {
  opacity: 1;
  background: #d8dae0;
}
.bb-sch-cal-divider {
  height: 1px;
  background: var(--bb-border);
  margin-bottom: 16px;
}
.bb-sch-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}
.bb-sch-cal-weekdays span {
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #202224;
  opacity: 0.65;
  line-height: 19px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}
.bb-sch-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
  margin-bottom: 20px;
}
.bb-sch-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #202224;
  opacity: 0.5;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
  border: none;
  background: none;
  padding: 0;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}
.bb-sch-cal-day:hover {
  background: rgba(96, 133, 255, 0.12);
  opacity: 0.8;
}
.bb-sch-cal-day.other-month {
  opacity: 0.25;
}
.bb-sch-cal-day.selected {
  background: #6085ff;
  color: #fff;
  opacity: 1;
}
.bb-sch-cal-day.today {
  border: 1px solid #6085ff;
  opacity: 0.7;
}
.bb-sch-cal-day.today.selected {
  border: none;
  opacity: 1;
}
.bb-sch-cal-hint {
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #434343;
  opacity: 0.83;
  text-align: center;
  margin: 0 0 16px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}
.bb-sch-cal-footer {
  display: flex;
  justify-content: center;
}
.bb-sch-cal-apply {
  position: relative;
  width: 129px;
  height: 36px;
  background: #4880ff;
  border: none;
  border-radius: 6px;
  font-family: 'Nunito Sans', 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: var(--bb-transition);
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}
.bb-sch-cal-apply::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 32.56%;
  right: 32.56%;
  height: 5px;
  background: #4880ff;
  filter: blur(8px);
  opacity: 0.48;
  border-radius: 2px;
}
.bb-sch-cal-apply:hover {
  background: #3a6ee6;
}

/* ----- Schedule Responsive ----- */
@media (max-width: 1200px) {
  .bb-sch-month-tab {
    font-size: 22px;
  }
  .bb-sch-year-label {
    font-size: 24px;
  }
  .bb-sch-date-label {
    font-size: 26px;
  }
  .bb-sch-tournament-label {
    font-size: 17px;
  }
  .bb-sch-game-row {
    gap: 12px;
    padding: 0 16px;
  }
}

@media (max-width: 980px) {
  .bb-schedule {
    padding: 20px 16px 50px;
  }
  .bb-sch-month-card {
    height: auto;
    padding: 20px;
    gap: 12px;
  }
  .bb-sch-month-tabs {
    grid-template-columns: repeat(6, 1fr);
  }
  .bb-sch-game-row {
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
    gap: 10px;
  }
  .bb-sch-game-venue {
    min-width: auto;
  }
  .bb-sch-game-matchup {
    width: 100%;
    order: 3;
  }
  .bb-sch-game-actions {
    width: 100%;
    order: 4;
    justify-content: center;
    padding-top: 8px;
  }
  .bb-sch-game-team.away,
  .bb-sch-game-team.home {
    min-width: 120px;
  }
  .bb-sch-date-header {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 768px) {
  .bb-sch-cal-popup {
    width: calc(100vw - 32px);
    max-width: 320px;
    right: -16px;
    padding: 16px 14px 18px;
  }
  .bb-sch-cal-day {
    font-size: 13px;
    border-radius: 8px;
  }
  .bb-sch-cal-weekdays span {
    font-size: 13px;
  }
  .bb-sch-cal-month-label {
    font-size: 16px;
  }
  .bb-sch-cal-year-label {
    font-size: 13px;
  }
  .bb-sch-cal-hint {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .bb-sch-cal-grid {
    row-gap: 2px;
    margin-bottom: 12px;
  }
  .bb-sch-calendar-icon img,
  .bb-sch-calendar-icon svg {
    width: 30px;
    height: 30px;
  }
  .bb-sch-filter-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .bb-sch-filter-select {
    flex: 0 0 auto;
  }
  .bb-sch-select {
    min-width: 0;
    width: auto;
    padding: 9px 28px 9px 10px;
    font-size: 13px;
    background-position: right 8px center;
    box-sizing: border-box;
  }
  .bb-sch-select.wide {
    min-width: 0;
    width: auto;
  }
  .bb-custom-select {
    width: 100%;
  }
  .bb-custom-select-trigger,
  .bb-custom-select.wide .bb-custom-select-trigger {
    min-width: 0;
    width: 100%;
    padding: 9px 28px 9px 10px;
    font-size: 13px;
    background-position: right 8px center;
    box-sizing: border-box;
  }
  .bb-custom-select-list li {
    font-size: 13px;
    padding: 8px 10px;
  }
  .bb-sch-filter-btn {
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  .bb-sch-month-tab {
    font-size: 18px;
  }
  .bb-sch-year-label {
    font-size: 20px;
  }
  .bb-sch-date-label {
    font-size: 22px;
  }
  .bb-sch-tournament-label {
    font-size: 15px;
  }
  .bb-sch-game-team-name {
    font-size: 14px;
  }
  .bb-sch-game-team-logo {
    width: 38px;
    height: 38px;
  }
  .bb-sch-game-score {
    font-size: 18px;
  }
  .bb-sch-action-btn {
    width: 60px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .bb-sch-cal-popup {
    width: calc(100vw - 24px);
    right: -12px;
    padding: 16px 12px 20px;
  }
  .bb-schedule {
    padding: 16px 12px 40px;
  }
  .bb-sch-month-card {
    padding: 14px;
  }
  .bb-sch-month-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
  .bb-sch-month-tab {
    font-size: 15px;
  }
  .bb-sch-date-label {
    font-size: 18px;
  }
  .bb-sch-tournament-label {
    font-size: 13px;
  }
  .bb-sch-game-row {
    padding: 12px;
  }
  .bb-sch-card-divider {
    margin: 0;
  }
  .bb-sch-game-time,
  .bb-sch-game-round,
  .bb-sch-game-venue {
    font-size: 13px;
    min-width: auto;
  }
  .bb-sch-game-team.away,
  .bb-sch-game-team.home {
    min-width: 90px;
  }
  .bb-sch-game-team-name {
    font-size: 13px;
  }
  .bb-sch-game-team-logo {
    width: 32px;
    height: 32px;
  }
  .bb-sch-game-score {
    font-size: 16px;
    min-width: 22px;
  }
  .bb-sch-action-btn {
    width: 50px;
    height: 32px;
    font-size: 12px;
  }
  .bb-sch-more-btn {
    padding: 12px 40px;
    font-size: 14px;
  }
  .bb-sch-recent-btn {
    font-size: 13px;
    width: 60px;
    height: 32px;
  }
  .bb-sch-year-label {
    font-size: 18px;
  }
}

/* =====================================================
   기록 페이지 공통 스타일 (bb-stat-)
   팀 기록(bb-ts-)과 선수 기록(bb-ps-)에서 공유
   ===================================================== */

/* ----- 상단 바 ----- */
.bb-stat-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ----- 카테고리 탭 ----- */
.bb-stat-category-tabs {
  display: flex;
  gap: 17px;
}
.bb-stat-cat-tab {
  width: 115px;
  height: 40px;
  border-radius: 50px;
  border: 1px solid var(--bb-border);
  background: var(--bb-white);
  font-family: 'Inter', var(--bb-font);
  font-size: 15px;
  font-weight: 500;
  color: #989898;
  cursor: pointer;
  transition: var(--bb-transition);
  padding: 0;
  line-height: 40px;
}
.bb-stat-cat-tab:hover {
  border-color: var(--bb-primary);
  color: var(--bb-primary);
}
.bb-stat-cat-tab.active {
  background: var(--bb-primary);
  border-color: var(--bb-primary);
  color: var(--bb-white);
}

/* ----- 카드 ----- */
.bb-stat-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  padding: 50px 76px;
}

/* ----- 헤더 ----- */
.bb-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.bb-stat-title {
  font-family: var(--bb-font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--bb-dark-alt);
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
  margin: 0;
  line-height: 80px;
}
.bb-stat-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 500;
}
.bb-stat-summary-label {
  color: var(--bb-gray);
}
.bb-stat-summary-value {
  color: var(--bb-dark-alt);
}
.bb-stat-summary-divider {
  color: var(--bb-border);
  margin: 0 4px;
}

/* ----- 테이블 ----- */
.bb-stat-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.bb-stat-table thead th {
  font-family: var(--bb-font);
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  padding: 0 4px;
  height: 50px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.bb-stat-table tbody td {
  font-family: var(--bb-font);
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  padding: 0 4px;
  height: 64px;
  vertical-align: middle;
  border-bottom: 1px solid #eef0f2;
  white-space: nowrap;
}
.bb-stat-table tbody tr:last-child td {
  border-bottom: none;
}

/* sticky 컬럼 공통 */
.bb-stat-table .col-rank {
  width: 68px;
  min-width: 68px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.bb-stat-table thead th.col-rank {
  z-index: 3;
  background: #fff;
}
.bb-stat-table thead th.col-rank,
.bb-stat-table thead th.col-team,
.bb-stat-table thead th.col-name {
  font-weight: 600;
  font-size: 16px;
}
.bb-stat-table thead th.col-team,
.bb-stat-table thead th.col-name {
  text-align: left;
}
.bb-stat-table tbody td.col-rank {
  font-weight: 600;
  font-size: 16px;
  color: var(--bb-dark);
}
.bb-stat-table tbody td.col-team,
.bb-stat-table tbody td.col-name {
  font-weight: 500;
  font-size: 16px;
  color: var(--bb-dark);
  text-align: left;
}

/* 호버 하이라이트 */
.bb-stat-table tbody tr:hover td {
  background: #f1f5f9;
}
.bb-stat-table .col-hover {
  background: #f1f5f9;
}
.bb-stat-table tbody tr:hover td.col-hover {
  background: #e2e8f0;
}
.bb-stat-table tbody tr:hover td.col-rank,
.bb-stat-table tbody tr:hover td.col-name,
.bb-stat-table tbody tr:hover td.col-team {
  background: #f1f5f9;
}

/* ----- 반응형: 공통 ----- */
@media (max-width: 1200px) {
  .bb-stat-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .bb-stat-top-bar .bb-sch-filter-select {
    flex: 0 0 auto;
  }
  .bb-stat-top-bar .bb-sch-select.wide {
    min-width: 0;
    width: auto;
  }
  .bb-stat-top-bar .bb-sch-select {
    width: auto;
    box-sizing: border-box;
  }
  .bb-stat-card {
    padding: 30px 24px;
  }
  .bb-stat-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 8px;
    margin-bottom: 10px;
  }
  .bb-stat-title {
    line-height: 1.3;
  }
}
@media (max-width: 768px) {
  .bb-stat-category-tabs {
    gap: 8px;
  }
  .bb-stat-cat-tab {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
    height: 36px;
    line-height: 36px;
  }
  .bb-stat-card {
    padding: 20px 12px;
  }
  .bb-stat-title {
    font-size: 24px;
  }
  .bb-stat-table thead th {
    font-size: 12px;
    padding: 0 2px;
    height: 48px;
  }
  .bb-stat-table tbody td {
    font-size: 12px;
    padding: 0 2px;
    height: 48px;
  }
  .bb-stat-table thead th.col-rank,
  .bb-stat-table thead th.col-name,
  .bb-stat-table thead th.col-team {
    font-size: 13px;
  }
  .bb-stat-table tbody td.col-rank,
  .bb-stat-table tbody td.col-name,
  .bb-stat-table tbody td.col-team {
    font-size: 13px;
  }
}

/* =====================================================
   팀 기록 페이지 (bb-ts-)
   ===================================================== */

/* ----- 상단 바 ----- */
.bb-team-stats .bb-sch-filter-bar {
  margin-bottom: 0;
}

/* ----- 탭 컨텐츠 ----- */
.bb-ts-tab-content {
  display: none;
}
.bb-ts-tab-content.active {
  display: block;
}

/* ----- 테이블 래퍼 ----- */
.bb-ts-table-wrap {
  overflow-x: auto;
  position: relative;
}

/* ----- 팀 기록 전용: col-team sticky + 패딩 ----- */
.bb-ts-table .col-team {
  width: 255px;
  min-width: 255px;
  position: sticky;
  left: 68px;
  z-index: 2;
  background: #fff;
}
.bb-ts-table thead th.col-team {
  z-index: 3;
  background: #fff;
  padding-left: 16px;
}
.bb-ts-table .col-stat {
  min-width: 80px;
}
.bb-ts-table tbody td.col-team {
  padding-left: 16px;
}
.bb-ts-table tbody td.col-team span {
  vertical-align: middle;
}

/* 팀 로고 */
.bb-ts-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 12px;
}

/* 정렬 아이콘 (공통) */
.bb-sort-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  top: -1px;
}
.bb-sort-icon::before,
.bb-sort-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
}
.bb-sort-icon::before {
  border-bottom: 4px solid #bbb;
}
.bb-sort-icon::after {
  border-top: 4px solid #bbb;
}
th[data-sort] {
  cursor: pointer;
  user-select: none;
}
th[data-sort].sort-asc .bb-sort-icon::before {
  border-bottom-color: #3c50e0;
}
th[data-sort].sort-desc .bb-sort-icon::after {
  border-top-color: #3c50e0;
}

/* ----- 팀 기록 반응형 ----- */
@media (max-width: 768px) {
  .bb-ts-category-tabs {
    flex-wrap: wrap;
  }
  .bb-ts-team-logo {
    width: 36px;
    height: 36px;
    margin-right: 8px;
  }
  .bb-ts-table {
    min-width: 600px;
  }
  .bb-ts-table .col-rank {
    width: 36px;
    min-width: 36px;
    left: 0;
  }
  .bb-ts-table .col-team {
    width: 110px;
    min-width: 110px;
    left: 36px;
  }
  .bb-ts-table .col-stat {
    min-width: 50px;
  }
  .bb-ts-table tbody td.col-team,
  .bb-ts-table thead th.col-team {
    padding-left: 8px;
  }
  .bb-ts-team-logo {
    width: 28px;
    height: 28px;
    margin-right: 6px;
  }
}

/* =====================================================
   선수 기록 페이지 (bb-ps-)
   ===================================================== */

/* ----- 상단 바 ----- */
.bb-player-stats .bb-sch-filter-bar {
  margin-bottom: 0;
}

.bb-ps-right-group {
  display: flex;
  align-items: center;
  gap: 17px;
}

/* 규정타석/규정이닝 탭 */
.bb-ps-qualify-tabs {
  display: flex;
  gap: 17px;
}
.bb-ps-qualify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 115px;
  height: 40px;
  border-radius: 50px;
  border: 1px solid #b0b0b0;
  background: #d3d3d3;
  font-family: 'Inter', var(--bb-font);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: var(--bb-transition);
  white-space: nowrap;
  padding: 0 16px;
  line-height: 1;
}
.bb-ps-qualify-btn:hover {
  border-color: #999;
}
.bb-ps-qualify-btn.active {
  background: #d3d3d3;
  border-color: #b0b0b0;
  color: #000;
}

/* ----- 탭 컨텐츠 ----- */
.bb-ps-tab-content {
  display: none;
}
.bb-ps-tab-content.active {
  display: block;
}

/* ----- 헤더 (선수 기록 전용: 높이 100px) ----- */
.bb-ps-header {
  height: 100px;
}
.bb-ps-title {
  letter-spacing: -0.1143px;
  line-height: 100px;
}
.bb-ps-summary-value {
  margin-right: 16px;
}
.bb-ps-summary-value:last-child {
  margin-right: 0;
}

/* ----- Top Players Carousel ----- */
.bb-ps-top-players {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 0 30px;
}
.bb-ps-player-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}
.bb-ps-player-photo-wrap {
  position: relative;
  width: 105px;
  height: 105px;
}
.bb-ps-player-photo {
  width: 105px;
  height: 105px;
  border-radius: 25px;
  object-fit: cover;
  display: block;
}
.bb-ps-player-rank-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 105px;
  height: 38px;
  border-radius: 0 0 25px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 20px;
  font-variation-settings: 'wdth' 100;
  color: white;
  line-height: 20px;
}
.bb-ps-player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bb-ps-player-name {
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 16px;
  font-variation-settings: 'wdth' 100;
  color: #202020;
  line-height: 20px;
}
.bb-ps-player-stat {
  font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 16px;
  font-variation-settings: 'wdth' 100;
  color: #a5a5a5;
  line-height: 20px;
  margin-top: 2px;
}

/* ----- 테이블 래퍼 ----- */
.bb-ps-table-wrap {
  overflow-x: auto;
  position: relative;
}

/* 선수 기록 전용: col-name/col-team sticky + font-variation */
.bb-ps-table thead th,
.bb-ps-table tbody td {
  font-variation-settings: 'wdth' 100;
}
.bb-ps-table .col-name {
  width: 120px;
  position: sticky;
  left: 68px;
  z-index: 2;
  background: #fff;
}
.bb-ps-table .col-team {
  width: 120px;
  position: sticky;
  left: 188px;
  z-index: 2;
  background: #fff;
}
.bb-ps-table thead .col-rank,
.bb-ps-table thead .col-name,
.bb-ps-table thead .col-team {
  z-index: 3;
}
.bb-ps-table .col-stat {
  width: 72px;
}

/* ----- 선수 기록 반응형 ----- */
@media (max-width: 1200px) {
  .bb-ps-top-players {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .bb-ps-right-group {
    flex-wrap: wrap;
    gap: 10px;
  }
  .bb-ps-qualify-tabs {
    gap: 8px;
  }
  .bb-ps-qualify-btn {
    min-width: 0;
    padding: 0 12px;
    font-size: 12px;
    height: 36px;
  }
  .bb-ps-player-photo-wrap {
    width: 80px;
    height: 80px;
  }
  .bb-ps-player-photo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
  .bb-ps-player-rank-badge {
    width: 80px;
    height: 30px;
    border-radius: 0 0 18px 18px;
    font-size: 16px;
  }
  .bb-ps-player-name {
    font-size: 14px;
  }
  .bb-ps-player-stat {
    font-size: 13px;
  }
  .bb-ps-table {
    min-width: 650px;
  }
  .bb-ps-table .col-rank {
    width: 36px;
  }
  .bb-ps-table .col-name {
    width: 80px;
  }
  .bb-ps-table .col-team {
    width: 80px;
  }
  .bb-ps-table .col-stat {
    width: 48px;
  }
  .bb-ps-table thead th.col-rank,
  .bb-ps-table tbody td.col-rank {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }
  .bb-ps-table thead th.col-name,
  .bb-ps-table tbody td.col-name {
    position: sticky;
    left: 36px;
    z-index: 2;
    background: #fff;
  }
  .bb-ps-table thead th.col-team,
  .bb-ps-table tbody td.col-team {
    position: sticky;
    left: 116px;
    z-index: 2;
    background: #fff;
  }
  .bb-ps-table thead th.col-rank,
  .bb-ps-table thead th.col-name,
  .bb-ps-table thead th.col-team {
    z-index: 3;
  }
}

/* =============================================
   Teams Page (bb-tm-)
   ============================================= */

.bb-teams {
  max-width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.bb-tm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.bb-tm-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #202224;
  margin: 0;
  line-height: 80px;
}

.bb-tm-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-tm-summary-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #64748b;
}

.bb-tm-summary-value {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #202224;
}

.bb-tm-summary-divider {
  color: #e2e8f0;
  margin: 0 4px;
}

/* Card Grid */
.bb-tm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 55px;
}

/* Card */
.bb-tm-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
  text-align: center;
  min-height: 299px;
  box-sizing: border-box;
}

/* Logo */
.bb-tm-card-logo {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

.bb-tm-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.bb-tm-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: auto;
}

.bb-tm-card-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #202020;
  line-height: 1.4;
}

.bb-tm-card-detail {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #a5a5a5;
  line-height: 1.4;
}

.bb-tm-card-meta {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 2px;
}

.bb-tm-card-meta em {
  font-style: normal;
}

.bb-tm-players {
  color: #6418c3;
}

.bb-tm-sep {
  color: #a5a5a5;
}

.bb-tm-manager {
  color: #17a2b8;
}

/* Roster Button */
.bb-tm-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  height: 38px;
  border: 0.4px solid #979797;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  margin-top: 16px;
}

.bb-tm-card-btn img {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-bottom: 2px;
}

.bb-tm-card-btn span {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #767676;
  letter-spacing: 0.3231px;
  line-height: 16px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}

.bb-tm-card-btn:hover {
  background: #f8f8f8;
  border-color: #767676;
}

/* More Button */
.bb-tm-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.bb-tm-more-btn {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 40px;
  cursor: pointer;
}

.bb-tm-more-btn:hover {
  background: #f8f8f8;
  border-color: #cbd5e1;
}

/* ----- Teams Responsive ----- */
@media (max-width: 1400px) {
  .bb-tm-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 30px;
  }
}
@media (max-width: 1100px) {
  .bb-tm-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 24px;
  }
}
@media (max-width: 900px) {
  .bb-tm-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
  }
  .bb-tm-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .bb-tm-title {
    line-height: 1.3;
  }
}
@media (max-width: 600px) {
  .bb-tm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bb-tm-card {
    min-height: auto;
    padding: 20px 12px 16px;
  }
}

/* =============================================
   Team Detail Page (bb-td-)
   ============================================= */

.bb-td {
  max-width: min(1652px, 100%);
  margin: 0 auto;
}

/* --- Header Card --- */
.bb-td-header-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

/* Cover Image */
.bb-td-cover {
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.bb-td-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team Emblem */
.bb-td-emblem {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: -100px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bb-td-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team Info */
.bb-td-team-info {
  text-align: center;
  padding: 16px 20px 0;
}

.bb-td-team-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bb-td-team-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1c2434;
  margin: 0;
  line-height: 30px;
  font-variation-settings: 'wdth' 100;
}

.bb-td-team-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 30px;
  background: rgba(211, 64, 83, 0.08);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #d34053;
  line-height: 22px;
}

.bb-td-team-staff {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #64748b;
  line-height: 24px;
  margin: 0 0 16px;
  font-variation-settings: 'wdth' 100;
}

/* Team Meta (팀그룹, 팀연고, 창단일) */
.bb-td-team-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.bb-td-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bb-td-meta-value {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1c2434;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
}

.bb-td-meta-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #64748b;
  line-height: 22px;
  font-variation-settings: 'wdth' 100;
}

.bb-td-meta-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
}

/* Tab Navigation */
.bb-td-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 58px;
  border-top: 0.8px solid #e2e8f0;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
}

.bb-td-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 32px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1c2434;
  text-decoration: none;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
  position: relative;
}

.bb-td-tab.active {
  font-weight: 700;
  font-size: 18px;
}

.bb-td-tab:hover {
  background: #f8fafc;
}

/* --- Content Section --- */
.bb-td-content {
  padding: 0 0 40px;
}

.bb-td-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.bb-td-content-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bb-td-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #202224;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.1143px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}

.bb-td-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bb-td-select-wrap {
  position: relative;
}

.bb-td-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  padding: 9px 36px 9px 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  font-variation-settings: 'wdth' 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.bb-td-search-btn {
  background: #3c50e0;
  border: none;
  border-radius: 4px;
  height: 40px;
  padding: 0 30px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #eff4fb;
  cursor: pointer;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
}

.bb-td-search-btn:hover {
  background: #3345c0;
}

/* Summary */
.bb-td-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.bb-td-summary-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #64748b;
  font-variation-settings: 'wdth' 100;
}

.bb-td-summary-value {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #202224;
  font-variation-settings: 'wdth' 100;
}

.bb-td-summary-divider {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* --- Player Card Grid --- */
.bb-td-player-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 55px;
}

/* Player Card */
.bb-td-player-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 20px;
  text-align: center;
  min-height: 299px;
  box-sizing: border-box;
}

/* Player Photo */
.bb-td-player-photo {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f0f0f0;
}

.bb-td-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Player Info */
.bb-td-player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: auto;
}

.bb-td-player-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #202020;
  line-height: 1.3;
  font-variation-settings: 'wdth' 100;
}

.bb-td-player-detail {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #979797;
  line-height: 20px;
  font-variation-settings: 'wdth' 100;
}

.bb-td-player-size {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #979797;
  line-height: 20px;
  font-variation-settings: 'wdth' 100;
}

/* Player Info Button */
.bb-td-player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  height: 38px;
  border: 0.4px solid #979797;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  margin-top: 14px;
}

.bb-td-player-btn img {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-bottom: 2px;
}

.bb-td-player-btn span {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #767676;
  letter-spacing: 0.3231px;
  line-height: 16px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}

.bb-td-player-btn:hover {
  background: #f8f8f8;
  border-color: #767676;
}

/* More Button */
.bb-td-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.bb-td-more-btn {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 80px;
  cursor: pointer;
}

.bb-td-more-btn:hover {
  background: #f8f8f8;
  border-color: #cbd5e1;
}

/* ----- Team Detail Responsive ----- */
@media (max-width: 1400px) {
  .bb-td-player-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 30px;
  }
}
@media (max-width: 1100px) {
  .bb-td-player-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 24px;
  }
  .bb-td-tab {
    padding: 0 20px;
    font-size: 14px;
  }
  .bb-td-tab.active {
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  .bb-td-player-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
  }
  .bb-td-content-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bb-td-emblem {
    width: 150px;
    height: 150px;
    margin-top: -75px;
  }
  .bb-td-team-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  .bb-td-tab {
    padding: 0 14px;
    font-size: 13px;
  }
  .bb-td-tab.active {
    font-size: 15px;
  }
}
@media (max-width: 600px) {
  .bb-td-player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bb-td-player-card {
    min-height: auto;
    padding: 20px 12px 16px;
  }
  .bb-td-cover {
    height: 160px;
  }
  .bb-td-emblem {
    width: 120px;
    height: 120px;
    margin-top: -60px;
  }
  .bb-td-team-name {
    font-size: 20px;
  }
  .bb-td-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .bb-td-tab {
    white-space: nowrap;
    padding: 0 12px;
  }
  .bb-td-content-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* =============================================
   선수 검색 페이지 (bb-psr-)
   ============================================= */

.bb-player-search {
  max-width: min(1652px, 100%);
  margin: 0 auto;
}

/* ----- 검색 카드 ----- */
.bb-psr-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-card);
  padding: 50px 114px;
  margin-bottom: 40px;
}
.bb-psr-card-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.bb-psr-title {
  font-family: var(--bb-font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--bb-dark-alt);
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
  letter-spacing: -0.1143px;
  height: 80px;
  display: flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.bb-psr-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.bb-psr-search-input {
  width: 148px;
  height: 40px;
  border: 1px solid var(--bb-border);
  border-radius: 4px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  padding: 0 12px;
  font-family: var(--bb-font);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.bb-psr-search-input:focus {
  border-color: var(--bb-primary);
}
.bb-psr-search-btn {
  height: 40px;
  padding: 0 30px;
  background: var(--bb-primary);
  color: #eff4fb;
  border: none;
  border-radius: 4px;
  font-family: var(--bb-font);
  font-weight: 500;
  font-size: 16px;
  font-variation-settings: 'wdth' 100;
  cursor: pointer;
  white-space: nowrap;
}
.bb-psr-search-btn:hover {
  opacity: 0.9;
}
.bb-psr-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}
.bb-psr-summary-label {
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  font-variation-settings: 'wdth' 100;
  line-height: 22px;
}
.bb-psr-summary-value {
  font-family: var(--bb-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--bb-dark-alt);
  font-variation-settings: 'wdth' 100;
  line-height: 22px;
  margin-right: 16px;
}
.bb-psr-summary-value:last-child {
  margin-right: 0;
}

/* ----- 검색 결과 ----- */
.bb-psr-results {
  padding: 0 25px;
}
.bb-psr-results-title {
  font-family: var(--bb-font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--bb-dark-alt);
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
  letter-spacing: -0.1143px;
  margin: 0 0 30px 0;
}

/* 선수 카드 그리드 (bb-td-player-card 재사용) */
.bb-psr-grid {
  display: flex;
  gap: 55px;
  flex-wrap: wrap;
}
.bb-psr-grid .bb-td-player-card {
  width: 220px;
  flex-shrink: 0;
}

/* 선수 카드 소속팀 (검색 결과 전용) */
.bb-td-player-team {
  font-family: 'Open Sans', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--bb-primary);
  line-height: 20px;
  font-variation-settings: 'wdth' 100;
  text-align: center;
}

/* ----- 반응형 ----- */
@media (max-width: 1200px) {
  .bb-psr-card {
    padding: 30px 24px;
  }
  .bb-psr-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .bb-psr-filters {
    flex-wrap: wrap;
  }
  .bb-psr-summary {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .bb-psr-card {
    padding: 20px 16px;
  }
  .bb-psr-title {
    font-size: 24px;
    height: auto;
  }
  .bb-psr-results-title {
    font-size: 24px;
  }
  .bb-psr-grid {
    gap: 20px;
    justify-content: center;
  }
  .bb-psr-grid .bb-td-player-card {
    width: calc(50% - 10px);
    min-width: 160px;
  }
  .bb-psr-results {
    padding: 0;
  }
}

/* =============================================
   Team Info Page (bb-ti-)
   ============================================= */

.bb-ti {
  max-width: min(1652px, 100%);
  margin: 0 auto;
}

/* Main Content Card */
.bb-ti-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.12);
  padding: 50px 137px;
  margin-bottom: 40px;
}

/* Section */
.bb-ti-section {
  margin-bottom: 50px;
}

.bb-ti-section:last-child {
  margin-bottom: 0;
}

.bb-ti-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb-ti-section-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #202224;
  margin: 0 0 20px;
  line-height: 60px;
  letter-spacing: -0.1143px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
  border-bottom: 2px solid #333A48;
}

.bb-ti-section-header {
  border-bottom: 2px solid #333A48;
  margin-bottom: 20px;
}
.bb-ti-section-header .bb-ti-section-title {
  margin-bottom: 0;
  border-bottom: none;
}

/* More Link (+ 더보기) */
.bb-ti-more-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.bb-ti-more-link span {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #202224;
  letter-spacing: -0.1143px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
}

/* --- Tables --- */
.bb-ti-table {
  width: 100%;
  border-collapse: collapse;
}

.bb-ti-table thead th {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  padding: 0 8px;
  height: 50px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
  vertical-align: middle;
}

.bb-ti-table tbody td {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  padding: 0 8px;
  height: 64px;
  border-bottom: 1px solid #eef0f2;
  white-space: nowrap;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
  vertical-align: middle;
}

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

/* Overall Table */
.bb-ti-table-overall thead th,
.bb-ti-table-overall tbody td {
  width: calc(100% / 7);
}

/* --- Schedule Table --- */
.bb-ti-table-schedule .col-date { width: 70px; }
.bb-ti-table-schedule .col-time { width: 70px; }
.bb-ti-table-schedule .col-round { width: 70px; }
.bb-ti-table-schedule .col-venue { width: 120px; text-align: center; }
.bb-ti-table-schedule .col-match { min-width: 380px; text-align: center; }
.bb-ti-table-schedule .col-tournament { min-width: 200px; text-align: left; }
.bb-ti-table-schedule .col-boxscore { width: 100px; }

/* Match Display */
.bb-ti-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bb-ti-match-team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 140px;
  flex-shrink: 0;
}
.bb-ti-match-team.away {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.bb-ti-match-team.home {
  justify-content: flex-start;
}

.bb-ti-match-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.bb-ti-match-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
}

.bb-ti-match-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bb-ti-score {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #625b71;
  text-align: center;
  min-width: 20px;
  font-variation-settings: 'wdth' 100;
}

.bb-ti-score.win {
  color: #f57c7c;
}

.bb-ti-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  padding: 0 6px;
  border-radius: 20px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  min-width: 36px;
}

.bb-ti-match-badge.live {
  background: #5ecfff;
}

.bb-ti-match-badge.end {
  background: #bababa;
}

/* Record Button */
.bb-ti-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: 8px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1c2434;
  text-decoration: none;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
  box-sizing: border-box;
}

.bb-ti-record-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* --- Video Grid --- */
.bb-ti-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  margin-top: 20px;
}

.bb-ti-video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bb-ti-video-thumb {
  width: 100%;
  height: 264px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #eee;
}

.bb-ti-video-thumb img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.bb-ti-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  cursor: pointer;
}

.bb-ti-video-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #000;
  text-align: center;
  line-height: 24px;
  margin-top: 6px;
  font-variation-settings: 'wdth' 100;
}

/* --- Tournament / Awards Tables --- */
.bb-ti-table-tournament thead th:first-child,
.bb-ti-table-tournament tbody td:first-child {
  text-align: left;
  min-width: 200px;
}

.bb-ti-table-awards thead th:first-child,
.bb-ti-table-awards tbody td:first-child {
  width: 70px;
}

.bb-ti-table-awards thead th:nth-child(2),
.bb-ti-table-awards tbody td:nth-child(2) {
  text-align: left;
  min-width: 200px;
}

.bb-ti-table-awards thead th:nth-child(3),
.bb-ti-table-awards tbody td:nth-child(3) {
  text-align: left;
}

.bb-ti-table-awards thead th:nth-child(4),
.bb-ti-table-awards tbody td:nth-child(4),
.bb-ti-table-awards thead th:nth-child(5),
.bb-ti-table-awards tbody td:nth-child(5) {
  text-align: left;
  min-width: 160px;
}

/* Regular data in tournament/awards */
.bb-ti-table-tournament tbody td,
.bb-ti-table-awards tbody td {
  font-weight: 400;
}

/* ----- Team Info Responsive ----- */
@media (max-width: 1400px) {
  .bb-ti-card {
    padding: 40px 60px;
  }
}
@media (max-width: 1100px) {
  .bb-ti-card {
    padding: 30px 24px;
  }
  .bb-ti-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .bb-ti-table-wrap {
    overflow-x: auto;
  }
}
@media (max-width: 768px) {
  .bb-ti-card {
    padding: 20px 12px;
  }
  .bb-ti-video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bb-ti-section-title {
    font-size: 22px;
  }
  .bb-ti-more-link span {
    font-size: 22px;
  }
  .bb-ti-video-thumb {
    height: 200px;
  }
  .bb-ti-table thead th {
    font-size: 13px;
    padding: 0 4px;
  }
  .bb-ti-table tbody tr {
    height: 56px;
  }
  .bb-ti-table tbody td {
    font-size: 13px;
    padding: 0 4px;
  }
  .bb-ti-table-schedule {
    min-width: 900px;
  }
  .bb-ti-table thead th:first-child,
  .bb-ti-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }
  .bb-ti-table thead th:first-child {
    z-index: 3;
  }
}

/* =====================================================
   Player Detail (bb-pd-)
   ===================================================== */

/* Page container */
.bb-pd {
  max-width: 1650px;
  margin: 0 auto;
  padding: 30px 0;
}

/* Player header overrides */
.bb-pd-header-card {
  margin-bottom: 0;
}

/* Sticky section tabs for player detail */
.bb-pd-sticky-tabs {
  background: #fff;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  border-top: none;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
}

.bb-pd-sticky-tabs.is-fixed {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 100;
  border-top: 0.8px solid #e2e8f0;
}

.bb-pd-sticky-placeholder {
  display: none;
}

.bb-pd-sticky-placeholder.is-active {
  display: block;
}

.bb-pd-info {
  text-align: center;
  padding: 16px 20px 0;
}

.bb-pd-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1c2434;
  margin: 0 0 6px;
  line-height: 30px;
  font-variation-settings: 'wdth' 100;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bb-pd-team-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bb-pd-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.bb-pd-team-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1c2434;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
}

.bb-pd-meta {
  margin-bottom: 20px;
}

/* Top bar (filter + pill tabs) */
.bb-pd-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Pill tabs */
.bb-pd-pill-tabs {
  display: flex;
  gap: 17px;
}

.bb-pd-pill {
  width: 116px;
  height: 40px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #989898;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.bb-pd-pill.active {
  background: #3c50e0;
  border-color: #3c50e0;
  color: #fff;
}

.bb-pd-pill:hover:not(.active) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Content Card */
.bb-pd-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.07);
  padding: 50px 136px;
}

/* Sections */
.bb-pd-section {
  margin-bottom: 30px;
}

.bb-pd-section:last-child {
  margin-bottom: 0;
}

.bb-pd-section-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #202224;
  margin: 0;
  line-height: 60px;
  letter-spacing: -0.1143px;
  font-variation-settings: 'YTLC' 500, 'wdth' 100;
  border-bottom: 2px solid #333A48;
}

.bb-pd-section-sub {
  font-weight: 500;
  font-size: 20px;
  color: #64748b;
}

.bb-pd-empty {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #888;
  text-align: center;
  padding: 40px 0;
  margin: 0;
}

/* --- Diamond Hit Analysis --- */
.bb-pd-diamond-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.bb-pd-diamond {
  position: relative;
  width: 440px;
  height: 330px;
}

.bb-pd-diamond-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 323px;
}

.bb-pd-hit-pill {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 50px;
  border-radius: 25px;
  background: #f1f5f9;
  z-index: 2;
}

.bb-pd-hit-pill.max {
  background: #f57c7c;
}

.bb-pd-hit-label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  line-height: 1;
}

.bb-pd-hit-pill.max .bb-pd-hit-label {
  color: #fff;
}

.bb-pd-hit-pct {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #000;
  line-height: 1;
}

.bb-pd-hit-pill.max .bb-pd-hit-pct {
  color: #fff;
}

/* Hit pill positions on diamond (5-row layout matching Figma) */
/* Row 1: Center field */
.bb-pd-hit-pill.cf  { top: 23px;  left: 170px; }
/* Row 2: Outfield wings */
.bb-pd-hit-pill.lc  { top: 70px;  left: 43px; }
.bb-pd-hit-pill.rc  { top: 70px;  left: 296px; }
/* Row 3: Upper infield */
.bb-pd-hit-pill.sb  { top: 130px; left: 100px; }
.bb-pd-hit-pill.fb  { top: 130px; left: 238px; }
/* Row 4: Lower infield */
.bb-pd-hit-pill.lf  { top: 192px; left: 68px; }
.bb-pd-hit-pill.ss  { top: 192px; left: 174px; }
.bb-pd-hit-pill.rf  { top: 192px; left: 279px; }
/* Row 5: Home area */
.bb-pd-hit-pill.tb  { top: 276px; left: 174px; }

/* --- Tables --- */
.bb-pd-table-wrap {
  overflow-x: auto;
  position: relative;
}

.bb-pd-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.bb-pd-table thead th {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  padding: 0 8px;
  height: 50px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
  vertical-align: middle;
}

.bb-pd-table tbody td {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  text-align: center;
  padding: 0 8px;
  height: 64px;
  border-bottom: 1px solid #eef0f2;
  white-space: nowrap;
  line-height: 24px;
  font-variation-settings: 'wdth' 100;
  vertical-align: middle;
}

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

/* Stat columns: consistent min-width */
.bb-pd-table thead th,
.bb-pd-table tbody td {
  min-width: 60px;
}

/* Text columns: left-aligned with wider min-width */
.bb-pd-table .col-text,
.bb-pd-table-recent thead th:first-child,
.bb-pd-table-recent tbody td:first-child,
.bb-pd-table-recent thead th:nth-child(2),
.bb-pd-table-recent tbody td:nth-child(2),
.bb-pd-table-tournament thead th:first-child,
.bb-pd-table-tournament tbody td:first-child,
.bb-pd-table-yearly thead th:nth-child(2),
.bb-pd-table-yearly tbody td:nth-child(2),
.bb-pd-table-school thead th:nth-child(2),
.bb-pd-table-school tbody td:nth-child(2),
.bb-pd-table-awards thead th:nth-child(2),
.bb-pd-table-awards tbody td:nth-child(2),
.bb-pd-table-awards thead th:nth-child(3),
.bb-pd-table-awards tbody td:nth-child(3) {
  text-align: left;
  min-width: 120px;
}

/* Long text columns need more space */
.bb-pd-table-tournament thead th:first-child,
.bb-pd-table-tournament tbody td:first-child,
.bb-pd-table-awards thead th:nth-child(2),
.bb-pd-table-awards tbody td:nth-child(2) {
  min-width: 240px;
}

/* School & Awards: fixed layout so data columns match other tables */
.bb-pd-table-school,
.bb-pd-table-awards {
  table-layout: fixed;
}
.bb-pd-table-school th:not(.col-spacer),
.bb-pd-table-school td:not(.col-spacer),
.bb-pd-table-awards th:not(.col-spacer),
.bb-pd-table-awards td:not(.col-spacer) {
  width: 80px;
}
.bb-pd-table-school th:nth-child(2),
.bb-pd-table-school td:nth-child(2) {
  width: 120px;
}
.bb-pd-table-awards th:nth-child(2),
.bb-pd-table-awards td:nth-child(2) {
  width: 240px;
}
.bb-pd-table-awards th:nth-child(3),
.bb-pd-table-awards td:nth-child(3) {
  width: 120px;
}
.bb-pd-table-school .col-spacer,
.bb-pd-table-awards .col-spacer {
  padding: 0;
}

/* Tab content show/hide */
.bb-pd-tab-content {
  display: none;
}

.bb-pd-tab-content.active {
  display: block;
}

/* ----- Player Detail Responsive ----- */
@media (max-width: 1400px) {
  .bb-pd-card {
    padding: 40px 76px;
  }
}
@media (max-width: 1200px) {
  .bb-pd-card {
    padding: 30px 24px;
  }
}
@media (max-width: 1100px) {
  .bb-pd-diamond {
    width: 360px;
    height: 275px;
  }
  .bb-pd-diamond-img {
    width: 360px;
    height: 264px;
  }
  .bb-pd-hit-pill {
    width: 85px;
    height: 45px;
  }
  .bb-pd-hit-pill.cf  { top: 19px;  left: 139px; }
  .bb-pd-hit-pill.lc  { top: 57px;  left: 35px; }
  .bb-pd-hit-pill.rc  { top: 57px;  left: 242px; }
  .bb-pd-hit-pill.sb  { top: 106px; left: 82px; }
  .bb-pd-hit-pill.fb  { top: 106px; left: 195px; }
  .bb-pd-hit-pill.lf  { top: 157px; left: 56px; }
  .bb-pd-hit-pill.ss  { top: 157px; left: 142px; }
  .bb-pd-hit-pill.rf  { top: 157px; left: 228px; }
  .bb-pd-hit-pill.tb  { top: 225px; left: 142px; }
}
@media (max-width: 768px) {
  .bb-pd-card {
    padding: 20px 12px;
  }
  .bb-pd-section-title {
    font-size: 22px;
  }
  .bb-pd-diamond {
    width: 300px;
    height: 235px;
  }
  .bb-pd-diamond-img {
    width: 300px;
    height: 220px;
  }
  .bb-pd-hit-pill {
    width: 72px;
    height: 40px;
  }
  .bb-pd-hit-label {
    font-size: 11px;
  }
  .bb-pd-hit-pct {
    font-size: 16px;
  }
  .bb-pd-hit-pill.cf  { top: 16px;  left: 116px; }
  .bb-pd-hit-pill.lc  { top: 48px;  left: 29px; }
  .bb-pd-hit-pill.rc  { top: 48px;  left: 202px; }
  .bb-pd-hit-pill.sb  { top: 89px;  left: 68px; }
  .bb-pd-hit-pill.fb  { top: 89px;  left: 162px; }
  .bb-pd-hit-pill.lf  { top: 131px; left: 40px; }
  .bb-pd-hit-pill.ss  { top: 131px; left: 114px; }
  .bb-pd-hit-pill.rf  { top: 131px; left: 192px; }
  .bb-pd-hit-pill.tb  { top: 188px; left: 114px; }
  .bb-pd-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .bb-pd-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
  .bb-pd-name {
    font-size: 20px;
  }
  .bb-pd-team-logo {
    width: 36px;
    height: 36px;
  }
  .bb-pd-team-name {
    font-size: 14px;
  }
  .bb-pd-table thead th {
    font-size: 12px;
    padding: 0 4px;
    height: 40px;
  }
  .bb-pd-table tbody td {
    font-size: 12px;
    padding: 0 4px;
    height: 44px;
  }
  .bb-pd-table thead th,
  .bb-pd-table tbody td {
    min-width: 44px;
  }
  .bb-pd-table-tournament thead th:first-child,
  .bb-pd-table-tournament tbody td:first-child,
  .bb-pd-table-awards thead th:nth-child(2),
  .bb-pd-table-awards tbody td:nth-child(2) {
    min-width: 120px;
  }
  /* Sticky first col: fixed width */
  .bb-pd-table-recent thead th:first-child,
  .bb-pd-table-recent tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    box-sizing: border-box;
  }
  .bb-pd-table-yearly thead th:first-child,
  .bb-pd-table-yearly tbody td:first-child,
  .bb-pd-table-awards thead th:first-child,
  .bb-pd-table-awards tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    box-sizing: border-box;
  }
  .bb-pd-table-school thead th:first-child,
  .bb-pd-table-school tbody td:first-child,
  .bb-pd-table-tournament thead th:first-child,
  .bb-pd-table-tournament tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
  }
  /* Sticky second col */
  .bb-pd-table-recent thead th:nth-child(2),
  .bb-pd-table-recent tbody td:nth-child(2) {
    position: sticky;
    left: 110px;
    z-index: 2;
    background: #fff;
    min-width: 60px;
  }
  .bb-pd-table-yearly thead th:nth-child(2),
  .bb-pd-table-yearly tbody td:nth-child(2) {
    position: sticky;
    left: 60px;
    z-index: 2;
    background: #fff;
    min-width: 60px;
  }
  .bb-pd-table-awards thead th:nth-child(2),
  .bb-pd-table-awards tbody td:nth-child(2) {
    position: sticky;
    left: 60px;
    z-index: 2;
    background: #fff;
    max-width: 140px;
    white-space: normal;
    word-break: keep-all;
  }
  /* thead z-index higher */
  .bb-pd-table-recent thead th:first-child,
  .bb-pd-table-recent thead th:nth-child(2),
  .bb-pd-table-yearly thead th:first-child,
  .bb-pd-table-yearly thead th:nth-child(2),
  .bb-pd-table-school thead th:first-child,
  .bb-pd-table-awards thead th:first-child,
  .bb-pd-table-awards thead th:nth-child(2),
  .bb-pd-table-tournament thead th:first-child {
    z-index: 3;
  }
}
@media (max-width: 420px) {
  .bb-pd-diamond {
    width: 260px;
    height: 205px;
  }
  .bb-pd-diamond-img {
    width: 260px;
    height: 191px;
  }
  .bb-pd-hit-pill {
    width: 62px;
    height: 36px;
    border-radius: 18px;
  }
  .bb-pd-hit-label {
    font-size: 10px;
  }
  .bb-pd-hit-pct {
    font-size: 14px;
  }
  .bb-pd-hit-pill.cf  { top: 14px;  left: 100px; }
  .bb-pd-hit-pill.lc  { top: 41px;  left: 25px; }
  .bb-pd-hit-pill.rc  { top: 41px;  left: 175px; }
  .bb-pd-hit-pill.sb  { top: 77px;  left: 59px; }
  .bb-pd-hit-pill.fb  { top: 77px;  left: 141px; }
  .bb-pd-hit-pill.lf  { top: 113px; left: 36px; }
  .bb-pd-hit-pill.ss  { top: 113px; left: 100px; }
  .bb-pd-hit-pill.rf  { top: 113px; left: 166px; }
  .bb-pd-hit-pill.tb  { top: 163px; left: 100px; }
}
