/* Styles extracted from games.php, block 1. */
/* Games Header & Filters Layout */

        .games-page-header {

            margin-bottom: 25px;

        }



        .games-page-title {

            font-size: 32px;

            font-weight: 800;

            color: #fff;

            margin: 0 0 8px 0;

        }



        .games-page-subtitle {

            color: var(--text-muted, #94a3b8);

            font-size: 14px;

            margin: 0 0 25px 0;

        }



        /* Panel FiltrĂłw */

        .filter-panel {
            position: relative;
            z-index: 20;

            background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));

            border: 1px solid rgba(255, 255, 255, 0.08);

            border-radius: 20px;

            padding: 24px;

            margin-bottom: 30px;

            backdrop-filter: blur(10px);

            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

        }



        .filter-main-row {

            display: grid;

            grid-template-columns: 2fr 1fr 1fr;

            gap: 15px;

            margin-bottom: 20px;

        }

        .library-advanced-search {
            margin: -5px 0 0;
        }
        .library-advanced-search > summary {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 30px;
            padding: 0 2px;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #e2e8f0;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            list-style: none;
            user-select: none;
            transition: background .18s ease, border-color .18s ease;
        }
        .library-advanced-search > summary:hover { color: #fff; }
        .library-advanced-search > summary:focus-visible { outline: 2px solid rgba(64,162,250,.7); outline-offset: 2px; }
        .library-advanced-search > summary::-webkit-details-marker { display: none; }
        .library-advanced-search > summary::after {
            content: '';
            width: 7px;
            height: 7px;
            margin-left: auto;
            border-right: 1.5px solid #94a3b8;
            border-bottom: 1.5px solid #94a3b8;
            transform: rotate(225deg) translate(-2px, -1px);
            transition: transform .18s ease;
        }
        .library-advanced-search[open] > summary::after { transform: rotate(45deg) translateY(-2px); }
        .library-advanced-search[open] > .ranges-grid { padding: 8px 0 0; }
        .library-advanced-meta {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 12px;
            padding: 12px 0 2px;
            border-top: 1px solid rgba(255,255,255,.07);
        }
        .library-advanced-meta .results-count { margin-right: auto; }
        .library-advanced-meta .btn-reset-filters { padding: 8px 12px; }



        .search-input-wrapper {

            position: relative;
            display: flex;
            align-items: stretch;
            gap: 9px;

        }

        .library-random-button { flex: 0 0 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.075); cursor: pointer; transition: .18s ease; }
        .library-random-button:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.13); box-shadow: 0 0 18px rgba(255,255,255,.08); transform: translateY(-1px); }
        .library-random-button img { width: 22px; height: 22px; object-fit: contain; }
        .search-input-wrapper > .filter-control { flex: 1; min-width: 0; }



        .filter-control {

            width: 100%;

            padding: 12px 16px;

            background: rgba(0, 0, 0, 0.35);

            border: 1px solid rgba(255, 255, 255, 0.12);

            border-radius: 12px;

            color: #fff;

            font-size: 14px;

            outline: none;

            box-sizing: border-box;

            transition: border-color 0.2s, box-shadow 0.2s;

        }



        .filter-control[type="number"] {
            appearance: textfield;
            -moz-appearance: textfield;
        }

        .filter-control[type="number"]::-webkit-inner-spin-button,
        .filter-control[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            appearance: none;
            margin: 0;
        }

        .filter-control:focus {

            border-color: var(--accent, #10b981);

            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);

        }



        select.filter-control option { background: #252a32; color: #e2e8f0; }

        /* Category Multi-select dropdown with frosted glass transparency */
        .category-multiselect {
            position: relative;
            width: 100%;
            z-index: 1;
        }
        .category-multiselect.is-open {
            z-index: 30;
        }
        .category-multiselect-btn {
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-align: left;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.075) !important;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 12px 16px;
            color: #fff;
            font-size: 14px;
            transition: all 0.2s ease;
            user-select: none;
            width: 100%;
            height: 100%;
        }
        .category-multiselect-btn:hover {
            border-color: rgba(96, 165, 250, 0.4);
            background: rgba(255, 255, 255, 0.11) !important;
        }
        .category-multiselect.is-open .category-multiselect-btn {
            border-color: var(--accent, #3b82f6);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
            background: rgba(255, 255, 255, 0.12) !important;
        }
        #catSelectLabel {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 8px;
        }
        .cat-chevron {
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }
        .category-multiselect.is-open .cat-chevron {
            transform: rotate(180deg);
        }
        .category-multiselect-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            width: 100%;
            min-width: 250px;
            background: rgb(20 24 32 / 88%);
            backdrop-filter: blur(30px) saturate(150%);
            -webkit-backdrop-filter: blur(30px) saturate(150%);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 14px;
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
            z-index: 1000;
            padding: 10px;
            box-sizing: border-box;
            animation: fadeInDropdown 0.15s ease-out;
        }
        @keyframes fadeInDropdown {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .category-multiselect.is-open .category-multiselect-dropdown {
            display: block;
        }
        .category-multiselect-actions {
            display: flex;
            justify-content: space-between;
            padding-bottom: 8px;
            margin-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .cat-action-btn {
            background: transparent;
            border: none;
            color: var(--accent, #60a5fa);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: background 0.15s, color 0.15s;
        }
        .cat-action-btn:hover {
            background: rgba(96, 165, 250, 0.12);
            color: #93c5fd;
        }
        .category-multiselect-list {
            max-height: 240px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 4px;
            scrollbar-width: thin;
            scrollbar-color: rgba(96, 165, 250, 0.45) rgba(255, 255, 255, 0.04);
        }
        .category-multiselect-list::-webkit-scrollbar {
            width: 6px;
        }
        .category-multiselect-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 6px;
        }
        .category-multiselect-list::-webkit-scrollbar-thumb {
            background: rgba(96, 165, 250, 0.4);
            border-radius: 6px;
        }
        .category-checkbox-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: #e2e8f0;
            transition: background 0.15s, color 0.15s;
            user-select: none;
        }
        .category-checkbox-item:hover {
            background: rgba(255, 255, 255, 0.07);
            color: #fff;
        }
        .category-checkbox-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            border-radius: 4px;
            accent-color: #3b82f6;
            cursor: pointer;
        }



        /* Zaawansowane filtry zakresĂłw */

        .ranges-grid {

            display: grid;

            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

            gap: 16px;

            padding-top: 20px;

            border-top: 1px solid rgba(255, 255, 255, 0.06);

        }



        .range-group {

            display: flex;

            flex-direction: column;

            gap: 6px;

        }



        .range-label {

            font-size: 12px;

            font-weight: 700;

            color: var(--text-muted, #94a3b8);

            text-transform: uppercase;

            letter-spacing: 0.5px;

        }



        .range-inputs {

            display: flex;

            align-items: center;

            gap: 8px;

        }



        .range-inputs input {

            flex: 1;

            min-width: 0;

            padding: 9px 12px;

            font-size: 13px;

        }



        .range-separator {

            color: var(--text-muted, #64748b);

            font-size: 12px;

            font-weight: 600;

        }



        .filter-actions {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-top: 20px;

            padding-top: 16px;

            border-top: 1px solid rgba(255, 255, 255, 0.06);

            flex-wrap: wrap;

            gap: 12px;

        }

        .filter-action-controls {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .games-per-row-control {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: var(--text-muted, #94a3b8);
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
        }

        .games-per-row-control select.filter-control {
            width: 76px;
            padding: 8px 28px 8px 12px;
            border-radius: 10px;
        }

        .grid-preference-status {
            min-width: 54px;
            color: var(--text-muted, #94a3b8);
            font-size: 11px;
        }



        .results-count {

            color: var(--text-muted, #94a3b8);

            font-size: 14px;

            font-weight: 600;

        }



        .btn-reset-filters {

            background: rgba(255, 255, 255, 0.06);

            border: 1px solid rgba(255, 255, 255, 0.12);

            color: #e2e8f0;

            padding: 8px 16px;

            border-radius: 10px;

            font-size: 13px;

            font-weight: 600;

            cursor: pointer;

            transition: all 0.2s;

        }



        .btn-reset-filters:hover {

            background: rgba(239, 68, 68, 0.15);

            border-color: #ef4444;

            color: #ef4444;

        }



        /* Karta Gry w Siatce */

/* Główna siatka gier */
.all-games-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(var(--effective-games-columns, var(--games-columns, 5)), minmax(min(140px, 100%), 1fr));
    gap: 20px;
}

.games-load-more {
    display: block;
    width: fit-content;
    min-width: 150px;
    margin: 22px auto 4px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: var(--text-main, #f1f5f9);
    cursor: pointer;
}
.games-load-more:hover { background: rgba(255,255,255,.1); }

/* Karta gry - pełna elegancja z "border-radius" ukrywającym miniaturkę od góry */
.game-card-custom {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0; /* Zerujemy padding, aby miniaturka dotykała krawędzi od góry i boków */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card-custom:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Kontener miniaturki - idealnie na całą szerokość u góry */
.game-card-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0; /* Brak zaokrągleń u góry, żeby wypełniała krawędź */
    overflow: hidden;
    background: #080c14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card-custom:hover .game-card-img-box img {
    transform: scale(1.06);
}

/* Sekcja z treścią pod obrazkiem (posiada teraz własny elegancki padding) */
.game-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    flex-grow: 1;
    justify-content: space-between;
}

/* Tytuł gry */
.game-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Dolna sekcja statystyk (Gracze online + procent polubień) */
.game-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* Liczba grających z zieloną diodą statusu live */
.game-card-playing {
    color: #4ade80;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-card-playing::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

/* Polubienia (w miejscu dawnych wizyt) */
.game-card-likes {
    color: #fbbf24;
    font-weight: 700;
}

/* Wiadomość o braku wyników */
#noGamesMessage {
    background: rgba(255,255,255,.055);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    color: #94a3b8 !important;
}
#noGamesRequestLink { color: #7dd3fc; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
#noGamesRequestLink:hover { color: #bae6fd; }
#noGamesRequestLink[hidden], #noGamesRequestPeriod[hidden] { display: none !important; }

/* Responsywność dla mniejszych ekranów */
@media (max-width: 1024px) {
    .all-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .all-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .game-card-content {
        padding: 10px;
    }
    .game-card-title {
        font-size: 12px;
    }
    .game-card-stats {
        font-size: 11px;
    }
}

                /* Podium Layout */

        .podium-container {

            display: flex;

            justify-content: center;

            align-items: flex-end;

            gap: 18px;

            margin-bottom: 45px;

            padding: 10px 0;

            flex-wrap: wrap;

        }



        .podium-card {

            flex: 1;

            min-width: 220px;

            max-width: 270px;

            text-decoration: none;

            border-radius: 24px;

            padding: 24px 18px 0 18px;

            display: flex;

            flex-direction: column;

            align-items: center;

            text-align: center;

            position: relative;

            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;

            backdrop-filter: blur(12px);

            overflow: hidden;

        }



        .podium-card:hover {

            transform: translateY(-8px) scale(1.02);

        }



        /* 1st Place - GOLD */

        .podium-card.rank-1 {

            order: 2;

            background: linear-gradient(180deg, rgba(251, 191, 36, 0.16), rgba(15, 23, 42, 0.95));

            border: 2px solid rgba(251, 191, 36, 0.5);

            box-shadow: 0 16px 45px rgba(251, 191, 36, 0.25);

            margin-bottom: 24px;

            animation: podiumFloatGold 3.8s ease-in-out infinite;

        }



        .podium-card.rank-1:hover {

            box-shadow: 0 20px 55px rgba(251, 191, 36, 0.4);

            border-color: #fbbf24;

            animation-play-state: paused;

        }



        /* 2nd Place - SILVER */

        .podium-card.rank-2 {

            order: 1;

            background: linear-gradient(180deg, rgba(203, 213, 225, 0.12), rgba(15, 23, 42, 0.95));

            border: 1.5px solid rgba(203, 213, 225, 0.35);

            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);

            animation: podiumFloatSilver 4.2s ease-in-out infinite 0.6s;

        }



        .podium-card.rank-2:hover {

            border-color: #cbd5e1;

            box-shadow: 0 16px 45px rgba(203, 213, 225, 0.25);

            animation-play-state: paused;

        }



        /* 3rd Place - BRONZE */

        .podium-card.rank-3 {

            order: 3;

            background: linear-gradient(180deg, rgba(217, 119, 6, 0.12), rgba(15, 23, 42, 0.95));

            border: 1.5px solid rgba(217, 119, 6, 0.35);

            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);

            animation: podiumFloatBronze 4.5s ease-in-out infinite 1.2s;

        }



        .podium-card.rank-3:hover {

            border-color: #d97706;

            box-shadow: 0 16px 45px rgba(217, 119, 6, 0.25);

            animation-play-state: paused;

        }



        @keyframes podiumFloatGold {

            0%, 100% { transform: translateY(0); }

            50% { transform: translateY(-12px); }

        }



        @keyframes podiumFloatSilver {

            0%, 100% { transform: translateY(0); }

            50% { transform: translateY(-9px); }

        }



        @keyframes podiumFloatBronze {

            0%, 100% { transform: translateY(0); }

            50% { transform: translateY(-10px); }

        }



        /* Crown & Badges */

        .podium-crown {

            font-size: 28px;

            margin-bottom: 2px;

            animation: float 2.5s ease-in-out infinite;

        }



        @keyframes float {

            0%, 100% { transform: translateY(0); }

            50% { transform: translateY(-5px); }

        }



        .podium-badge {

            padding: 4px 12px;

            border-radius: 20px;

            font-weight: 800;

            font-size: 13px;

            letter-spacing: 0.5px;

            margin-bottom: 12px;

            display: inline-flex;

            align-items: center;

            gap: 4px;

        }



        .rank-1-badge { background: #fbbf24; color: #000; box-shadow: 0 4px 14px rgba(251, 191, 36, 0.4); }

        .rank-2-badge { background: #cbd5e1; color: #0f172a; box-shadow: 0 4px 14px rgba(203, 213, 225, 0.3); }

        .rank-3-badge { background: #d97706; color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3); }



        .podium-avatar-wrapper {

            width: 85px;

            height: 85px;

            border-radius: 20px;

            overflow: hidden;

            margin-bottom: 12px;

            border: 2px solid rgba(255, 255, 255, 0.2);

            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

        }



        .rank-1 .podium-avatar-wrapper {

            width: 100px;

            height: 100px;

            border-color: #fbbf24;

        }



        .podium-avatar-wrapper img {

            width: 100%;

            height: 100%;

            object-fit: cover;

        }



        .podium-info {

            width: 100%;

            margin-bottom: 16px;

        }



        .podium-title {

            color: #fff;

            font-weight: 700;

            font-size: 15px;

            margin-bottom: 6px;

            overflow: hidden;

            text-overflow: ellipsis;

            white-space: nowrap;

        }



        .podium-metrics {

            display: flex;

            flex-direction: column;

            gap: 4px;

            align-items: center;

        }



        .podium-rating {

            color: #fbbf24;

            font-size: 12px;

            font-weight: 600;

        }



        .podium-playing {

            color: #10b981;

            font-size: 13px;

            font-weight: 700;

        }



        /* Pedestal Bases */

        .podium-pedestal {

            width: 100%;

            font-weight: 900;

            color: rgba(255, 255, 255, 0.85);

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 22px;

            border-top-left-radius: 12px;

            border-top-right-radius: 12px;

        }



        .rank-1-pedestal { height: 60px; background: linear-gradient(180deg, #f59e0b, #b45309); font-size: 26px; }

        .rank-2-pedestal { height: 45px; background: linear-gradient(180deg, #94a3b8, #475569); }

        .rank-3-pedestal { height: 35px; background: linear-gradient(180deg, #d97706, #78350f); }



        /* Trending Table List (Ranks #4 - #100) */

        .trending-list-container {

            background: rgba(255, 255, 255, 0.02);

            border: 1px solid rgba(255, 255, 255, 0.06);

            border-radius: 20px;

            overflow: hidden;

            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

            backdrop-filter: blur(10px);

        }



        .trending-list-header {

            display: grid;

            grid-template-columns: 80px 1fr 120px 160px;

            padding: 14px 20px;

            background: rgba(0, 0, 0, 0.25);

            border-bottom: 1px solid rgba(255, 255, 255, 0.08);

            color: var(--text-muted, #94a3b8);

            font-size: 12px;

            font-weight: 700;

            text-transform: uppercase;

            letter-spacing: 0.5px;

        }



        .trending-list-item {

            display: grid;

            grid-template-columns: 80px 1fr 120px 160px;

            align-items: center;

            padding: 12px 20px;

            text-decoration: none;

            border-bottom: 1px solid rgba(255, 255, 255, 0.03);

            transition: background 0.2s ease, transform 0.2s ease;

        }



        .trending-list-item:last-child {

            border-bottom: none;

        }



        .trending-list-item:hover {

            background: rgba(255, 255, 255, 0.05);

        }



        .rank-number {

            color: var(--text-muted, #94a3b8);

            font-weight: 800;

            font-size: 15px;

        }



        .game-media {

            display: flex;

            align-items: center;

            gap: 14px;

            overflow: hidden;

        }



        .game-media img {

            width: 44px;

            height: 44px;

            border-radius: 12px;

            object-fit: cover;

            border: 1px solid rgba(255, 255, 255, 0.1);

        }



        .game-name {

            color: #fff;

            font-weight: 700;

            font-size: 14px;

            white-space: nowrap;

            overflow: hidden;

            text-overflow: ellipsis;

        }



        .game-rating-cell {

            color: #fbbf24;

            font-weight: 600;

            font-size: 13px;

        }



        .playing-count {

            color: #10b981;

            font-weight: 700;

            font-size: 14px;

            display: flex;

            align-items: center;

            gap: 6px;

            justify-content: flex-end;

        }



        .pulse-dot {

            width: 8px;

            height: 8px;

            background-color: #10b981;

            border-radius: 50%;

            display: inline-block;

            box-shadow: 0 0 8px #10b981;

        }



        @media (max-width: 640px) {

            .podium-container {

                flex-direction: row !important;

                justify-content: center !important;

                align-items: flex-end !important;

                gap: 6px !important;

                flex-wrap: nowrap !important;

            }

            .podium-card {

                flex: 1 !important;

                min-width: 0 !important;

                max-width: 33% !important;

                padding: 10px 4px 0 4px !important;

                border-radius: 14px !important;

            }

            .podium-card.rank-1 {

                order: 2 !important;

                margin-bottom: 8px !important;

            }

            .podium-card.rank-2 {

                order: 1 !important;

                margin-bottom: 0 !important;

            }

            .podium-card.rank-3 {

                order: 3 !important;

                margin-bottom: 0 !important;

            }

            .podium-avatar-wrapper {

                width: 44px !important;

                height: 44px !important;

                border-radius: 10px !important;

                margin-bottom: 6px !important;

            }

            .rank-1 .podium-avatar-wrapper {

                width: 52px !important;

                height: 52px !important;

            }

            .podium-crown {

                font-size: 16px !important;

                margin-bottom: 0 !important;

            }

            .podium-badge {

                font-size: 9px !important;

                padding: 2px 5px !important;

                margin-bottom: 4px !important;

            }

            .podium-title {

                font-size: 10px !important;

                margin-bottom: 4px !important;

            }

            .podium-rating, .podium-playing {

                font-size: 9px !important;

            }

            .rank-1-pedestal { height: 36px !important; font-size: 15px !important; }

            .rank-2-pedestal { height: 26px !important; font-size: 13px !important; }

            .rank-3-pedestal { height: 20px !important; font-size: 11px !important; }

            .trending-list-header, .trending-list-item {

                grid-template-columns: 45px 1fr !important;

                padding: 10px 12px !important;

                min-width: 0 !important;

            }

            .trending-col-players, .playing-count, .game-rating-cell, .trending-list-header span:nth-child(3), .trending-list-header span:nth-child(4) {

                display: none !important;

            }

            .recommended-grid {

                display: flex !important;

                overflow-x: auto !important;

                gap: 10px !important;

                padding-bottom: 8px !important;

                scroll-snap-type: x mandatory;

                -webkit-overflow-scrolling: touch;

            }

            .recommended-grid .for-you-card {

                min-width: 150px !important;

                max-width: 150px !important;

                flex-shrink: 0 !important;

                scroll-snap-align: start;

            }

        }

            .slider-container { margin-left: -70px; margin-right: -70px; }
        .slide img { height: clamp(300px, 38vw, 500px); }
        .slider-btn { background: transparent; border: 0; box-shadow: none; font-size: 30px; color: rgba(255,255,255,.8); }
        .slider-btn:hover { background: transparent; color: #fff; transform: translateY(-50%) scale(1.12); }
        @media(max-width:768px){.slider-container{margin-left:-20px;margin-right:-20px}.slide img{height:300px}}
    

        .switcher-bar { background: rgba(255, 255, 255, .045); border-color: rgba(255,255,255,.1); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
        .switch-btn::before { background: rgba(255,255,255,.1); }
        .switch-btn.active { background: transparent; box-shadow: none; color: #fff; }
        select { color-scheme: dark; }
        .game-section { display: none; animation: sectionReveal .24s ease both; }
        .game-section.section-visible { display: block; }
        @keyframes sectionReveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
        @media(max-width:600px){ .switcher-bar{overflow-x:auto;gap:4px;padding:5px}.switch-btn{flex:0 0 auto;padding:11px 14px;font-size:13px} }

/* Styles extracted from games.php, block 2. */
/* ====== SWITCHER BAR ====== */
        .switcher-bar {
            position: sticky;
            top: 12px;
            z-index: 200;
            display: flex;
            gap: 6px;
            background: rgba(255, 255, 255, 0.045);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            padding: 6px;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.09);
            box-shadow: 0 8px 24px rgba(0,0,0,0.28);
            width: 100%;
            margin-bottom: 28px;
        }

        .switch-btn {
            position: relative;
            background: transparent;
            border: none;
            color: rgba(148, 163, 184, 0.85);
            padding: 13px 20px;
            border-radius: 13px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease;
            letter-spacing: 0.02em;
            overflow: hidden;
            z-index: 1;
            flex: 1;
            white-space: nowrap;
        }

        .switch-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 13px;
            background: rgba(255,255,255,.1);
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
            z-index: -1;
        }

        .switch-btn.active { color: #fff; box-shadow: none; }
        .switch-btn.active::before { opacity: 1; transform: scale(1); }
        .switch-btn:hover:not(.active) { color: #e2e8f0; background: rgba(255,255,255,0.05); }

        /* Styled select arrows */
        select.filter-control {
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            padding-right: 36px !important;
        }

/* Styles extracted from games.php, block 3. */
.hub-action-pill:hover {
            background: var(--card-hover);
            border-color: rgba(64, 162, 250, 0.5);
            color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(11, 68, 163, 0.2);
        }

        .request-panel-banner:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            box-shadow: 0 6px 22px rgba(64, 162, 250, 0.35);
            background: linear-gradient(135deg, rgba(11, 68, 163, 0.35), rgba(64, 162, 250, 0.3));
        }
        @media (max-width: 768px) {
            .hub-actions-toolbar {
                grid-template-columns: 1fr !important;
            }
        }

.page-loading-shell { padding: 32px; color: var(--text-secondary, #aaa); text-align: center; }
