/* WNT Minimalist Scoreboard Styling */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@600;700&family=Work+Sans:wght@500;700;800&display=swap');

:root {
  --bg-dark: #0b0e14;
  --panel-bg: rgba(18, 24, 38, 0.95);
  --accent-gold: #ffb703;
  --accent-cyan: #00f0ff;
  --team-a-color: #e63946;
  --team-b-color: #1d3557;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-glow: rgba(255, 183, 3, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', sans-serif;
  color: var(--text-main);
  background-color: transparent;
  overflow: hidden;
}

/* OVERLAY CONTAINER */
.overlay-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15px;
}

/* WNT MAIN BAR */
.wnt-scoreboard-bar {
  display: flex;
  align-items: center;
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.15);
  padding: 8px 16px;
  gap: 14px;
  backdrop-filter: blur(12px);
  max-width: 98vw;
}

/* PLAYER CARD / AVATAR */
.player-avatar-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  overflow: hidden;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.4);
}

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

/* TEAM & PLAYER NAMES */
.team-block {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.team-block.align-right {
  text-align: right;
  align-items: flex-end;
}

.team-block.align-left {
  text-align: left;
  align-items: flex-start;
}

.team-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.player-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-transform: uppercase;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SCORE BOXES */
.score-box {
  font-family: 'Teko', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.score-box.highlight {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(255, 183, 3, 0.5);
}

/* CENTER LOGO & MATCH INFO */
.center-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.event-logo-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.race-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

/* BREAK INDICATOR BALL */
.break-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.break-indicator.active {
  background: #ffcc00;
  box-shadow: 0 0 14px #ffcc00, 0 0 4px #ffffff;
  border-color: #ffffff;
}

/* ADMIN PANEL STYLING */
body.admin-body {
  background-color: var(--bg-dark);
  font-family: 'Work Sans', sans-serif;
  overflow-y: auto;
  padding: 20px;
}

.admin-card {
  background: rgba(22, 29, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  max-width: 820px;
  margin: 0 auto 20px auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.btn-score {
  font-family: 'Teko', sans-serif;
  font-size: 34px;
  padding: 6px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.1s active;
}

.btn-score:active {
  transform: scale(0.95);
}

.btn-plus { background: #22c55e; color: white; }
.btn-minus { background: #ef4444; color: white; }
.btn-break { background: #3b82f6; color: white; font-size: 15px; font-family: 'Work Sans', sans-serif; padding: 10px 16px; border-radius: 6px; border: none; cursor: pointer; font-weight: 700; }
.btn-reset { background: #64748b; color: white; font-size: 14px; padding: 8px 14px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }

input[type="text"], input[type="number"] {
  background: #0f172a;
  border: 1px solid #334155;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}
