.tm-melbet-desktop-nav {
  display: none;
}

@media (min-width: 99999px) {
  html,
  body {
    min-width: 981px;
    background: #1b1b1b !important;
  }

  #root {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: clip !important;
    background: #1b1b1b !important;
  }

  #root > .tm-site-navbar {
    z-index: 1300;
    display: block !important;
    width: 100%;
    height: 88px;
    min-height: 88px;
    border: 0;
    background: #202020;
  }

  .tm-site-navbar-inner {
    width: 100%;
    height: 44px;
    padding: 0 8px 0 24px;
  }

  .tm-site-logo-link {
    width: 170px;
    height: 44px;
    padding: 0;
    justify-content: flex-start;
  }

  .tm-site-navbar-actions {
    height: 44px;
    margin-right: 0;
    gap: 8px;
  }

  .tm-site-login-link,
  .tm-site-register-link {
    min-width: 74px;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 32px;
  }

  .tm-melbet-desktop-nav {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 18px 0 215px;
    gap: 0;
    overflow: hidden;
    background:
      linear-gradient(135deg, #202020 0 186px, transparent 186px),
      #ffb805;
  }

  .tm-melbet-desktop-nav a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    color: #181818;
    font-size: 13px;
    font-weight: 700;
    line-height: 44px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .tm-melbet-desktop-nav a:hover,
  .tm-melbet-desktop-nav a.is-active {
    background: rgba(0, 0, 0, 0.09);
  }

  .tm-melbet-desktop-nav a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .tm-u-components-feature-sidebar-008 {
    display: none !important;
  }

  .tm-v-components-feature-sidebar-005,
  .tm-v-components-feature-sidebar-005.tm-v-components-feature-sidebar-006,
  .tm-v-components-feature-sidebar-005.tm-v-components-feature-sidebar-007 {
    z-index: 1100;
    display: block !important;
    position: fixed;
    top: 96px;
    right: auto;
    bottom: 8px;
    left: 8px;
    width: 254px;
    max-width: 254px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    transform: none !important;
    transition: none !important;
    --tw-translate-x: 0px;
  }

  .tm-v-components-feature-sidebar-005::-webkit-scrollbar {
    width: 5px;
  }

  .tm-v-components-feature-sidebar-005::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #c7c7c7;
  }

  .tm-u-components-feature-sidebar-009 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    height: 32px;
    background: #202020;
    color: #cfcfcf;
    font-size: 12px;
  }

  .tm-u-components-feature-sidebar-009 > * {
    display: none !important;
  }

  .tm-u-components-feature-sidebar-009::before {
    content: "« Collapse block";
  }

  .tm-u-components-feature-sidebar-021 {
    display: none !important;
  }

  .tm-u-components-feature-sidebar-028,
  .tm-u-components-feature-sidebar-029,
  .tm-u-components-feature-sidebar-031,
  .tm-u-components-feature-sidebar-033,
  .tm-u-components-feature-sidebar-035 {
    border-top: 1px solid #dedede;
  }

  .tm-u-components-feature-sidebar-030,
  .tm-u-components-feature-sidebar-032,
  .tm-u-components-feature-sidebar-034,
  .tm-u-components-feature-sidebar-036 {
    min-height: 28px;
    margin: 0;
    padding: 6px 8px;
    background: #2d2d2d;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
  }

  .tm-u-components-feature-sidebar-002,
  .tm-u-components-feature-sidebar-005 {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 34px;
    height: 34px;
    padding: 6px 8px;
    gap: 8px;
    border-bottom: 1px solid #e1e1e1;
    background: #ffffff;
    color: #3b3b3b;
    font-size: 12px;
    line-height: 20px;
  }

  .tm-u-components-feature-sidebar-002:hover,
  .tm-u-components-feature-sidebar-005:hover {
    background: #f1f1f1;
  }

  .tm-home-v3 {
    width: 100%;
    max-width: 430px;
    overflow: visible;
  }

  .tm-home-v3-main {
    width: 100%;
    background: #ededed;
  }

  .tm-home-v3-mode-nav,
  .tm-home-v3-search,
  .tm-home-v3-event-section,
  .tm-home-v3-showcase {
    position: relative;
    left: 50%;
    width: calc(100vw - 532px);
    max-width: none;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .tm-home-v3-mode-nav {
    min-height: 48px;
    margin-top: 8px;
    padding: 4px 0;
    gap: 4px;
    background: #2b2b2b;
  }

  .tm-home-v3-mode-nav a {
    min-height: 40px;
    border-radius: 0;
    background: #3a3a3a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
  }

  .tm-home-v3-mode-nav a:first-child {
    background: #ffffff;
    color: #303030;
  }

  .tm-home-v3-search {
    min-height: 48px;
    padding: 4px 0;
    background: #2b2b2b;
  }

  .tm-home-v3-search input {
    height: 40px;
    border-radius: 0;
    font-size: 12px;
  }

  .tm-home-v3-search button {
    height: 40px;
    min-height: 40px;
    border-radius: 0;
  }

  .tm-home-v3-event-section {
    margin-bottom: 8px;
    padding: 0;
    background: #ededed;
  }

  .tm-home-v3-section-head {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ededed;
  }

  .tm-home-v3-section-head h2,
  .tm-home-v3-section-head a {
    font-size: 12px;
    line-height: 16px;
  }

  .tm-home-v3-event-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 1px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .tm-home-v3-event-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-height: none;
    min-height: 108px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    scroll-snap-align: none;
  }

  .tm-home-v3-event-league {
    display: flex;
    align-items: flex-start;
    height: 100%;
    min-height: 108px;
    padding: 12px;
    gap: 8px;
    border-right: 1px solid #d3d3d3;
    background: #d9d9d9;
    font-size: 13px;
  }

  .tm-home-v3-event-league span {
    font-size: 13px;
    line-height: 18px;
    white-space: normal;
  }

  .tm-home-v3-event-body {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr) 268px;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 108px;
    padding: 8px 10px;
    gap: 4px 10px;
    overflow: hidden;
  }

  .tm-home-v3-event-meta {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: 11px;
    line-height: 15px;
  }

  .tm-home-v3-event-meta i {
    display: none;
  }

  .tm-home-v3-event-teams {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    gap: 3px;
  }

  .tm-home-v3-event-team {
    min-width: 0;
    height: 24px;
    gap: 7px;
  }

  .tm-home-v3-event-team img {
    width: 18px;
    height: 18px;
  }

  .tm-home-v3-event-team strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tm-home-v3-event-stage {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #777777;
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tm-home-v3-event-markets {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .tm-home-v3-event-market {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 42px;
    padding: 3px 5px;
    border-radius: 8px;
    background: #e9e9e9;
    font-size: 12px;
    line-height: 16px;
  }

  .tm-home-v3-event-market small {
    color: #777777;
    font-size: 10px;
    line-height: 12px;
  }

  .tm-home-v3-event-empty {
    width: 100%;
    min-height: 108px;
  }

  .tm-home-v3-showcase {
    padding: 0;
  }

  .tm-home-v3-showcase-track {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    overflow: hidden;
  }

  .tm-home-v3-showcase-card {
    min-width: 0;
    width: 100%;
  }

  .tm-sportsbook {
    width: calc(100vw - 532px);
    max-width: none;
    min-height: calc(100vh - 96px);
    margin: 8px auto 0;
    background: #ededed;
  }

  .tm-sportsbook-toolbar {
    height: 44px;
    min-height: 44px;
    padding: 0 8px;
  }

  .tm-sportsbook-tabs {
    min-height: 44px;
    padding: 4px 8px;
  }

  .tm-sportsbook-content {
    min-height: calc(100vh - 184px);
    padding: 8px 0 20px;
  }

  .tm-sportsbook-search {
    margin: 0 8px 8px;
  }

  .tm-sportsbook-top {
    margin: 0 0 8px;
  }

  .tm-sportsbook-top > h1 {
    min-height: 40px;
    margin: 0;
    padding: 0 12px;
    font-size: 14px;
    line-height: 40px;
  }

  .tm-sportsbook-top__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0 8px 4px;
    gap: 4px;
    overflow: visible;
    scroll-snap-type: none;
  }
}

