.xoilac-wrap {
  max-width: 1220px;
  margin: 20px auto;
  padding: 0 14px;
  font-family:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
}

.xoilac-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xoilac-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0;
}

.xoilac-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(51, 51, 51);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  height: 36px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.xoilac-tab.active {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.xoilac-select {
  height: 36px;
  padding: 0 12px;
  background: #111;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  max-width: 280px;
  margin: 0;
}

.xoilac-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 16px;
}

.xoilac-card {
  position: relative;
  display: block;
  background: #181818;
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.xoilac-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.xoilac-card a:hover {
  text-decoration: none;
}

a.xoilac-card,
a.xoilac-card:link,
a.xoilac-card:visited,
a.xoilac-card:hover,
a.xoilac-card:active {
  text-decoration: none !important;
  color: #fff;
}

.wp-block a {
  text-decoration: none !important;
}

.entry-content a.xoilac-card {
  text-decoration: none !important;
}

.xoilac-live-wrap {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.xoilac-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  position: relative;
  padding-bottom: 16px;
}

.xoilac-league {
  display: flex;
  justify-self: start;
  align-items: center;
  height: 28px;
  min-width: 0;
  line-height: 24px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  overflow: hidden;
  gap: 8px;
}

.xoilac-league img {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.xoilac-league span {
  flex: 1;
  min-width: 0;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xoilac-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  background: #ff2448;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
}

.xoilac-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border: 1px solid #00c853;
  border-radius: 999px;
  line-height: 1;
}

.xoilac-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.xoilac-score {
  background: linear-gradient(113deg,
      #1553ef 7.37%,
      #0c3089 57.22%,
      #0b2a79 66.05%,
      #000 131.67%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  display: block;
  flex-shrink: 0;
}

.xoilac-team-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-direction: row;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xoilac-team-left {
  flex-direction: row-reverse;
}

.xoilac-team-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-direction: row;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xoilac-team img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.xoilac-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xoilac-stats-line.new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1;
}

.xoilac-stats-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  background: #2a2a2a;
  border-radius: 24px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
}

.xoilac-stats-line.new .mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2a2a2a;
  color: #ccc;
  font-size: 12px;
  line-height: 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.xoilac-odds-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 110px;
}

.odds-row {
  width: 100%;
}

/* ===== 1X2（重点：要转义）===== */
.odds-row.\31x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.odds-row.\31x2 span {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* ===== 亚盘 ===== */
.odds-row.asian {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.odds-row.asian span {
  font-size: 12px;
  text-align: center;
  color: #ddd;
}

/* 中间盘口 */
.odds-row.asian span:nth-child(2) {
  font-size: 12px;
  font-weight: 700;
  color: #facc15;
}

.xoilac-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  position: relative;
}

.xoilac-bet {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 6px;
  height: 25px;
  width: 70px;
  margin-left: auto;
}

.bet365-img {
  height: 18px;
  width: auto;
  display: block;
}

.xoilac-minute {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg,
      rgba(0, 219, 2, 0.9),
      rgba(16, 43, 14, 0.9));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid rgba(9, 219, 42, 0.5);
  box-shadow: 0 0 6px rgba(9, 219, 42, 0.3) inset;
  z-index: 5;
}

.xoilac-tv {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ccc !important;
}

.xoilac-no-result,
.xoilac-empty {
  grid-column: 1/-1;
  background: #181818;
  color: #fff;
  text-align: center;
  padding: 18px;
  border-radius: 12px;
}

.xoilac-goal-flash {
  animation: goalFlash 0.6s ease;
}

@keyframes goalFlash {
  0% {
    background: #00ff88;
    transform: scale(1.1);
  }

  100% {
    background: transparent;
    transform: scale(1);
  }
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

/* ===== 整页容器 ===== */
.xoilac-match-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
  padding: 16px;
  row-gap: 16px;
  column-gap: 16px;
  box-sizing: border-box;
  color: #fff;
  line-height: 24px;
  background: #141417;
  min-height: 100vh;
  overflow-x: hidden;
}

body:has(.xoilac-match-page) hr {
  display: none !important;
}

.match-mini-header {
  width: 100%;
  margin: 0 0 10px;
}

.match-mini-header a {
  display: inline-flex;
  align-items: center;
  color: #00ff5e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.match-mini-header a:hover {
  opacity: .85;
  text-decoration: none;
}

@media (max-width: 480px) {
  .match-mini-header {
    margin-bottom: 8px;
  }

  .match-mini-header a {
    font-size: 12px;
  }
}

/* ===== 标题 ===== */
.match-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ===== 比分模块 ===== */
.match-header {
  position: relative;
  width: 100%;
  min-height: 120px;
  height: 120px;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  gap: 0;
  padding: 16px;
  background: url("./images/bg-match-header.png") center / cover no-repeat;
  border-radius: 12px;
  box-sizing: border-box;
}

