/* Shared 1536 × 768 LED stage. All sizes are in LED design pixels. */

.led-stage {
  --accent: #f5b301;
  --ink: #f7f9fc;
  --muted: rgba(247, 249, 252, 0.62);
  position: relative;
  width: 1536px;
  height: 768px;
  overflow: hidden;
  background: #05070b;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  transform-origin: top left;
}

.led-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 5, 10, 0) 44%, rgba(2, 5, 10, 0.16) 64%, rgba(2, 5, 10, 0.68) 100%);
}

.led-stage.bar-top::after {
  background: linear-gradient(180deg, rgba(2, 5, 10, 0.68) 0%, rgba(2, 5, 10, 0.16) 30%, rgba(2, 5, 10, 0) 56%);
}

.led-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05070b;
}

.led-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.led-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0.18;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Test card                                                           */
/* ------------------------------------------------------------------ */

.led-testcard {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(31, 65, 104, 0.55), transparent 52%),
    radial-gradient(ellipse at 82% 96%, rgba(122, 45, 45, 0.28), transparent 48%),
    linear-gradient(145deg, #0a1420 0%, #05080e 58%, #03050a 100%);
}

.tc-grid {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.055) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(58% - 1px), rgba(255, 255, 255, 0.04) 58%, transparent calc(58% + 1px));
}

.tc-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 1020px;
  height: 1020px;
  border: 2px solid rgba(245, 179, 1, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tc-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 470px;
  height: 470px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tc-head {
  position: absolute;
  z-index: 2;
  top: 54px;
  left: 72px;
  right: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.tc-brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd76a, #f5b301 55%, #a87300);
  box-shadow: 0 0 24px rgba(245, 179, 1, 0.45);
  transform: rotate(45deg);
}

.tc-brand-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tc-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #54e08a;
  box-shadow: 0 0 0 5px rgba(84, 224, 138, 0.12), 0 0 18px rgba(84, 224, 138, 0.7);
}

.tc-dot.offline {
  background: #ffb347;
  box-shadow: 0 0 0 5px rgba(255, 179, 71, 0.12), 0 0 18px rgba(255, 179, 71, 0.65);
}

.tc-main {
  position: absolute;
  z-index: 2;
  left: 84px;
  top: 168px;
}

.tc-kicker {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(245, 179, 1, 0.86);
}

.tc-number {
  margin: 8px 0 0 -8px;
  font-size: 318px;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 38%, #8fa2ba 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.55));
}

.tc-name {
  margin-top: 10px;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tc-hint {
  margin-top: 10px;
  font-size: 25px;
  color: var(--muted);
}

.tc-foot {
  position: absolute;
  z-index: 2;
  left: 72px;
  right: 72px;
  bottom: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.tc-chips {
  display: flex;
  gap: 12px;
}

.tc-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  font-weight: 700;
}

.tc-chip.active {
  border-color: rgba(245, 179, 1, 0.7);
  background: linear-gradient(160deg, #ffd76a, #f5b301);
  color: #0a0d12;
  box-shadow: 0 8px 24px rgba(245, 179, 1, 0.28);
}

.tc-venue {
  font-size: 22px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
}

/* ------------------------------------------------------------------ */
/* External web page                                                  */
/* ------------------------------------------------------------------ */

.led-web {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
}

.led-web iframe {
  display: block;
  width: 1536px;
  height: 768px;
  border: 0;
  background: #000;
}

.led-web-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 28px;
  letter-spacing: 0.08em;
  background: linear-gradient(145deg, #0a1420, #03050a);
}

/* ------------------------------------------------------------------ */
/* Custom copy                                                        */
/* ------------------------------------------------------------------ */

.led-copy {
  position: absolute;
  z-index: 4;
  left: 84px;
  top: 70px;
  max-width: 940px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.66);
}

.led-copy-title {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.led-copy-subtitle {
  margin-top: 12px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------ */
/* Scorebar                                                           */
/* ------------------------------------------------------------------ */

.led-scorebar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.led-stage.bar-bottom .led-scorebar {
  bottom: 38px;
}

.led-stage.bar-top .led-scorebar {
  top: 38px;
}

.sb {
  --bar: #0b1018;
  --accent: #f5b301;
  position: relative;
  width: 1440px;
  height: 176px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--bar);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(0, 0, 0, 0.22));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.sb::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

.sb-glow {
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: -150px;
  height: 210px;
  background: radial-gradient(ellipse at center, rgba(245, 179, 1, 0.18), transparent 66%);
  filter: blur(18px);
}

.sb-side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 0 38px;
  overflow: hidden;
}

.sb-home {
  justify-content: flex-start;
}

.sb-away {
  flex-direction: row-reverse;
  text-align: right;
}

.sb-side-tint {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, var(--team), transparent 78%);
  opacity: 0.4;
}

.sb-away .sb-side-tint {
  background: linear-gradient(270deg, var(--team), transparent 78%);
}

.sb-logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.sb-logo img {
  display: block;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
}

.sb-logo-letter {
  font-size: 46px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.sb-ident {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.sb-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sb-away .sb-name-row,
.sb-away .sb-chips {
  justify-content: flex-end;
}

.sb-name {
  max-width: 280px;
  overflow: hidden;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.sb-chips {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.sb-chip b {
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 700;
}

.sb-ball {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(245, 179, 1, 0.14), 0 0 18px rgba(245, 179, 1, 0.8);
}

.sb-score {
  position: relative;
  z-index: 1;
  min-width: 150px;
  font-size: 102px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.sb-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.sb-period {
  color: var(--accent);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.sb-clock {
  font-size: 64px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
}

.sb-clock.hidden {
  display: none;
}

.sb-clock.is-zero {
  color: #ff9d9d;
}

.sb-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 300px;
  min-width: 0;
}

.sb-live {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid rgba(126, 240, 164, 0.36);
  border-radius: 999px;
  color: #7ef0a4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sb-live.is-stale {
  border-color: rgba(255, 195, 107, 0.42);
  color: #ffc36b;
}

.sb-title {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-note {
  max-width: 292px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-center.no-clock .sb-title-row {
  margin-top: 4px;
}