.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.page-games.no-filters .page-layout,
.page-premiers.no-filters .page-layout {
    grid-template-columns: 1fr;
}

.event-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 120px;
    height: 120px;
    max-height: 120px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--event-text, #f4f6fb);
    background: var(--event-bg, #161b24);
    border: 1px solid var(--event-border, #2a3343);
    box-shadow: var(--shadow-2);
}

.event-hero > div {
    min-width: 0;
    width: 100%;
}

.events-carousel .event-hero {
    margin-bottom: 0;
}

.events-carousel {
    margin-bottom: 20px;
    position: relative;
}

.events-carousel .splide__pagination {
    bottom: 8px;
    gap: 8px;
}

.events-carousel .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
}

.events-carousel .splide__pagination__page.is-active {
    background: var(--brand);
    transform: scale(1.2);
}

.event-hero-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.8;
}

.event-hero-title {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-hero-date {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.content-header h1 {
    font-family: "e-UkraineHead", "e-Ukraine", sans-serif;
    font-size: 30px;
    margin: 0;
}

.company-hero-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.company-hero-avatar {
    width: 64px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface-2);
    flex: 0 0 auto;
}

.content-subbar {
    margin: -6px 0 22px;
}

.sort-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 12px;
}

.sort-label {
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
}

.sort-sep {
    color: rgba(255, 255, 255, 0.2);
}

.sort-link {
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sort-link:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.15);
}

.sort-link.active {
    opacity: 1;
    color: var(--brand);
    border-color: rgba(252, 189, 0, 0.45);
    background: rgba(252, 189, 0, 0.08);
}

.sidebar {
    background: rgba(22, 27, 36, 0.95);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: var(--shadow-2);
}

.sidebar::-webkit-scrollbar,
.checkbox-group.scrollable::-webkit-scrollbar {
    width: 8px;
}
.sidebar::-webkit-scrollbar-track,
.checkbox-group.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}
.sidebar::-webkit-scrollbar-thumb,
.checkbox-group.scrollable::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.sidebar::-webkit-scrollbar-thumb:hover,
.checkbox-group.scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(252, 189, 0, 0.45);
    background-clip: padding-box;
}

.sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mobile-only {
    display: none;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
}

.sidebar-search {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    color: var(--text);
    outline: none;
}

.sidebar-search:focus {
    border-color: rgba(252, 189, 0, 0.6);
}

.filter-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-title {
    margin: 0 0 12px 0;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--brand);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group.scrollable {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.custom-checkbox:hover {
    color: var(--text);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
    background: var(--brand);
    border-color: var(--brand);
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #111;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.btn-reset {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    border-radius: 12px;
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    color: var(--text);
    border-color: rgba(252, 189, 0, 0.6);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    background: rgba(22, 27, 36, 0.9);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 180px;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 189, 0, 0.5);
}

.game-img {
    width: 120px;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.info-col {
    padding: 14px 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    height: 100%;
}

.game-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-date {
    font-size: 12px;
    color: var(--muted);
}

.platforms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.platform-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.game-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 16, 0.75);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
}

.list-btn:hover {
    border-color: rgba(252, 189, 0, 0.5);
}

.list-btn.active {
    border-color: rgba(252, 189, 0, 0.7);
    background: rgba(252, 189, 0, 0.1);
}

.pagination-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--muted);
}

.page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(.active):not(.disabled) {
    border-color: rgba(252, 189, 0, 0.6);
    color: var(--brand);
}

.page-btn.active {
    background: var(--brand);
    color: #111;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.ru-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
}

.ru-overlay::after {
    content: "💩";
    font-size: 3rem;
}

@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .mobile-filter-toggle {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        z-index: 1000;
        transition: left 0.2s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-header {
        display: flex;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 700px) {
    .events-carousel {
        margin-bottom: 6px;
    }

    .event-hero {
        min-height: 104px;
        height: 104px;
        max-height: 104px;
        padding: 14px;
        border-radius: 14px;
        align-items: center;
        flex-direction: row;
    }

    .event-hero-title {
        font-size: 22px;
        margin-top: 0;
    }

    .event-hero-date {
        font-size: 13px;
    }

    .events-carousel .splide__pagination {
        bottom: 6px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        grid-template-columns: 120px 1fr;
    }

    .game-img {
        width: 120px;
    }

    .content-header h1 {
        font-size: 24px;
    }

    .company-hero-avatar {
        width: 56px;
    }
}
