/* Mobile homepage — original layout (not compressed desktop). */
.mhome {
  display: none;
}

@media (max-width: 768px) {
  .mobile-home-page .header,
  .mobile-home-page .nav-wrap,
  .mobile-home-page .hero-wrap,
  .mobile-home-page .promo-strip,
  .mobile-home-page .sports,
  .mobile-home-page .hot-games,
  .mobile-home-page .live-cs,
  .mobile-home-page .featured,
  .mobile-home-page .site-footer,
  .mobile-home-page footer {
    display: none !important;
  }

  .mhome {
    display: block;
    background: #fff;
    padding-bottom: 28px;
  }

  .mhome-banner {
    position: relative;
    margin: 8px 10px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ececf2;
  }

  .mhome-banner-track {
    display: flex;
    transition: transform .35s ease;
  }

  .mhome-banner-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 370 / 161;
    object-fit: cover;
    display: block;
  }

  .mhome-banner-dots {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: flex;
    gap: 5px;
  }

  .mhome-banner-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
  }

  .mhome-banner-dots button.is-active {
    width: 16px;
    background: #7b35b5;
  }

  .mhome-announce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 10px 0;
    padding: 0 10px;
    height: 30px;
    border-radius: 6px;
    background: #f1f1f4;
    color: #b8b8b8;
  }

  .mhome-announce svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
  }

  .mhome-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 10px 0;
  }

  .mhome-auth button {
    height: 42px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .mhome-auth .login {
    background: #520085;
  }

  .mhome-auth .join {
    background: #b80000;
  }

  .mhome-tabs-wrap {
    margin-top: 14px;
    overflow: hidden;
  }

  .mhome-tabs {
    display: flex;
    gap: 8px;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .mhome-tab {
    flex: 0 0 71px;
    width: 71px;
    height: 71px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 5px 4px 4px;
    border: 0;
    border-radius: 10px;
    background: #f3f3f6;
    color: #4b007f;
  }

  .mhome-tab.is-active {
    background: #520085;
    color: #fff;
  }

  .mhome-tab-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
  }

  .mhome-tab-icon img,
  .mhome-tab-icon object,
  .mhome-tab-icon svg {
    width: 28px;
    height: 28px;
    display: block;
  }

  .mhome-tab-icon img {
    filter: none;
  }

  .mhome-tab:not(.is-active) .mhome-tab-icon img {
    /* purple-ish tint for mono SVGs saved as files */
    filter: invert(14%) sepia(82%) saturate(3200%) hue-rotate(271deg) brightness(70%) contrast(115%);
  }

  .mhome-tab.is-active .mhome-tab-icon img {
    filter: brightness(0) invert(1);
  }

  .mhome-tab span {
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mhome-grid-wrap {
    margin: 12px 10px 0;
    padding: 12px 10px 10px;
    border: 1px solid #e4e4ea;
    border-radius: 12px;
    background: #fff;
  }

  .mhome-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    min-height: 320px;
  }

  .mhome-card {
    position: relative;
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
  }

  .mhome-card img.thumb {
    width: 100%;
    aspect-ratio: 79 / 98;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f2f2f6;
  }

  .mhome-card .badge {
    position: absolute;
    z-index: 1;
    pointer-events: none;
  }

  .mhome-card .badge-new {
    top: -2px;
    left: -2px;
    width: 41px;
    height: auto;
  }

  .mhome-card .badge-hot {
    top: -4px;
    right: 2px;
    width: 28px;
    height: auto;
  }

  .mhome-card .badge-vpn {
    top: 4px;
    right: 2px;
    width: 25px;
    height: auto;
  }

  .mhome-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 20px;
  }

  .mhome-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    min-height: 10px;
  }

  .mhome-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d0d8;
  }

  .mhome-dots button.is-active {
    background: #7b35b5;
  }

  .mhome-promo {
    margin: 18px 0 0;
    padding: 0 10px;
  }

  .mhome-promo-head {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
  }

  .mhome-promo-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .mhome-promo-row::-webkit-scrollbar {
    display: none;
  }

  .mhome-promo-card {
    flex: 0 0 72%;
    max-width: 280px;
    border: 1px solid #d7c3ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }

  .mhome-promo-card img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
  }

  .mhome-promo-card .txt {
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
  }

  .mhome-hot {
    margin: 18px 10px 0;
  }

  .mhome-hot-head {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
  }

  .mhome-hot-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mhome-hot-row::-webkit-scrollbar {
    display: none;
  }

  .mhome-hot-item {
    flex: 0 0 118px;
  }

  .mhome-hot-item img {
    width: 118px;
    height: 118px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #eee;
  }

  .mhome-hot-item .name {
    margin-top: 6px;
    font-size: 12px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mhome-hot-item .meta {
    font-size: 11px;
    color: #888;
  }

  .mobile-home .mobile-flag-btn {
    justify-self: center;
    width: 29px;
    height: 29px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-home .mobile-flag-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
