/**
 * LuongSon Match UI - Giống borealisrecords.com
 * Bao gồm: Sports tabs, Filter tabs, Match cards
 * Font Oswald/Raleway load async qua header để không block render (LCP)
 */
:root {
  --scl-primary: #fe8b00;
  --scl-text: #fff;
  --overlay-bg-color: #191B24;
}

/* ========================================
   MATCH LIST CONTAINER
======================================== */
.match-list-container {
  padding: 10px 5px;
}

.match-list-container.tab-option-1 {
  background: transparent;
}

/* ========================================
   PAGE BARS (Wrapper cho sports + filter)
======================================== */
.page_bars,
.home .page_bars {
  border-radius: 7px;
  position: relative;
  margin-bottom: 10px;
  container-type: inline-size;
  container-name: menuSize;
  overflow: hidden;
}

/* ========================================
   SPORTS TABS - Thanh môn thể thao
======================================== */
.sports-bars,
.home .sports-bars {
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  display: block !important;
  position: relative;
  padding: 11px 16px 11px 20px;
  margin-bottom: 20px;
}

.sports-bars::after,
.home .sports-bars::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgb(255 255 255 / 10%);
}

.sports-bars ul,
.sports-bars ul.nav-tabs,
.home .sports-bars ul {
  list-style: none;
  width: 100%;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  padding-bottom: 3px;
  padding-top: 5px;
  border-bottom: none;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  position: relative;
}

.sports-bars ul li,
.sports-bars .nav-item,
.home .sports-bars ul li {
  position: relative;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 16px;
  margin-left: 0;
}

.sports-bars ul li::after,
.sports-bars .nav-item::after,
.home .sports-bars ul li::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  background: linear-gradient(
    360deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translate(50%, -50%);
}

.sports-bars ul li:last-child::after,
.sports-bars .nav-item:last-child::after,
.home .sports-bars ul li:last-child::after {
  content: none;
}

.sports-bars ul li button,
.sports-bars .nav-link,
.home .sports-bars ul li button {
  font-family: Oswald, sans-serif;
  background: transparent;
  border: 1px solid transparent;
  color: #999999;
  text-shadow: 0px 0.92px 3.678px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  gap: 5px;
  font-weight: 600;
  min-width: 125px;
  height: 39px;
  outline: 0;
  border-radius: 11px;
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  margin: 0;
}

