/*
 * Trực tiếp — Bongdalu Live Black / Red / Silver
 * Loaded globally for CSR readiness; all visual rules are page-scoped.
 */

body {
  --live-bg: #08090b;
  --live-panel: #141518;
  --live-panel-soft: #191a1f;
  --live-panel-deep: #0d0e12;
  --live-line: #393a40;
  --live-line-soft: #2d2f35;
  --live-red: #e50919;
  --live-red-dark: #9f000c;
  --live-text: #f4f4f5;
  --live-muted: #a7a9b1;
  --live-radius: 12px;
  background: var(--live-bg);
  color: var(--live-text);
}

body #main {
  min-height: 70vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(100, 8, 18, .12), transparent 38%),
    var(--live-bg);
}

body #content {
  width: 100%;
  padding: 0 10px 28px;
}

/* The first UX row only contains match-detail shortcodes. Remove its empty
   geometry on the listing route without touching it when a match is open. */

body #content > .row-small {
  width: min(100%, 1600px);
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 0;
}

body #content > .row-small > .col {
  padding: 7px;
}

body #content .gwd-body-content {
  margin-top: 14px;
}

body #content .gwd-body-content > .section-content {
  width: 100%;
}

/* Shared module shell. */
body #content .gwd-shortcode {
  min-width: 0;
  color: var(--live-text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body #content .gwd-matchdetail-header,
body #content .gwd-match-odds,
body #content .gwd-player-stream,
body #content .gwd-group-info {
  overflow: hidden;
  border: 1px solid var(--live-line);
  border-radius: var(--live-radius);
  background: linear-gradient(145deg, var(--live-panel-soft), var(--live-panel-deep));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
}

/* Match hero. */
body #content .gwd-matchdetail-header {
  position: relative;
  border-top: 2px solid var(--live-red);
  background:
    linear-gradient(100deg, rgba(9, 11, 15, .96), rgba(47, 10, 15, .88)),
    repeating-linear-gradient(135deg, transparent 0 110px, rgba(229, 9, 25, .08) 111px 116px);
}

body #content .gwd-matchdetail-header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--live-red), var(--live-red-dark));
  content: "";
  pointer-events: none;
}

body #content .gwd-matchdetail-header__odds-choice {
  min-height: 34px;
  border-color: var(--live-line);
  border-radius: 6px;
  background: rgba(11, 12, 15, .72);
  color: var(--live-text);
}

body #content .gwd-matchdetail-header__odds-choice:hover,
body #content .gwd-matchdetail-header__odds-choice:focus-visible {
  border-color: var(--live-red);
  background: rgba(229, 9, 25, .1);
}

/* Odds table. */
body #content .gwd-match-odds {
  background: var(--live-panel);
}

body #content .gwd-match-odds__grid,
body #content .gwd-match-odds__period-cell,
body #content .gwd-match-odds__head-cell {
  border-color: var(--live-line-soft);
}

body #content .gwd-match-odds__head-cell,
body #content .gwd-match-odds__company {
  background: linear-gradient(180deg, #18191e, #111216);
  color: var(--live-text);
}

body #content .gwd-match-odds__company-current,
body #content .gwd-match-odds__mobile-company-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: #6d2028;
  background: linear-gradient(180deg, #4b0a11, #24070a);
  color: #fff;
}

/* Player and information panel. */
body #content .gwd-player-stream__tabs,
body #content .gwd-group-info__tabs {
  border-bottom: 1px solid var(--live-line);
  background: linear-gradient(180deg, #1a1b20, #131419);
}

body #content .gwd-player-stream--default {
  --gwd-player-stream-tab-active-bg: linear-gradient(180deg, #48090f, #180f12);
  --gwd-player-stream-tab-active-shadow: inset 0 -2px var(--live-red);
  --gwd-player-stream-match-title-accent: var(--live-red);
}

body #content .gwd-group-info--default {
  --gwd-group-info-tab-active-border: var(--live-red);
  --gwd-group-info-tab-active-bg: linear-gradient(180deg, #48090f, #180f12);
  --gwd-group-info-tab-active-color: var(--live-red);
  --gwd-group-info-tab-active-shadow: inset 0 0 0 1px #5d0a12, 0 0 16px rgba(229, 9, 25, .2);
  --gwd-group-info-tab-active-text-shadow: 0 0 8px rgba(229, 9, 25, .22);
  --gwd-group-info-standings-tab-active-border: var(--live-red);
  --gwd-group-info-standings-tab-active-bg: linear-gradient(180deg, #48090f, #180f12);
  --gwd-group-info-standings-tab-active-color: var(--live-red);
  --gwd-group-info-nested-tab-active-bg: linear-gradient(180deg, #48090f, #180f12);
  --gwd-group-info-nested-tab-active-color: #fff;
  --gwd-group-info-stat-bar-leading-bg: var(--live-red);
  --gwd-group-info-stat-leading-color: #ff5965;
  --gwd-group-info-scrollbar-thumb: var(--live-red);
  --gwd-group-info-scrollbar-thumb-hover: #ff3342;
  --gwd-group-info-nested-tab-active-border-glow:transparent !important;
}

body #content .gwd-player-stream__tab,
body #content .gwd-group-info__tab {
  border-color: var(--live-line-soft);
  color: #c8c9ce;
}

body #content .gwd-player-stream__tab svg,
body #content .gwd-group-info__tab svg {
  color: var(--live-muted);
}

