:root {
  --font-family: "Shurjo", sans-serif;
  --font-color: rgba(0, 0, 0, 0.87);
}

@font-face {
  font-family: "Shurjo";
  src:
    url("./assets/fonts/ShurjoWeb_400_v5_1.woff2") format("woff2"),
    url("./assets/fonts/ShurjoWeb_400_v5_1.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shurjo";
  src:
    url("./assets/fonts/ShurjoWeb_700_v5_1.woff2") format("woff2"),
    url("./assets/fonts/ShurjoWeb_700_v5_1.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  width: 280px;
  height: 80px;
  overflow: hidden;
  background-color: transparent;
}

.fb-card {
  width: 280px;
  height: 80px;
  position: relative;
  background: url("./assets/img/score-card-bg.png") center / cover no-repeat;
  font-family: var(--font-family);
  overflow: hidden;
}

/*  SPONSOR SIZE & POSITION */
.fb-sponsor {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 63px;
  height: auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.fb-sponsor img {
  width: 63px;
  height: 23px;
  object-fit: contain;
}

/* CONTENT LAYOUT */
.fb-content {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 4px;
  flex-direction: column;
  justify-content: space-between; /* Keeps everything vertically centered in 80px */
  padding: 6px;
}

/* Headers (Centered across the whole card) */
.match-headers {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.match-header {
  font-size: 14px;
  font-weight: bold;
  color: var(--font-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.1;
}

.match-subheader {
  font-size: 11px;
  color: var(--font-color);
  margin-top: 2px;
  line-height: 1;
}

.divider {
  color: var(--font-color);
  margin: 0 4px;
}

/* Teams and Score */
.match-teams-area {
  display: flex;
  flex: auto 1 auto;
  justify-content: space-between;
  align-items: flex-start; /* Aligns flags and score text at the top */
  width: 100%;
  padding: 0 2px;
}

.team-col {
  width: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-col img {
  width: 26px;
  /* height: 16px; */
  padding: 1px;
  aspect-ratio: 3/2;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
}

.team-col .name {
  font-size: 12px;
  font-weight: bold;
  color: var(--font-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  letter-spacing: -0.2px;
}

.score-col {
  flex: 1;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--font-color);
  white-space: nowrap;
}

/* Pulse Animation */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d60000;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(225, 29, 72, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.fb-error {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  width: 100%;
  height: 100%;
}