.sports-bars ul li button span,
.sports-bars .nav-link span,
.home .sports-bars ul li button span {
  line-height: 1.6;
  height: max-content;
  text-shadow: 0px 0.92px 3.678px rgba(0, 0, 0, 0.24);
  font-family: Oswald, sans-serif;
  font-size: 13.793px;
  font-style: normal;
  font-weight: 600;
  color: transparent;
  background-image: linear-gradient(277.1deg, #ffffff -1.27%, #999999 105.05%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.sports-bars ul li svg,
.sports-bars .nav-link svg,
.sports-bars ul li img.sport-icon,
.home .sports-bars ul li svg,
.home .sports-bars ul li img.sport-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Active, Focus, Hover states */
.sports-bars ul li button.active,
.sports-bars ul li button:focus,
.sports-bars ul li button:hover,
.sports-bars .nav-link.active,
.sports-bars .nav-link:focus,
.sports-bars .nav-link:hover,
.home .sports-bars ul li button.active,
.home .sports-bars ul li button:focus,
.home .sports-bars ul li button:hover {
  color: #feba4b !important;
  text-shadow: 0px 0.92px 3.678px rgba(0, 0, 0, 0.24);
  position: relative;
  border: 1px solid rgba(60, 68, 89, 1);
  background: rgba(23, 28, 39, 1);
}

.sports-bars ul li button.active span,
.sports-bars ul li button:focus span,
.sports-bars ul li button:hover span,
.sports-bars .nav-link.active span,
.sports-bars .nav-link:focus span,
.sports-bars .nav-link:hover span,
.home .sports-bars ul li button.active span,
.home .sports-bars ul li button:focus span,
.home .sports-bars ul li button:hover span {
  color: inherit;
  -webkit-text-fill-color: inherit;
  background-clip: unset;
  -webkit-background-clip: unset;
  background-image: none;
}

.sports-bars ul li button.active img,
.sports-bars ul li button.active svg,
.sports-bars ul li button:focus img,
.sports-bars ul li button:focus svg,
.sports-bars ul li button:hover img,
.sports-bars ul li button:hover svg,
.home .sports-bars ul li button.active img,
.home .sports-bars ul li button.active svg,
.home .sports-bars ul li button:focus img,
.home .sports-bars ul li button:focus svg,
.home .sports-bars ul li button:hover img,
.home .sports-bars ul li button:hover svg {
  filter: brightness(0) saturate(100%) invert(56%) sepia(72%) saturate(480%) hue-rotate(350deg) brightness(120%) contrast(96%);
}

.sports-bars ul li button.active::before,
.sports-bars ul li button:focus::before,
.sports-bars ul li button:hover::before,
.sports-bars .nav-link.active::before,
.sports-bars .nav-link:focus::before,
.sports-bars .nav-link:hover::before,
.home .sports-bars ul li button.active::before,
.home .sports-bars ul li button:focus::before,
.home .sports-bars ul li button:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: #ffe138;
  border-radius: 0 0 6px 6px;
}

/* Live tag */
.sport-playing {
  position: absolute;
  font-size: calc(10 / 1276 * 100cqw);
  vertical-align: baseline;
  font-style: normal;
  background: #DF2C2C;
  color: #fff;
  width: calc(28 / 1276 * 100cqw);
  height: calc(16 / 1276 * 100cqw);
  line-height: 1.5;
  text-align: center;
  border-radius: 8px;
  top: -10%;
  right: -3%;
  z-index: 1;
  display: none;
}

.sport-playing.is-sport-playing {
  display: inline-block;
}

/* ========================================
   FILTER BAR - LIVESCORE LIVES (giống borealis)
======================================== */
.match-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.match-filter-bar .livescore-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.match-filter-bar .league-select-wrap {
  margin-left: auto;
}
.match-filter-bar .league-select {
  padding: 6px 12px;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}
.page_bars .match-filter-bar {
  border-radius: 0 0 8px 8px;
}
ul.match_filter {
  list-style-type: none;
  flex-wrap: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
}
ul.match_filter::-webkit-scrollbar {
  height: 4px;
}
ul.match_filter::-webkit-scrollbar-thumb {
  background: #494e5f;
  border-radius: 12px;
}
ul.match_filter::-webkit-scrollbar-track {
  background: #191920;
}
@media (max-width: 768px) {
  ul.match_filter::-webkit-scrollbar {
    display: none;
  }
  ul.match_filter {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
}

.match-list-container ul.match_filter {
  display: flex;
  flex-wrap: nowrap;
}

.match_filter li {
  position: relative;
  margin-right: 0;
  white-space: nowrap;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  flex-shrink: 0;
}

.tab-option-1 .match_filter li {
  padding: 0 8px;
  min-width: 120px;
  height: 30px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  cursor: pointer;
  margin-left: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  font-family: "Raleway", sans-serif;
  color: #9c9c9c;
  background: #191920;
  border: 1px solid rgba(60, 68, 89, 1);
  border-radius: 6px;
  text-decoration: none;
}

.tab-option-1 .match_filter li:hover,
.tab-option-1 .match_filter li.active {
  color: #feba4b;
  border: 1px solid transparent;
  background: linear-gradient(360deg, #242c3f, #181b23);
  position: relative;
  z-index: 1;
}

.tab-option-1 .match_filter li[data-value="live"].active {
  color: #fedc7d;
  background: linear-gradient(to top, #5e5027 0%, rgba(124, 111, 75, 0) 70%);
  border: none;
}

.match_filter li span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.match_filter li span::after {
  content: attr(amount);
  color: #999999;
  background: #162737;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  border-radius: 38px;
  min-width: 22px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-family: Oswald, sans-serif;
  padding: 0 5px;
}

.tab-option-1 .match_filter li:hover span::after,
.tab-option-1 .match_filter li.active span::after {
  color: #feba4b;
}

.tab-option-1 .match_filter li[data-value="live"].active span::after {
  color: #ffffff;
  background-color: #9A2114;
  border-color: transparent;
}

.tab-option-1 .match_filter li .filter-icon {
  margin-right: 4px;
}

/* Icon từ web gốc borealisrecords.com */
.match_filter li .filter-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
.sports-bars .sport-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ========================================
   MATCH LIST
======================================== */
.match-overframe {
  position: relative;
}

.match-list {
  margin: 0 !important;
}

.match-list-shortcode.row {
  /* Đảm bảo Bootstrap row hoạt động đúng */
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
}

.match-list-shortcode.row > * {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  /* Mobile: giữ nguyên 100% width */
  width: 100%;
  max-width: 100%;
}

/* Đảm bảo 2 card/hàng trên PC với Bootstrap grid */
@media (min-width: 768px) {
  .match-list-shortcode.row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .match-list-shortcode.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 50%;
  }
  
  .match-list-shortcode .match-item.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
    max-width: 50%;
  }
}

/* ========================================
   MATCH ITEM (Card)
======================================== */
.match-item {
  position: relative;
  margin-bottom: 10px;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.match-item-inner {
  border: 1px solid transparent;
  background: #191B24;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Background gradient effect */
.match-item-inner::before {
  content: '';
  background: linear-gradient(180deg, rgba(15,15,15,0.8) 0%, rgba(25,25,25,0.95) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hot-match .match-item-inner {
  border-color: #b93d3d;
}

.live-match .match-item-inner {
  border-color: #e74c3c;
}

/* Link overlay */
.link-match {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  left: 0;
  z-index: 5;
}

/* ========================================
   MATCH ITEM HEAD
======================================== */
.match-item-head {
  height: 50px;
  padding: 10px;
}

.match-item-head-inner {
  display: flex;
  justify-content: space-between;
}

.match-item__comp {
  color: var(--scl-text);
  z-index: 2;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.match-item__time span {
  color: var(--scl-text);
  font-size: 12px;
  background: #b93d3d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 3px;
  line-height: 1;
}

/* ========================================
   MATCH ITEM BODY
======================================== */
.match-item-body {
  flex: 1;
  padding: 10px;
}

.match-item-body-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Teams */
.match-team {
  display: flex;
  justify-content: center;
  width: 35%;
}

.match-team-inner * {
  text-align: center;
}

.logo-team-inner {
  min-height: 70px;
  min-width: 70px;
  position: relative;
  margin: auto;
  z-index: -1;
}

.logo-team-inner img {
  bottom: 0;
  font-family: "object-fit: cover;";
  height: 100%;
  left: 0;
  object-fit: scale-down;
  object-position: 50% 50%;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.name-team-inner span {
  font-size: 12px;
  color: var(--scl-text);
  font-weight: 700;
}

/* Overview (center) */
.match-overview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.match-overview-inner {
  text-align: center;
}

/* VS text */
.status-match.vs-match {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
}

/* Status badge */
.status-match:not(.vs-match) {
  background: #CB461B;
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

.status-match + .match-score-scl {
  margin-top: 5px;
}

/* Score */
.match-score-scl {
  background: linear-gradient(141deg, #06A5FF 0%, #0236BC 100%);
  padding: 3px 0px;
  display: block;
  font-size: 24px;
  line-height: 24px;
  border-radius: 3px;
  color: #fff;
}

.match-score-scl.match-running {
  background: unset !important;
  font-size: 20px;
}

/* Time text */
.time-text::before {
  content: ":";
  margin-right: 5px;
}

.time-text:empty::before {
  content: none;
  margin: 0;
}

/* View button */
.match-view-inner {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.match-view-inner span {
  color: #fff;
}

.match-view-link {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  background: linear-gradient(139deg, #008360 0%, #49EC44 100%);
  color: #FFF;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
  padding: 4px 12px;
  width: max-content;
  text-decoration: none;
}

/* ========================================
   MATCH ITEM FOOTER (BLV list)
======================================== */
.match-item-footer {
  position: relative;
  padding: 10px;
  background: #1e1e1e;
}

.match-item-footer-inner {
  display: flex;
  justify-content: space-between;
}

.match-blvscl {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-blv-inner {
  width: 100%;
}

.blv-list-scl {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.blv-item-scl .dropdown-item {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  background: transparent;
}

.blv-item-scl .dropdown-item:hover {
  color: var(--scl-primary);
  background: transparent;
}

.blv-item-scl .dropdown-item span {
  padding-left: 0px;
}

.img_blv_inner {
  width: 20px;
  height: 20px;
  position: relative;
  margin-right: 3px;
  border-radius: 99px;
  overflow: hidden;
  border: 2px solid var(--scl-primary);
}

.img_blv_inner img {
  bottom: 0;
  font-family: "object-fit: cover;";
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

/* ========================================
   STATUS VISIBILITY LOGIC
======================================== */
.status-match,
.match-score-scl,
.match-running,
.time-text {
  display: none;
}

/* Trận chưa bắt đầu (is-live="0") - hiện VS */
.match-item[is-live="0"] .vs-match {
  display: block;
}

.match-item:not([is-live="1"]) .vs-match {
  display: inline-block;
}

/* Trận đang live - hiện score và status */
.match-item[is-live="1"][sport-id="1"]:not(:is([status-id="0"], [status-id="1"], [status-id="9"], [status-id="10"], [status-id="11"], [status-id="12"])) .score-match-data,
.match-item[is-live="1"][sport-id="1"]:not(:is([status-id="0"], [status-id="1"], [status-id="9"], [status-id="10"], [status-id="11"], [status-id="12"])) .status-match-data {
  display: block;
}

.match-item[is-live="1"][sport-id="1"][status-id="2"] .time-text,
.match-item[is-live="1"][sport-id="1"][status-id="4"] .time-text {
  display: inline-block;
}

.match-item[sport-id="1"]:is([status-id="0"], [status-id="1"], [status-id="9"], [status-id="10"], [status-id="11"], [status-id="12"]) .vs-match {
  display: inline-block;
}

.match-item[is-live="1"][sport-id="1"] .time-text:empty {
  display: none;
}

/* ========================================
   RUNNING BORDER ANIMATION
======================================== */
.running-border .match-item-inner > span {
  display: none;
}

.running-border .match-item-inner:hover > span {
  display: block;
}

.running-border .match-item-inner > span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #0c002b00, var(--scl-primary));
  animation: animate1 2s linear infinite;
  z-index: 10;
}

.running-border .match-item-inner > span:nth-child(2) {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #0c002b00, var(--scl-primary));
  animation: animate2 2s linear infinite;
  animation-delay: 1s;
  z-index: 10;
}

.running-border .match-item-inner > span:nth-child(3) {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, #0c002b00, var(--scl-primary));
  animation: animate3 2s linear infinite;
  z-index: 10;
}

.running-border .match-item-inner > span:nth-child(4) {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, #0c002b00, var(--scl-primary));
  animation: animate4 2s linear infinite;
  animation-delay: 1s;
  z-index: 10;
}

@keyframes animate1 {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes animate2 {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes animate3 {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes animate4 {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* ========================================
   LOAD MORE BUTTON - Giống web gốc borealisrecords.com (.btn-loadmore)
======================================== */
.btn-loadmore,
#load-more-match.load-more,
.load-more.owards.btn-loadmore {
  background: #1A1D23 !important;
  background-color: #1A1D23 !important;
  border: none !important;
  border-radius: 6px !important;
  width: 100% !important;
  display: block !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  color: #009B3A !important;
  padding: 12px 20px !important;
  margin-bottom: 10px !important;
  margin-top: 10px !important;
  text-align: center !important;
  cursor: pointer !important;
  text-transform: none !important;
  font-family: inherit !important;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

.btn-loadmore:hover,
#load-more-match.load-more:hover,
.load-more.owards.btn-loadmore:hover {
  background: #1A1D23 !important;
  background-color: #1A1D23 !important;
  color: #009B3A !important;
  text-decoration: none !important;
}

.full-width {
  width: 99.4%;
  margin: 0 auto;
  display: block;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ========================================
   RESPONSIVE - Mobile giống borealisrecords.com
======================================== */
@media (max-width: 1024px) {
  .page_bars,
  .home .page_bars {
    padding-bottom: 0;
    background: #191920;
  }
  .sports-bars ul li button span,
  .home .sports-bars ul li button span {
    font-size: 9px;
  }
  .tab-option-1 .match_filter li {
    min-width: fit-content;
    gap: 7px;
    font-size: 11px !important;
    padding: 0 6px !important;
  }
  ul.match_filter {
    gap: 6px;
    margin-bottom: 0;
  }
  .sports-bars ul li,
  .home .sports-bars ul li {
    padding-inline: 2px;
  }
  .sports-bars ul li::after,
  .home .sports-bars ul li::after {
    right: -5%;
  }
  .sports-bars ul li button,
  .home .sports-bars ul li button {
    min-width: 90px;
    padding: 10px 5px;
  }
  .sports-bars ul li button.active::before,
  .sports-bars ul li button:focus::before,
  .sports-bars ul li button:hover::before,
  .home .sports-bars ul li button.active::before,
  .home .sports-bars ul li button:focus::before,
  .home .sports-bars ul li button:hover::before {
    width: 24px;
  }
}

@media (max-width: 991px) {
  .sports-bars ul,
  .home .sports-bars ul {
    gap: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .page_bars .match-filter-bar {
    padding: 8px 12px;
  }
  .sports-bars,
  .home .sports-bars {
    padding: 4px 6px 10px 6px;
    margin-bottom: 10px;
  }
  .sports-bars ul,
  .sports-bars ul.nav-tabs,
  .home .sports-bars ul {
    gap: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .sports-bars ul::-webkit-scrollbar,
  .home .sports-bars ul::-webkit-scrollbar {
    display: none;
  }
  .sports-bars ul li::after,
  .sports-bars .nav-item::after,
  .home .sports-bars ul li::after {
    right: 0;
  }
  .sports-bars ul li button,
  .sports-bars .nav-link,
  .home .sports-bars ul li button {
    flex-direction: column;
    gap: 4px;
    min-width: 50px;
    height: 50px;
    font-size: 9px;
    padding: 6px;
  }
  .sports-bars ul li button img,
  .sports-bars ul li button svg,
  .home .sports-bars ul li button img,
  .home .sports-bars ul li button svg {
    margin: 4px auto 0;
    height: 16px;
    width: 16px;
    object-fit: contain;
  }
  .sports-bars ul li button span,
  .sports-bars .nav-link span,
  .home .sports-bars ul li button span {
    line-height: 13px;
    font-size: 9px;
  }
  .sports-bars ul li button.active::before,
  .sports-bars ul li button:focus::before,
  .sports-bars ul li button:hover::before,
  .home .sports-bars ul li button.active::before,
  .home .sports-bars ul li button:focus::before,
  .home .sports-bars ul li button:hover::before {
    width: 55px;
  }
  .tab-option-1 .match_filter li {
    min-width: fit-content;
    gap: 5px;
  }
  ul.match_filter::-webkit-scrollbar {
    display: none;
  }
  .tab-option-1 .match_filter li[data-value="live"].active {
    border: 1px solid #90020C;
    background: #171C27;
  }
  .sport-playing {
    width: 28px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    top: -5px;
    right: -13px;
  }
  .blv-item-scl .dropdown-item {
    font-size: 14px;
    line-height: 1;
  }
  .match-score-scl {
    font-size: 12px;
  }
  .img_blv_inner {
    width: 16px;
    height: 16px;
    border-width: 1px;
  }
}

@media (max-width: 576px) {
  .sports-bars ul,
  .home .sports-bars ul {
    gap: 0;
  }
  .sports-bars ul li button,
  .sports-bars .nav-link,
  .home .sports-bars ul li button {
    height: 45px;
    min-width: 45px;
  }
  .sports-bars ul li button.active::before,
  .sports-bars ul li button:focus::before,
  .sports-bars ul li button:hover::before,
  .home .sports-bars ul li button.active::before,
  .home .sports-bars ul li button:focus::before,
  .home .sports-bars ul li button:hover::before {
    width: 35px;
  }
  .page_bars .match-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .match-filter-bar .league-select-wrap {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .sports-bars ul.nav-tabs::before,
  .home .sports-bars ul.nav-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(270deg, rgba(25, 28, 33, 0) 0%, #191C21 100%);
    pointer-events: none;
    width: calc(100% - 25px);
    height: 100%;
    z-index: 1;
  }
  .sports-bars ul.nav-tabs.hide-blur::before,
  .home .sports-bars ul.nav-tabs.hide-blur::before {
    background: linear-gradient(270deg, #191C21 0%, rgba(25, 28, 33, 0) 100%);
    left: 80px;
  }
}

@media (max-width: 370px) {
  .sports-bars ul li::after,
  .sports-bars .nav-item::after,
  .home .sports-bars ul li::after {
    display: none;
  }
}

/* ========================================
   SVG ICON GRADIENTS
======================================== */
.sports-icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ========================================
   EXPAND TRIGGER (cho nhiều môn thể thao)
======================================== */
.sports-expand-trigger {
  width: 20px !important;
  flex: unset !important;
  display: none !important;
  position: relative;
  list-style: none;
}

.sports-expand-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  transition: background 0.2s ease;
}

.sports-expand-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.sports-expand-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.sports-expand-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: linear-gradient(0deg, #111213 0%, #262932 100%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 5px 2px !important;
  z-index: 1000;
  min-width: 150px;
  display: flex;
  flex-direction: column !important;
  gap: 4px !important;
  align-items: center;
  list-style: none;
  margin: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.sports-expand-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  width: 100%;
  height: 12px;
}

.sports-expand-menu .nav-item {
  width: 70%;
}

.sports-expand-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.sports-expand-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sports-expand-menu .sport-playing {
  top: -7%;
  right: -8%;
}

.sports-bars .sports-expand-menu li::after {
  display: none;
}

.sports-expand-menu .nav-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;
  width: 30px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 55%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* ========================================
   BOREALIS-STYLE MATCH CARD (grid-matches__item / gmd-*)
   Giống https://borealisrecords.com/
======================================== */
.match-list-shortcode.row.borealis-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0;
  margin-right: 0;
  align-items: flex-start; /* mỗi card cao theo nội dung, footer không bị đẩy ra ngoài */
}

.match-list-shortcode.row.borealis-cards > [class*="col-"] {
  flex: 0 0 calc(50% - 5px);
  max-width: calc(50% - 5px);
  padding: 0;
}

@media (max-width: 992px) {
  .match-list-shortcode.row.borealis-cards > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 1 cột: card full width */
.match-list-shortcode.row.borealis-cards > .grid-matches__item.col-12:not(.col-md-6) {
  flex: 0 0 100%;
  max-width: 100%;
}

.grid-matches__item {
  background: #2e2e2e url("https://main-match-bg.b-cdn.net/main-match-bg-v2.svg") center center / cover no-repeat;
  border-radius: 7px;
  display: block;
  cursor: pointer;
  position: relative;
  flex: 0 0 calc(50% - 10px);
  background-size: cover !important;
  overflow: hidden; /* footer và toàn bộ nội dung nằm gọn trong card, bo góc đúng */
}

.main-grid-match {
  display: block;
  height: auto;
}

.main-grid-match a {
  text-decoration: none;
  display: block;
  height: auto;
}

.main-grid-match.grid-match--is-hot {
  border: 1px solid #ca0000;
  border-radius: 7px;
}

/* Tournament header: league | time | date */
.gmd-tournament-header {
  align-items: center;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  padding: 12px 15px 10px 15px;
  text-align: center;
}

.gmd-match-league {
  text-align: left;
  color: #828b98;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: normal;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Roboto, sans-serif;
}

.gmd-elapsed-wrapper {
  position: relative;
  width: 120px;
  height: 28px;
  margin: 0 auto;
}

.gmd-e_minutes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 12px;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.gmd-match-date {
  text-align: right;
  color: #828b98;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  height: 23px;
}

.gmd-match-date span {
  position: relative;
  padding: 5px 15px;
  margin-bottom: 0;
  border-radius: 13px;
  background: transparent;
}

.gmd-match-date span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(0deg, #41434a 10%, rgba(46, 46, 46, 0.1) 70%) !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* Content: teams + score */
.gmd-content_match {
  align-items: start;
  color: #fff;
  display: flex;
  padding: 0 15px 14px;
  text-align: center;
  align-items: center;
}

.gmd-home_team {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 11px;
  padding-right: 27px;
  flex: 1;
  min-height: 3.5rem;
}

.gmd-away_team {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding-left: 27px;
  flex: 1;
  min-height: 3.5rem;
}

.gmd-team .team-logo-group {
  display: flex;
  position: relative;
  min-width: 50px;
  min-height: 50px;
}

.gmd-team .team-logo-group img {
  height: 50px;
  width: 50px;
  min-width: 50px;
  min-height: 50px;
  object-fit: contain;
  padding: 2px;
}

.gmd-team .team-name-group {
  display: flex;
  flex-direction: column;
}

.gmd-team p {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 120px;
  margin-bottom: 0;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  color: #fff;
}

.gmd-home_team .team-name-group {
  text-align: right;
}

.gmd-away_team .team-name-group {
  text-align: left;
}

.gmd-mid_score {
  width: max-content;
}

.gmd-score-box {
  border-radius: 100px;
  display: flex;
  font-size: clamp(1.1875rem, 2vw + 0.5rem, 1.1875rem);
  font-weight: 500;
  gap: 0.3rem;
  justify-content: space-evenly;
  padding: 3px;
  background: #000;
  position: relative;
  border: 0.0625rem solid rgba(62, 61, 60, 0);
  box-shadow: 0 0 0.75rem 0 rgba(0, 0, 0, 0.12) inset;
}

.gmd-score-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  opacity: 0.6;
  pointer-events: none;
  border-radius: 100px;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: linear-gradient(180deg, rgba(62, 61, 60, 0) 15%, #ffc300 55%, rgba(62, 61, 60, 0) 80%);
}

.gmd_home-score p,
.gmd_away-score p {
  border-radius: 100px;
  position: relative;
  font-family: Oswald, sans-serif;
  font-size: 17px;
  font-weight: 700;
  height: 1.75rem;
  margin-bottom: 0;
  padding: 0;
  line-height: 28px;
  color: #fff;
}

.gmd_home-score p {
  padding-inline: 10px 3px !important;
}

.gmd_away-score p {
  padding-inline: 3px 10px !important;
}

/* Footer: BLV streamer */
.gmd-match-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 5px 10px;
  background: linear-gradient(360deg, rgba(44, 44, 44, 0) 0%, rgba(27, 27, 27, 1) 100%);
  border-radius: 11px;
  margin: 0 15px 6px 15px;
  align-items: center;
  position: relative;
  height: 40px;
}

.gmd-match-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 11px;
  padding: 1px;
  background: linear-gradient(360deg, rgba(25, 25, 32, 0) 0%, rgba(63, 65, 70, 1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.gmd-match-footer__streamer {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #bbbbbb;
  justify-content: center;
  flex-wrap: wrap;
}

.gmd-match-footer__streamer .extra-info_one {
  display: flex;
  align-items: center;
  gap: 3px;
}

.gmd-match-footer__streamer .extra-info_one svg {
  width: 30px;
  height: 30px;
}

.gmd-match-footer__streamer .extra-info_one span {
  color: #bbbbbb;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  font-family: Roboto, sans-serif;
  white-space: nowrap;
}

.gmd-match-footer__streamer .extra-info_one a {
  color: transparent;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.gmd-match-footer__streamer .extra-info_one a:hover {
  color: transparent;
}

.gmd-match-footer__streamer .extra-info_one .img_blv_inner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.gmd-match-footer__streamer .extra-info_one .img_blv_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Redirect overlay (click area) */
.redirectPopup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 73%;
  z-index: 1;
}

/* Borealis card responsive */
@media (max-width: 576px) {
  .gmd-team .team-logo-group img {
    height: 28px;
    width: 28px;
  }
  .gmd-tournament-header {
    padding: 10px;
  }
  .gmd-home_team {
    padding-right: 5px;
  }
  .gmd-away_team {
    padding-left: 5px;
  }
  .gmd-team p {
    width: 55px;
    font-size: 12px;
  }
  .gmd-match-footer {
    margin: 0 0.5rem 6px 0.5rem;
    padding: 5px 10px;
    gap: 3px;
  }
  .gmd-content_match {
    padding: 0 10px 12px;
  }
}