body #content .gwd-player-stream__tab svg path,
body #content .gwd-player-stream__tab svg rect,
body #content .gwd-player-stream__tab svg circle,
body #content .gwd-player-stream__tab svg polygon,
body #content .gwd-group-info__tab svg path,
body #content .gwd-group-info__tab svg rect,
body #content .gwd-group-info__tab svg circle,
body #content .gwd-group-info__tab svg polygon {
  fill: currentColor;
}

body #content .gwd-player-stream__tab svg [stroke]:not([stroke="none"]),
body #content .gwd-group-info__tab svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

body #content .gwd-player-stream__tab,
body #content .gwd-group-info__tab,
body #content .gwd-player-stream button,
body #content .gwd-group-info button {
  align-items: center;
  justify-content: center;
}

body #content .gwd-player-stream__tab[aria-selected="true"],
body #content .gwd-player-stream__tab.is-active,
body #content .gwd-group-info__tab[aria-selected="true"],
body #content .gwd-group-info__tab.is-active {
  border-color: var(--live-red);
  background: linear-gradient(180deg, #48090f, #180f12);
  color: #fff;
}

body #content .gwd-player-stream__tab[aria-selected="true"] svg,
body #content .gwd-player-stream__tab.is-active svg,
body #content .gwd-group-info__tab[aria-selected="true"] svg,
body #content .gwd-group-info__tab.is-active svg {
  color: var(--live-red);
}

body #content .gwd-player-stream__tab[aria-selected="true"] svg *,
body #content .gwd-player-stream__tab.is-active svg *,
body #content .gwd-group-info__tab[aria-selected="true"] svg *,
body #content .gwd-group-info__tab.is-active svg * {
  color: var(--live-red);
  fill: var(--live-red);
}

body #content .gwd-player-stream__titlebar {
  border-left: 4px solid var(--live-red);
  background: linear-gradient(90deg, #281014, #15161a 65%);
}

body #content .gwd-player-stream__stage,
body #content .gwd-group-info__body {
  background: #101115;
}

body #content .gwd-group-info__info-row,
body #content .gwd-group-info__info-card {
  border-color: var(--live-line-soft);
  background: rgba(255, 255, 255, .018);
}

/* Listing route: retain native UX Blocks and align its main panel with the
   same surface system used by match detail. */
body #content .gwd-main-column > .col-inner {
  min-width: 0;
}

body #content .gwd-page-title {
  overflow: hidden;
  border: 1px solid var(--live-line);
  border-bottom: 0;
  border-left: 4px solid var(--live-red);
  border-radius: var(--live-radius) var(--live-radius) 0 0;
  background: linear-gradient(90deg, #4b080d, #1b1114 60%, #111216);
}

body #content .gwd-page-title + .gwd-shortcode .tc-live-table {
  border-radius: 0 0 var(--live-radius) var(--live-radius);
}

body #content a:focus-visible,
body #content button:focus-visible,
body #content select:focus-visible {
  outline: 2px solid #ff5964;
  outline-offset: 2px;
}

@media (max-width: 849px) {
  body #content {
    padding: 0 8px 20px;
  }

  body #content > .row-small > .col {
    padding: 5px 0;
  }

  body #content .gwd-body-content {
    margin-top: 8px;
  }

  body #content .gwd-matchdetail-header,
  body #content .gwd-match-odds,
  body #content .gwd-player-stream,
  body #content .gwd-group-info {
    border-radius: 9px;
  }

  body #content .gwd-matchdetail-header__main {
    padding: 12px 10px;
  }

  body #content .gwd-matchdetail-header__score {
    min-width: 68px;
    padding: 5px 9px;
  }

}

@media (max-width: 549px) {
  body #content {
    padding-right: 6px;
    padding-left: 6px;
  }

  body #content .gwd-matchdetail-header__name,
  body #content .gwd-player-stream__match-title {
    font-size: 12px;
  }

  body #content .gwd-matchdetail-header__logo {
    width: 34px;
    height: 34px;
  }

  body #content .gwd-matchdetail-header__odds-actions {
    gap: 6px;
  }

  body #content .gwd-matchdetail-header__odds-choice {
    min-height: 32px;
    font-size: 12px;
  }
}