/* MAXW1N — Live Casino (reference layout) */

:root {
    --mw-bg: #05070d;
    --mw-panel: rgba(13, 18, 33, .86);
    --mw-panel-2: rgba(255, 255, 255, .045);
    --mw-border: rgba(255, 255, 255, .09);
    --mw-border-2: rgba(255, 255, 255, .15);
    --mw-text: #ffffff;
    --mw-muted: rgba(255, 255, 255, .62);
    --mw-soft: rgba(255, 255, 255, .42);
    --mw-cyan: #22d3ee;
    --mw-blue: #3b82f6;
    --mw-violet: #8b5cf6;
    --mw-red: #ff3b4f;
    --mw-green: #16e28a;
    --mw-radius: 20px;
    --mw-header-height: 72px;
}

.mw-live-page {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 20px 0 72px;
    box-sizing: border-box;
    color: var(--mw-text);
    background:
        radial-gradient(circle at 22% 0%, rgba(59, 130, 246, .16), transparent 34%),
        radial-gradient(circle at 78% 6%, rgba(139, 92, 246, .15), transparent 36%),
        linear-gradient(180deg, #0a1020 0%, #161b3a 42%, #10152d 100%);
    overflow-x: hidden;
}

.mw-live-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent 75%);
}

.mw-live-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Hero */
.mw-live-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 24px;
    min-height: 190px;
    padding: 28px 32px;
    margin-bottom: 14px;
    border-radius: 26px;
    border: 1px solid var(--mw-border-2);
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 59, 79, .22), transparent 34%),
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, .10), transparent 30%),
        linear-gradient(135deg, rgba(11, 18, 34, .92), rgba(21, 18, 45, .94));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
    overflow: hidden;
}

.mw-live-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #ff5c6c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mw-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--mw-red);
    box-shadow: 0 0 18px rgba(255, 59, 79, .9);
    animation: mw-live-dot-pulse 2s ease-in-out infinite;
}

@keyframes mw-live-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .65; transform: scale(.88); }
}

.mw-live-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -.04em;
}

.mw-live-hero p {
    max-width: 620px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.55;
}

.mw-live-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mw-live-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .045);
    font-size: 12px;
    font-weight: 700;
}

.mw-live-hero-card {
    justify-self: end;
    width: 220px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 59, 79, .22), transparent 45%),
        rgba(10, 12, 24, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.mw-hero-card-main strong {
    display: block;
    color: #ff6573;
    font-size: 36px;
    line-height: .95;
    font-weight: 950;
}

.mw-hero-card-main span,
.mw-hero-card-meta span {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
}

.mw-hero-card-meta {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.mw-hero-card-meta i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 999px;
    background: var(--mw-red);
    vertical-align: middle;
}

.mw-hero-mini-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.mw-hero-mini-chips span {
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .16);
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 800;
}

/* Toolbar */
.mw-live-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 150px;
    gap: 10px;
    align-items: center;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid var(--mw-border);
    background: rgba(7, 10, 20, .84);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.mw-live-search {
    position: relative;
}

.mw-live-search svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: rgba(255, 255, 255, .42);
    pointer-events: none;
}

.mw-live-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.mw-live-search input:focus {
    border-color: rgba(34, 211, 238, .48);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .08);
}

.mw-live-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .045);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 0;
}

.mw-live-filter-select {
    appearance: none;
    -webkit-appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.mw-live-filter-select option {
    background: #0f172a;
    color: #fff;
}

.mw-live-filter-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
    pointer-events: none;
}

/* Chips */
.mw-live-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mw-live-chips::-webkit-scrollbar {
    display: none;
}

.mw-live-chips button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.mw-live-chips button.is-active {
    color: #fff;
    border-color: rgba(255, 92, 108, .72);
    background: rgba(255, 59, 79, .17);
}

.mw-live-browse.is-hidden {
    display: none;
}

/* Sections */
.mw-live-section {
    margin-top: 28px;
}

.mw-live-featured {
    margin-top: 0;
    margin-bottom: 24px;
}

.mw-live-section + .mw-live-section {
    margin-top: 32px;
}

.mw-live-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.mw-live-section-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.mw-live-section-head p {
    margin: 6px 0 0;
    color: var(--mw-muted);
    font-size: 13px;
}

.mw-live-section-link,
.mw-live-count {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.mw-live-section-link:hover {
    color: #fff;
}

/* Featured grid */
.mw-live-featured-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-auto-rows: 150px;
    gap: 12px;
    align-items: stretch;
}

.mw-live-featured-grid .mw-live-card {
    height: 100%;
    min-height: 0;
}

.mw-live-featured-grid .mw-live-card:not(.is-large) {
    display: flex;
    flex-direction: column;
}

.mw-live-featured-grid .mw-live-card:not(.is-large) .mw-live-cover {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: unset;
    height: auto;
}

.mw-live-featured-grid .mw-live-card:not(.is-large) .mw-live-card-info {
    flex: 0 0 auto;
    padding: 8px 10px 10px;
}

