:root {
  --bv-font-size: clamp(20px, 2.2vw, 36px);
  --bv-padding-y: 6px;
  --bv-padding-x: 8px;
  --bv-line-height: 1.25;

  --bv-head-bg-top: #3d0000;
  --bv-head-bg-mid1: #6a0b0b;
  --bv-head-bg-mid2: #c51616;
  --bv-head-bg-mid3: #8c0b0b;
  --bv-head-bg-bot: #260000;
  --bv-head-text-color: #ff0;

  --bv-team-head-top: #0b2348;
  --bv-team-head-mid1: #14407f;
  --bv-team-head-mid2: #2d74d1;
  --bv-team-head-mid3: #14407f;
  --bv-team-head-bot: #08172f;
  --bv-team-head-text: #eaf3ff;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #050505;
  color: #eee;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  overflow-x: hidden;
}

body {
  padding-left: 1px;
  padding-right: 1px;
}

#wrap {
  width: 100%;
  max-width: 1920px;
  margin: 0;
  padding: 0 0 70px 0;
}

#status {
  display: none !important;
}

/* =========================
   NASLOV
   ========================= */
#naslovHeader {
  position: relative;
  margin: 0;
  padding: 0;
}

#naslovHeader h1 {
  position: relative;
  margin: 0 2px 2px 2px;
  padding: 0 16px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E5E4E2;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 32px);
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,.6);
  background: linear-gradient(to bottom,#000 0%,#0b0b0b 14%,#2d2d2d 50%,#0b0b0b 86%,#000 100%);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.45),
    0 8px 14px rgba(0,0,0,.35);
}

#naslovHeader .live-badge {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  background: rgba(17,17,17,.7);
  color: #eee;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

#naslovHeader .live-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #E10600;
}

/* =========================
   EKIPA
   ========================= */
#teamHeader {
  background: linear-gradient(to bottom,#600000 0%,#8f0f0f 45%,#600000 100%);
  margin: 0 2px 6px 2px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 3px rgba(0,0,0,.7),
    0 4px 10px rgba(0,0,0,.45);
}

#teamName {
  color: #F0F8FF;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 42px);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* =========================
   MINI TABELA EKIPE
   ========================= */
#teamTableWrap {
  width: 68%;
  margin: 0 auto 8px auto;
}

#teamMiniHead,
#teamMiniRows .team-mini-row {
  display: grid;
  grid-template-columns: 0.7fr 2.8fr 0.9fr 1.1fr 1.1fr 1fr 0.9fr;
  gap: 0;
}

#teamMiniHead {
  margin-bottom: 4px;

background: linear-gradient(
  to bottom,
  #0b2348 0%,
  #14407f 20%,
  #245fb3 45%,
  #14407f 70%,
  #08172f 100%
);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -2px 3px rgba(0,0,0,.8),
    0 4px 10px rgba(0,0,0,.45);
}

#teamMiniHead .c {
  color: #ffdf00;
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 700;
  letter-spacing: 2px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  line-height: 1.2;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

#teamMiniHead .ekipa {
  text-align: left;
  padding-left: 14px;
}

#teamMiniHead .sum,
#teamMiniHead .diff {
  text-align: right;
  padding-right: 14px;
}

#teamMiniRows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#teamMiniRows .team-mini-row {
  align-items: center;
  min-height: 50px;
  background: #1b1f24;
  box-shadow:
    0 1px 2px rgba(0,0,0,.55),
    0 -1px 1px rgba(255,255,255,.03) inset;
}

#teamMiniRows .current-team-row {
background: linear-gradient(
  to bottom,
  #184818 0%,
  #1c5a1c 38%,
  #1e681e 50%,
  #1c5a1c 62%,
  #123b12 100%
) !important;

  border-left: 5px solid #7fff00;
  border-radius: 4px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 3px rgba(0,0,0,0.65),
    0 2px 6px rgba(0,0,0,0.35);
}

#teamMiniRows .current-team-row .sum {
  color: #ffffff !important;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

#teamMiniRows .current-team-row .ekipa {
  color: #ffffff;
  font-weight: 800;
}

#teamMiniRows .c {
  min-width: 0;
  padding: 6px 8px;
  font-size: var(--bv-font-size);
  line-height: 1.2;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

#teamMiniRows .ekipa {
  text-align: left;
  padding-left: 14px;
  font-weight: 700;
  font-size: clamp(18px, 1.4vw, 22px) !important;
}

#teamMiniRows .sum,
#teamMiniRows .diff {
  text-align: right;
  padding-right: 14px;
}

