/* ========================================
   SLOTS PAGE
   ======================================== */

.slots-page {
    padding: 0 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header - hidden */
.slots-header {
    display: none;
}

/* Controls */
.slots-controls {
    margin-bottom: 24px;
}

/* Search + Providers row */
.slots-search-wrapper {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slots-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    height: 44px;
    transition: background 0.2s;
    flex: 1;
}

.slots-search-box:focus-within {
    background: rgba(255, 255, 255, 0.08);
}

.slots-search-icon {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    margin-right: 10px;
}

.slots-search-input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    padding: 0;
    font-family: inherit;
}

.slots-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.slots-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.slots-search-clear:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Providers Dropdown Toggle */
.providers-dropdown-wrapper {
    position: relative;
}

.providers-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.providers-dropdown-toggle:hover,
.providers-dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.providers-dropdown-toggle .toggle-arrow {
    transition: transform 0.2s;
}

.providers-dropdown-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.providers-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
    background: #1a1b23;
    border-radius: 12px;
    padding: 6px;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.providers-dropdown-panel.open {
    display: block;
}

.providers-dropdown-panel::-webkit-scrollbar {
    width: 4px;
}

.providers-dropdown-panel::-webkit-scrollbar-track {
    background: transparent;
}

.providers-dropdown-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Provider Filter (inside dropdown - list style) */
.slots-providers-filter {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.provider-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
    text-align: left;
}

.provider-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.provider-btn.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

/* Slot Card */
.slot-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.slot-card:hover {
    transform: translateY(-6px);
}

.slot-card:hover .slot-card-hover-overlay {
    opacity: 1;
}

.slot-card:hover .slot-card-img,
.home-slot-card:hover .home-slot-img-wrapper img {
    filter: brightness(0.25);
}

/* Favorite Heart */
.slot-card-fav {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, transform 0.15s;
    padding: 0;
}

.slot-card-fav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.slot-card-fav svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s;
}

.slot-card-fav.active svg {
    color: #ef4444;
    fill: #ef4444;
}

/* Favorites Filter Button */
.favorites-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.favorites-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.favorites-toggle-btn.active {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.favorites-toggle-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Slot player favorite button */
.slot-play-fav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.slot-play-fav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.slot-play-fav.active {
    color: #ef4444;
}

.slot-play-fav.active svg {
    fill: #ef4444;
    color: #ef4444;
}

.slot-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133.58%; /* 179/134 ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    isolation: isolate;
}

.slot-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.3s ease;
}

.slot-card-img.loaded {
    opacity: 1;
}

.slot-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    padding: 12px 10px;
    box-sizing: border-box;
    pointer-events: none;
}

.slot-card:hover .slot-card-hover-overlay,
.home-slot-card:hover .slot-card-hover-overlay {
    pointer-events: auto;
}

.slot-hover-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 85%;
    margin-bottom: 2px;
}

.slot-hover-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    height: 28px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
}

.slot-hover-btn-play {
    background: #87E578;
    color: #0B0B0F;
}

.slot-hover-btn-play:hover {
    background: #9deb90;
}

.slot-hover-bottom-row {
    display: flex;
    width: 85%;
    gap: 5px;
}

.slot-hover-bottom-row .slot-hover-btn-demo {
    flex: 1;
    width: auto;
    background: #fff;
    color: #0B0B0F;
    border: none;
}

.slot-hover-bottom-row .slot-hover-btn-demo:hover {
    background: #e8e8e8;
}

.slot-hover-bottom-row .slot-hover-btn-fav {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: #fff;
    color: #0B0B0F;
    border: none;
    padding: 0;
}

.slot-hover-bottom-row .slot-hover-btn-fav:hover {
    background: #e8e8e8;
}

.slot-hover-bottom-row .slot-hover-btn-fav svg {
    width: 14px;
    height: 14px;
}

.slot-hover-bottom-row .slot-hover-btn-fav.active {
    background: #fff;
}

.slot-hover-bottom-row .slot-hover-btn-fav.active svg {
    color: #ef4444;
    fill: #ef4444;
}

.slot-card-overlay {
    display: none;
}

.slot-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.slot-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Loading Skeleton */
.slots-loading .slot-card.skeleton {
    aspect-ratio: 1 / 1;
    background: linear-gradient(110deg, rgba(255,255,255,0.04) 8%, rgba(255,255,255,0.08) 18%, rgba(255,255,255,0.04) 33%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    border-radius: 12px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Per-card image skeleton shimmer */
.slot-card-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, rgba(255,255,255,0.04) 8%, rgba(255,255,255,0.08) 18%, rgba(255,255,255,0.04) 33%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    z-index: 1;
    border-radius: 10px;
    transition: opacity 0.4s ease;
}

.slot-card-skeleton.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Empty / No Results */
.slots-empty,
.slots-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    grid-column: 1 / -1;
}

/* Load More */
.slots-load-more {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.slots-load-more-btn {
    padding: 12px 40px;
    border-radius: 10px;
    background: #161922;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.slots-load-more-btn:hover {
    background: #1e2230;
}

/* ========================================
   HOME PAGE SLOTS SECTION
   ======================================== */

.home-slots-section {
    margin-bottom: 32px;
}

.home-slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.home-slots-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.home-slots-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    padding: 8px 18px;
    border-radius: 8px;
    background: #161922;
}

.home-slots-more:hover {
    background: #1e2230;
    color: rgba(255, 255, 255, 0.85);
}

.home-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.home-slot-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.home-slot-card:hover {
    transform: translateY(-6px);
}

.home-slot-card:hover .slot-card-hover-overlay {
    opacity: 1;
}

.home-slot-img-wrapper {
    width: 100%;
    padding-top: 133.58%; /* 179/134 ratio */
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.home-slot-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    .slots-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .home-slots-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .slots-page {
        padding: 0 16px 32px;
    }

    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .home-slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .slots-search-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .slots-search-box {
        flex: 2;
        height: 40px;
    }

    .favorites-toggle-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 0;
        gap: 0;
    }

    .favorites-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    .providers-dropdown-toggle {
        height: 40px;
        padding: 0 12px;
        font-size: 0;
        gap: 0;
    }

    .providers-dropdown-toggle svg {
        width: 18px;
        height: 18px;
    }

    .providers-dropdown-toggle .toggle-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .home-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .provider-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
