:root {
  --black: #0a0a0a;
  --black-deep: #000000;
  --gold: #f5c242;
  --gold-deep: #d89a1f;
  --white: #ffffff;
  --ash: #9a9a9a;
  --line: rgba(245, 194, 66, 0.16);
}

* {
  box-sizing: border-box;
  text-decoration-style: none;
}
html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-y: auto;
  background: var(--black);
  color: var(--white);
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  font-family: "Barlow", sans-serif;
}

#widget {
  display: flex;
  flex-direction: column;
  background: var(--black);
  position: relative;
  width: 100%;
  max-width: 550px;
  box-sizing: border-box;
}

#pagebody {
  flex: 1 1 auto;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
  font-size: 14.5px;
}

header {
  flex: 0 0 auto;
  background: var(--gold);
  padding: 12px 14px;
  position: relative;
  z-index: 2;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family:
    "Bebas Neue",
    Arial Narrow,
    sans-serif;
  letter-spacing: 0.5px;
}
.brand .yello {
  font-size: 24px;
  color: var(--black);
  line-height: 1;
}
.brand .score {
  font-size: 24px;
  color: var(--black);
  line-height: 1;
}
.brand .tm {
  font-size: 11px;
  color: var(--black);
  vertical-align: super;
  margin-left: 1px;
}
.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--black);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}

.partner-strip {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(10, 10, 10, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}
.partner-strip .div {
  width: 1px;
  height: 12px;
  background: rgba(10, 10, 10, 0.3);
}
.partner-strip .cable {
  color: var(--black);
  font-weight: 700;
  letter-spacing: 0.6px;
}

#daystrip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

#daychips {
  flex: 1 1 auto;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  overflow: hidden;
}

.day-nav {
  flex: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  transition:
    background 0.15s,
    opacity 0.15s;
}
.day-nav:active {
  background: rgba(245, 194, 66, 0.12);
}
.day-nav.disabled {
  color: var(--ash);
  opacity: 0.35;
  cursor: default;
}

.day-chip {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 6px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--gold-deep);
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}
.day-chip .dow {
  display: block;
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.day-chip .dnum {
  display: block;
  font-family:
    "Bebas Neue",
    Arial Narrow,
    sans-serif;
  font-size: 17px;
  color: var(--white);
  line-height: 1.2;
}
.day-chip.active {
  background: var(--gold);
  border-color: var(--gold);
}
.day-chip.active .dow,
.day-chip.active .dnum {
  color: var(--black);
}
.day-chip:active {
  transform: scale(0.96);
}

#fixtures {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 12px 6px;
  position: relative;
  z-index: 2;
}
#fixtures::-webkit-scrollbar {
  width: 4px;
}
#fixtures::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

.comp-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 10px -12px 0;
  padding: 6px 12px;
  background: var(--gold);
}
.comp-label:first-child {
  margin-top: 8px;
}

.match-card {
  display: flex;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.match-card:hover,
.match-card:active {
  background: rgba(245, 194, 66, 0.06);
}

.mc-time {
  flex: 0 0 45px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ash);
  text-align: left;
}
.mc-time.live {
  color: var(--gold);
  font-weight: 700;
}
.mc-time.ft {
  color: var(--ash);
  font-style: italic;
}

.mc-teams {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 0 10px;
}
.mc-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
}
.mc-team .flag {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}
.mc-team span.name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-score {
  flex: 0 0 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family:
    "Bebas Neue",
    Arial Narrow,
    sans-serif;
  font-size: 17px;
  color: var(--gold);
}
.mc-score .dash {
  color: var(--ash);
  font-size: 12px;
  font-family: "Barlow", sans-serif;
}

.mc-chevron {
  flex: 0 0 12px;
  color: var(--gold-deep);
  font-size: 14px;
  text-align: right;
}

.empty-day {
  text-align: center;
  padding: 40px 12px;
  color: var(--ash);
  font-size: 14px;
  line-height: 1.5;
}
.empty-day .big {
  font-family:
    "Bebas Neue",
    Arial Narrow,
    sans-serif;
  font-size: 20px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

#subnav {
  flex: 0 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
#subnav::-webkit-scrollbar {
  display: none;
}
.subtab {
  flex: 0 0 auto;
  padding: 0 10px 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ash);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.subtab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0;
  font-size: 14px;
  color: var(--ash);
  cursor: pointer;
}
.back-row .arrow {
  color: var(--gold);
  font-size: 15px;
}

.match-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 12px 8px;
}
.match-strip .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 80px;
}
.match-strip .side .flag {
  font-size: 32px;
  line-height: 1;
}
.match-strip .side .nm {
  font-size: 13px;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
}
.match-strip .mid {
  font-family:
    "Bebas Neue",
    Arial Narrow,
    sans-serif;
  font-size: 28px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-strip .mid .clock {
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  display: block;
  text-align: center;
  margin-top: 4px;
}

#pagebody::-webkit-scrollbar {
  width: 4px;
}
#pagebody::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.stat-row .val {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}
.stat-row .bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 7px;
}
.stat-row .bar {
  height: 7px;
  border-radius: 4px;
}
.stat-row .bar.h {
  background: var(--gold);
}
.stat-row .bar.a {
  background: var(--ash);
}
.label {
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.lineup-team {
  margin-bottom: 16px;
}
.lineup-team h4 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.6px;
}
.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.player-row .num {
  width: 24px;
  color: var(--ash);
  font-weight: 700;
  text-align: center;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.standings-table th {
  text-align: center;
  color: var(--ash);
  font-weight: 600;
  font-size: 12px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}
.standings-table th.team {
  text-align: left;
}
.standings-table td {
  text-align: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.standings-table td.team {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}
.standings-table tr.qualify td.team {
  border-left: 3px solid var(--gold);
  padding-left: 6px;
}

.commentary-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.commentary-item .min {
  flex: 0 0 35px;
  font-weight: 700;
  color: var(--gold);
  font-size: 13.5px;
}
.commentary-item .txt {
  font-size: 14px;
  color: var(--white);
  line-height: 1.5;
}
.commentary-item.goal .txt {
  color: var(--gold);
  font-weight: 600;
}

.h2h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.h2h-row .res {
  font-family:
    "Bebas Neue",
    Arial Narrow,
    sans-serif;
  color: var(--gold);
  font-size: 16px;
}
.summary-line {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.summary-line .icn {
  flex: 0 0 18px;
  color: var(--gold);
  text-align: center;
}

footer {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: var(--black-deep);
}
footer .src {
  font-size: 13px;
  color: var(--ash);
  letter-spacing: 0.2px;
}
footer .src b {
  color: var(--gold);
}

#loading {
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: 2.5rem;
}

#loading span {
  color: var(--gold);
}
