/* ===== GLOBAL THEME BASE (add once in main css top) ===== */
:root {
    --mcw-primary: #1f2f9b;
    --mcw-primary-dark: #141f6b;
    --mcw-accent: #ff7a00;
    --mcw-white-text: #fff;
    --mcw-tab-bg: white;

}

/* ===== DESKTOP = BLACK BLOCK ===== */
@media (min-width: 769px) {
    .mcw-home-slider-wrap {
        width: 100%;
        height: 260px;
        background: #000;
    }
}

/* ===== MOBILE SLIDER ===== */
@media (max-width: 768px) {

    .mcw-home-slider-wrap {
        width: 100%;
        background: linear-gradient(to bottom,
                var(--mcw-primary),
                var(--mcw-primary-dark));
        padding: 10px 0 12px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .mcw-home-slider {
        display: flex;
        gap: 10px;
        padding: 0 12px;
        transition: transform .45s cubic-bezier(.4, 0, .2, 1);
        will-change: transform;
    }

    /* ===== Peek Slide Width ===== */
    .mcw-slide {
        min-width: 95%;
        /* side peek visible */
        flex: 0 1 auto;
        border-radius: 10px;
        overflow: hidden;
        background: #111;
    }

    .mcw-slide img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 10px;
        object-fit: contain;
        /* full image visible */
    }

    /* ===== DOTS ===== */
    .mcw-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }

    .mcw-dots span {
        width: 14px;
        height: 4px;
        border-radius: 4px;
        background: rgba(255, 255, 255, .25);
        transition: .25s;
    }

    .mcw-dots span.active {
        width: 26px;
        background: var(--mcw-accent);
    }
}

/* notice bar */
/* desktop hide */
@media (min-width: 769px) {
    .mcw-notice-wrap {
        display: none;
    }
}

/* mobile */
@media (max-width: 768px) {

    .mcw-notice-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--mcw-primary);
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 5px 12px;
        overflow: hidden;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    }

    .mcw-notice-icon {
        flex: 0 0 auto;
        color: var(--mcw-white-text, #ffff);
        font-size: 16px;
    }

    .mcw-notice-track {
        position: relative;
        overflow: hidden;
        flex: 1;
    }

    .mcw-notice-text {
        white-space: nowrap;
        display: inline-block;
        color: #fff;
        font-size: 13px;
        will-change: transform;
    }
}

/* tab bar */
/* ===== DESKTOP HIDE ===== */
@media (min-width:769px) {
    .mcw-tabs-wrap {
        display: none;
    }
}

/* ===== MOBILE ===== */
@media (max-width:768px) {
    .mcw-tabs-wrap {
        padding: 0px 0px 4px;
        background: var(--mcw-tab-bg);
    }

    /* ===== TAB BAR ===== */
    .mcw-tabbar {
        display: flex;
        gap: 0px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    }

    .mcw-tabbar::-webkit-scrollbar {
        display: none;
    }

    .mcw-tab.active {
        background: var(--mcw-primary);
        margin-top: 2px;
    }

    .mcw-tab {
        flex: 0 0 auto;
        text-align: center;
        color: var(--mcw-accent);
        font-size: 12px;
        cursor: pointer;
        transition: .2s;
        padding: 0px 17px;
    }

    .mcw-tab img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        display: block;
        margin: auto;
        border-radius: 12px;
        padding: 5px;
        transition: .2s;
    }

    .mcw-tab span {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        font-weight: bold;
    }

    .mcw-tab.active span {
        color: var(--mcw-accent);
        font-weight: 600;
    }

    .mcw-tab.active img {

        transform: translateY(-2px);
    }

    /* ===== TAB CONTENT ===== */

    .mcw-tab-content {
        display: none;
        /* only hide */
        margin-top: 10px;
    }

    .mcw-tab-content.active {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        animation: mcwFade .50s ease;
        padding: 5px 15px;
        background: #f3f3f3;
        align-items: stretch;
    }

    @keyframes mcwFade {
        from {
            opacity: .4;
            transform: translateY(4px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===== GAME CARD ===== */

    .mcw-game {
        text-align: center;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .mcw-game-link {
        display: block;
        height: 100%;
    }

    .mcw-game-img {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
        aspect-ratio: 1 / 1;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
        border: 1px solid rgba(0, 0, 0, .05);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
    }

    .mcw-game-img>img:first-child {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    /* badge */
    .mcw-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        min-width: 34px;
        max-width: calc(100% - 10px);
        padding: 2px 6px;
        border-radius: 10px;
        background: linear-gradient(135deg, #ff7a00, #ff3d00);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .3px;
        line-height: 1.2;
        text-align: center;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
        animation: mcwZoom 1.6s infinite ease-in-out;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
    }

    /* zoom animation smoother */
    @keyframes mcwZoom {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.18);
        }

        100% {
            transform: scale(1);
        }
    }

.mcw-game p {
	margin-top: 7px;
	font-size: 13px;
	color: var(--mcw-accent);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
	text-transform: uppercase;
}
}

/* refer section */
/* desktop hide */
@media (min-width:769px) {
    .mcw-ref-wrap {
        display: none;
        height: 200px;
        background: #000;
    }
}

/* mobile */
@media (max-width:768px) {

    .mcw-ref-wrap {
        padding: 15px;
        background: white;
    }

    .mcw-ref-title {
        color: black;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .mcw-ref-card {
        border-radius: 10px;
        overflow: hidden;
        background: #1a1a1a;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
        transition: .25s;
    }

    .mcw-ref-card:active {
        transform: scale(.98);
    }

    .mcw-ref-card img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

}

/* live match */
/* desktop hide */
@media(min-width:769px) {
    .mcw-live-wrap {
        display: none;
        height: 220px;
        background: #000;
    }
}

@media(max-width:768px) {

    .mcw-live-wrap {
        background: var(--mcw-tab-bg);
        padding: 15px;
    }

    .mcw-live-head {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        margin-bottom: 8px;
        color: black;
    }

    .mcw-now {
        background: #27c24c;
        color: #fff;
        font-size: 11px;
        padding: 3px 15px;
        border-radius: 4px;
    }

    .mcw-live-slider {
        display: flex;
        gap: 12px;
        overflow: hidden;
        scroll-behavior: smooth;
    }

    .mcw-live-card {
        min-width: 92%;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        background: #111;
    }

    .mcw-live-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

    /* overlay */
    .mcw-live-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.35));
        padding: 14px;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .mcw-live-title {
        font-weight: 700;
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .mcw-live-time {
        font-size: 12px;
        opacity: .9;
        margin-bottom: 10px;
    }

    .mcw-live-row {
        display: flex;
        justify-content: space-around;
        font-size: 14px;
        font-weight: 600;
    }

    .mcw-live-row b {
        display: block;
        margin-top: 4px;
        font-size: 16px;
    }

}

