/* =========================================================
   LETTERBET365-STYLE CASINO PAGE  (games.php)
   Mobile: gray CASINO bar + banner + filter-block-mobile +
   2-col grid.  Desktop: filter-block-desktop row + 4-col grid.
   Loaded after casino.css + joker css (via extraCss).
   ========================================================= */

/* hide the lime pill nav on the casino page (mobile) — Lettobet365 has none */
body.page-casino .nav-menu-mobile { display: none !important; }
body.page-casino .page-content-inner { padding: 0 !important; }
body.page-casino .main-content { margin-top: 0; padding-left: 0 !important; padding-right: 0 !important; }
body.page-casino .header-block-mobile { position: sticky; top: 0; z-index: 60; }

/* =========================================================
   1. GRAY PAGE BAR  (mobile only, lettuce "Casino" bar)
   ========================================================= */
.casino-pg-bar {
    display: none;
    align-items: center;
    background: #dedfe4;
    color: #494450;
    height: 2.8125rem;
    justify-content: space-between;
    padding: 0 0.9375rem;
    width: 100%;
    box-sizing: border-box;
}
.casino-pg-bar__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}
.casino-pg-bar__back {
    width: 11px;
    height: 11px;
    cursor: pointer;
    flex-shrink: 0;
}
.casino-pg-bar__back * { fill: #494450; }
@media (max-width: 1023px) {
    .casino-pg-bar { display: flex; }
}

/* =========================================================
   2. BANNER CAROUSEL  (casino variant of home-slider)
   ========================================================= */
.page-casino .home-slider {
    margin: 0;
    border-radius: 0;
    background: #ffffff;
}
.page-casino .home-slider__slide img {
    aspect-ratio: 1280 / 541;
    object-fit: fill;
}
.page-casino .home-slider__dots { bottom: 8px; }

/* =========================================================
   3. MOBILE FILTER BLOCK  (filter-block-mobile)
   ========================================================= */
.filter-block-mobile {
    display: flex;
    flex-direction: column;
    margin: 0.375rem 0;
    width: 100%;
}
.filter-block-mobile__list {
    align-items: stretch;
    display: flex;
    margin-bottom: 0.0625rem;
    overflow-x: scroll;
    width: 100%;
    scrollbar-width: none;
}
.filter-block-mobile__list::-webkit-scrollbar { display: none; }
.filter-block-mobile__search-wrapper {
    display: flex;
    gap: 0.0625rem;
    height: 3.5rem;
    margin: 0 0.0625rem;
    position: relative;
}
.filter-block-mobile__search-button {
    align-items: center;
    background-color: #9fa4a7;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 3.5rem;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0;
    border: none;
    width: 2.5rem;
    -webkit-tap-highlight-color: transparent;
}
.filter-block-mobile__search-button-svg { height: 50%; width: 50%; }
.filter-block-mobile__search-button-svg path { fill: #494450; }
.filter-block-mobile__search-input {
    border: none;
    border-radius: 0;
    background: #9fa4a7;
    box-sizing: border-box;
    color: #000;
    font-size: 1rem;
    height: 100%;
    text-align: center;
    width: 0;
    flex-shrink: 0;
    padding: 0;
    transition: width 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}
.filter-block-mobile__search-input.is-open { width: 12rem; }
.filter-block-mobile__search-input::-webkit-input-placeholder { color: #000; font-weight: 400; letter-spacing: 1.12px; opacity: 0.7; }
.filter-block-mobile__search-input::placeholder { color: #000; font-weight: 400; letter-spacing: 1.12px; opacity: 0.7; }
.filter-block-mobile__category-button {
    align-items: center;
    background: #9fa4a7;
    box-sizing: border-box;
    color: #494450;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    height: 3rem;
    justify-content: center;
    line-height: 1.2;
    min-width: 6.25rem !important;
    overflow-wrap: break-word;
    padding: 0.25rem 10px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    white-space: normal;
    width: 10%;
    word-break: normal;
    z-index: 0;
    border: none;
    -webkit-tap-highlight-color: transparent;
}
.filter-block-mobile__category-button { margin-right: 0.0625rem; }
.filter-block-mobile__category-button { margin-left: 0.0625rem; }
.filter-block-mobile__category-button_active { background: #18a032; color: #000; }
.filter-block-mobile__bottom {
    display: flex;
    height: 2.125rem;
    position: relative;
    width: 100%;
    z-index: 10;
}
.filter-block-mobile__favorites-button {
    background: #67cc06;
    border: 1px solid #67cc06;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    height: 100%;
    line-height: 2.1875rem;
    max-width: 50%;
    overflow: hidden;
    padding: 0 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
}
.filter-block-mobile__favorites-button_active { background: #4e9c08; border-color: #4e9c08; }
.filter-block-mobile__fav-icon { height: 0.725rem; width: 1rem; flex-shrink: 0; }
.filter-block-mobile__fav-icon * { fill: #000; }
.filter-block-mobile__providers-filter { width: 50%; }
.filter-block-mobile__providers-header {
    background: #9fa4a7;
    height: 100%;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.filter-block-mobile__providers-header .title {
    align-items: center;
    color: #494450;
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    font-weight: 500;
    height: 100%;
    justify-content: center;
    line-height: 0.8px;
    margin: auto;
    outline: none;
    text-transform: capitalize;
    width: 100%;
}
.filter-block-mobile__triangle-icon {
    transition: all 0.3s ease-in-out;
    width: 1.125rem;
    height: 1.125rem;
    margin-left: 0.3125rem;
    margin-right: 0.3125rem;
    flex-shrink: 0;
}
.filter-block-mobile__triangle-icon * { fill: #494450; }
.filter-block-mobile__triangle-icon_open { transform: rotate(180deg); }
.filter-block-mobile .list-providers {
    background-color: #dedfe4;
    display: flex;
    flex-direction: column;
    padding: 0.9375rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transition: all 0.15s linear;
    width: 100%;
    z-index: 10;
    max-height: 24rem;
    overflow-y: auto;
    box-sizing: border-box;
}
.filter-block-mobile .list-providers.open { height: max-content; opacity: 1; visibility: visible; }
.filter-block-mobile .list-providers.close { height: 0; opacity: 0; padding: 0; visibility: hidden; }
.filter-block-mobile__section {
    border-bottom: 1px solid #9fa4a7;
    border-top: none;
    box-sizing: border-box;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
    padding: 0.125rem 1rem 0.125rem 3rem;
    -webkit-tap-highlight-color: transparent;
}
.filter-block-mobile .section-provider { font-size: 0.875rem; font-weight: 600; height: 1.75rem; line-height: 1.75rem; }
.filter-block-mobile__section_active.section-provider { color: #18a032; position: relative; }
.filter-block-mobile__label-new { color: red; text-transform: uppercase; margin-left: 5px; }

/* =========================================================
   4. DESKTOP FILTER BLOCK  (filter-block-desktop)
   ========================================================= */
.filter-block-desktop {
    display: none;
    flex-direction: column;
    margin-top: 0.9375rem;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}
.filter-block-desktop__filter-list {
    align-items: center;
    background: #dedfe4;
    display: flex;
    justify-content: space-between;
    padding: 0.55rem;
    width: 100%;
    box-sizing: border-box;
}
.filter-block-desktop__search-wrapper { height: 3.125rem; width: 26%; position: relative; }
.filter-block-desktop__search-input {
    background: #fff;
    border: none;
    border-radius: 0;
    color: #000;
    font-size: 0.875rem;
    font-weight: 700;
    height: 100% !important;
    padding: 0 0.75rem 0 2.25rem;
    width: 100%;
    box-sizing: border-box;
    outline: none;
}
.filter-block-desktop__search-input::placeholder { color: #555; opacity: 1; }
.filter-block-desktop__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 15px;
    pointer-events: none;
}
.filter-block-desktop__search-icon * { fill: #000; }
.filter-block-desktop__list-item {
    background: #9fa4a7;
    color: #000;
    font-size: 0.875rem;
    height: 3.125rem;
    text-align: center;
    width: 25.3%;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.filter-block-desktop__list-item { margin-left: 0.625rem; margin-right: 0.625rem; }
.filter-block-desktop__list-item_favorite {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    padding: 0 0.9375rem;
    box-sizing: border-box;
}
.filter-block-desktop__list-item_favorite svg {
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    fill: currentColor;
}
.filter-block-desktop__list-item_favorite_active { background: #67cc06; }
.filter-block-desktop__select-display {
    align-items: center;
    display: flex;
    font-size: 0.875rem;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1.875rem 0 0.9375rem;
    position: relative;
    justify-content: flex-start;
}
.filter-block-desktop__select-display-value {
    color: #000;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}
.filter-block-desktop__select-display-value_all { color: #fff; }
.filter-block-desktop__select-caret {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}
.filter-block-desktop__select-caret * { fill: #000; }
.filter-block-desktop__list-item .filter-block-desktop__select-caret_open { transform: translateY(-50%) rotate(180deg); }
.filter-block-desktop__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #dedfe4;
    z-index: 20;
    max-height: 20rem;
    overflow-y: auto;
    display: none;
}
.filter-block-desktop__dropdown.is-open { display: block; }
.filter-block-desktop__dropdown-option {
    border-bottom: 1px solid #9fa4a7;
    color: #000;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    height: 1.75rem;
    line-height: 1.75rem;
    padding: 0 0.875rem;
    text-align: left;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-block-desktop__dropdown-option:hover { background: #cfd0d6; }
.filter-block-desktop__dropdown-option_active { color: #18a032; }

/* =========================================================
   5. SLOTS GRID  (slots-layout-content__slots)
   ========================================================= */
.slots-layout-content__slots {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.325rem;
    min-height: 20rem;
    padding: 0 0.6rem 0.5rem;
}

/* =========================================================
   6. GAME CARD  (slots-icon)
   ========================================================= */
.slots-icon {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.slots-icon__img {
    position: relative;
    width: 100%;
    background: #9fa4a7;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.slots-icon__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.slots-icon__img .game-tile__art { height: 100%; width: 100%; max-height: none; }
.slots-icon__name {
    display: flex;
    align-items: center;
    background-color: #67cc06;
    color: #000;
    font-size: 0.8rem;
    font-weight: 400;
    height: 2.9375rem;
    justify-content: space-between;
    padding: 0 0.3125rem;
    box-sizing: border-box;
    position: relative;
    transition: all 0.3s linear;
}
.slots-icon__name h4 {
    display: inline-block;
    font-size: 0.85rem;
    height: 2.9375rem;
    line-height: 2.9375rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 2.25rem);
    font-weight: 500;
}
.slots-icon__favorite {
    width: 15px;
    height: 15px;
    padding: 0;
    margin: 0 0.3125rem 0 auto;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.slots-icon__favorite * { fill: #000; }
.slots-icon__favorite.is-active * { fill: #14532d; }
.slots-icon__play-wrapper { display: none; }
.slots-icon__play-icon { width: 0; height: 0; overflow: hidden; }
.slots-icon__play-icon * { fill: #67cc06; }

/* desktop: taller cards + hover play button */
@media (min-width: 1024px) {
    body.page-casino .page-content-inner { padding: 24px 32px 0 !important; max-width: 1520px; }
    .casino-pg-bar { display: none !important; }
    .page-casino .home-slider { margin: 0 0 0.75rem; border-radius: 10px; }
    .page-casino .home-slider__slide img { aspect-ratio: 1280 / 541; }

    .filter-block-desktop { display: flex; }

    .filter-block-mobile { display: none; }

    .slots-layout-content__slots {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 0.9375rem;
        margin-top: 0.3125rem;
        min-height: 30rem;
        padding: 0.625rem;
        margin-left: 8px;
        margin-right: 8px;
    }
    .slots-layout-content__slots .slots-icon {
        border: 0.1875rem solid transparent;
        border-bottom: none;
        height: 17.625rem;
    }
    .slots-icon__img { height: calc(100% - 2.9375rem); }
    .slots-icon__img img { height: 100%; position: absolute; top: 0; left: 0; }
    .slots-icon__img .game-tile__art { height: 100%; max-height: none; }
    .slots-icon__img { position: relative; }
    .slots-icon:hover { background: #67cc06; color: #000; }
    .slots-icon:hover .slots-icon__img { opacity: 0.8; }
    .slots-icon__play-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: calc(100% - 2.9375rem);
    }
    .slots-icon__play-icon-wrapper {
        align-items: center;
        display: flex;
        justify-content: center;
        padding: 10px;
        transition: all 0.1s linear;
    }
    .slots-icon:hover .slots-icon__play-icon-wrapper {
        background: #fff;
        border-radius: 100%;
        height: 3.975rem;
        width: 3.975rem;
    }
    .slots-icon:hover .slots-icon__play-icon-wrapper svg { height: 40%; width: 40%; }
    .slots-icon:hover .slots-icon__play-icon { width: auto; height: auto; }
}

/* =========================================================
   7. EMPTY STATE
   ========================================================= */
.slots-empty {
    background: rgba(17, 24, 39, 0.04);
    border: 1px dashed rgba(17, 24, 39, 0.18);
    color: #6b7280;
    text-align: center;
    padding: 28px 16px;
    margin: 8px 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
}
.slots-empty a { color: #079c20; font-weight: 700; }