@media (min-width: 99999px) and (max-width: 100000px) {
  .tm-melbet-desktop-nav a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .tm-home-v3-event-body {
    grid-template-columns: 102px minmax(0, 1fr) 216px;
  }

  .tm-home-v3-event-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

/*
 * Mobile-only geometry measured from the fully loaded
 * melbet.com/en?platform_type=mobile experience at 390 × 844.
 * Banner, coupon, bottom navigation and footer selectors are intentionally absent.
 */
@media (max-width: 980px) {
  .tm-site-login-link,
  .tm-site-register-link {
    min-height: 38px;
    height: 38px;
    padding: 4.75px 9.5px;
    font-size: 14.25px;
    line-height: 16.625px;
  }

  .tm-home-v3-mode-nav,
  .tm-home-v3-search,
  .tm-home-v3-event-section,
  .tm-home-v3-showcase {
    position: relative;
    left: 50%;
    width: min(100vw, 480px);
    max-width: none;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .tm-home-v3-mode-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 47.5px;
    min-height: 55.5px;
    margin-top: 0;
    padding: 4px 8px;
    gap: 4px;
  }

  .tm-home-v3-mode-nav a {
    min-height: 47.5px;
    height: 47.5px;
    padding: 4.75px;
    font-size: 16.625px;
    line-height: 19px;
  }

  .tm-home-v3-search {
    grid-template-columns: minmax(0, 1fr) 47.5px;
    min-height: 56.5px;
    padding: 4px 8px 5px;
    gap: 0;
  }

  .tm-home-v3-search input,
  .tm-home-v3-search button {
    min-height: 47.5px;
    height: 47.5px;
  }

  .tm-home-v3-search input {
    padding: 0 14.25px;
    font-size: 14.25px;
    line-height: 16.625px;
  }

  .tm-home-v3-search button {
    width: 47.5px;
    min-width: 47.5px;
  }

  .tm-home-v3-event-section {
    margin-bottom: 8px;
    padding: 0 9.5px;
  }

  .tm-home-v3-section-head {
    min-height: 47.5px;
    height: 47.5px;
    padding: 0;
  }

  .tm-home-v3-section-head h2,
  .tm-home-v3-section-head h2 span {
    font-size: 16.625px;
    line-height: 19px;
  }

  .tm-home-v3-section-head a {
    min-width: 47.5px;
    min-height: 47.5px;
    padding: 4.75px 0;
    font-size: 14.25px;
    line-height: 16.625px;
  }

  .tm-home-v3-event-track {
    width: 100%;
    gap: 4.75px;
  }

  .tm-home-v3-event-card {
    flex: 0 0 calc(100% - 10px);
    width: calc(100% - 10px);
    min-width: 0;
    height: 217.25px;
    overflow: hidden;
  }

  .tm-home-v3-event-card--line {
    height: 211px;
  }

  .tm-home-v3-event-league {
    height: 43px;
    min-height: 43px;
    padding: 12px;
  }

  .tm-home-v3-event-body {
    height: 174.25px;
    min-height: 0;
    padding: 12px;
    row-gap: 12px;
  }

  .tm-home-v3-event-card--line .tm-home-v3-event-body {
    height: 168px;
  }

  .tm-home-v3-event-meta {
    height: 14.25px;
    min-height: 14.25px;
    margin-bottom: 0;
    line-height: 14.25px;
  }

  .tm-home-v3-event-teams {
    height: 46px;
    min-height: 46px;
  }

  .tm-home-v3-event-team {
    grid-template-columns: 19px minmax(0, 1fr) auto;
    min-height: 19px;
  }

  .tm-home-v3-event-team img {
    width: 19px;
    height: 19px;
  }

  .tm-home-v3-event-stage {
    height: 14.25px;
    min-height: 14.25px;
    margin: 0;
    line-height: 14.25px;
  }

  .tm-home-v3-event-markets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 40px;
    gap: 4.75px;
  }

  .tm-home-v3-showcase {
    padding: 19px 9.5px 9.5px;
  }

  .tm-home-v3-showcase-track {
    margin-right: -9.5px;
    margin-left: -9.5px;
    padding-right: 9.5px;
    padding-left: 9.5px;
  }

  .tm-home-v3-showcase-card {
    min-width: 171px;
    width: 171px;
  }

  .tm-home-v3-showcase-card + .tm-home-v3-showcase-card {
    margin-left: 4.75px;
  }

  .tm-home-v3-showcase-card img {
    height: 104.5px;
  }
}
