:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-soft: #101114;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f7f8;
  --muted: #a1a1aa;
  --quiet: #6f7078;
  --accent: #ffffff;
  --danger: #ff453a;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.065), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-footer {
  display: grid;
  gap: 6px;
  width: min(1120px, calc(100% - 32px));
  margin: 8px auto 36px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}

.site-footer p {
  margin: 0;
}

.site-footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}

.site-footer strong {
  color: var(--text);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 18, 22, 0.88) 0%, rgba(8, 8, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 44%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  backdrop-filter: blur(24px) saturate(1.12);
}

.icon {
  width: 18px;
  height: 18px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
}

.top-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.mobile-nav-icon,
.brand .mobile-nav-label {
  display: none;
}

.top-nav .mobile-nav-label {
  display: inline;
}

.top-nav a.mobile-only-nav {
  display: none;
}

.top-nav a.pc-search-nav {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  justify-content: center;
  padding: 0;
}

.top-nav a.pc-search-nav .mobile-nav-icon {
  display: block;
  width: 17px;
  height: 17px;
}

.brand small {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 11px;
}

.account-area {
  grid-column: 3;
  grid-row: 1;
  position: relative;
}

.profile-button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 4px 5px 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
}

.account-name {
  max-width: 96px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(18, 18, 21, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.profile-menu-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 4px 14px;
}

.profile-menu-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-menu-name,
.profile-menu-email {
  display: block;
}

.profile-menu-name {
  font-size: 14px;
}

.profile-menu-email {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 12px;
}

.membership-badge {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.profile-menu-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.profile-stat {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-stat strong,
.profile-stat span {
  display: block;
}

.profile-stat strong {
  font-size: 18px;
  line-height: 1;
}

.profile-stat span {
  margin-top: 5px;
  color: var(--quiet);
  font-size: 11px;
}

.profile-menu-actions {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.profile-menu-action {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.profile-menu-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-menu-action.is-danger {
  color: #ffb4ad;
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 72px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  padding: 82px max(20px, calc((100vw - 1160px) / 2)) 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.02) 0%, rgba(8, 8, 10, 0.3) 48%, rgba(8, 8, 10, 0.96) 100%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 255, 255, 0.24), transparent 23rem),
    radial-gradient(ellipse at 18% 82%, rgba(124, 146, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, #363840 0%, #181a20 48%, #07080b 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.home-player-search {
  width: 100%;
}

.hero-player-search {
  width: min(760px, 100%);
  margin: 0 auto auto;
}

.home-player-search .mlb-home-search {
  margin-bottom: 0;
}

.home-player-search .mlb-search-results:empty {
  display: none;
}

.hero.has-player-hero {
  background:
    radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, 0.12), transparent 24rem),
    radial-gradient(ellipse at 20% 86%, rgba(124, 146, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, #363840 0%, #181a20 48%, #07080b 100%);
  background-position: right -5rem top -5rem, left -10rem bottom -8rem, center;
  background-repeat: no-repeat;
  background-size: 54rem 34rem, 48rem 32rem, 100% 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.76) 0%, rgba(8, 8, 10, 0.28) 54%, rgba(8, 8, 10, 0.36) 100%),
    linear-gradient(to top, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.48) 52%, rgba(8, 8, 10, 0.18) 100%);
}

.hero.has-player-hero::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 0;
  background-image: var(--hero-player-image);
  background-position: center 36%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.9) contrast(1.03) brightness(0.88);
  opacity: 0.72;
  transform: scale(1.02);
}

.hero-copy,
.featured-card,
.hero-player-search,
.home-player-search {
  position: relative;
  z-index: 2;
}

.hero-copy {
  position: absolute;
  top: 26px;
  left: max(20px, calc((100vw - 1160px) / 2));
  padding: 0;
}

.eyebrow {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 6vw, 54px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.featured-card,
.game-card,
.overview-card,
.empty-card,
.note-card,
.score-detail,
.summary-card,
.timeline-card,
.official-card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
}

