/* Southern Phillies — Live viewer styles */

.live-body {
  background: var(--dark);
  min-height: 100vh;
  color: var(--white);
}

.live-header {
  background: #000;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--red);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
}

.live-badge.live {
  color: var(--white);
  background: var(--red);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
}

.live-badge.live .live-dot {
  background: #fff;
  animation: live-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.9);
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.9); }
  70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.live-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-loading,
.live-empty {
  text-align: center;
  color: rgba(255,255,255,0.6);
  padding: 60px 20px;
}

.live-meta {
  text-align: center;
  padding: 4px 0;
}

.live-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.live-matchup {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  line-height: 1.1;
}

.live-loc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

.live-inning {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  background: var(--red);
  color: var(--white);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Scoreboard */
.live-scoreboard {
  background: #000;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow-x: auto;
}

.live-linescore {
  width: 100%;
  border-collapse: collapse;
  color: var(--white);
}

.live-linescore th,
.live-linescore td {
  padding: 8px 10px;
  text-align: center;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.live-linescore thead th {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.live-linescore th.cur {
  color: var(--red);
}

.live-linescore .live-ls-team {
  text-align: left;
  font-weight: 700;
  padding-right: 16px;
  white-space: nowrap;
  font-size: 16px;
}

.live-linescore .live-ls-total {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

/* Situation */
.live-situation {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 8px;
}

.live-diamond {
  position: relative;
  width: 110px;
  height: 110px;
}

.live-base {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  transition: background 0.3s, border-color 0.3s;
}

.live-base.on {
  background: var(--red);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(232,24,40,0.6);
}

.live-base.live-first  { bottom: 24px; right: 8px; }
.live-base.live-second { top: 8px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.live-base.live-third  { bottom: 24px; left: 8px; }

.live-outs-wrap {
  text-align: center;
}

.live-outs-label,
.live-upnow-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.live-outs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.live-out-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
}

.live-out-dot.on {
  background: var(--red);
  border-color: #fff;
}

.live-upnow-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}

/* Play feed */
.live-feed {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 16px 20px;
}

.live-feed h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--white);
}

.live-feed-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

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

.live-feed-inn {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 14px;
}

.live-feed-who {
  color: var(--white);
  font-weight: 600;
}

.live-feed-result {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
  .live-main {
    padding: 14px 12px;
    gap: 12px;
  }

  .live-matchup {
    font-size: 24px;
  }

  .live-scoreboard {
    padding: 10px;
  }

  .live-linescore th,
  .live-linescore td {
    padding: 5px 6px;
    font-size: 14px;
  }

  .live-linescore .live-ls-team {
    padding-right: 8px;
    font-size: 13px;
  }

  .live-linescore .live-ls-total {
    font-size: 18px;
  }

  .live-situation {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
  }

  .live-upnow {
    grid-column: 1 / -1;
  }

  .live-diamond {
    width: 80px;
    height: 80px;
  }

  .live-base {
    width: 22px;
    height: 22px;
  }

  .live-base.live-first  { bottom: 18px; right: 4px; }
  .live-base.live-third  { bottom: 18px; left: 4px; }

  .live-feed {
    padding: 12px 14px;
  }

  .live-feed-row {
    grid-template-columns: 34px 1fr auto;
    font-size: 13px;
    gap: 8px;
  }
}
