/* mb86.info desktop chrome matched to the MB66 header. VPS only. */
body.jun88-skin .j88-header {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr);
    grid-template-rows: auto 52px;
    position: sticky;
    top: 0;
    z-index: 90;
    background: #fff5f6 !important;
    overflow: visible;
}

body.jun88-skin .mb66-header-video {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% - 52px);
    width: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #ffe3ea 0%, #fff 42%, #ffd5dc 100%);
}

body.jun88-skin .j88-header-inner {
    display: contents !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

body.jun88-skin .j88-logo {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    height: 118px !important;
    align-self: center;
    padding-left: max(18px, calc((100vw - 1200px) / 2));
    background: none !important;
}

body.jun88-skin .j88-logo img {
    height: 74px !important;
    max-height: 74px !important;
    width: auto !important;
}

body.jun88-skin .j88-topbar {
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
    height: auto !important;
    min-height: 118px;
    background: transparent !important;
    background-color: transparent !important;
    padding: 16px 0 10px !important;
    box-sizing: border-box;
}

body.jun88-skin .j88-topbar .main-header {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 12px !important;
    padding-right: max(16px, calc((100vw - 1200px) / 2)) !important;
    box-sizing: border-box;
}

body.jun88-skin .j88-topbar .right { order: 1; }
body.jun88-skin .j88-topbar .left { order: 2; }

body.jun88-skin .j88-topbar .left,
body.jun88-skin .j88-topbar .right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto !important;
}

body.jun88-skin .j88-topbar .lang { display: none !important; }

body.jun88-skin .j88-topbar .logined-nav {
    gap: 18px !important;
}

body.jun88-skin .j88-topbar .logined-nav a {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 !important;
}

body.jun88-skin .j88-topbar .logined-nav > li:nth-child(1) > a::before { content: "\f3cd"; }
body.jun88-skin .j88-topbar .logined-nav > li:nth-child(2) > a::before { content: "\f0c0"; }
body.jun88-skin .j88-topbar .logined-nav > li:nth-child(3) > a::before { content: "\f06b"; }
body.jun88-skin .j88-topbar .logined-nav > li:nth-child(4) > a::before { content: "\f02b"; }

body.jun88-skin .j88-topbar .left .logined-nav > li > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
    color: #ff4d4f;
}

body.jun88-skin .j88-topbar .btn-big {
    height: 34px !important;
    min-width: 112px !important;
    padding: 0 14px !important;
    border-radius: 3px !important;
    border: 1px solid #ff4d4f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

body.jun88-skin .j88-topbar .btn-big.login,
body.jun88-skin .j88-topbar .btn-big.trial,
body.jun88-skin .j88-topbar .btn-big.btn-logout {
    color: #ff4d4f !important;
    background: #fff !important;
    background-color: #fff !important;
}

body.jun88-skin .j88-topbar .btn-big.signup,
body.jun88-skin .j88-topbar .btn-big.login:hover,
body.jun88-skin .j88-topbar .btn-big.trial:hover {
    color: #fff !important;
    background: #ff4d4f !important;
    background-color: #ff4d4f !important;
    border-color: #ff4d4f !important;
}

body.jun88-skin .j88-topbar .btn-big.signup::after { display: none !important; }

body.jun88-skin .j88-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    z-index: 4;
    height: 52px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 max(8px, calc((100vw - 1200px) / 2)) !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    border-top: 1px solid #f6d0d4;
    box-shadow: 0 2px 6px rgba(160, 40, 50, 0.05);
}

