.demo-slots-carousel {
    position: relative;
}

.demo-slots-carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px;
}

.demo-slots-carousel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(26, 32, 53, 0.92);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.demo-slots-carousel__btn:hover,
.demo-slots-carousel__btn:focus {
    border-color: rgba(37, 99, 235, 0.34);
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
    outline: none;
    transform: translateY(-1px);
}

.demo-slots-carousel__btn:active {
    transform: translateY(0);
}

.demo-grid.slot-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    margin: 28px 0 8px;
    padding: 0 0 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.demo-grid.slot-grid::-webkit-scrollbar {
    display: none;
}

.demo-grid.slot-grid .slot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 220px;
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--rl);
    background: var(--card-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.demo-grid.slot-grid .slot-card:hover {
    border-color: rgba(37, 99, 235, 0.32);
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.demo-grid.slot-grid .slot-card__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy-800);
}

.demo-grid.slot-grid .slot-card__thumb::before,
.demo-grid.slot-grid .slot-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.demo-grid.slot-grid .slot-card__thumb::before {
    opacity: 0.42;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.55), rgba(245, 158, 11, 0.28));
}

.demo-grid.slot-grid .slot-card:nth-child(4n + 2) .slot-card__thumb::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.48), rgba(139, 92, 246, 0.28));
}

.demo-grid.slot-grid .slot-card:nth-child(4n + 3) .slot-card__thumb::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.24));
}

.demo-grid.slot-grid .slot-card:nth-child(4n) .slot-card__thumb::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.5), rgba(234, 179, 8, 0.24));
}

.demo-grid.slot-grid .slot-card__thumb::after {
    opacity: 0.12;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 62%);
}

.demo-grid.slot-grid .slot-card__media,
.demo-grid.slot-grid .slot-card__emoji {
    position: relative;
    z-index: 1;
}

.demo-grid.slot-grid .slot-card__media {
    position: absolute;
    inset: 0;
}

.demo-grid.slot-grid .slot-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-grid.slot-grid .slot-card__emoji {
    font-size: 56px;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.demo-grid.slot-grid .slot-card__emoji--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 800;
}

.demo-grid.slot-grid .slot-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.demo-grid.slot-grid .badge--hot {
    background: rgba(13, 148, 136, 0.15);
    color: #5eead4;
    border: 1px solid rgba(13, 148, 136, 0.26);
}

.demo-grid.slot-grid .badge--rtp {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.24);
}

.demo-grid.slot-grid .badge--new {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.demo-grid.slot-grid .slot-card__prov {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.52);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-ui);
    font-size: 8px;
    font-weight: 600;
    line-height: 1.2;
    backdrop-filter: blur(4px);
}

.demo-grid.slot-grid .slot-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.demo-grid.slot-grid .slot-card__name {
    margin-bottom: 6px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.demo-grid.slot-grid .slot-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
}

.demo-grid.slot-grid .slot-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.demo-grid.slot-grid .slot-card__meta strong {
    color: var(--a400);
    font-weight: 800;
}

.demo-grid.slot-grid .slot-card__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.demo-grid.slot-grid .slot-card__bar-track {
    flex: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.demo-grid.slot-grid .slot-card__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--b500), var(--a500));
}

.demo-grid.slot-grid .slot-card:nth-child(even) .slot-card__bar-fill {
    background: linear-gradient(90deg, var(--a500), var(--g5));
}

.demo-grid.slot-grid .slot-card__bar-val {
    min-width: 42px;
    color: var(--a400);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.demo-grid.slot-grid .slot-card__actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.demo-grid.slot-grid .slot-card__btn-play,
.demo-grid.slot-grid .slot-card__btn-detail {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 6px;
    border-radius: var(--rs);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.demo-grid.slot-grid .slot-card__btn-play {
    background: var(--b500);
    color: #ffffff;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.demo-grid.slot-grid .slot-card__btn-play:hover,
.demo-grid.slot-grid .slot-card__btn-play:focus {
    color: #ffffff;
    background: var(--b600);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
    text-decoration: none;
}

.demo-grid.slot-grid .slot-card__btn-detail {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-muted);
}

.demo-grid.slot-grid .slot-card__btn-detail:hover,
.demo-grid.slot-grid .slot-card__btn-detail:focus {
    border-color: rgba(37, 99, 235, 0.34);
    color: #ffffff;
    text-decoration: none;
}

.demo-grid.slot-grid .slot-card__rg {
    padding: 2px 16px 10px;
    color: rgba(148, 163, 184, 0.7);
    font-family: var(--font-ui);
    font-size: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .demo-slots-carousel__nav {
        margin-bottom: 8px;
    }

    .demo-slots-carousel__btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .demo-grid.slot-grid {
        gap: 14px;
    }

    .demo-grid.slot-grid .slot-card {
        flex-basis: 180px;
    }

    .demo-grid.slot-grid .slot-card__thumb {
        min-height: 120px;
    }

    .demo-grid.slot-grid .slot-card__body {
        padding: 12px;
    }

    .demo-grid.slot-grid .slot-card__name {
        font-size: 13px;
    }

    .demo-grid.slot-grid .slot-card__btn-play,
    .demo-grid.slot-grid .slot-card__btn-detail {
        min-height: 34px;
        padding: 7px 4px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .demo-slots-carousel__nav {
        gap: 6px;
    }

    .demo-slots-carousel__btn {
        width: 32px;
        height: 32px;
    }

    .demo-grid.slot-grid {
        gap: 12px;
    }

    .demo-grid.slot-grid .slot-card {
        flex-basis: 160px;
    }

    .demo-grid.slot-grid .slot-card__thumb {
        min-height: 100px;
    }

    .demo-grid.slot-grid .slot-card__body {
        padding: 10px;
    }

    .demo-grid.slot-grid .slot-card__name {
        font-size: 12px;
    }

    .demo-grid.slot-grid .slot-card__meta,
    .demo-grid.slot-grid .slot-card__bar-val {
        font-size: 10px;
    }

    .demo-grid.slot-grid .slot-card__btn-play,
    .demo-grid.slot-grid .slot-card__btn-detail {
        font-size: 9px;
    }
}