.mw-live-card-featured.is-large {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Grids */
.mw-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}

/* Card */
.mw-live-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mw-live-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .38);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}

.mw-live-card.is-hidden {
    display: none !important;
}

.mw-live-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .18), transparent 35%),
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(35, 26, 62, .94));
}

.mw-live-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform .22s ease;
}

.mw-live-card:hover .mw-live-cover img {
    transform: scale(1.06);
}

.mw-live-card-info {
    padding: 10px 12px 12px;
}

.mw-live-card-info strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mw-live-card-info span {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mw-live-card-featured.is-large {
    min-height: auto;
}

.mw-live-card-featured.is-large .mw-live-cover {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: unset;
    height: auto;
}

.mw-live-featured-grid .mw-live-card-featured.is-large .mw-live-cover {
    flex: 1 1 auto;
    min-height: 0;
}

.mw-live-card-featured.is-large .mw-live-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .42), transparent);
    pointer-events: none;
}

.mw-live-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: calc(100% - 20px);
}

.mw-live-tags span {
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    color: #fff;
    font-size: 9px;
    line-height: 20px;
    font-weight: 950;
}

.tag-live { background: #ff3548; }
.tag-hot { background: #f97316; }
.tag-new { color: #042012 !important; background: #16e28a; }
.tag-vip { background: #8b5cf6; }

.mw-live-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: rgba(3, 6, 14, .58);
    opacity: 0;
    transition: opacity .18s ease;
}

.mw-live-card:hover .mw-live-play {
    opacity: 1;
}

.mw-live-play span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 14px 34px rgba(59, 130, 246, .35);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

/* Fallback */
.mw-live-card.is-fallback .mw-live-cover::before {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
    background:
        radial-gradient(circle at 70% 0%, rgba(255, 59, 79, .16), transparent 35%),
        radial-gradient(circle at 20% 100%, rgba(34, 211, 238, .12), transparent 38%),
        linear-gradient(135deg, rgba(13, 18, 33, .98), rgba(35, 26, 62, .95));
}

.mw-live-card.is-fallback .mw-live-cover img {
    display: none;
}

/* Empty / catalog filter */
.mw-live-empty {
    margin-top: 24px;
    padding: 36px 20px;
    text-align: center;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .2);
}

.mw-live-empty h2 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.mw-live-empty p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.mw-live-catalog.is-filter-empty .mw-live-grid {
    display: none;
}

/* Tablet */
@media (max-width: 980px) {
    .mw-live-hero {
        grid-template-columns: 1fr;
    }

    .mw-live-hero-card {
        justify-self: stretch;
        width: auto;
    }

    .mw-live-toolbar {
        grid-template-columns: 1fr;
    }

    .mw-live-featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mw-live-card-featured.is-large {
        grid-row: auto;
        grid-column: span 2;
    }

    .mw-live-card-featured.is-large .mw-live-cover {
        aspect-ratio: 16 / 9;
    }

    .mw-live-card-featured.is-large .mw-live-card-info {
        position: relative;
        background: transparent;
        padding: 10px 12px 12px;
        pointer-events: auto;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .mw-live-page {
        padding-top: 16px;
        padding-bottom: 96px;
    }

    .mw-live-container {
        padding: 0 14px;
    }

    .mw-live-hero {
        padding: 22px 18px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .mw-live-hero h1 {
        font-size: 34px;
    }

    .mw-live-hero p {
        font-size: 14px;
    }

    .mw-live-badges {
        gap: 6px;
    }

    .mw-live-badges span {
        min-height: 26px;
        font-size: 11px;
    }

    .mw-live-toolbar {
        padding: 12px;
        gap: 8px;
    }

    .mw-live-chips {
        margin-bottom: 16px;
    }

    .mw-live-featured-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mw-live-card-featured.is-large {
        grid-column: auto;
    }

    .mw-live-card-featured.is-large .mw-live-cover {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .mw-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mw-live-card {
        border-radius: 14px;
    }

    .mw-live-card-info {
        padding: 9px 9px 10px;
    }

    .mw-live-card-info strong {
        font-size: 12px;
    }

    .mw-live-card-info span {
        font-size: 10px;
    }

    .mw-live-section {
        margin-top: 24px;
    }

    .mw-live-section + .mw-live-section {
        margin-top: 28px;
    }

    .mw-live-featured {
        margin-bottom: 20px;
    }

    .mw-live-section-head {
        align-items: flex-start;
    }

    .mw-live-section-head h2 {
        font-size: 19px;
    }

    .mw-live-section-head p {
        display: none;
    }

    .mw-live-play {
        opacity: 1;
        background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, .52) 100%);
    }

    .mw-live-play span {
        position: absolute;
        bottom: 52px;
        left: 50%;
        transform: translateX(-50%);
        height: 36px;
        padding: 0 16px;
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .mw-live-container {
        padding: 0 12px;
    }

    .mw-live-hero h1 {
        font-size: 30px;
    }
}
