@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap");
.ms-dash-root {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 20px;
  font-family: "Oswald", sans-serif;
  max-width: 1250px;
  margin: 0 auto;
}

.ms-dash-banner {
  color: #ffcc00;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.ms-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  padding: 10px;
  gap: 4px;
  border-radius: 4px;
}

.ms-arrow {
  color: #ffcc00;
  font-size: 20px;
  cursor: pointer;
  padding: 0 10px;
  font-weight: bold;
}

.ms-date-list {
  display: flex;
  overflow-x: auto;
  gap: 8px;
}

.ms-date-list::-webkit-scrollbar {
  display: none;
}

.ms-date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  cursor: pointer;
  min-width: 55px;
}

.ms-date-w {
  font-size: 10px;
  color: #888;
}

.ms-date-n {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}

.ms-date-item.active {
  background-color: #ffcc00;
  border-radius: 4px;
}

.ms-date-item.active .ms-date-w,
.ms-date-item.active .ms-date-n {
  color: #000000;
}

.ms-sub-bar {
  display: flex;
  justify-content: space-between;
  background-color: #262626;
  padding: 12px 20px;
  font-size: 11px;
  color: #888888;
  font-weight: 600;
  margin-top: 14px;
  border-radius: 4px;
}

.ms-sub-left {
  width: 105px;
}

.ms-sub-right {
  display: flex;
  text-align: center;
}

.ms-sub-right span {
  width: 95px;
}

.ms-dash-group {
  margin-top: 12px;
  background-color: #222222;
  border-radius: 8px;
  overflow: hidden;
}

.ms-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2d2d2d;
  padding: 12px 20px;
}

.ms-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
}

.ms-group-title img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ms-c-country {
  color: #aaa;
}

.ms-c-name {
  color: #fff;
}

.ms-group-rank-btn {
  color: #ffcc00;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.ms-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: #1e252b;
  border-bottom: 1px solid #262f38;
}

.ms-match-row:last-child {
  border-bottom: none;
}

.ms-capsule-time {
  border: 1px solid #2c3a47;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 105px;
  flex-shrink: 0;
}

.ms-capsule-time span {
  font-size: 13px;
  font-weight: 600;
  color: #8da1b5;
  letter-spacing: 0.3px;
}

.ms-match-flow-core {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 30px;
}

.ms-flow-team {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 42%;
}

.ms-flow-home {
  justify-content: flex-end;
  text-align: right;
}

.ms-flow-away {
  justify-content: flex-start;
  text-align: left;
}

.ms-flow-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.ms-flow-team-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.ms-vs-divider {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: #a2b4c6;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.ms-cell-odds-matrix {
  display: flex;
}

.ms-odds-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 95px;
  gap: 1px;
}