/* Σ – GOLD (glavni podatek) */
#teamMiniRows .sum {
  color: #FFD400;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(255,212,0,0.6);
}

/* Δ – RDEČE (razlika, bolj vidna) */
#teamMiniRows .diff {
  color: #ff4a2a;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

/* =========================
   GLAVA TABEL
   ========================= */
#head2Row {
  display: grid;
  grid-template-columns: 2.8fr 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.9fr;
  gap: 0;
  margin: 0 2px 8px 2px;
  background: linear-gradient(
    to bottom,
    var(--bv-head-bg-top) 0%,
    var(--bv-head-bg-mid1) 20%,
    var(--bv-head-bg-mid2) 45%,
    var(--bv-head-bg-mid3) 70%,
    var(--bv-head-bg-bot) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -2px 3px rgba(0,0,0,.8),
    0 4px 10px rgba(0,0,0,.5);
}

#head2Row > div {
  color: var(--bv-head-text-color);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

#head2Row > div:first-child {
  text-align: left;
  padding-left: 14px;
}

#head2Row > div:nth-child(10),
#head2Row > div:nth-child(11) {
  text-align: right;
  padding-right: 14px;
}

/* =========================
   VRSTICE PE
   ========================= */
#rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  padding: 0 2px;
}

#rows .pe-row {
  display: grid;
  grid-template-columns: 2.8fr 0.9fr 0.9fr 0.9fr 0.9fr 0.9fr 0.8fr 0.8fr 0.8fr 0.9fr 0.9fr;
  gap: 0;
  align-items: center;
  min-height: 75px;
  background: #2A2A2A;
  box-shadow:
    0 1px 2px rgba(0,0,0,.55),
    0 -1px 1px rgba(255,255,255,.03) inset;
}

#rows .pe-row:nth-child(even) {
  background: #2E3438;
}

#rows .pe-row .c {
  min-width: 0;
  padding: 6px 8px;
  font-size: var(--bv-font-size);
  line-height: var(--bv-line-height);
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

#rows .pe-row .ime {
  text-align: left;
  padding-left: 14px;
}

#rows .pe-row .sum,
#rows .pe-row .diff {
  text-align: right;
  padding-right: 14px;
}

/* Σ – GOLD */
#rows .pe-row .sum {
  color: #FFD400;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

/* Δ – RDEČE */
#rows .pe-row .diff {
  color: #ff4a2a;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}

/* =========================
   FOOTER
   ========================= */
.bv-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  z-index: 9999;
  background: transparent;
}

.bv-footer-line {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  text-align: right;
  padding-right: 16px;
  width: 100%;
  font-size: 13px;
}

.bv-footer-line a {
  text-decoration: none;
}

.bv-footer-line a:link {
  color: #00ff66 !important;
}

.bv-footer-line a:visited {
  color: #ff3333 !important;
}

.bv-footer-line a:hover {
  color: #33ff99 !important;
}

.bv-footer-line a:active {
  color: #ff6666 !important;
}

.bv-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
  padding: 5px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #7A0000 0%, #FF1A1A 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,.6),
    inset 0 0 6px rgba(255,255,255,.15),
    inset 0 0 12px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.25);
}

.bv-badge-inline .bv-icon {
  font-size: 18px;
  line-height: 1;
}

.bv-badge-inline .bv-main {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.bv-badge-inline .bv-sub {
  font-size: 13px;
  font-weight: 600;
  color: #ffe0ff;
}

/* =========================
   TEAM TOP WRAP – RIBE / TABELA / 9
   ========================= */
#teamTopWrap {
  display: grid;
  grid-template-columns: 0.65fr 3fr 0.65fr;
  gap: 8px;
  align-items: stretch;
  margin: 0 2px 8px 2px;
}

#teamTopWrap #teamTableWrap {
  width: 100%;
  margin: 0;
}

.team-side {
  min-height: 100%;
  border-radius: 6px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 3px rgba(0,0,0,.7),
    0 2px 6px rgba(0,0,0,.4);
}

.team-left {
  background: linear-gradient(to bottom, #3d0000 0%, #7a0000 50%, #260000 100%);
}

.team-right {
  background: linear-gradient(to bottom, #123b12 0%, #1e681e 50%, #0b2a0b 100%);
}

.team-side-title {
  font-size: clamp(16px, 1.4vw, 24px);
  font-weight: 800;
  color: #ffdf00;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.team-side-value {
  margin-top: 8px;
  font-size: var(--bv-font-size);
  font-weight: 900;
  color: #F0F8FF;
}