.featured-card {
  width: min(1160px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  margin-bottom: 22px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: #ffb4ad;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 69, 58, 0.14);
}

.featured-score,
.card-score,
.detail-score {
  display: grid;
  gap: 16px;
}

.featured-score {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 760px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(8, 8, 10, 0.3);
  backdrop-filter: blur(18px);
}

.featured-score .score-row {
  align-items: center;
}

.score-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.team-code {
  display: block;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.team-name {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.score {
  font-size: 56px;
  font-weight: 700;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}

.featured-score .team-code {
  font-size: clamp(28px, 8vw, 54px);
  letter-spacing: 0;
}

.featured-score .team-name {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.featured-score .score {
  min-width: 56px;
  font-size: clamp(34px, 9vw, 64px);
  text-align: right;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.featured-card .meta-line {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
}

.featured-ohtani-card {
  display: grid;
  gap: 14px;
  width: min(780px, 100%);
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.featured-ohtani-layout {
  display: grid;
  grid-template-columns: clamp(112px, 13vw, 136px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
}

.featured-ohtani-photo-wrap {
  width: clamp(112px, 13vw, 136px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.28);
}

.featured-ohtani-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-ohtani-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.featured-ohtani-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.featured-ohtani-kicker {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.featured-ohtani-head h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.featured-ohtani-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.featured-ohtani-meta span:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}

.featured-ohtani-meta span,
.featured-ohtani-stats {
  transition: opacity 260ms ease, transform 260ms ease, filter 260ms ease;
}

.featured-ohtani-meta span.is-switching,
.featured-ohtani-stats.is-switching {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
}

.featured-ohtani-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.featured-ohtani-stats div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  animation: featuredStatIn 360ms ease both;
}

.featured-ohtani-stats div:nth-child(2) {
  animation-delay: 28ms;
}

.featured-ohtani-stats div:nth-child(3) {
  animation-delay: 56ms;
}

.featured-ohtani-stats div:nth-child(4) {
  animation-delay: 84ms;
}

.featured-ohtani-stats div:nth-child(5) {
  animation-delay: 112ms;
}

.featured-ohtani-stats div:nth-child(6) {
  animation-delay: 140ms;
}

.featured-ohtani-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.featured-ohtani-stats strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(16px, 1.8vw, 21px);
  overflow-wrap: anywhere;
}

@keyframes featuredStatIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-ohtani-link {
  width: fit-content;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.featured-ohtani-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.featured-ohtani-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.data-status-bar {
  display: flex;
  width: min(1160px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#mlb-player-section {
  padding-top: 20px;
}

.home-player-search .mlb-home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 auto;
  max-width: 760px;
}

.home-player-search .mlb-home-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 8, 10, 0.52);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  color: var(--text);
  cursor: pointer;
}

.home-player-search .mlb-home-search button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(8, 8, 10, 0.58);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  color: var(--text);
  cursor: pointer;
}

.home-player-search .mlb-home-search button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.home-player-search .mlb-home-search button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.home-trending-players {
  width: min(760px, 100%);
  margin: 9px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.home-trending-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  align-items: center;
  width: 100%;
  min-height: 40px;
  gap: 10px;
  padding: 0 7px 0 13px;
  color: var(--text);
}

.home-trending-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.home-trending-top {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-trending-top span,
.home-trending-player-link span {
  color: #7ab5ff;
}

.home-trending-players.is-expanded .home-trending-top {
  display: none;
}

.home-trending-players.is-expanded .home-trending-toggle {
  grid-template-columns: minmax(0, 1fr) 32px;
}

.home-trending-players.is-expanded .home-trending-label {
  grid-column: 1;
}

.home-trending-players.is-expanded .home-trending-expand {
  grid-column: 2;
  justify-self: end;
}

.home-trending-top.is-rotating {
  animation: home-trending-rise 260ms ease both;
}

@keyframes home-trending-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-trending-expand {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.home-trending-expand:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.home-trending-chevron {
  color: currentColor;
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.home-trending-players.is-expanded .home-trending-chevron {
  transform: rotate(180deg);
}

.home-trending-list {
  display: grid;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 240ms ease, opacity 180ms ease, transform 220ms ease, border-color 180ms ease;
}

.home-trending-players.is-expanded .home-trending-list {
  max-height: 220px;
  border-top-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: translateY(0);
}

.home-trending-player-link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: inherit;
  text-decoration: none;
}

.home-trending-player-link + .home-trending-player-link {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.home-trending-player-link span {
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.home-trending-player-link strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-trending-player-link:hover {
  background: rgba(255, 255, 255, 0.055);
}

.home-player-search .mlb-search-status {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.home-player-search .mlb-search-results {
  display: grid;
  gap: 10px;
  margin: 12px auto 34px;
  max-width: 760px;
}

.home-player-search .mlb-search-result {
  display: grid;
  align-items: center;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 31, 37, 0.94), rgba(15, 16, 20, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.home-player-search .mlb-search-result:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(42, 43, 50, 0.96), rgba(20, 21, 26, 0.94));
}

.home-player-search .mlb-search-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.home-player-search .mlb-search-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-player-search .mlb-search-avatar img.is-missing {
  display: none;
}

.home-player-search .mlb-search-copy {
  min-width: 0;
}

.home-player-search .mlb-search-result h3 {
  margin: 0 0 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.home-player-search .mlb-search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.home-player-search .mlb-empty-result {
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 16, 20, 0.92);
  color: var(--muted);
  font-size: 13px;
}

#mlb-player-section .mlb-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

#mlb-player-section .mlb-section-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

#mlb-player-section .mlb-carousel-controls {
  display: flex;
  gap: 10px;
}

#mlb-player-section .mlb-carousel-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

#mlb-player-section .mlb-carousel-controls button:hover {
  background: rgba(255, 255, 255, 0.12);
}

#mlb-player-section .mlb-player-carousel-wrap {
  overflow: hidden;
}

#mlb-player-section .mlb-player-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

#mlb-player-section .mlb-player-card {
  min-width: 280px;
  width: 280px;
  flex: 0 0 auto;
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  scroll-snap-align: center;
  cursor: pointer;
  text-align: left;
}

#mlb-player-section .mlb-player-card:hover {
  transform: translateY(-2px);
}

#mlb-player-section .mlb-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

#mlb-player-section .mlb-card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mlb-player-section .mlb-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

#mlb-player-section .mlb-card-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

#mlb-player-section .mlb-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#mlb-player-section .mlb-card-stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  min-height: 56px;
}

#mlb-player-section .mlb-card-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

#mlb-player-section .mlb-card-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

#mlb-player-section .mlb-api-notice {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  max-width: 760px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) {
  margin-top: 32px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 14px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-games-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 420px;
  text-align: right;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-recent-games-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-games-divider {
  width: 100%;
  height: 1px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line), rgba(255, 255, 255, 0.02));
}