.match-stats {
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.match-stats .stat,
.match-stats .stat-ht,
.match-stats .stat-corner,
.match-stats .stat-yellow,
.match-stats .stat-red {
  box-sizing: border-box;
  position: relative;
  width: 77px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 8px;
  padding-inline-start: 6px;
  padding-inline-end: 6px;
  padding-block-start: 1px;
  padding-block-end: 1px;
  margin: 0;
  background: rgb(50, 55, 56);
  border: none;
  border-radius: 4px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  text-indent: 0;
  text-shadow: none;
  letter-spacing: normal;
  word-spacing: 0;
  overflow-wrap: break-word;
  text-rendering: auto;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  appearance: button;
}

.match-stats .stat svg,
.match-stats .stat img {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  opacity: .9;
}

.teambox {
  width: 100%;
  justify-self: center;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    ". minute ."
    "home score away";
  align-items: center;
  justify-content: center;
  column-gap: 24px;
  row-gap: 8px;
}

.match-minute {
  grid-area: minute;
  justify-self: center;
  align-self: center;
  transform: none !important;
  position: static !important;
  margin: 0 !important;
  color: rgb(0, 255, 75);
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.team.home {
  grid-area: home;
  justify-self: end;
  width: auto !important;
  max-width: 260px;
  box-sizing: border-box;
  height: 49px;
  display: flex;
  flex-direction: row;
  flex-basis: 0%;
  flex-grow: 1;
  flex-shrink: 1;
  align-items: center;
  justify-content: flex-end;
  column-gap: 12px;
  row-gap: 12px;
  color: #ffffff;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  text-align: left;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  z-index: 1;
  -webkit-box-align: center;
  -webkit-box-flex: 1;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.score {
  grid-area: score;
  justify-self: center;
  box-sizing: border-box;
  position: relative;
  width: 74px;
  min-width: 74px;
  max-width: 110px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 3px;
  row-gap: 3px;
  margin-bottom: 7px;
  background: linear-gradient(110deg,
      rgb(21, 83, 239) 0%,
      rgb(12, 48, 137) 40%,
      rgb(1, 8, 30) 99%);
  border-radius: 6px;
  color: rgb(255, 255, 255);
  font-family: Roboto, sans-serif;
  font-size: 27px;
  font-style: normal;
  font-weight: 700;
  line-height: 31px;
  text-align: center;
  text-transform: uppercase;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.team.away {
  grid-area: away;
  justify-self: start;
  width: auto !important;
  max-width: 260px;
  box-sizing: border-box;
  height: 49px;
  display: flex;
  flex-direction: row;
  flex-basis: 0%;
  flex-grow: 1;
  flex-shrink: 1;
  align-items: center;
  column-gap: 12px;
  row-gap: 12px;
  color: #ffffff;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  text-align: left;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  z-index: 1;
  -webkit-box-align: center;
  -webkit-box-flex: 1;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.team.home span,
.team.away span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.team img,
.team-logo,
.teambox__team img {
  display: block;
  width: 49px;
  height: 49px;
  box-sizing: border-box;
  object-fit: contain;
  vertical-align: middle;
  overflow: hidden;
  overflow-clip-margin: content-box;
  border: none;
  outline: none;
  text-indent: -9999px;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  flex-shrink: 0;
}

/* ===== 赔率模块 ===== */
.xoilac-odds {
  width: 100%;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.xoilac-odds-box-inner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#odds-render {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #3d434d;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

/* table 本体 */
.odds-table-new {
  width: 100%;
  min-width: 0 !important;
  height: auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  color: #fff;
  box-sizing: border-box;
}

/* 表头 */
.odds-table-new thead th {
  height: clamp(34px, 3.2vw, 40px);
  padding: 0 clamp(2px, 0.45vw, 6px);
  background: #20242b;
  color: #fff;
  font-size: clamp(10px, 0.85vw, 14px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #3d434d;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds-table-new thead th:not(:last-child) {
  border-right: 1px solid #3d434d;
}

/* 公司列 */
.odds-table-new .odds-company-cell {
  width: clamp(74px, 8.5vw, 119px);
  min-width: 0 !important;
}

.odds-company-select-wrap {
  position: relative;
  width: 100%;
  height: clamp(32px, 3.2vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(4px, 0.6vw, 8px);
  gap: 2px;
  box-sizing: border-box;
}

.odds-company-logo {
  width: clamp(52px, 6vw, 76px);
  height: clamp(20px, 2.3vw, 28px);
  display: block;
  flex-shrink: 1;
  object-fit: contain;
}

.odds-company-arrow {
  position: static;
  width: clamp(10px, 1.2vw, 16px);
  height: clamp(10px, 1.2vw, 16px);
  transform: none;
  flex-shrink: 0;
  opacity: 0.5;
  color: #fff;
  stroke-width: 2;
  pointer-events: none;
}

#odds-company-inner {
  position: absolute;
  inset: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* 所有盘口列：不要固定 280px */
.odds-table-new .eu,
.odds-table-new .asia,
.odds-table-new .over-under,
.odds-table-new .corner-kick {
  width: auto !important;
  min-width: 0 !important;
}

/* 表头 3 列 */
.odds-head-3 {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
}

.odds-head-3 span {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 0.85vw, 14px);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* tbody */
.odds-table-new tbody {
  display: table-row-group;
  width: 100%;
  color: #fff;
  vertical-align: middle;
  user-select: none;
}

.odds-table-new tbody tr {
  display: table-row;
  width: 100%;
  height: clamp(34px, 3.2vw, 41px);
  box-sizing: border-box;
  color: #fff;
  vertical-align: middle;
  user-select: none;
}

.odds-table-new tbody tr td {
  height: clamp(34px, 3.2vw, 41px);
  padding: 0 clamp(2px, 0.45vw, 6px);
  text-align: center;
  vertical-align: middle;
  font-size: clamp(10px, 0.85vw, 14px);
  font-weight: 500;
  line-height: 1.2;
  border-bottom: 1px solid #3d434d;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

.odds-table-new tbody tr:last-child td {
  border-bottom: 0;
}

.odds-table-new tbody td.odds-row-label {
  width: clamp(74px, 8.5vw, 119px);
  border-right: 1px solid #3d434d;
  font-size: clamp(10px, 0.85vw, 14px);
  font-weight: 700;
}

.odds-cell-3,
.odds-cell-2 {
  height: clamp(34px, 3.2vw, 41px);
  padding: 0 !important;
  white-space: nowrap;
}

.odds-cell-3-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odds-cell-2-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.odds-cell-3-inner span,
.odds-cell-2-inner span {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.odds-table-new tbody td.odds-cell-3,
.odds-table-new tbody td.odds-cell-2 {
  border-right: 1px solid #3d434d;
}

.odds-table-new tbody tr td:last-child {
  border-right: 0;
}

.odds-split {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.odds-handicap {
  flex-shrink: 0;
}

.odds-value {
  flex-shrink: 0;
}

/* ===== 核心布局（关键） ===== */
.match-core {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ===== 左侧（直播） ===== */
.match-left {
  flex: 1;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

.mode-tabs .mode-btn {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 6px 4px;
  box-sizing: border-box;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: rgb(41, 43, 46);
  color: #fff;
  font-family: Oswald, sans-serif;
  font-size: clamp(10px, 2.8vw, 14px);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.mode-tabs .mode-btn:last-child {
  border-right: 0;
}

.mode-tabs .mode-btn.active {
  background: linear-gradient(180deg,
      rgb(4, 33, 4) 0%,
      rgb(4, 88, 48) 100%);
}

.mode-tabs .mode-btn span,
.mode-tabs .mode-btn .mode-text,
.mode-tabs .mode-btn .live-text {
  min-width: 0;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Oswald, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
}

.mode-btn[data-mode="live"] .live-text {
  background: linear-gradient(105deg,
      #fff 0%,
      #fff500 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mode-btn[data-mode="live"] .live-wave {
  width: 7px;
  height: 17px;
  flex: 0 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mode-btn[data-mode="live"] .live-wave svg {
  width: 7px;
  height: 17px;
  display: block;
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

/* ===== 直播上方 ===== */
.live-match-info-bar {
  min-height: 62px;
  background: #212529;
  border-left: 4px solid #00ff5e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px;
  box-sizing: border-box;
  color: #fff;
  overflow: hidden;
}

.live-info-left {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.live-info-title {
  display: block;
  width: 100%;
  margin: 0;
  color: #f2f3f3;
  font-family: Oswald, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-info-league {
  margin-top: 3px;
  font-size: 12px;
  font-style: italic;
  color: #b8c0c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-info-bet-btn {
  position: relative;
  flex: 0 0 270px;
  width: 270px;
  max-width: 270px;
  height: 32px;
  padding: 7px 12px 7px 20px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff7f23 0%, #ffbc09 100%);
  color: #1a1d23;
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
}

.live-info-bet-btn:before {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
}

@media (max-width: 480px) {
  .live-match-info-bar {
    height: 62px;
    padding: 8px 10px;
    gap: 8px;
  }

  .live-info-left {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* ===== 右侧（聊天） ===== */
.match-right {
  width: 400px;
}

/* ===== 按钮 ===== */
.match-actions {
  margin-bottom: 12px;
}

/* ===== 直播区域 ===== */
.live-box {
  background: #000;
  height: 420px;
  border-radius: 8px;
}

/* ===== 动画 ===== */
.xoilac-mophong {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 800 / 404;
  min-height: unset;
  background: #0b1f16;
}

.mophong-bg {
  position: absolute;
  inset: 0;
  background: url("./images/bg.png") center center no-repeat;
  background-size: 100% 100%;
  z-index: 1;
}

#mophong-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
}

.mophong-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1.52;
  transform: translate(-50%, -50%);
  background: rgba(0, 78, 84, .94);
  border-radius: 0;
  overflow: hidden;
  z-index: 2;
}

.mophong-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 66px;
  padding: 12px 24px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 21px;
}

.mophong-league {
  display: block;
  width: 100%;
  height: 27px;
  line-height: 27px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: ui-sans-serif, system-ui, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.mophong-time {
  display: block;
  width: 100%;
  height: 21px;
  line-height: 21px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mophong-phase {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 16px 0;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  box-sizing: border-box;
}

.mophong-score-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 82px;
  margin: 0;
  box-sizing: border-box;
  color: #fff;
}

.mophong-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  row-gap: 16px;
  width: 120px;
  height: 80px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-ft-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 40px;
  margin: 0 8px;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 21px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-score-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #4ea4e8;
  color: #073c44;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-ft-score-box b {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.mophong-team {
  width: 134px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

.mophong-team img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

.mophong-team span {
  width: 100%;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mophong-score-box small {
  display: block;
  width: auto;
  height: 24px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  white-space: nowrap;
}

.mophong-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.mophong-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  padding: 0;
}

.mophong-dots button.active {
  background: #fff;
}

.mophong-main-stats-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-ring-row {
  display: flex;
  align-items: center;
  flex: 1;
  column-gap: 24px;
  row-gap: 24px;
  width: 100%;
  height: 232px;
  margin-left: 4px;
  margin-right: 4px;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-ring-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg,
      #1fa7ff 0deg,
      #1fa7ff calc(var(--home) * 3.6deg),
      #ffba5a calc(var(--home) * 3.6deg),
      #ffba5a 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mophong-ring-inner {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #02424b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mophong-ring-svg {
  width: 40px;
  height: 40px;
  color: #fff;
  display: block;
}

.mophong-ring-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  height: 60px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mophong-ring-home {
  display: block;
  min-width: 16px;
  height: 21px;
  margin: 0;
  padding: 0;
  color: #1fa7ff;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  text-align: right;
  box-sizing: border-box;
}

.mophong-ring-away {
  display: block;
  min-width: 16px;
  height: 21px;
  margin: 0;
  padding: 0;
  color: #ffba5a;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  text-align: left;
  box-sizing: border-box;
}

.mophong-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.mophong-ring-label {
  display: block;
  width: 140px;
  height: 27px;
  margin: 40px 0 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.mophong-detail-stats-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 293px;
  margin: 0;
  padding: 8px 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.mophong-bar-item {
  width: 156px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  position: relative;
}

.mophong-bar-values {
  display: flex;
  gap: 14px;
  height: 24px;
  align-items: flex-end;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.mophong-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 58px;
}

.mophong-bars i,
.mophong-bars b {
  width: 12px;
  display: block;
}

.mophong-bars i {
  background: #2196f3;
}

.mophong-bars b {
  background: #ffba5a;
}

.mophong-bar-label {
  margin-top: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.mophong-venue {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  column-gap: 8px;
  width: 436px;
  height: 293.297px;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  align-items: center;
  justify-content: flex-start;
}

.mophong-venue-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 388px;
  height: 40px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  text-align: center;
}

.mophong-venue-info-stadium {
  display: flex;
  flex-direction: column;
  width: 388px;
  height: 45.5938px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
}

.mophong-venue-info-stadium-title,
.mophong-venue-info-capacity-title {
  display: block;
  width: 388px;
  height: 24px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}

.mophong-venue-info-stadium-name,
.mophong-venue-info-capacity-info {
  display: block;
  width: 388px;
  height: 21.5938px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 21.6px;
  text-align: center;
}

.mophong-coaches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 388px;
  height: 76px;
  margin: 0;
  padding: 16px 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, .15);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 14px;
  line-height: 21px;
}

.mophong-coach-team {
  display: flex;
  align-items: center;
  column-gap: 12px;
  row-gap: 12px;
  width: 186px;
  height: 42px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
}

.mophong-coach-team>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 115px;
  height: 42px;
  min-width: 0;
  line-height: 21px;
  box-sizing: border-box;
}

.mophong-coach-team>div span {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 16px;
  font-weight: 400;
}

.mophong-coach-team>div strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-top: 8px;
  line-height: 18px;
  font-weight: 500;
}

.mophong-coach-team.away>div {
  text-align: right;
  align-items: flex-end;
}

.mophong-coach-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.mophong-weather {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 388px;
  height: 28px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
}

.mophong-weather div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
}

.mophong-weather-icon {
  width: 28px !important;
  height: 28px !important;
  display: block;
  flex-shrink: 0;
  color: #fff;
}

@media (max-width: 480px) {
  .xoilac-mophong {
    aspect-ratio: 800 / 390 !important;
    min-height: 185px !important;
  }

  .mophong-card {
    width: 226px !important;
    height: 144px !important;
    min-height: 144px !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .mophong-top {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
  }

  .mophong-league {
    width: 100% !important;
    height: 12px !important;
    margin: 0 0 3px !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 12px !important;
    color: #fff !important;
  }

  .mophong-time {
    width: 100% !important;
    height: 10px !important;
    margin: 0 !important;
    font-size: 7px !important;
    line-height: 10px !important;
    color: rgba(255, 255, 255, 0.6) !important;
  }

  .mophong-phase {
    width: 100% !important;
    height: 14px !important;
    margin: 22px 0 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    text-align: center !important;
  }

  .mophong-score-main {
    width: 100% !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .mophong-team {
    width: 68px !important;
    height: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 68px !important;
    text-align: center !important;
  }

  .mophong-team img {
    width: 22px !important;
    height: 22px !important;
    margin: 0 0 3px !important;
  }

  .mophong-team span {
    width: 100% !important;
    font-size: 7px !important;
    line-height: 9px !important;
    font-weight: 700 !important;
    color: #fff !important;
  }

  .mophong-score-box {
    width: 42px !important;
    height: 38px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
  }

  .mophong-ft-score-box {
    width: 42px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 0 !important;
  }

  .mophong-score-number,
  .mophong-ft-score-box b {
    width: 18px !important;
    height: 18px !important;
    border-radius: 2px !important;
    font-size: 9px !important;
    line-height: 18px !important;
  }

  .mophong-score-box small {
    width: 42px !important;
    height: 10px !important;
    margin-top: 4px !important;
    font-size: 7px !important;
    line-height: 10px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center !important;
  }

  .mophong-dots {
    left: 50% !important;
    bottom: 5px !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .mophong-dots button {
    width: 5px !important;
    height: 5px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    ex-shrink: 0 !important;
  }

  .mophong-dots button.active {
    transform: scale(1.15) !important;
  }

  .mophong-main-stats-title {
    height: 28px !important;
    font-size: 9px !important;
    line-height: 28px !important;
    font-weight: 700 !important;
  }

  .mophong-main-stats-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 28px !important;
    font-weight: 700 !important;
    color: #ffffff;
  }

  .mophong-ring-row {
    width: 100% !important;
    height: 120px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    column-gap: 6px !important;
    row-gap: 6px !important;
  }

  .mophong-ring-item {
    gap: 4px !important;
  }

  .mophong-ring-circle {
    width: 32px !important;
    height: 32px !important;
  }

  .mophong-ring-inner {
    width: 26px !important;
    height: 26px !important;
  }

  .mophong-ring-svg {
    width: 18px !important;
    height: 18px !important;
  }

  .mophong-ring-line {
    width: 70px !important;
    height: 32px !important;

    gap: 4px !important;
  }

  .mophong-ring-home,
  .mophong-ring-away {
    min-width: 10px !important;
    height: 12px !important;
    font-size: 8px !important;
    line-height: 12px !important;
  }

  .mophong-ring-label {
    width: 70px !important;
    height: 12px !important;
    margin: 8px 0 0 !important;
    font-size: 8px !important;
    line-height: 12px !important;
    font-weight: 500 !important;
  }

  .mophong-detail-stats-title {
    height: 28px !important;
  }

  .mophong-detail-stats-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    color: #ffffff;
  }

  .mophong-bars-grid {
    width: 96% !important;
    margin: 0 auto !important;
    height: 118px !important;
    padding: 4px 0 !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .mophong-bar-item {
    width: 100% !important;
    height: 52px !important;
  }

  .mophong-bar-values {
    gap: 4px !important;
    height: 10px !important;
    font-size: 8px !important;
    font-weight: 700 !important;
  }

  .mophong-bars {
    height: 20px !important;
    gap: 3px !important;
    align-items: flex-end !important;
  }

  .mophong-bars i,
  .mophong-bars b {
    width: 5px !important;
    transform: scaleY(0.45);
    transform-origin: bottom;
  }

  .mophong-bar-label {
    margin-top: 2px !important;
    font-size: 6px !important;
    font-weight: 600 !important;
    line-height: 8px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .mophong-venue {
    width: 226px !important;
    height: 144px !important;
    padding: 6px 10px !important;
    gap: 4px !important;
  }

  .mophong-venue-title {
    width: 100% !important;
    height: 18px !important;
  }

  .mophong-venue-title h3 {
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 18px !important;
    color: #ffffff;
  }

  .mophong-venue-info-stadium,
  .mophong-venue-info-capacity {
    width: 100% !important;
    height: 24px !important;
  }

  .mophong-venue-info-stadium-title,
  .mophong-venue-info-capacity-title {
    width: 100% !important;
    height: 11px !important;
    font-size: 8px !important;
    line-height: 11px !important;
  }

  .mophong-venue-info-stadium-name,
  .mophong-venue-info-capacity-info {
    width: 100% !important;
    height: 12px !important;
    font-size: 9px !important;
    line-height: 12px !important;
  }

  .mophong-coaches {
    width: 100% !important;
    height: 34px !important;
    padding: 5px 0 !important;
  }

  .mophong-coach-team {
    width: 96px !important;
    height: 24px !important;
    gap: 5px !important;
  }

  .mophong-coach-logo {
    width: 20px !important;
    height: 20px !important;
  }

  .mophong-coach-team>div {
    width: 66px !important;
    height: 24px !important;
  }

  .mophong-coach-team>div span {
    font-size: 7px !important;
    line-height: 8px !important;
  }

  .mophong-coach-team>div strong {
    margin-top: 3px !important;
    font-size: 8px !important;
    line-height: 8px !important;
  }

  .mophong-weather {
    width: 100% !important;
    height: 20px !important;
  }

  .mophong-weather div {
    height: 20px !important;
    gap: 4px !important;
    font-size: 8px !important;
    line-height: 20px !important;
  }

  .mophong-weather-icon {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ===== 聊天框 ===== */
.side-panel {
  display: none;
}

.side-panel.active {
  display: block;
}

.xoilac-chat {
  height: 520px;
  background: #11161d;
  border: 1px solid #263241;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xoilac-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.xoilac-chat-empty {
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

.xoilac-chat-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.xoilac-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00c853;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.xoilac-chat-body {
  flex: 1;
  min-width: 0;
}

.xoilac-chat-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 3px;
}

.xoilac-chat-meta strong {
  color: #facc15;
}

.xoilac-chat-text {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.xoilac-chat-form {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #0d1218;
  border-top: 1px solid #263241;
}

.xoilac-chat-form input {
  height: 34px;
  border: 1px solid #2d3a4a;
  background: #fff;
  color: #111;
  border-radius: 6px;
  padding: 0 8px;
  outline: none;
}

.xoilac-chat-name {
  width: 70px;
}

.xoilac-chat-message {
  flex: 1;
}

.xoilac-chat-send {
  width: 52px;
  border: 0;
  border-radius: 6px;
  background: #00c853;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.xoilac-chat-send:disabled {
  opacity: 0.5;
}

/* ===== SEO 内容 ===== */
.match-content {
  margin-top: 24px;
  line-height: 1.6;
}

.team-home img {
  height: 48px;
  width: 48px;
}

.team-away img {
  height: 48px;
  width: 48px;
}

.full-width-layout .container,
.full-width-layout .main,
.full-width-layout .content,
.full-width-layout #primary {
  max-width: 100% !important;
  width: 100% !important;
}

.full-width-layout aside,
.full-width-layout .sidebar {
  display: none !important;
}

.player-wrapper {
  position: relative;
}

#player-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

#dplayer {
  width: 100%;
  height: 420px;
}

.stat-item {
  margin: 12px 0;
}

.stat-label {
  text-align: center;
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.stat-bar {
  display: flex;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
  background: #333;
}

.bar-home {
  background: #ff4d6d;
}

.bar-away {
  background: #3b82f6;
}

.shots-card {
  background: #222;
  padding: 12px;
  border-radius: 10px;
  margin: 12px 0;
}

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

.shots-target {
  display: flex;
  gap: 10px;
}

.stats-panel {
  display: none;
}

.stats-panel.active {
  display: block;
}

/* ROOT */

.lineup-root {
  width: calc(100% - 12px);
  min-height: 700px;
  overflow: hidden;
  border-radius: 8px;
}

/* HEADER */

.lineup-header {
  background: #0d9f68;
  color: #fff;
}

/* FILTER */

.lineup-filter-wrap {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.lineup-filters {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lineup-filters::-webkit-scrollbar {
  display: none;
}

.lineup-filter {
  height: 32px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  background: #01935c;
  color: #fff;
  white-space: nowrap;
  font-size: 14px;
  cursor: pointer;
}

.lineup-filter.active {
  background: #fff;
  color: #01935c;
}

/* TEAM INTRO */

.lineup-team-intro {
  height: 56px;
  padding: 0 16px;
  border-top: 1px solid #01935c;
  display: flex;
  align-items: center;
  gap: 24px;
}

.team-rating {
  min-width: 32px;
  height: 18px;
  border-radius: 12px;
  background: #6aaf23;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.team-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-logo {
  width: 28px;
  height: 28px;
}

.team-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 14px;
  font-weight: 600;
}

.team-formation {
  font-size: 14px;
}

#lineup-container {
  width: 400px;
  height: 500px;
  max-height: none;
  overflow: visible;
  overflow-x: hidden;
}

/* PITCH */

.lineup-chart {
  position: relative;
  padding-top: 34px;
  padding-bottom: 34px;
  height: 550px;
  background: #01935c;
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: hidden;
  z-index: 1;
}

.lineup-chart>* {
  position: relative;
  z-index: 2;
}

/* TOP PENALTY */

.home-penalty-box {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.penalty-box {
  transform:
    rotate(0deg) scale(0.775) translateY(-15%);
}

.halfway-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px;
  background: #0d9f68;
  transform: translateY(-50%);
}

/* CENTER CIRCLE */

.center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid #0d9f68;
  transform: translate(-50%, -50%);
}

/* BOTTOM PENALTY */

.away-penalty-box {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
}

.away-penalty-inner {
  transform:
    rotate(180deg) translateY(100%) scale(0.775) translateY(-15%);
}

/* PLAYER */

.lineup-player {
  position: absolute;
  width: 72px;
  max-width: 72px;
  z-index: 20;
}

.lineup-player:hover {
  opacity: .6;
}

/* INNER */

.lineup-player-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

/* AVATAR */

.lineup-player-avatar-wrap {
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
  position: relative;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.lineup-player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: cover;
  box-sizing: border-box;
}

/* NAME */

.lineup-player-name {
  margin-top: 0;
  width: 72px;
  max-width: 72px;
  font-size: 10px;
  line-height: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.home-intro,
.away-intro-inner {
  height: 56px;
  padding: 0 16px;
  border-top: 1px solid #01935c;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #0d9f68;
  color: #fff;
  box-sizing: border-box;
}

.away-intro {
  background: #0d9f68;
  color: #ffffff;
}

.away-intro-inner {
  height: 56px;
  padding: 0 16px;
  border-top: 1px solid #01935c;
  display: flex;
  align-items: center;
  gap: 24px;
}

#lineup-player-layer {
  position: absolute;
  inset: 0;
  inset: 0 14px 0 0;
}

.lineup-extra-badge {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  min-width: 25px;
  height: 18px;
  padding: 0 5px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  z-index: 3;
}

.rating-badge {
  background: #f08022;
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  z-index: 3;
}

.market-badge {
  background: #f08022;
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
}

.country-badge {
  background: #f08022;
  color: #fff;
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  z-index: 3;
}

.age-badge {
  background: #fff;
  color: #000;
  left: 60%;
  top: -10%;
  bottom: auto;
  transform: none;
  width: 20px;
}

.event-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.goal-event {
  left: 120%;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 12px;
}

.red-card-event,
.yellow-card-event {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  min-width: 10px;
  height: 14px;
  padding: 0;
  border-radius: 2px;
}

.red-card-event {
  background: #e53935;
}

.yellow-card-event {
  background: #f5b301;
}

.swap-event {
  left: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

#stats-standing {
  height: 500px;
  overflow: hidden;
  background: #1f2326;
  color: #fff;
}

#standing-list {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #1f2326;
  padding-right: 4px;
  box-sizing: border-box;
}

.standing-row,
.standing-head {
  display: grid;
  grid-template-columns: 30px 1fr 38px 38px 38px 38px 46px;
  align-items: center;
  column-gap: 8px;
  min-height: 49px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 14px;
}

.standing-head {
  font-weight: 600;
  opacity: .85;
}

.standing-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2f3a3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.standing-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.standing-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.standing-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standing-points {
  font-weight: 700;
}

.h2h-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: #23282c;
}

.h2h-filter-btn {
  height: 28px;
  padding: 0 14px;
  border: none;
  border-radius: 16px;
  background: #2f363a;
  color: #cfd6de;
  font-size: 12px;
  line-height: 28px;
  cursor: pointer;
}

.h2h-filter-btn.active {
  background: #0b8f45;
  color: #ffffff;
  font-weight: 600;
}

.h2h-filter-btn:hover {
  background: #374047;
}

#stats-h2h {
  height: 550px;
  overflow: hidden;
  background: #1f2326;
}

#h2h-list {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  box-sizing: border-box;
  background: #1f2326;
}

#h2h-list::-webkit-scrollbar {
  width: 6px;
}

#h2h-list::-webkit-scrollbar-track {
  background: #202427;
}

#h2h-list::-webkit-scrollbar-thumb {
  background: #6b7378;
  border-radius: 10px;
}

.h2h-wrap {
  padding: 8px 12px 12px;
  box-sizing: border-box;
}

.h2h-card {
  background: #232627;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}

.h2h-card-top {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 68px 1fr;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: #dfe5e8;
}

.h2h-title {
  width: 100%;
  min-height: 38px;
  margin: 0 0 8px;
  padding: 12px;
  box-sizing: border-box;
  background: rgba(58, 68, 82, 0.24);
  color: #ffffff;
  font-family: Barlow, Oswald, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 14.4px;
  text-align: center;
  text-transform: uppercase;
  display: block;
}

.h2h-league {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.h2h-league span:last-child {
  display: block;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  object-fit: contain;
}

.h2h-result {
  height: 24px;
  min-width: 66px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.h2h-result.win {
  background: #008f2f;
}

.h2h-result.lose {
  background: #9b2525;
}

.h2h-result.draw {
  background: #4a555b;
}

.h2h-date {
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
}

.h2h-main {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 74px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.h2h-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #fff;
  font-size: 13px;
}

.h2h-home {
  justify-content: flex-end;
  text-align: right;
}

.h2h-away {
  justify-content: flex-start;
  text-align: left;
}

.h2h-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2h-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.h2h-score {
  height: 30px;
  background: #09088f;
  border: 1px solid #355cff;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, .25);
  border-radius: 5px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
}

.h2h-score b {
  font-weight: 700;
}

.h2h-extra {
  height: 36px;
  margin: 0 8px 8px;
  border-radius: 7px;
  background: #2e3336;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #d7dee1;
  font-size: 12px;
}

.h2h-extra .ht-text {
  color: #00e15f;
}

.h2h-stat-box {
  margin-bottom: 8px;
  padding: 12px;
  box-sizing: border-box;
  background: #2b3138;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .05);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.h2h-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.h2h-stat-item b {
  display: block;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

/* 主队 */
.h2h-stat-item:nth-child(1) b {
  color: #00ff5e;
}

/* 平局 */
.h2h-stat-item:nth-child(2) b {
  color: #ffffff;
}

/* 客队 */
.h2h-stat-item:nth-child(3) b {
  color: #00b7ff;
}

.h2h-stat-item span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 13px;
  color: #cfd6de;
}

.h2h-stat-bottom {
  grid-column: 1/-1;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font-size: 11px;
  color: #9aa4af;
}

#stats-info {
  height: 500px;
  overflow: hidden;
  background: #1f2326;
}

#match-info-list {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #1f2326;
  color: #fff;
}

.match-info-box {
  display: flex;
  flex-direction: column;
}

.match-info-item {
  min-height: 93px;
  padding: 23px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  column-gap: 13px;

  border-bottom: 1px solid #292b2e;
}

.match-info-icon {
  width: 37px;
  height: 37px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.match-info-icon .as-icon,
.match-info-icon img {
  width: 37px;
  height: 37px;
  object-fit: contain;
}

.match-info-text {
  min-width: 0;
  flex: 1;
}

.match-info-label {
  color: #8f9ba3;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 4px;
}

.match-info-value {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #23282c;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.stats-btn {
  height: 42px;
  min-width: 42px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9c9c9c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 42px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: visible;
}

.stats-btn .stats-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-btn svg rect,
.stats-btn svg path {
  fill: #9c9c9c;
}

.stats-btn .stats-text {
  display: none;
  white-space: nowrap;
  word-break: keep-all;
  font-size: 13px;
  font-weight: 700;
  line-height: 42px;
}

.stats-btn.active {
  background: #00b956;
  color: #fff;
  min-width: max-content;
}

.stats-btn.active .stats-text {
  display: inline-block;
}

.stats-btn.active svg rect,
.stats-btn.active svg path {
  fill: #fff;
}



#stats-filter,
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 6px;
  margin-bottom: 12px;
  background: #2a3138;
  box-sizing: border-box;
}

.stats-panel,
.chat-panel,
.match-right-body {
    overflow-y: scroll !important;
    scrollbar-width: thin; /* firefox */
    scrollbar-color: #4b4b4b transparent;
}

/* Chrome */
.stats-panel::-webkit-scrollbar,
.chat-panel::-webkit-scrollbar,
.match-right-body::-webkit-scrollbar {
    width: 4px;
}

.stats-panel::-webkit-scrollbar-track,
.chat-panel::-webkit-scrollbar-track,
.match-right-body::-webkit-scrollbar-track {
    background: transparent;
}

.stats-panel::-webkit-scrollbar-thumb,
.chat-panel::-webkit-scrollbar-thumb,
.match-right-body::-webkit-scrollbar-thumb {
    background: #4b4b4b;
    border-radius: 20px;
}

/* 最关键：不要 fade */
.stats-panel::-webkit-scrollbar-thumb:vertical,
.chat-panel::-webkit-scrollbar-thumb:vertical,
.match-right-body::-webkit-scrollbar-thumb:vertical {
    opacity: 1 !important;
}

/* button */
#stats-filter button,
.filter-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 8px 12px;
  border: none;
  outline: none;
  border-radius: 16px;
  background: transparent;
  color: #8f9aa3;
  font-family: Barlow, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 9px;
  cursor: pointer;
  transition: .25s ease;
}


/* hover */
#stats-filter button:hover,
.filter-tabs button:hover {
  color: #d7dde3;
}


/* active */
#stats-filter button.active,
.filter-tabs button.active {
  background: linear-gradient(-90deg,
      rgb(50, 56, 57),
      rgb(47, 90, 73));
  color: #00FF5E;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

#stats-stats {
  height: 550px;
  background: #212529;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

#stats-body {
  background: #212529;
  color: #fff;
  padding: 8px 12px 10px;
  box-sizing: border-box;
}

#stats-list,
.as-statistics__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #212529;
  color: #fff;
}

#stats-stats::-webkit-scrollbar {
  width: 4px;
}

#stats-stats::-webkit-scrollbar-track {
  background: transparent;
}

#stats-stats::-webkit-scrollbar-thumb {
  background: #4b5358;
  border-radius: 20px;
}

.bar-home {
  background: linear-gradient(90deg,
      #00d94f,
      #00ff5e);
}

.bar-away {
  background: linear-gradient(90deg,
      #41B6FF,
      #6FD3FF);
}

.shots-card {
  background: #222;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

.shots-pitch {
  position: relative;
  height: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 4px;
}

.shots-half {
  position: relative;
  height: 100%;
}

.shots-half-home {
  background: #E7FCEB;
}

.shots-half-away {
  background: #EEF8FF;
}

.shots-off-title {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  color: #222;
  font-weight: 500;
}

.shots-target-title {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  color: #222;
  font-weight: 500;
}

.shots-box {
  position: absolute;
  top: 45px;
  width: 36%;
  height: 44px;
  border: 3px solid;
  border-bottom: none;
}

.shots-box-home {
  left: 15%;
  border-color: #00ff5e;
  border-right: none;
}

.shots-box-away {
  right: 15%;
  border-color: #41B6FF;
  border-left: none;
}

.shots-off,
.shots-target-badge {
  position: absolute;
  z-index: 6;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
}

/* 射偏数字 */
.shots-off-home {
  left: 8px;
  top: 8px;
  background: linear-gradient(90deg,
      #00d94f,
      #00ff5e);
}

.shots-off-away {
  right: 8px;
  top: 8px;
  background: linear-gradient(90deg,
      #41B6FF,
      #6FD3FF);
}

/* 射正数字，在 box 内 */
.shots-target-home {
  left: 42%;
  top: 50px;
  background: #4b8fdc;
}

.shots-target-away {
  right: 42%;
  top: 50px;
  background: #f0a51f;
}

.shots-label,
.shots-target-label {
  display: none;
}

#stats-timeline {
  height: 550px;
  background: #212529;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  box-sizing: border-box;
}

#timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-event {
  display: flex;
  width: 100%;
}

.timeline-event.home {
  justify-content: flex-start;
}

.timeline-event.away {
  justify-content: flex-end;
}

.timeline-home {
  width: 305px;
  display: grid;
  grid-template-columns: 46px 28px 1fr;
  align-items: center;
  gap: 6px;
}

.timeline-away {
  width: 305px;
  display: grid;
  grid-template-columns: 1fr 28px 46px;
  align-items: center;
  gap: 6px;
}

.timeline-time {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9e9e9;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
}

.timeline-card {
  max-width: 190px;
  padding: 7px 10px;
  background: #262b30;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
}

.timeline-home .timeline-card {
  text-align: left;
}

.timeline-away .timeline-card {
  text-align: right;
}

.event-player {
  font-weight: 700;
  color: #fff;
}

.sub-in {
  color: #00ff5e;
  font-weight: 700;
}

.sub-out {
  color: #ff5b5b;
  font-weight: 700;
}

.event-score {
  margin-left: 6px;
  padding: 2px 8px;
  border: none;
  border-radius: 5px;
  background: #083cff;
  color: #fff;
  font-weight: 700;
}

.event-sub {
  margin-top: 3px;
  color: #9aa4af;
  font-size: 11px;
}

.event-divider {
  margin: 10px 0;
  text-align: center;
}

.timeline-title,
.ht-box,
.ft-box {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #DCDFE6;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.match-content h2 {
  color: rgba(255,255,255,.95) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 24px 0 12px !important;
}

@media (max-width: 1023px) {
  .xoilac-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .xoilac-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .xoilac-tabs {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }

  .xoilac-tabs::-webkit-scrollbar {
    display: none;
  }

  .xoilac-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .xoilac-filter-wrap {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .xoilac-select.desktop {
    display: none !important;
    position: absolute;
    right: 0;
    top: 40px;
    width: 190px;
    z-index: 99;
  }

  .xoilac-filter-icon.mobile {
    display: flex !important;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111;
  }

  .xoilac-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .xoilac-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .xoilac-filter-wrap.open .xoilac-select.desktop {
    display: block !important;
  }

  .xoilac-match-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: clamp(8px, 2vw, 14px) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    transform: none !important;
  }

  .match-title {
    font-size: clamp(16px, 2.4vw, 18px);
    line-height: 1.35;
    color: #fff;
  }

  .match-header {
    width: 100% !important;
    min-width: auto max-width: 100%;
    height: auto !important;
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr) auto minmax(0, 1fr) !important;
    grid-template-areas:
      ". minute ."
      "home score away"
      "stats stats stats";
    align-items: center;
    row-gap: 18px;
    column-gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(14px, 2vw, 10px) !important;
  }

  .match-stats {
    grid-area: stats;
    justify-self: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
  }

  .teambox {
    display: contents !important;
  }

  .match-minute {
    grid-area: minute;
    justify-self: center;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
  }

  .team.home {
    grid-area: home;
    width: auto !important;
    justify-self: end;
  }

  .score {
    grid-area: score;
    justify-self: center;
    margin: 0 !important;
  }

  .team.away {
    grid-area: away;
    width: auto !important;
    justify-self: start;
  }

  .team.home span,
  .team.away span {
    max-width: 90px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .team.home img,
  .team.away img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .match-extra {
    display: none;
  }

  .match-core {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
  }

  .match-left,
  .match-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mode-tabs,
  .stats-tabs {
    width: 100%;
  }

  #dplayer {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .mode-tabs .mode-btn,
  .mode-tabs .mode-btn.active {
    width: auto !important;
    flex: 1 1 0;
    min-width: 0;
    height: clamp(40px, 7vw, 55px);
    padding: clamp(6px, 1.5vw, 12px);
    font-size: clamp(11px, 2vw, 16px);
  }

  .xoilac-chat {
    height: clamp(550px, 45vw, 520px);
  }

  .odds-table-new thead th,
  .odds-table-new tbody tr td,
  .odds-head-3 span,
  .odds-cell-3 span,
  .odds-cell-2 span {
    font-size: clamp(9px, 1.25vw, 12px);
  }

  .odds-table-new .odds-company-cell,
  .odds-table-new tbody td.odds-row-label {
    width: clamp(62px, 9vw, 90px);
  }

  .odds-company-logo {
    width: clamp(46px, 6.5vw, 64px);
  }

  .odds-cell-2 {
    gap: clamp(2px, 0.8vw, 10px);
    padding: 0 clamp(2px, 0.7vw, 8px) !important;
  }
}

@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden !important;
  }

  .xoilac-match-page {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    row-gap: 10px;
    overflow-x: hidden;
  }

  .match-header {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 148px !important;
    padding: 14px 8px !important;
  }

  .match-header,
  .xoilac-odds-box-inner,
  .match-core,
  .match-left,
  .match-right,
  .mode-content,
  #dplayer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .xoilac-match-page .match-stats {
    display: flex !important;
    grid-area: stats !important;
    justify-self: center !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .teambox {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) !important;
    grid-template-areas:
      ". minute ."
      "home score away" !important;
    column-gap: 8px !important;
    row-gap: 10px !important;
    align-items: center !important;
  }

  .team.home,
  .team.away {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .team.home {
    grid-area: home !important;
  }

  .team.away {
    grid-area: away !important;
  }

  .team.home img,
  .team.away img,
  .team-logo {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  .team.home span,
  .team.away span {
    display: block !important;
    width: 100% !important;
    max-width: 96px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 15px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .score {
    grid-area: score !important;
    width: 66px !important;
    min-width: 66px !important;
    height: 30px !important;
    font-size: 22px !important;
    line-height: 30px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .match-minute {
    grid-area: minute !important;
    font-size: 12px !important;
    line-height: 18px !important;
    margin-bottom: 2px !important;
  }

  .xoilac-match-page .team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .xoilac-match-page .team img {
    order: 1 !important;
    width: 42px !important;
    height: 42px !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .xoilac-match-page .team span {
    order: 2 !important;
    display: block !important;
    max-width: 92px !important;
    text-align: center !important;
    font-size: 12px !important;
    line-height: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .xoilac-match-page .teambox {
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) !important;
  }

  .xoilac-match-page .match-minute,
  .xoilac-match-page .match-minute .minute-text {
    white-space: nowrap !important;
  }

  .xoilac-match-page .match-minute {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 96px !important;
  }
}

#odds-render-mobile {
  display: none;
}

@media (max-width: 768px) {
  #odds-render {
    display: none !important;
  }

  #odds-render-mobile {
    display: block !important;
    width: 100%;
    margin-bottom: 12px;
  }

  .mobile-odds-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .xoilac-odds-box-inner {
    display: block;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 7px;
    background: rgb(41, 45, 46);
    color: rgb(255, 255, 255);
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    text-align: left;
    opacity: 0.9;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-odds-top {
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: #fff;
    font-family: Raleway, sans-serif;
  }

  #mobile-odds-company {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .mobile-odds-company-wrap {
    width: 83px;
    height: 21px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    text-align: left;
    text-size-adjust: 100%;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .mobile-odds-company-logo {
    width: 70px;
    height: 21px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .mobile-odds-tabs {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    height: 28px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .mobile-odds-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-odds-tabs button {
    width: 100%;
    min-width: 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    padding: 0 8px;
    flex-shrink: 1;
  }

  .mobile-odds-tabs button.active {
    background: rgb(5, 42, 146);
    color: #fff;
  }

  .mobile-odds-body {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    gap: 8px;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    text-align: left;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .mobile-odds-section {
    position: relative;
    display: grid;
    grid-template-columns: 92px (0, 1fr);
    gap: 0px;
    box-sizing: border-box;
    width: 100%;
    min-height: 68px;
    margin-bottom: 8px;
    overflow: visible;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 100%;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    color: #fff;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    padding: 0;
    background-size: 100% 100%;
  }

  .mobile-odds-section.mobile-odds-asia {
    background:
      linear-gradient(90deg,
        rgba(37, 91, 77, 0.22) 0%,
        rgba(37, 91, 77, 0.10) 45%,
        rgba(37, 91, 77, 0.03) 100%);
  }

  .mobile-odds-section.mobile-odds-eu {
    background:
      linear-gradient(90deg,
        rgba(32, 69, 135, 0.22) 0%,
        rgba(32, 69, 135, 0.10) 45%,
        rgba(32, 69, 135, 0.03) 100%);
  }

  .mobile-odds-section.mobile-odds-bs {
    background:
      linear-gradient(90deg,
        rgba(116, 55, 39, 0.22) 0%,
        rgba(116, 55, 39, 0.10) 45%,
        rgba(116, 55, 39, 0.03) 100%);
  }

  .mobile-odds-section.mobile-odds-cr {
    background:
      linear-gradient(90deg,
        rgba(65, 41, 125, 0.22) 0%,
        rgba(65, 41, 125, 0.10) 45%,
        rgba(65, 41, 125, 0.03) 100%);
  }

  .mobile-odds-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 30px;
    margin-top: 2px;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, .03) 0%,
        rgba(255, 255, 255, .01) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 0 8px rgba(255, 255, 255, .02);
    backdrop-filter: blur(8px);
    text-shadow:
      0 0 4px rgba(255, 255, 255, .08);
  }

  .mobile-odds-line:last-child .mobile-odds-period {
    color: #00ff4B;
    text-shadow:
      0 0 6px rgba(0, 255, 153, .35);
  }

  .mobile-odds-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 34px;
    margin-bottom: 0px;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    text-align: center;
    column-gap: 2px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .mobile-odds-period {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 30px;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .02);
    border-radius: 6px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03);
  }

  .mobile-odds-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 30px;
    padding: 2px;
    border-radius: 3px;
    position: relative;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .mobile-odds-company-arrow {
    width: 12px;
    height: 12px;
    color: #fff;
    opacity: 0.65;
    flex-shrink: 0;
  }

  .mobile-odds-values {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    gap: 0px;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    text-align: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  .mobile-odds-asia .mobile-odds-box {
    background: linear-gradient(135deg,
        rgba(44, 122, 98, 0.78) 0%,
        rgba(37, 91, 77, 0.92) 45%,
        rgba(24, 58, 49, 0.88) 100%);
    border: 1px solid rgba(82, 255, 180, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 8px rgba(0, 255, 170, 0.03);
    border-radius: 4px;
  }

  .mobile-odds-eu .mobile-odds-box {
    background: linear-gradient(135deg,
        rgba(43, 103, 204, 0.75) 0%,
        rgba(32, 69, 135, 0.92) 45%,
        rgba(18, 35, 72, 0.9) 100%);
    border: 1px solid rgba(100, 180, 255, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 8px rgba(0, 140, 255, 0.03);
    border-radius: 4px;
  }

  .mobile-odds-bs .mobile-odds-box {
    background: linear-gradient(135deg,
        rgba(163, 88, 58, 0.75) 0%,
        rgba(116, 55, 39, 0.92) 45%,
        rgba(66, 28, 18, 0.9) 100%);
    border: 1px solid rgba(255, 180, 120, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 8px rgba(255, 120, 0, 0.03);
    border-radius: 4px;
  }

  .mobile-odds-cr .mobile-odds-box {
    background: linear-gradient(135deg,
        rgba(101, 67, 185, 0.75) 0%,
        rgba(65, 41, 125, 0.92) 45%,
        rgba(36, 20, 74, 0.9) 100%);
    border: 1px solid rgba(180, 120, 255, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 8px rgba(140, 0, 255, 0.03);
    border-radius: 4px;
  }
}

.xoilac-filter-icon {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.xoilac-filter-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.xoilac-match-page,
.xoilac-match-page * {
  font-family: Raleway, ui-sans-serif, system-ui, sans-serif !important;
}

body:has(.xoilac-match-page),
body:has(.xoilac-match-page) html,
body:has(.xoilac-match-page) #page,
body:has(.xoilac-match-page) .wp-site-blocks,
body:has(.xoilac-match-page) main {
  background: #141417 !important;
}

body:has(.xoilac-match-page) {
  background: #141417 !important;
  color: #fff !important;
}

body:has(.xoilac-match-page) #page {
  min-height: 100vh;
  background: #141417 !important;
}

@media (max-width: 480px) {
  .xoilac-match-page {
    padding-left: 8px !important;
    padding-right: 8px !important;
    overflow-x: hidden !important;
  }

  .match-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 183px !important;
    min-height: 148px !important;
    padding: 14px 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .match-header>* {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .teambox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr) !important;
    column-gap: 6px !important;
    overflow: hidden !important;
  }

  .team.home,
  .team.away {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    column-gap: 6px !important;
    overflow: hidden !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
    flex-basis: auto !important;
    overflow: hidden !important;
    box-sizing: border-box;
  }

  .team.home span,
  .team.away span {
    min-width: 0 !important;
    max-width: 100px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .team img,
  .team-logo,
  .teambox__team img {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .score {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    font-size: 22px !important;
  }

  .match-stats {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .match-stats .stat,
  .match-stats .stat-ht,
  .match-stats .stat-corner,
  .match-stats .stat-yellow,
  .match-stats .stat-red {
    width: auto !important;
    min-width: 62px !important;
    max-width: 70px !important;
  }
}
