:root {
  --bg: #091321;
  --panel: rgba(9, 19, 33, 0.86);
  --panel-soft: rgba(18, 31, 51, 0.84);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: #a9b7cc;
  --accent: #2fd0ff;
  --accent-2: #67f0b1;
  --warning: #ffd166;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 46vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(6, 12, 23, 0.26), rgba(6, 12, 23, 0.86)),
    radial-gradient(circle at top right, rgba(47, 208, 255, 0.24), transparent 28%),
    linear-gradient(120deg, rgba(103, 240, 177, 0.14), transparent 42%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 3vw, 32px);
  display: grid;
  gap: 20px;
}

.top-bar,
.toolbar,
.section-head,
.section-head--tight,
.score-strip,
.team-summary,
.mini-card__row,
.game-card__row,
.team-line,
.controls-wrap,
.hero__panel-top,
.toolbar__actions,
.toolbar__group,
.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar,
.hero__panel-top,
.section-head,
.section-head--tight,
.score-strip {
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.controls,
.upload-btn {
  border-radius: 999px;
  background: rgba(7, 13, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.controls {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
}

.lang-btn,
.tab-btn,
.primary-btn,
.game-card,
.upload-btn {
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.upload-btn {
  color: var(--text);
  padding: 12px 16px;
}

.upload-btn:hover,
.primary-btn:hover,
.game-card:hover,
.tab-btn:hover,
.lang-btn:hover {
  transform: translateY(-1px);
}

.lang-btn {
  min-width: 52px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

.lang-btn.is-active,
.tab-btn.is-active {
  background: rgba(47, 208, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(47, 208, 255, 0.3);
}

.hero__panel,
.panel,
.mini-card,
.meta-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__panel {
  max-width: 980px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
}

.hero__meta {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.meta-chip {
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.eyebrow,
.section-label,
.muted,
.toolbar__label,
.small-note {
  color: var(--muted);
  margin: 0;
}

.hero__panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
}

.hero__description {
  margin: 0;
  line-height: 1.6;
  max-width: 720px;
}

.toolbar {
  margin-top: 18px;
  flex-wrap: wrap;
}

.toolbar__group {
  flex-wrap: wrap;
}

.date-input,
.primary-btn {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  min-height: 46px;
}

.date-input {
  padding: 0 14px;
}

.primary-btn {
  padding: 0 18px;
  background: linear-gradient(135deg, rgba(47, 208, 255, 0.9), rgba(103, 240, 177, 0.9));
  color: #03121c;
  font-weight: 700;
}

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

.hero__chips span,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  padding: clamp(16px, 3vw, 28px);
}

.panel {
  border-radius: var(--radius);
  padding: 18px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head--tight {
  margin-bottom: 14px;
}

.section-head h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.games-list {
  display: grid;
  gap: 12px;
  max-height: 95vh;
  overflow: auto;
  padding-right: 4px;
}

.game-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.game-card.is-active {
  outline: 2px solid rgba(47, 208, 255, 0.38);
}

.game-card__meta,
.game-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.team-line {
  justify-content: flex-start;
}

.logo-badge,
.team-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.team-logo {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.score-strip,
.team-summary {
  margin-bottom: 18px;
}

.score-strip {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  flex-wrap: wrap;
}

.team-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  border-radius: 20px;
  padding: 16px;
}

.mini-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.mini-card__row--team {
  justify-content: space-between;
}

.team-header {
  gap: 10px;
}

.team-code {
  font-size: 1.2rem;
  font-weight: 800;
}

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

.tab-btn {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

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

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.feed-list,
.prediction-list {
  display: grid;
  gap: 12px;
}

.feed-item,
.prediction-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.feed-item small,
.prediction-card small,
.player-trend {
  color: var(--muted);
}

.feed-item p,
.prediction-card p {
  margin: 8px 0 0;
}

.prediction-card__row,
.prediction-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.prediction-card__meta {
  margin-top: 10px;
  flex-wrap: wrap;
}

.confidence-badge,
.team-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-label {
  font-size: 0.85rem;
}

.warn {
  color: var(--warning);
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .games-list {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .top-bar,
  .hero__panel-top,
  .toolbar,
  .controls-wrap,
  .section-head,
  .section-head--tight,
  .score-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .controls-wrap {
    width: 100%;
  }

  .controls,
  .upload-btn,
  .primary-btn,
  .date-input {
    width: 100%;
    justify-content: center;
  }

  .team-summary {
    grid-template-columns: 1fr;
  }

  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }
}


.game-card__team-name {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.players-vs-cell {
  padding: 0;
}

.players-vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px;
}

.vs-team-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.vs-team-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.vs-team-card__head h4 {
  margin: 0;
  font-size: 1rem;
}

.vs-team-card__subhead {
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.vs-player-list {
  display: grid;
}

.vs-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.vs-player-row strong {
  display: block;
}

.vs-player-meta {
  text-align: right;
  min-width: 120px;
}

.team-logo-large {
  width: 42px;
  height: 42px;
}

@media (max-width: 900px) {
  .players-vs-grid {
    grid-template-columns: 1fr;
  }
}


.standings-wrap {
  padding: 0 clamp(16px, 3vw, 28px) 20px;
}

.standings-panel {
  padding: 18px;
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.standings-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.standings-table-wrap {
  max-height: 620px;
  overflow: auto;
}

.standings-table th:nth-child(1),
.standings-table td:nth-child(1),
.standings-table th:nth-child(3),
.standings-table td:nth-child(3),
.standings-table th:nth-child(4),
.standings-table td:nth-child(4),
.standings-table th:nth-child(5),
.standings-table td:nth-child(5),
.standings-table th:nth-child(6),
.standings-table td:nth-child(6),
.standings-table th:nth-child(7),
.standings-table td:nth-child(7) {
  white-space: nowrap;
}

.scorers-grid {
  padding: 4px;
}

@media (max-width: 1080px) {
  .standings-grid {
    grid-template-columns: 1fr;
  }
}


.secondary-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}

.mobile-back-btn {
  display: none;
}

.feed-item--button {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}

.feed-item--button:hover {
  background: rgba(255,255,255,0.06);
}

.play-detail-screen {
  display: none;
}

.play-detail-screen__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.play-detail-screen__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.play-detail-screen__head h3 {
  margin: 4px 0 0;
}

.play-detail-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.play-detail-summary,
.play-detail-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.play-detail-copy,
.play-detail-list {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.play-detail-list {
  display: grid;
  gap: 10px;
}

.play-detail-list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.standings-card--single {
  width: 100%;
}

@media (max-width: 1100px) {
  .hero__panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .panel--games {
    order: 2;
  }

  .panel--detail {
    order: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 14px;
  }

  .top-bar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .controls-wrap {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .controls-wrap::-webkit-scrollbar,
  .toolbar::-webkit-scrollbar,
  .hero__chips::-webkit-scrollbar,
  .panel--detail::-webkit-scrollbar {
    height: 0;
    width: 0;
  }

  .brand__badge {
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero__panel {
    padding: 16px;
    border-radius: 20px;
  }

  .hero__panel h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .toolbar {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    align-items: center;
  }

  .toolbar__group,
  .toolbar__actions {
    width: auto;
    flex-wrap: nowrap;
  }

  .date-input {
    width: auto;
    min-width: 148px;
  }

  .primary-btn {
    width: auto;
    flex: 0 0 auto;
  }

  .hero__chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
  }

  .hero__chips > * {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    min-width: max-content;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding-inline: 14px;
  }

  .panel {
    border-radius: 22px;
  }

  .prediction-list {
    grid-template-columns: 1fr;
  }

  .score-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
  }

  .team-summary,
  .players-vs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 10px;
  }

  .players-vs-cell,
  .table-wrap,
  .tab-panel,
  .standings-table-wrap {
    overflow-x: auto;
  }

  .mobile-back-btn {
    display: inline-flex;
  }

  body.route-game-detail .hero,
  body.route-game-detail .panel--games,
  body.route-game-detail #standings-section {
    display: none;
  }

  body.route-game-detail .content-grid {
    display: block;
  }

  body.route-game-detail .panel--detail {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: auto;
    border-radius: 0;
    padding: 10px;
    margin: 0;
    background: linear-gradient(180deg, rgba(4,9,18,0.98), rgba(6,12,23,0.99));
  }

  body.route-game-detail .panel--detail > * {
    min-width: 0;
  }

  body.route-play-detail .play-detail-screen {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: linear-gradient(180deg, rgba(4,9,18,0.96), rgba(6,12,23,0.98));
    overflow-y: auto;
  }

  .play-detail-summary,
  .play-detail-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .standings-table {
    min-width: 760px;
  }

  .panel--detail,
  .vs-team-card,
  .score-card,
  .status-row,
  .tab-btn,
  .game-card,
  .standings-table,
  .vs-player-row,
  .score-strip {
    font-size: 0.92rem;
  }

  .vs-player-row {
    padding: 10px 12px;
    gap: 8px;
  }

  .vs-player-meta {
    min-width: 72px;
    font-size: 0.8rem;
  }

  .vs-team-card__head {
    padding: 12px 12px 8px;
  }

  .team-logo-large {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 560px) {
  .brand h1 {
    font-size: 1.9rem;
  }

  .brand p,
  .hero__description,
  .section-label,
  .muted,
  .player-trend {
    font-size: 0.92rem;
  }

  .panel {
    padding: 14px;
  }

  .game-card {
    padding: 12px;
  }

  .hero__panel h2 {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .brand h1 {
    font-size: 1.55rem;
  }

  .top-bar {
    gap: 10px;
  }

  .panel {
    padding: 12px;
  }

  .team-summary,
  .players-vs-grid {
    gap: 8px;
  }

  .vs-team-card__head h4,
  .team-code,
  .status-row strong,
  .section-title {
    font-size: 0.92rem;
  }

  .game-card__team-name,
  .vs-team-card__subhead,
  .player-trend,
  .muted,
  .vs-player-meta {
    font-size: 0.72rem;
  }

  .vs-player-row strong,
  .table td,
  .table th {
    font-size: 0.78rem;
  }

  .score-strip,
  .toolbar,
  .hero__chips {
    gap: 8px;
  }

  .hero__chips > *,
  .tab-btn,
  .lang-btn,
  .upload-btn,
  .secondary-btn {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .team-logo-large {
    width: 28px;
    height: 28px;
  }

  .game-card {
    padding: 10px;
  }

  .play-detail-screen__inner {
    padding: 12px;
  }

  body.route-game-detail .panel--detail > * {
    min-width: 0;
  }
}


@media (max-width: 420px) {
  .team-summary,
  .players-vs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vs-player-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .status-row,
  .score-strip {
    font-size: 0.84rem;
  }

  .standings-table {
    min-width: 700px;
  }
}


/* ===== LIVE PLAYS BRIGHT FIX ===== */
.feed-item,
.feed-item--button {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

.feed-item p {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255,255,255,0.08);
}

.feed-item small {
  color: #9fe8ff !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(159,232,255,0.18);
}

.feed-item--button:hover {
  background: rgba(255,255,255,0.12) !important;
}

.score-strip {
  background: rgba(255,255,255,0.08) !important;
}

.team-code,
.score-strip strong,
.status-row strong,
.mini-card strong,
.prediction-card strong {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255,255,255,0.10);
}

.status-row,
.score-strip,
.mini-card,
.team-summary,
.vs-player-meta {
  color: #dff7ff !important;
}

.player-trend {
  color: #7fe0ff !important;
  text-shadow: 0 0 10px rgba(127,224,255,0.18);
}

.muted {
  color: #9cb8d1 !important;
}

/* ===== LIVE DIAMOND LAYOUT FIX ===== */
 .live-diamond-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.live-diamond-panel__left,
.live-diamond-panel__right {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.live-diamond-panel__left {
  display: flex;
  flex-direction: column;
}

.live-batter-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.live-batter-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.live-batter-card__stats {
  margin-top: 4px;
  color: #dff7ff;
  font-weight: 700;
}

.diamond-stage {
  position: relative;
  width: 100%;
  max-width: 660px;
  min-height: 360px;
  margin: 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(47, 208, 255, 0.18), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  overflow: hidden;
}

.diamond-infield {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(103, 240, 177, 0.35);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(47, 208, 255, 0.12);
}

.diamond-pos {
  position: absolute;
  z-index: 2;
  text-align: center;
  width: 92px;
  margin-left: -46px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0,0,0,0.40);
}

.diamond-pos span {
  display: block;
  font-size: 10px;
  line-height: 1;
  color: #9fe8ff;
  font-weight: 700;
  margin-bottom: 2px;
}

.diamond-pos strong {
  display: block;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
}

.diamond-pos--cf { left: 50%; top: 16px; }
.diamond-pos--lf { left: 24%; top: 70px; }
.diamond-pos--rf { left: 76%; top: 70px; }
.diamond-pos--ss { left: 37%; top: 138px; }
.diamond-pos--2b { left: 63%; top: 138px; }
.diamond-pos--3b { left: 22%; top: 215px; }
.diamond-pos--1b { left: 78%; top: 215px; }
.diamond-pos--p  { left: 50%; top: 188px; }
.diamond-pos--c  { left: 50%; bottom: 30px; }

.diamond-base,
.diamond-home {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
}

.diamond-base__shape,
.diamond-home__shape {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(45deg);
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
}

.diamond-base.is-occupied .diamond-base__shape,
.diamond-home.is-occupied .diamond-home__shape {
  background: #67f0b1;
  border-color: #b4ffe1;
  box-shadow: 0 0 14px rgba(103, 240, 177, 0.45);
}

.diamond-base__text,
.diamond-home__text {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
}

.diamond-base--first { left: calc(50% + 130px); top: 193px; }
.diamond-base--second { left: 50%; top: 110px; transform: translateX(-50%); }
.diamond-base--third { left: calc(50% - 152px); top: 193px; }
.diamond-home { left: 50%; bottom: 72px; transform: translateX(-50%); }

.diamond-defense-list {
  display: grid;
  gap: 8px;
}

.diamond-defense-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 8px 10px;
}

.diamond-defense-list span {
  color: #9fe8ff;
  font-weight: 800;
}

.diamond-defense-list strong {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .live-diamond-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .live-diamond-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .live-diamond-panel__left,
  .live-diamond-panel__right {
    padding: 12px;
  }

  .diamond-stage {
    max-width: 100%;
    min-height: 300px;
  }

  .diamond-pos {
    width: 74px;
    margin-left: -37px;
  }

  .diamond-pos strong {
    font-size: 11px;
  }

  .diamond-pos span {
    font-size: 9px;
  }

  .diamond-pos--lf { left: 17%; top: 58px; }
  .diamond-pos--rf { left: 83%; top: 58px; }
  .diamond-pos--3b { left: 16%; top: 170px; }
  .diamond-pos--1b { left: 84%; top: 170px; }

  .diamond-base--first { left: calc(50% + 96px); top: 154px; }
  .diamond-base--third { left: calc(50% - 118px); top: 154px; }
}

@media (max-width: 560px) {
  .live-batter-card__name {
    font-size: 0.92rem;
  }

  .live-batter-card__stats,
  .diamond-defense-list strong,
  .diamond-defense-list span {
    font-size: 0.78rem;
  }

  .diamond-stage {
    min-height: 270px;
  }

  .diamond-infield {
    width: 110px;
    height: 110px;
    top: 53%;
  }

  .diamond-pos {
    width: 66px;
    margin-left: -33px;
  }

  .diamond-pos strong {
    font-size: 10px;
  }

  .diamond-pos span {
    font-size: 8px;
  }

  .diamond-pos--cf { top: 14px; }
  .diamond-pos--lf { left: 16%; top: 58px; }
  .diamond-pos--rf { left: 84%; top: 58px; }
  .diamond-pos--ss { left: 33%; top: 102px; }
  .diamond-pos--2b { left: 67%; top: 102px; }
  .diamond-pos--3b { left: 14%; top: 164px; }
  .diamond-pos--1b { left: 86%; top: 164px; }
  .diamond-pos--p  { top: 142px; }
  .diamond-pos--c  { bottom: 18px; }

  .diamond-base,
  .diamond-home {
    width: 18px;
    height: 18px;
  }

  .diamond-base__text,
  .diamond-home__text {
    font-size: 9px;
  }

  .diamond-base--first { left: calc(50% + 86px); top: 148px; }
  .diamond-base--second { top: 90px; }
  .diamond-base--third { left: calc(50% - 104px); top: 148px; }
  .diamond-home { bottom: 38px; }
}
/* ===== LIVE DIAMOND STATUS BAR ===== */

.live-diamond-statusbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.live-diamond-statuscard {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
  text-align: center;
}

.live-diamond-statuscard span {
  display: block;
  font-size: 11px;
  color: #9fe8ff;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.live-diamond-statuscard strong {
  display: block;
  font-size: 18px;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
  .live-diamond-statusbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-diamond-statuscard strong {
    font-size: 16px;
  }
}




/* ===== HERO MARQUEE FINAL FIX (NO DUPLICATION ON MOBILE) ===== */

.developer-marquee {
  position: relative;
  margin-top: 16px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(47,208,255,0.08), rgba(255,255,255,0.04));
}

.developer-marquee__inner {
  display: flex;
  width: max-content;
  animation: marqueeLoop 16s linear infinite;
}

.developer-marquee__group {
  flex: 0 0 auto;
  min-width: 100%;
  display: flex;
  justify-content: center;
}

.developer-marquee__group span {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  padding: 10px 20px;
}

@keyframes marqueeLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .developer-marquee__inner {
    animation-duration: 13s;
  }

  .developer-marquee__group span {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
}


/* ===== STANDINGS + LEADERS + LEGENDS ===== */
.standings-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: start;
}

.standings-card--wide {
  min-width: 0;
}

.standings-table-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.standings-table {
  min-width: 0 !important;
}

.leaders-block + .leaders-block {
  margin-top: 14px;
}

.leaders-block__title {
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.leaders-list {
  display: grid;
  gap: 8px;
}

.leaders-item {
  display: grid;
  grid-template-columns: 32px 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
}

.leaders-rank {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(47,208,255,0.16);
  color: #dff7ff;
  font-weight: 800;
  font-size: 0.82rem;
}

.leaders-item__body {
  min-width: 0;
}

.leaders-item__body strong {
  display: block;
  color: #fff;
  line-height: 1.15;
}

.leaders-item__body small {
  display: block;
  color: #a9b7cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.leaders-item__meta {
  color: #9fe8ff;
  font-weight: 800;
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .standings-grid {
    grid-template-columns: minmax(460px, 1.2fr) minmax(320px, 1fr) minmax(320px, 1fr);
  }
}

@media (max-width: 1180px) {
  .standings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .leaders-item {
    grid-template-columns: 28px 30px minmax(0, 1fr);
  }
  .leaders-item__meta {
    grid-column: 2 / -1;
    text-align: left;
    white-space: normal;
  }
}


.games-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill--live {
  background: rgba(103, 240, 177, 0.16);
  border-color: rgba(103, 240, 177, 0.35);
  color: #dffff0;
}

.secondary-btn:disabled,
.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