.ms-odd-box {
  display: inline-block;
  height: 21px;
  line-height: 21px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.text-green {
  color: #10b981;
}

.text-gray {
  color: #8da1b5;
}

.text-red {
  color: #ef4444;
}

.text-blue {
  color: #3b82f6;
}

.text-muted {
  color: #ffcc00;
  font-size: 13px;
  font-weight: bold;
}

.ms-dash-loading,
.ms-dash-empty,
.ms-dash-error {
  text-align: center;
  padding: 40px;
  color: #8da1b5;
  font-size: 14px;
}

.ms-scroll-loader {
  text-align: center;
  padding: 16px;
  color: #ffcc00;
  background-color: #000000;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 16px;
}

@media (max-width: 992px) {
  .ms-match-row {
    flex-direction: column;
    gap: 12px;
  }

  .ms-match-flow-core {
    padding: 0;
    width: 100%;
  }

  .ms-cell-odds-matrix {
    width: 100%;
    justify-content: center;
  }
}

.ms-results-top {
  background: linear-gradient(180deg, #1f2727 0%, #202827 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 26px 24px 24px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ms-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.ms-head-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ms-today-btn {
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #15864a, #116b3d);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.ms-today-icon {
  margin-right: 10px;
}

.ms-head-divider {
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.08);
}

.ms-specific {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e5e8e8;
  font-size: 22px;
  font-weight: 700;
}

.ms-date-select {
  height: 54px;
  min-width: 220px;
  border: 0;
  border-radius: 9px;
  background: #293132;
  color: #f1f5f5;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.ms-date-select span {
  color: #23d66f;
  margin-left: 18px;
}

.ms-sort {
  color: #f2f5f5;
  font-size: 22px;
  font-weight: 700;
}

.ms-sort strong,
.ms-sort span:last-child {
  color: #25d66f;
}

.ms-date-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.ms-date-list {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow-x: auto;
}

.ms-date-item {
  min-width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #252d2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #8e9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ms-date-item.active {
  background: linear-gradient(180deg, #14914e, #11713e);
  color: #fff;
}

.ms-date-w {
  font-size: 16px;
  font-weight: 600;
}

.ms-date-n {
  margin-top: 6px;
  font-size: 30px;
  font-weight: 900;
}

.ms-arrow {
  color: #c8d0d0;
  font-size: 42px;
  cursor: pointer;
  padding: 0 8px;
}

.ms-league-tabs {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 7px;
  padding: 30px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.ms-league-tabs button {
  border: 0;
  border-radius: 8px;
  background: #2d3535;
  color: #b4bbbb;
  padding: 11px 20px;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.ms-league-tabs button.active {
  background: #254b38;
  color: #fff;
}

.ms-results-top {
  background: linear-gradient(180deg, #1f2727 0%, #202827 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 18px 18px 16px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ms-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ms-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ms-today-btn {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #15864a, #116b3d);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.ms-today-icon {
  margin-right: 7px;
}

.ms-head-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

.ms-specific {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce1e1;
  font-size: 15px;
  font-weight: 500;
}

.ms-date-select {
  height: 42px;
  min-width: 150px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #293132;
  color: #eef3f3;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ms-date-select span {
  color: #23d66f;
  margin-left: 10px;
}

.ms-sort {
  color: #e5e9e9;
  font-size: 15px;
  font-weight: 500;
}

.ms-sort strong,
.ms-sort span:last-child {
  color: #25d66f;
  font-weight: 700;
}

.ms-date-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ms-date-list {
  display: flex;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
}

.ms-date-list::-webkit-scrollbar {
  display: none;
}

.ms-date-item {
  min-width: 76px;
  height: 66px;
  border-radius: 7px;
  background: #252d2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #98a2a2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.ms-date-item.active {
  background: linear-gradient(180deg, #1eb15f 0%, #15884a 100%) !important;
  border-color: rgba(53, 255, 143, 0.35) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(53, 255, 143, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.28);
}

.ms-date-item.active .ms-date-w {
  color: rgba(255, 255, 255, 0.92);
}

.ms-date-item.active .ms-date-n {
  color: #ffffff;
}

.ms-date-item:hover {
  background: #313a3b;
}

.ms-date-w {
  font-size: 13px;
  font-weight: 600;
}

.ms-date-n {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 700;
}

.ms-arrow {
  color: #c3cccc;
  font-size: 30px;
  cursor: pointer;
  padding: 0 4px;
  user-select: none;
}

.ms-league-tabs {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 7px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-league-tabs button {
  border: 0;
  border-radius: 7px;
  background: #2d3535;
  color: #b4bbbb;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.ms-league-tabs button:hover {
  background: #364040;
}

.ms-league-tabs button.active {
  background: #254b38;
  color: #fff;
}

.ms-league-tabs {
  display: block;
}

.ms-league-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-league-chip-wrap button {
  border: 0;
  border-radius: 7px;
  background: #2d3535;
  color: #b4bbbb;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.ms-league-chip-wrap button.active {
  background: #1ea75b;
  color: #fff;
}

.ms-league-more {
  margin-top: 12px;
  border: 0;
  border-radius: 7px;
  background: #244d38;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ms-results-top {
    padding: 10px;
    border-radius: 6px;
  }

  .ms-results-head {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .ms-head-left {
    display: contents;
  }

  .ms-head-divider,
  .ms-specific > span {
    display: none;
  }

  .ms-today-btn {
    width: auto;
    height: 28px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .ms-date-select {
    width: auto;
    min-width: 98px;
    height: 28px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 11px;
  }

  .ms-sort {
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-self: end;
    max-width: 100%;
  }

  .ms-sort > span:first-child {
    display: none;
  }

  .ms-date-bar {
    display: none;
  }

  .ms-league-tabs {
    padding: 0;
    background: transparent;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ms-league-chip-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .ms-league-chip-wrap::-webkit-scrollbar {
    display: none;
  }

  .ms-league-chip-wrap button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 11px;
  }

  .ms-league-more {
    display: none !important;
  }

  .ms-sub-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    overflow-x: auto;
  }
}

.ms-date-select {
  appearance: none;
  -webkit-appearance: none;
  height: 28px;
  min-width: 116px;
  border: 0;
  border-radius: 5px;
  background: #293132;
  color: #eef3f3;
  font-size: 11px;
  padding: 0 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
}

.ms-date-select::-webkit-calendar-picker-indicator {
  filter: invert(58%) sepia(97%) saturate(438%) hue-rotate(91deg);
  cursor: pointer;
}

.ms-group-header {
  min-height: 44px;
  padding: 10px 14px;
  background: #292d2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.ms-group-title img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.ms-c-country {
  color: #8f9da3;
  font-weight: 500;
}

.ms-c-name {
  color: #fff;
  font-weight: 600;
}

.ms-group-rank-btn {
  color: #ffd400;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .ms-group-header {
    padding: 9px 12px;
  }

  .ms-group-title {
    max-width: 220px;
    font-size: 12px;
  }

  .ms-c-name {
    display: inline;
    word-break: normal;
  }

  .ms-group-rank-btn {
    font-size: 11px;
  }
}

.ms-standings-mask {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ms-standings-panel {
  width: min(920px, 96vw);
  max-height: 82vh;
  background: #1f2727;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.ms-standings-head {
  height: 52px;
  padding: 0 16px;
  background: #262f2f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-standings-title {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.ms-standings-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #344040;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ms-standings-body {
  max-height: calc(82vh - 52px);
  overflow: auto;
  padding: 12px;
}

.ms-standings-table {
  width: 100%;
  border-collapse: collapse;
  color: #dce5e5;
  font-size: 13px;
}

.ms-standings-table th {
  position: sticky;
  top: 0;
  background: #293333;
  color: #98ffbd;
  font-weight: 500;
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
}

.ms-standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.ms-standings-table td:nth-child(2),
.ms-standings-table th:nth-child(2) {
  text-align: left;
  min-width: 170px;
}

@media (max-width: 768px) {
  .ms-standings-mask {
    align-items: flex-end;
    padding: 0;
  }

  .ms-standings-panel {
    width: 100%;
    max-height: 78vh;
    border-radius: 16px 16px 0 0;
    animation: msSlideUp 0.22s ease-out;
  }

  .ms-standings-head {
    height: 50px;
    padding: 0 14px;
  }

  .ms-standings-title {
    font-size: 13px;
  }

  .ms-standings-body {
    max-height: calc(78vh - 50px);
    padding: 8px;
    overflow: auto;
  }

  .ms-standings-table {
    min-width: 720px;
    font-size: 12px;
  }
}

@keyframes msSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.ms-standings-group {
  margin-bottom: 18px;
}

.ms-standings-group-title {
  background: #2a3333;
  color: #98ffbd;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px 7px 0 0;
}

.ms-form-list {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.ms-form-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

.ms-form-badge.w {
  background: #1fa463;
}
.ms-form-badge.d {
  background: #888;
}
.ms-form-badge.l {
  background: #d24b4b;
}

@media (max-width: 768px) {
  .ms-standings-body {
    overflow-x: auto;
  }

  .ms-standings-table {
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
  }

  .ms-standings-table th:nth-child(1),
  .ms-standings-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 42px;
    min-width: 42px;
    background: #1f2727;
  }

  .ms-standings-table th:nth-child(2),
  .ms-standings-table td:nth-child(2) {
    position: sticky;
    left: 42px;
    z-index: 3;
    width: 150px;
    min-width: 150px;
    background: #1f2727;
    box-shadow: 6px 0 10px rgba(0, 0, 0, 0.18);
  }

  .ms-standings-table th:nth-child(1),
  .ms-standings-table th:nth-child(2) {
    z-index: 5;
    background: #293333;
  }

  .ms-standings-table td:nth-child(2) {
    text-align: left;
    white-space: nowrap;
  }

  .ms-standings-table td,
  .ms-standings-table th {
    white-space: nowrap;
  }
}

.ms-detail-mask {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ms-detail-panel {
  width: min(940px, 96vw);
  max-height: 86vh;
  background: #181d1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.65);
}

.ms-detail-head {
  height: 58px;
  padding: 0 20px;
  background: linear-gradient(180deg, #2b3030, #232828);
  border-bottom: 2px solid #ffc400;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-detail-title {
  color: #ffc400;
  font-size: 18px;
  font-weight: 700;
}

.ms-detail-close {
  border: 0;
  background: transparent;
  color: #d6dddd;
  font-size: 34px;
  cursor: pointer;
}

.ms-detail-body {
  max-height: calc(86vh - 58px);
  overflow: auto;
  overflow-x: hidden !important;
  padding: 18px;
}

.ms-detail-score-card {
  background: radial-gradient(circle at center, #2d3333 0%, #222727 65%);
  border-radius: 16px;
  padding: 26px 20px;
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  align-items: center;
  gap: 18px;
}

.ms-detail-team {
  text-align: center;
  color: #fff;
}

.ms-detail-team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.ms-detail-team strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.ms-detail-score-mid {
  text-align: center;
}

.ms-detail-status {
  color: #ffc400;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ms-detail-score {
  color: #ffc400;
  font-size: 58px;
  line-height: 1;
  font-weight: 800;
}

.ms-detail-time {
  margin-top: 8px;
  color: #9ca7a7;
  font-size: 13px;
}

.ms-detail-tabs {
  margin-top: 14px;
  display: flex;
  background: #292d2e;
  border-radius: 12px;
  overflow-x: auto;
}

.ms-detail-tabs button {
  border: 0;
  background: transparent;
  color: #aaa;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ms-detail-tabs button.active {
  color: #ffc400;
  background: #202525;
  box-shadow: inset 0 -2px 0 #ffc400;
}

.ms-detail-section {
  margin-top: 14px;
  background: #222727;
  border-radius: 14px;
  padding: 16px;
}

.ms-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ms-detail-grid div {
  background: #2a3030;
  border-radius: 10px;
  padding: 14px;
}

.ms-detail-grid span {
  display: block;
  color: #8f9999;
  font-size: 12px;
  margin-bottom: 6px;
}

.ms-detail-grid strong {
  color: #fff;
  font-size: 15px;
}

@media (max-width: 768px) {
  .ms-detail-mask {
    align-items: flex-end;
    padding: 0;
  }

  .ms-detail-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
    animation: msDetailSlideUp 0.24s ease-out;
  }

  .ms-detail-body {
    max-height: calc(88vh - 58px);
    padding: 12px;
  }

  .ms-detail-score-card {
    grid-template-columns: 1fr 130px 1fr;
    gap: 8px;
    padding: 20px 10px;
  }

  .ms-detail-team img {
    width: 54px;
    height: 54px;
  }

  .ms-detail-team strong {
    font-size: 13px;
  }

  .ms-detail-score {
    font-size: 42px;
  }

  .ms-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes msDetailSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.ms-timeline {
  position: relative;
  padding: 10px 0;
}

.ms-timeline-row {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.ms-timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

.ms-timeline-minute {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3a3a3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  justify-self: center;
}

.ms-timeline-event.home-side {
  text-align: right;
}

.ms-timeline-event.away-side {
  text-align: left;
}

.ms-timeline-card {
  display: inline-block;
  max-width: 260px;
  background: transparent;
  color: #fff;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.5;
}

.ms-timeline-card.goal {
  color: #fff;
  font-weight: 700;
}

.ms-timeline-card.goal::before {
  content: "⚽ ";
}

.ms-timeline-card.yellow {
  color: #fff;
}

.ms-timeline-card.yellow::before {
  content: "🟨 ";
}

.ms-timeline-card.sub .in {
  color: #00d26a;
  font-weight: 700;
}

.ms-timeline-card.sub .out {
  color: #ff5b5b;
  font-weight: 700;
}

.ms-timeline-break {
  position: relative;
  z-index: 3;
  margin: 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 10px 18px;
  background: #f3f4f6;
  border: 1px solid #d5d9df;
  border-radius: 999px;
  color: #111;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.ms-detail-section {
  background: #f7f8fa !important;
  color: #111 !important;
  overflow-x: hidden;
}

.ms-timeline {
  position: relative;
  padding: 8px 0 28px;
  width: 100%;
  overflow-x: hidden;
}

.ms-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  background: #d7d7d7;
  transform: translateX(-50%);
}

.ms-timeline-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin: 6px 0;
  width: 100%;
  box-sizing: border-box;
}

.ms-timeline-minute {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9e9e9;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  justify-self: center;
}

.ms-timeline-event.home-side {
  text-align: right;
}

.ms-timeline-event.away-side {
  text-align: left;
}

.ms-timeline-card {
  display: inline-block;
  max-width: 280px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #111;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.ms-timeline-card.goal {
  color: #111;
}

.ms-timeline-card.yellow {
  color: #111;
}

.ms-timeline-card.sub .in {
  color: #00a85a;
  font-weight: 800;
}

.ms-timeline-card.sub .out {
  color: #ff4d4f;
  font-weight: 800;
}

.ms-timeline-card .in,
.ms-timeline-card .out {
  display: block;
}

.ms-timeline-break {
  position: relative;
  z-index: 3;
  margin: 14px 0;
  padding: 8px 12px;
  width: 100%;
  background: #f3f4f6;
  border: 1px solid #d5d9df;
  border-radius: 5px;
  color: #111;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.ms-detail-panel .ms-detail-section {
  padding: 14px 22px;
}

.ms-timeline-event {
  min-width: 0;
  overflow-wrap: break-word;
}

.ms-stat-card {
  background: #262626;
  border-radius: 12px;
  padding: 22px;
  color: #fff;
}

.ms-stat-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
}

.ms-stat-teams > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ms-stat-teams > div:last-child {
  justify-content: flex-end;
}

.ms-stat-teams img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  padding: 5px;
}

.ms-stat-item {
  margin-bottom: 22px;
}

.ms-stat-label {
  text-align: center;
  color: #aaa;
  font-weight: 700;
  margin-bottom: 8px;
}

.ms-stat-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.ms-stat-values span {
  min-width: 28px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.ms-stat-values .winner {
  background: #08b45f;
  color: #fff;
}

.ms-stat-values .loser {
  background: #3a3a3a;
  color: #9a9a9a;
}

.ms-stat-values .draw {
  background: #676767;
  color: #fff;
}

.ms-stat-bar {
  height: 25px;
  display: flex;
  overflow: hidden;
  border-radius: 4px;
  background: #333;
}

.ms-stat-bar i {
  display: block;
  background: #079c55;
}

.ms-stat-bar em {
  display: block;
  background: #edb11e;
}

.ms-stat-bar i.winner,
.ms-stat-bar em.winner {
  opacity: 1;
}

.ms-stat-bar i.loser,
.ms-stat-bar em.loser {
  opacity: .28;
}

.ms-stat-bar i.draw,
.ms-stat-bar em.draw {
  opacity: .65;
}

@media (max-width: 768px) {
  .ms-stat-card {
    padding: 16px;
  }

  .ms-stat-teams strong {
    font-size: 13px;
  }

  .ms-stat-item {
    margin-bottom: 18px;
  }
}

.ms-odds-shell {
  background: #202424;
  border-radius: 14px;
  padding: 18px;
}

.ms-odds-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,196,0,.35);
  padding-bottom: 12px;
}

.ms-odds-title span {
  color: #ffc400;
  font-size: 20px;
  font-weight: 800;
}

.ms-odds-title small {
  color: #8f9999;
  font-size: 12px;
}

.ms-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ms-odds-card {
  background: linear-gradient(180deg, #2d3333, #242929);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px;
}

.ms-odds-card-title {
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.ms-odds-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1d2222;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}

.ms-odds-option span {
  color: #aab3b3;
  font-size: 13px;
}

.ms-odds-option strong {
  color: #fff;
  font-size: 18px;
}

.ms-odds-option.main {
  background: rgba(255,196,0,.12);
}

.ms-odds-option.main strong {
  color: #ffc400;
}

@media (max-width: 768px) {
  .ms-odds-grid {
    grid-template-columns: 1fr;
  }

  .ms-odds-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

.ms-h2h-shell {
  display: grid;
  gap: 16px;
}

.ms-h2h-section {
  background: #242929;
  border-radius: 14px;
  padding: 16px;
}

.ms-h2h-section h3 {
  color: #ffc400;
  font-size: 17px;
  margin: 0 0 12px;
}

.ms-h2h-row {
  display: grid;
  grid-template-columns: 90px 1fr 180px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ms-h2h-row:last-child {
  border-bottom: 0;
}

.ms-h2h-date,
.ms-h2h-league {
  color: #8f9999;
  font-size: 12px;
}

.ms-h2h-teams {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
}

.ms-h2h-teams span:first-child {
  text-align: right;
}

.ms-h2h-teams strong {
  text-align: center;
  color: #ffc400;
  font-size: 15px;
}

@media (max-width: 768px) {
  .ms-h2h-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ms-h2h-teams {
    grid-template-columns: 1fr 56px 1fr;
  }

  .ms-h2h-league {
    text-align: center;
  }
}

.ms-h2h-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ms-h2h-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #1f2323;
  border-radius: 12px;
  overflow: hidden;
}

.ms-h2h-filter button {
  height: 48px;
  border: 0;
  background: transparent;
  color: #b7b7b7;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.ms-h2h-filter button.active {
  background: #f0b21d;
  color: #111;
}

.ms-h2h-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-h2h-row {
  background: #252929;
  border-radius: 12px;
  padding: 14px;
}

.ms-h2h-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #8f9999;
}

.ms-h2h-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ms-h2h-teams {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 10px;
}

.ms-h2h-teams .team:first-child {
  text-align: right;
}

.ms-h2h-teams .team {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.ms-h2h-teams .score {
  text-align: center;
  color: #ffc400;
  font-size: 18px;
  font-weight: 900;
}

.ms-h2h-result {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
}

.ms-h2h-result.win {
  background: #08b45f;
}

.ms-h2h-result.lose {
  background: #e5484d;
}

.ms-h2h-result.draw {
  background: #777;
}

@media (max-width: 768px) {

  .ms-h2h-filter button {
    font-size: 12px;
  }

  .ms-h2h-teams {
    grid-template-columns: 1fr 56px 1fr;
  }

  .ms-h2h-teams .team {
    font-size: 12px;
  }

  .ms-h2h-teams .score {
    font-size: 15px;
  }

}

.ms-lineup-shell {
  background: #242929;
  border-radius: 14px;
  padding: 16px;
}

.ms-lineup-formations {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffc400;
  font-weight: 800;
  margin-bottom: 14px;
}

.ms-lineup-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ms-lineup-team {
  background: #1f2424;
  border-radius: 12px;
  padding: 14px;
}

.ms-lineup-team h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}

.ms-lineup-player {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ms-lineup-player:last-child {
  border-bottom: 0;
}

.ms-lineup-player img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}

.ms-lineup-player strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.ms-lineup-player span {
  color: #8f9999;
  font-size: 12px;
}

@media (max-width: 768px) {
  .ms-lineup-columns {
    grid-template-columns: 1fr;
  }
}

.ms-pitch-shell {
  background: #202424;
  border-radius: 14px;
  padding: 14px;
}

.ms-pitch {
  position: relative;
  height: 760px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.12) 0 1px, transparent 1px),
    linear-gradient(90deg, #176b3c, #1f7f46);
  border: 2px solid rgba(255,255,255,.25);
}

.ms-pitch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 14px;
}

.ms-pitch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.28);
}

.ms-pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 92px;
  text-align: center;
  z-index: 3;
}

.ms-player-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 5px;
}

.ms-player-avatar img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  background: #222;
  border: 2px solid #fff;
}

.ms-player-kit {
  position: absolute;
  right: -6px;
  bottom: -4px;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffc400;
  color: #111;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.ms-player-kit small {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.ms-player-name {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

@media (max-width: 768px) {
  .ms-pitch {
    height: 680px;
  }

  .ms-pitch-player {
    width: 74px;
  }

  .ms-player-avatar,
  .ms-player-avatar img {
    width: 36px;
    height: 36px;
  }

  .ms-player-name {
    font-size: 10px;
  }
}

.ms-sort-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ms-sort {
  border: 0;
  background: transparent;
  color: #e8eeee;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.ms-sort strong {
  color: #9aa3a3;
  font-weight: 800;
}

.ms-sort.active strong {
  color: #18d66b;
}