#mlb-live-games-section .mlb-games-divider {
  height: 2px;
  background: linear-gradient(90deg, #2f80ed, rgba(47, 128, 237, 0.04));
}

#mlb-recent-games-section .mlb-games-divider {
  opacity: 0.62;
}

#mlb-games-section .mlb-games-datebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mlb-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 2;
}

#mlb-games-section .mlb-games-datebar button {
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

#mlb-games-section #mlb-games-today {
  min-width: 112px;
}

#mlb-games-section .mlb-games-refresh-button {
  justify-self: end;
  min-width: 38px;
  padding: 0;
  font-size: 16px;
}

#mlb-games-section .mlb-games-refresh-button.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

#mlb-games-section .mlb-games-refresh-button.is-loading {
  animation: refresh-spin 720ms linear infinite;
}

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

#mlb-games-section .mlb-games-datebar button:hover {
  background: rgba(255, 255, 255, 0.11);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-wide-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-wide-card:hover {
  transform: translateY(-1px);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team.away {
  justify-content: flex-start;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team.home {
  justify-content: flex-end;
  text-align: right;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team.winner {
  background: rgba(255, 255, 255, 0.08);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team img.mlb-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  object-fit: contain;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team span {
  color: var(--muted);
  font-size: 12px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team p {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  min-width: 56px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-center {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-center .mlb-game-status {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-center strong {
  font-size: 18px;
  color: var(--text);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-center p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-center small {
  color: var(--quiet);
  font-size: 12px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-empty-result {
  padding: 30px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-recent-games-list {
    grid-template-columns: 1fr;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-wide-card {
    grid-template-columns: 1fr;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-team.home {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 650px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-recent-games-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .home-player-search .mlb-home-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #mlb-player-section .mlb-player-card {
    min-width: 240px;
  }
}

@media (max-width: 620px) {
  .featured-ohtani-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .featured-ohtani-photo-wrap {
    width: 112px;
  }

  .featured-ohtani-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-ohtani-meta {
    align-items: flex-start;
  }

  .featured-ohtani-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #mlb-player-section .mlb-section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #mlb-player-section .mlb-carousel-controls {
    width: 100%;
  }
}
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #8e8e93;
}

.source-dot.is-loading {
  background: #ffd60a;
  box-shadow: 0 0 0 5px rgba(255, 214, 10, 0.12);
}

.source-dot.is-live {
  background: #30d158;
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.12);
}

.source-dot.is-fallback {
  background: #ff9f0a;
  box-shadow: 0 0 0 5px rgba(255, 159, 10, 0.12);
}

.refresh-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.section {
  width: min(1160px, 100%);
  margin-right: auto;
  margin-left: auto;
  margin-top: 54px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.segment {
  display: flex;
  width: 100%;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.segment button,
.ghost-button {
  border: 0;
  cursor: pointer;
}

.segment button {
  flex: 1 0 auto;
  min-width: 70px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: 160ms ease;
}

.segment button.is-active {
  background: var(--accent);
  color: #08080a;
}

.league-tabs {
  max-width: 100%;
}

.top-league-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
}

.top-league-tabs button {
  min-width: 58px;
}

.overview-grid,
.notes-grid,
.personal-grid {
  display: grid;
  gap: 14px;
}

.overview-card,
.note-card,
.personal-card,
.empty-card {
  padding: 20px;
}

.overview-card h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.08;
}

.overview-card p,
.note-card p,
.personal-card p,
.empty-card {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.personal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.personal-card h3 {
  margin-bottom: 10px;
}

.personal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.metric {
  display: block;
  margin-bottom: 12px;
  font-size: 44px;
  font-weight: 750;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.metric.compact {
  font-size: 34px;
}

.game-grid {
  display: grid;
  gap: 14px;
}

.skeleton-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 220% 100%;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

@keyframes skeletonPulse {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.upcoming-grid .game-card {
  background: rgba(255, 255, 255, 0.035);
}

.game-card {
  width: 100%;
  padding: 20px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.game-card:hover {
  transform: translateY(-2px);
  background: var(--card-strong);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.sport-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.sport-tag {
  color: var(--quiet);
}

.source-tag {
  display: inline-flex;
  margin-top: 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.status-pill.live {
  border-color: rgba(255, 69, 58, 0.28);
  background: rgba(255, 69, 58, 0.12);
  color: #ffb4ad;
}

.card-score .team-code {
  font-size: 22px;
}

.card-score .score {
  font-size: 34px;
}

.detail-section {
  display: none;
}

.detail-section.is-open {
  display: block;
}

.detail-layout {
  display: grid;
  gap: 16px;
}

.detail-layout.lower {
  margin-top: 16px;
}

.score-detail,
.summary-card,
.timeline-card,
.official-card {
  padding: 22px;
}

.detail-title {
  margin-bottom: 28px;
}

.summary-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-time {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.official-link,
.ghost-button,
.account-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.official-link {
  padding: 0 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  transition: 160ms ease;
}

.account-action {
  padding: 0 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.official-link:hover,
.ghost-button:hover,
.account-action:hover,
.account-action.is-active {
  background: var(--accent);
  color: #08080a;
}

.ghost-button {
  align-self: start;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: right;
}

tr:last-child td {
  border-bottom: 0;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-cell strong,
.team-cell small {
  display: block;
}

.team-cell small {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(16px);
}

.modal-backdrop.is-open {
  display: grid;
}

.login-modal {
  width: min(480px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(18, 18, 21, 0.96);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-head h2 {
  font-size: 28px;
}

.modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.login-form,
.interest-block {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.interest-block h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.login-submit,
.login-secondary {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.login-submit {
  background: var(--accent);
  color: #08080a;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

.login-social:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-social svg {
  flex: 0 0 auto;
}

.login-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

#signup-terms {
  display: grid;
  gap: 10px;
  margin: 0;
}

#signup-terms .checkbox-field {
  margin-top: 0;
}

#signup-terms[hidden] {
  display: none;
}

.auth-toggle,
.login-status,
.modal-status {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-toggle button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.interest-block {
  margin-top: 18px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 720px) {
  .topbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 24px;
    padding: 18px clamp(28px, 5vw, 72px);
  }

  .top-league-tabs {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .account-area {
    grid-column: 3;
    justify-self: end;
  }

  main {
    padding: 0 28px 96px;
  }

  .data-status-bar {
    margin-top: 22px;
  }

  .hero {
    min-height: clamp(620px, 74vh, 760px);
    background-size: 100% 100%, 54rem 34rem, 48rem 32rem, 100% 100%;
    background-position: center, right -6rem top -5rem, left -10rem bottom -8rem, center;
  }

  .hero.has-player-hero {
    background-size: 64rem 40rem, 52rem 34rem, 100% 100%;
    background-position: right -8rem top -6rem, left -12rem bottom -9rem, center;
  }

  .hero.has-player-hero::after {
    inset: -16px;
    background-position: center 40%;
    opacity: 0.76;
    transform: scale(1.08);
  }

  .section-head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .segment {
    width: auto;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overview-card.wide {
    grid-column: span 4;
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }
}

@media (min-width: 1040px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .overview-grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }

  .overview-card.wide {
    grid-column: span 1;
  }

  .notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-card {
    padding: 0;
  }

  .featured-score {
    max-width: 860px;
  }

  .featured-score .score-row {
    display: flex;
  }

  .featured-card .meta-line {
    max-width: 860px;
  }
}

/* Recent Games — Scoreboard list (scoped only under :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section)) */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-recent-games-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 132px;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  gap: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078) 0%, rgba(255, 255, 255, 0.034) 100%),
    var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live {
  grid-template-columns: minmax(0, 1fr) 128px minmax(0, 1fr) !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-away-team {
  grid-column: 1 !important;
  justify-self: start !important;
  text-align: left !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
  grid-column: 2 !important;
  justify-self: center !important;
  text-align: center !important;
  width: 156px !important;
  min-width: 156px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  z-index: 3;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team {
  grid-column: 3 !important;
  justify-self: end !important;
  text-align: right !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score-line {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  width: 100% !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-situation-slot {
  flex-shrink: 0 !important;
  width: 24px !important;
  display: flex !important;
  justify-content: center !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-state {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row:focus-visible {
  outline: 2px solid rgba(159, 203, 255, 0.72);
  outline-offset: 2px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105) 0%, rgba(255, 255, 255, 0.048) 100%),
    var(--card-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
  flex-direction: column !important; /* 세로형일 때는 다시 컬럼으로 */
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-watermark {
  position: absolute;
  top: 50%;
  width: 86px;
  height: 86px;
  object-fit: contain;
  opacity: 0.18;
  pointer-events: none;
  filter: brightness(0.88);
  transform: translateY(-50%);
  z-index: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-away-team .mlb-team-watermark {
  left: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-team-watermark {
  right: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-has-media.mlb-away-team {
  padding-left: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-has-media.mlb-home-team {
  padding-right: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-team-has-media {
  padding-left: 0;
  padding-right: 0;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-team-text {
  align-items: flex-end !important;
  text-align: right !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-away-team .mlb-team-text {
  align-items: flex-start !important;
  text-align: left !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-team-name-row {
  justify-content: flex-end !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-away-team .mlb-team-name-row {
  justify-content: flex-start !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.mlb-away-team {
  justify-content: flex-start;
  text-align: left;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.mlb-home-team {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row-reverse !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team {
  justify-content: center;
  text-align: center;
  justify-self: start;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
  justify-content: center;
  text-align: center;
  justify-self: end;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-situation-slot {
  display: grid;
  min-width: 0;
  place-items: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo.is-player-photo {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo.is-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  z-index: 2;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text {
  align-items: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-text strong {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-name-row {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-team-name-row {
  justify-content: flex-end;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-name-row {
  justify-content: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-badge {
  display: inline-block;
  font-size: 10px;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 800;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-probable,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-probable-pitcher {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-probable-pitcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-probable-pitcher {
  justify-content: flex-end;
  align-self: flex-end;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-probable-pitcher {
  justify-content: center;
  align-self: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-decision-badge {
  display: inline-grid;
  min-width: 19px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-decision-badge.is-win {
  background: rgba(47, 128, 237, 0.18);
  color: #7ab5ff;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-decision-badge.is-loss {
  background: rgba(255, 255, 255, 0.08);
  color: var(--quiet);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-decision-badge.is-save {
  background: rgba(168, 139, 250, 0.17);
  color: #c8b8ff;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-decision-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-record {
  display: none;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-date,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-time,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-venue {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-time {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

#mlb-recent-games-section .mlb-game-time {
  display: none;
}

#mlb-games-section .mlb-game-date {
  display: none;
}

#mlb-games-section .mlb-scoreboard-row.is-final .mlb-game-time {
  display: none;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-venue {
  display: none;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
  z-index: 3;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  min-width: 26px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score.is-loser {
  opacity: 0.55;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-state {
  font-size: 12px;
  color: #2f80ed; /* blue emphasis for status */
  font-weight: 800;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-state.is-muted {
  color: var(--muted);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-live-state {
  display: inline-flex;
  align-items: center;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-live-situation {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-live-inning {
  display: inline-flex;
  min-width: 42px;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgba(122, 181, 255, 0.22);
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  line-height: 1;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-inning-number {
  color: var(--text);
  font-size: 15px;
  font-weight: 950;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-inning-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-inning-arrow.is-top {
  border-bottom: 8px solid #7ab5ff;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-inning-arrow.is-bottom {
  border-top: 8px solid #7ab5ff;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-inning-arrow.is-neutral {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #7ab5ff;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-base-diamond {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 20px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-base-diamond .base {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(47, 128, 237, 0.55);
  border-radius: 2px;
  background: rgba(47, 128, 237, 0.08);
  transform: rotate(45deg);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-base-diamond .base.is-on {
  background: #2f80ed;
  border-color: #7ab5ff;
  box-shadow: 0 0 7px rgba(47, 128, 237, 0.45);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-base-diamond .second {
  top: 0;
  left: 50%;
  margin-left: -4.5px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-base-diamond .third {
  left: 1px;
  bottom: 1px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-base-diamond .first {
  right: 1px;
  bottom: 1px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-out-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 10px;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-out-count i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.18);
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-out-count i.is-on {
  background: #7ab5ff;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row small,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row .row-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-recent-games-list {
    grid-template-columns: 1fr;
  }
}

/* mobile: stack rows vertically */
@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding: 26px 18px;
    min-height: auto;
    gap: 10px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live {
    grid-template-columns: minmax(92px, 1fr) 28px auto 28px minmax(92px, 1fr);
    grid-auto-rows: initial;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team {
    justify-content: flex-start;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo {
    width: 40px;
    height: 40px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-text strong {
    font-size: 16px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score {
    font-size: 28px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-state {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .topbar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 76px;
    align-items: stretch;
    gap: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(9, 10, 13, 0.92);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(22px) saturate(1.16);
    backdrop-filter: blur(22px) saturate(1.16);
  }

  .brand {
    display: flex;
    grid-column: auto;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    color: rgba(244, 245, 247, 0.48);
    text-align: center;
  }

  .brand strong {
    display: none;
  }

  .mobile-nav-icon,
  .mobile-nav-label,
  .brand .mobile-nav-label {
    display: block;
  }

  .mobile-nav-icon {
    width: 29px;
    height: 29px;
    margin: 0 auto;
    flex: 0 0 auto;
  }

  .mobile-nav-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-nav {
    display: contents;
  }

  .top-nav a {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(244, 245, 247, 0.48);
    font-size: 12px;
  }

  .top-nav a.mobile-only-nav {
    display: flex;
  }

  .top-nav a.pc-search-nav {
    display: none;
  }

  .account-area {
    position: relative;
    display: flex;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    justify-content: center;
    z-index: auto;
  }

  .profile-button {
    width: 100%;
    height: 58px;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(244, 245, 247, 0.48);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .account-name {
    display: none;
  }

  .profile-button::after {
    content: "계정";
    display: block;
    color: currentColor;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
  }

  .profile-avatar {
    width: 29px;
    height: 29px;
    border: 0;
    background: transparent;
    color: currentColor;
  }

  .profile-avatar .icon {
    width: 29px;
    height: 29px;
  }

  .brand.is-active,
  .top-nav a[aria-current="page"],
  .profile-button[aria-expanded="true"] {
    color: #fff;
  }

  .profile-menu {
    position: fixed;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: min(320px, calc(100vw - 24px));
  }

  main {
    padding: 0 12px 112px;
  }

  .section {
    width: 100%;
    margin-top: 28px;
  }

  .hero {
    min-height: auto;
    width: calc(100% + 24px);
    margin-left: -12px;
    padding: 72px 12px 22px;
  }

  .hero.has-player-hero::after {
    background-position: center top;
    opacity: 0.58;
  }

  .hero::before {
    background:
      linear-gradient(to top, rgba(8, 8, 10, 0.96) 0%, rgba(8, 8, 10, 0.62) 54%, rgba(8, 8, 10, 0.28) 100%);
  }

  .hero-player-search {
    width: 100%;
    margin-bottom: 22px;
    transform: translateY(-24px);
  }

  .home-player-search .mlb-home-search {
    gap: 8px;
    margin-bottom: 0;
  }

  .home-player-search .mlb-home-search input {
    height: 44px;
    padding: 0 13px;
    border-radius: 13px;
    font-size: 14px;
  }

  .home-player-search .mlb-home-search button {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .home-player-search .mlb-search-results {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 0;
  }

  .home-player-search .mlb-search-result {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 13px;
  }

  .featured-ohtani-card {
    margin-top: 0;
  }

  .featured-ohtani-layout {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .featured-ohtani-photo-wrap {
    width: 72px;
    align-self: start;
  }

  .featured-ohtani-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .featured-ohtani-kicker {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .featured-ohtani-head h3 {
    font-size: 24px;
  }

  .featured-ohtani-meta {
    align-items: flex-end;
    gap: 2px;
    font-size: 11px;
  }

  .featured-ohtani-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .featured-ohtani-stats div {
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 13px;
  }

  .featured-ohtani-stats span {
    font-size: 10px;
  }

  .featured-ohtani-stats strong {
    margin-top: 4px;
    font-size: 16px;
  }

  .featured-ohtani-link {
    grid-column: 1 / -1;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) {
    margin-top: 18px;
  }

  #mlb-games-section .mlb-games-datebar {
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  #mlb-games-section .mlb-games-datebar button {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-games-divider {
    margin-bottom: 10px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-recent-games-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 124px;
    padding: 24px 12px;
    gap: 8px;
    border-radius: 14px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live {
  grid-template-columns: minmax(64px, 1fr) 36px auto 36px minmax(64px, 1fr);
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team {
    gap: 6px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-watermark {
    width: 58px;
    height: 58px;
    opacity: 0.16;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-away-team .mlb-team-watermark {
    left: 0;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-team-watermark {
    right: 0;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-has-media.mlb-away-team {
    padding-left: 0;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-has-media.mlb-home-team {
    padding-right: 0;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.mlb-home-team {
    justify-content: center;
    text-align: center;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo {
    width: 28px;
    height: 28px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo.is-player-photo {
    width: 34px;
    height: 34px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-text strong {
    font-size: 12px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-badge {
    display: none;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-probable-pitcher {
    max-width: 104px;
    font-size: 9px;
    line-height: 1.15;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
    min-width: 70px;
    gap: 2px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score-line {
    gap: 6px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score {
    min-width: 20px;
    font-size: 18px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-state {
    font-size: 11px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-date,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-game-time {
    font-size: 11px;
  }

  #mlb-player-section {
    padding-top: 0;
  }

  #mlb-player-section .mlb-section-title-row {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 0 10px;
  }

  #mlb-player-section .mlb-section-title {
    font-size: 16px;
  }

  #mlb-player-section .mlb-carousel-controls {
    width: auto;
    gap: 8px;
  }

  #mlb-player-section .mlb-carousel-controls button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  #mlb-player-section .mlb-player-carousel {
    gap: 10px;
    padding-bottom: 2px;
    scroll-padding-left: 2px;
  }

  #mlb-player-section .mlb-player-card {
    width: min(260px, 82vw);
    min-width: min(260px, 82vw);
    padding: 16px;
    border-radius: 20px;
  }

  #mlb-player-section .mlb-card-avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  #mlb-player-section .mlb-card-title {
    margin-bottom: 5px;
    font-size: 16px;
  }

  #mlb-player-section .mlb-card-subtitle {
    margin-bottom: 12px;
    font-size: 12px;
  }

  #mlb-player-section .mlb-card-grid {
    gap: 8px;
  }

  #mlb-player-section .mlb-card-stat {
    min-height: 50px;
    padding: 9px 10px;
    border-radius: 13px;
  }

  #mlb-player-section .mlb-card-stat span {
    font-size: 10px;
  }

  #mlb-player-section .mlb-card-stat strong {
    margin-top: 4px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .featured-ohtani-layout {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .featured-ohtani-photo-wrap {
    width: 60px;
  }

  .featured-ohtani-head h3 {
    font-size: 21px;
  }

  .featured-ohtani-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row {
    min-height: 112px;
    padding: 18px 10px;
    gap: 6px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo {
    width: 24px;
    height: 24px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
    min-width: 62px;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score {
    min-width: 18px;
    font-size: 18px;
  }
}

.followed-player-label {
  position: absolute;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 999px;
  padding: 2px; /* 전체적인 패딩 축소 */
}

.followed-player-label.is-away {
  left: 12px; /* 위치 조정 */
}

.followed-player-label.is-home {
  right: 12px; /* 위치 조정 */
}

.followed-player-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* 크기 축소 */
  height: 24px;
}

.followed-player-chip img {
  width: 20px; /* 이미지 크기 축소 */
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.followed-player-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 6px 0 2px; /* 여백 최소화 */
  color: #ffd700;
  font-size: 9px; /* 폰트 크기 축소 */
  font-weight: 900;
}

.followed-player-label svg {
  flex-shrink: 0;
}

/* Decision Stack for Vertical Layout */
.mlb-scoreboard-team.is-vertical .mlb-decision-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mlb-scoreboard-team.is-vertical .mlb-decision-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Vertical Card Spacing */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-vertical-card {
  padding-left: 30px !important;
  padding-right: 30px !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-vertical-card {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* Scoreboard symmetry fix: keep team columns equal and center score locked */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row {
  grid-template-columns: minmax(0, 1fr) 142px minmax(0, 1fr) !important;
  column-gap: 14px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live {
  grid-template-columns: minmax(0, 1fr) 142px minmax(0, 1fr) !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-self: center !important;
  justify-self: stretch !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
  justify-self: stretch !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-name-row,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-probable-pitcher {
  width: 100% !important;
  max-width: 150px !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  text-align: center !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-logo.is-player-photo {
  flex: 0 0 auto !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
  grid-column: 2 !important;
  place-self: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 142px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-score-line {
  width: 100% !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live {
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
    max-width: 112px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-name-row,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-probable-pitcher {
    max-width: 108px !important;
  }
}

@media (max-width: 420px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) !important;
    column-gap: 6px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-center {
    max-width: 96px !important;
  }
}


/* Scoreboard team inner alignment: fixed media/text slots */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-team-main {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  align-items: center !important;
  gap: 8px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-away-team .mlb-team-main {
  justify-content: flex-start !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-home-team .mlb-team-main {
  justify-content: flex-end !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-main {
  display: grid !important;
  grid-template-rows: 42px 40px !important;
  width: min(100%, 156px) !important;
  max-width: 156px !important;
  justify-items: center !important;
  align-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 7px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo.is-player-photo {
  grid-row: 1 !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 auto !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text {
  grid-row: 2 !important;
  display: grid !important;
  grid-template-rows: 16px 16px !important;
  width: 100% !important;
  min-height: 36px !important;
  max-width: 156px !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 3px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-name-row,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-recent-games-section, #mlb-upcoming-games-section) .mlb-scoreboard-team.is-vertical .mlb-probable-pitcher {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-main {
    grid-template-rows: 38px 38px !important;
    width: min(100%, 118px) !important;
    max-width: 118px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo.is-player-photo {
    width: 36px !important;
    height: 36px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text {
    max-width: 118px !important;
  }
}


/* Scoreboard side-biased team placement */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
  justify-content: flex-end !important;
  align-items: flex-end !important;
  text-align: right !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-main {
  justify-content: start !important;
  justify-items: start !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-main {
  justify-content: end !important;
  justify-items: end !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-scoreboard-logo.is-player-photo {
  margin: 0 auto 0 0 !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-scoreboard-logo.is-player-photo {
  margin: 0 0 0 auto !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-text,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-name-row,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-probable-pitcher {
  justify-items: start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-text,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-name-row,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-probable-pitcher {
  justify-items: end !important;
  justify-content: flex-end !important;
  text-align: right !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team {
    padding-left: 2px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
    padding-right: 2px !important;
  }
}


/* Scoreboard side placement refinement: slight side offset, centered content */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
  align-items: center !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-main {
  margin-left: clamp(8px, 2.2vw, 20px) !important;
  margin-right: auto !important;
  justify-items: center !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-main {
  margin-left: auto !important;
  margin-right: clamp(8px, 2.2vw, 20px) !important;
  justify-items: center !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-scoreboard-logo.is-player-photo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-scoreboard-logo.is-player-photo {
  margin-left: auto !important;
  margin-right: auto !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-text,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-text,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-name-row,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-name-row,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-probable-pitcher,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-probable-pitcher {
  justify-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team .mlb-team-main {
    margin-left: 4px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team .mlb-team-main {
    margin-right: 4px !important;
  }
}


/* Final scoreboard vertical centering guard */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-away-team,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical.mlb-home-team {
  justify-content: center !important;
}


/* Live situation breathing room beside scores */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live .mlb-score-line {
  gap: 14px !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-row.is-live .mlb-score-line {
    gap: 10px !important;
  }
}


/* Tighten stacked team identity inside scoreboard cards */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-main {
  grid-template-rows: 38px 34px !important;
  gap: 3px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo.is-player-photo {
  width: 36px !important;
  height: 36px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text {
  grid-template-rows: 15px 15px !important;
  min-height: 31px !important;
  gap: 1px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-probable-pitcher {
  line-height: 1.05 !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-main {
    grid-template-rows: 34px 32px !important;
    gap: 2px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo.is-player-photo {
    width: 32px !important;
    height: 32px !important;
  }
}


/* Moderate team identity spacing */
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-main {
  grid-template-rows: 40px 36px !important;
  gap: 5px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo,
:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo.is-player-photo {
  width: 38px !important;
  height: 38px !important;
}

:is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-text {
  grid-template-rows: 15px 15px !important;
  min-height: 33px !important;
  gap: 2px !important;
}

@media (max-width: 768px) {
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-team-main {
    grid-template-rows: 36px 33px !important;
    gap: 3px !important;
  }

  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo,
  :is(#mlb-games-section, #mlb-live-games-section, #mlb-upcoming-games-section, #mlb-recent-games-section) .mlb-scoreboard-team.is-vertical .mlb-scoreboard-logo.is-player-photo {
    width: 34px !important;
    height: 34px !important;
  }
}


/* Games datebar actions and sort button */
#mlb-games-section .mlb-games-actions {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 8px;
}

#mlb-games-section .mlb-games-sort-button {
  min-width: 62px;
  padding: 0 14px;
  color: var(--muted);
}

#mlb-games-section .mlb-games-sort-button.is-active {
  border-color: rgba(122, 181, 255, 0.36);
  background: rgba(47, 128, 237, 0.16);
  color: #b9d8ff;
}

@media (max-width: 700px) {
  #mlb-games-section .mlb-games-datebar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #mlb-games-section .mlb-games-actions {
    grid-column: 1;
    justify-self: center;
  }
}


/* Icon-only sort button */
#mlb-games-section .mlb-games-sort-button {
  display: inline-grid;
  min-width: 38px;
  width: 38px;
  padding: 0;
  place-items: center;
}

#mlb-games-section .mlb-games-sort-button svg {
  width: 18px;
  height: 18px;
}

/* Mobile games date controls */
@media (max-width: 700px) {
  #mlb-games-section .mlb-games-datebar {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    align-items: center;
    width: 100%;
    gap: 8px;
    overflow: visible;
  }

  #mlb-games-section .mlb-date-nav {
    grid-column: 1;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
  }

  #mlb-games-section .mlb-games-actions {
    grid-column: 2;
    justify-self: end;
    gap: 6px;
  }

  #mlb-games-section .mlb-games-datebar button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
  }

  #mlb-games-section #mlb-games-today {
    min-width: 96px;
    max-width: 118px;
    white-space: nowrap;
  }

  #mlb-games-section .mlb-games-sort-button,
  #mlb-games-section .mlb-games-refresh-button {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
  }
}

@media (max-width: 370px) {
  #mlb-games-section .mlb-games-datebar {
    gap: 6px;
  }

  #mlb-games-section .mlb-date-nav,
  #mlb-games-section .mlb-games-actions {
    gap: 5px;
  }

  #mlb-games-section #mlb-games-today {
    min-width: 88px;
    max-width: 104px;
    font-size: 12px;
  }

  #mlb-games-section .mlb-games-datebar button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
  }

  #mlb-games-section .mlb-games-sort-button,
  #mlb-games-section .mlb-games-refresh-button {
    min-width: 34px;
    width: 34px;
    height: 34px;
  }
}

/* Center mobile games date controls */
@media (max-width: 700px) {
  #mlb-games-section .mlb-games-datebar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 38px;
    gap: 0;
    overflow: visible;
  }

  #mlb-games-section .mlb-date-nav {
    grid-column: auto;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    margin: 0 auto;
  }

  #mlb-games-section .mlb-games-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    grid-column: auto;
    justify-self: auto;
    gap: 6px;
  }
}

@media (max-width: 370px) {
  #mlb-games-section .mlb-games-datebar {
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-trending-top.is-rotating {
    animation: none;
  }

  .home-trending-list,
  .home-trending-chevron {
    transition: none;
  }
}