body.jun88-skin .j88-menu > li > .nav-item a {
    height: 52px !important;
    padding: 0 12px !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.jun88-skin .j88-menu > li > .nav-item a,
body.jun88-skin .j88-menu > li > .nav-item h3 {
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.jun88-skin .j88-menu > li:hover > .nav-item a,
body.jun88-skin .j88-menu > li:hover > .nav-item h3,
body.jun88-skin .j88-menu > li.is-open > .nav-item a,
body.jun88-skin .j88-menu > li.is-open > .nav-item h3,
body.jun88-skin .j88-menu > li.is-current > .nav-item a,
body.jun88-skin .j88-menu > li.is-current > .nav-item h3,
body.jun88-skin .j88-menu > li > .nav-item a:hover,
body.jun88-skin .j88-menu > li > .nav-item a:hover h3 {
    color: #ff4d4f !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.jun88-skin .j88-menu > li.is-current > .nav-item a {
    box-shadow: inset 0 -3px 0 #ff4d4f;
}

body.jun88-skin .j88-marquee {
    background: #fff !important;
    background-color: #fff !important;
    color: #333 !important;
    border-bottom: 1px solid #f3d5d8;
}

body.jun88-skin .j88-marquee-inner,
body.jun88-skin .j88-marquee-inner i,
body.jun88-skin .j88-marquee .j88-marquee-track,
body.jun88-skin .j88-marquee .j88-marquee-track span {
    color: #333 !important;
}

body.jun88-skin .j88-marquee-inner i { color: #ff4d4f !important; }

body.jun88-skin .main-home {
    background: #fff !important;
    background-image: none !important;
}

body.jun88-skin .main-home .home-title {
    height: auto !important;
    margin: 22px 0 16px !important;
    padding: 0 !important;
    justify-content: center !important;
    color: #ff4d4f !important;
    background: none !important;
    background-image: none !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

body.jun88-skin .main-home .home-title img {
    display: none !important;
}

body.jun88-skin .j88-marquee-inner i { display: none !important; }
body.jun88-skin .j88-marquee-inner::before {
    content: "Tin tức mới nhất";
    color: #ff4d4f;
    font-weight: 700;
    margin-right: 18px;
    white-space: nowrap;
}

.mb66-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.mb66-h {
    margin: 28px 0 18px;
    text-align: center;
    color: #ff4d4f;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .6px;
}
.mb66-features { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 10px; }
.mb66-features div { flex: 1; text-align: center; color: #333; font-weight: 700; font-size: 15px; }
.mb66-features img { width: 92px; height: 92px; object-fit: contain; display: block; margin: 0 auto 8px; }

.mb66-amb {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid #f3c9ce;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 8px 24px rgba(255, 77, 79, .06);
}
.mb66-amb-copy { text-align: center; }
.mb66-amb-kicker { color: #ff4d4f; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.mb66-amb img.portrait { width: 210px; height: auto; margin: 0 auto; display: block; }
.mb66-amb .name { margin-top: 8px; font-weight: 800; color: #222; }
.mb66-amb .name span { display: block; color: #ff4d4f; font-size: 20px; }
.mb66-amb video { width: 100%; height: 320px; background: #111; border-radius: 8px; object-fit: cover; }

.mb66-fav {
    border: 1px solid #f3c9ce;
    border-radius: 16px;
    padding: 16px 10px 8px;
    background: #fff;
}
.mb66-fav-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px 6px; }
.mb66-fav-grid a { display: block; text-align: center; }
.mb66-fav-grid img { width: 118px; max-width: 100%; height: auto; }

.mb66-halls { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.mb66-halls img { width: 100%; height: auto; display: block; }

.mb66-jackpot {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 12px;
    min-height: 280px;
    background: linear-gradient(#fff7f8, #fff);
    border: 1px solid #f6d0d4;
    border-radius: 18px;
    padding: 14px;
}
.mb66-jack-side { overflow: hidden; }
.mb66-jack-side li {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    border-bottom: 1px solid #f6e4e6;
    color: #333;
    font-weight: 700;
}
.mb66-jack-side li > div {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.mb66-jack-side li > div span { margin-left: 0; white-space: nowrap; }
.mb66-jack-side img { width: 48px; height: 48px; object-fit: contain; }
.mb66-jack-side span { margin-left: auto; color: #ff4d4f; }
.mb66-jack-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mb66-jack-mid b { color: #ff4d4f; font-size: 28px; letter-spacing: 1px; }
.mb66-digits { display: flex; gap: 6px; margin-top: 12px; }
.mb66-digits i {
    width: 42px; height: 58px; display: grid; place-items: center;
    background: linear-gradient(#fff, #ffe4e6);
    border: 1px solid #f3b4b8;
    border-radius: 8px;
    color: #ff4d4f;
    font-style: normal;
    font-size: 30px;
    font-weight: 800;
}

.mb66-app {
    margin: 28px auto 10px;
    display: grid;
    grid-template-columns: 220px 1fr 360px;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 8px 16px;
}
.mb66-app img { width: 100%; height: auto; }
.mb66-app-title { font-size: 28px; font-weight: 900; color: #ff4d4f; }
.mb66-app-title small { display: block; color: #666; font-size: 16px; font-weight: 600; margin-top: 4px; }
.mb66-app-btns { display: flex; gap: 10px; margin-top: 12px; }
.mb66-app-btns a {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid #ff4d4f; color: #ff4d4f; border-radius: 24px;
    padding: 8px 16px; font-weight: 800;
}

body.jun88-skin .home-latest-bet-race { margin-top: 18px; }
body.jun88-skin .home-latest-bet-race .winner-list { width: 100%; border-collapse: collapse; background: #fff; }
body.jun88-skin .home-latest-bet-race .winner-list th { text-align: left; padding: 12px 10px; color: #888; font-weight: 600; border-bottom: 1px solid #f3d5d8; }
body.jun88-skin .home-latest-bet-race .winner-list td { padding: 12px 10px; border-bottom: 1px solid #f7ecee; color: #333; }
body.jun88-skin .home-latest-bet-race .winner-list td.win { color: #16a34a; font-weight: 700; }
body.jun88-skin .home-latest-bet-race .winner-list td.loss { color: #e11d48; font-weight: 700; }
body.jun88-skin .home-latest-bet-race .nrc-tabs-nav { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
body.jun88-skin .home-latest-bet-race .nrc-tabs-tab { border: 1px solid #ffb4b6; border-radius: 20px; padding: 8px 18px; color: #ff4d4f; }
body.jun88-skin .home-latest-bet-race .nrc-tabs-tab.active { background: #ff4d4f; color: #fff; }
body.jun88-skin #footer {
    background: #fff !important;
    background-image: none !important;
    color: #444 !important;
}
body.jun88-skin #footer .mb66-foot {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 10px;
}
body.jun88-skin #footer .mb66-foot-intro {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}
body.jun88-skin #footer .mb66-foot-intro img { width: 140px; height: auto; }
body.jun88-skin #footer .mb66-foot-intro p { margin: 0; line-height: 1.6; color: #555; }
body.jun88-skin #footer .mb66-foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    gap: 24px;
}
body.jun88-skin #footer .mb66-foot h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 16px;
}
body.jun88-skin #footer .mb66-foot a {
    display: block;
    color: #e23b3b !important;
    line-height: 1.9;
    text-decoration: none;
}
body.jun88-skin #footer .mb66-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: center;
    align-items: center;
    padding: 22px 0 8px;
}
body.jun88-skin #footer .mb66-pay img { height: 34px; width: auto; }
body.jun88-skin #footer .mb66-copy {
    text-align: center;
    color: #888;
    padding: 8px 0 28px;
}

@media (max-width: 1100px) {
    .mb66-halls { grid-template-columns: repeat(4, 1fr); }
    .mb66-fav-grid { grid-template-columns: repeat(4, 1fr); }
    .mb66-jackpot, .mb66-amb, .mb66-app { grid-template-columns: 1fr; }
    body.jun88-skin #footer .mb66-foot-grid,
    body.jun88-skin #footer .mb66-foot-intro { grid-template-columns: 1fr; }
}
