/* ===== БАЗОВЫЕ СТИЛИ ===== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== НАВИГАЦИЯ ===== */

.navbar {
    background: linear-gradient(135deg, #ebe4d2 0%, #d9a216 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
	display: flex;
	flex-direction: row;
	color: #3c291c;
    text-decoration: none;
    transition: opacity 0.3s ease;
	align-items: center;
	cursor: pointer;
}

.logo label {
	display: flex;
	flex-direction: column;
	margin-left: 10px;
	font-size: 2.5rem;
    font-weight: bold;
    color: #3c291c;
    text-decoration: none;
    transition: opacity 0.3s ease;
	align-items: end;
	cursor: pointer;
}

.logo label i {
	font-size: 13px;
    margin-top: -10px;
	font-weight: normal;
	color: #3c291c;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {height: 40px}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */

.main-content {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #495057;
    margin: 0 0 1rem 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
}

/* ===== КНОПКИ ===== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* ===== КАТАЛОГ ===== */

.catalog-container {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 2rem;
    align-items: start;
}

.catalog-content {
    min-height: 500px;
}

/* ===== СТИЛИ ДЛЯ АККОРДЕОНА ФИЛЬТРОВ ===== */

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.accordion-header h4 {
    flex: 1;
    margin: 0;
    transition: color 0.3s ease;
}

.accordion-header:hover h4 {
    color: #667eea;
}

.show-all-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-all-btn:hover {
    background: #f1f3ff;
}

.show-all-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.show-all-btn.loading i {
    animation: spin 1s linear infinite;
}

.show-all-btn i {
    transition: transform 0.3s ease;
}

.show-all-btn.expanded i {
    transform: rotate(180deg);
}

.tag-cloud {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    opacity: 1;
}

.tag-cloud.collapsed {
    max-height: 0px;
}

.tag-cloud.expanded {
    /* max-height: 1000px; */
}

.tag-cloud.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* Анимация лоадера */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность для аккордеона */
@media (max-width: 768px) {
    .tag-cloud.collapsed {
        max-height: 100px;
    }
    
    .accordion-header {
        padding: 0.75rem 0;
    }
}

/* ===== СТИЛИ ДЛЯ ПОИСКА ТЕГОВ ===== */

.tag-search-container {
    position: relative;
    margin: 0.75rem 0;
    display: none; /* Изначально скрыто, показывается при разворачивании аккордеона */
}

.tag-search {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.3s ease;
}

.tag-search:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
}

.tag-search-container.loading .search-icon {
    animation: spin 1s linear infinite;
}

.tag-search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    cursor: pointer;
    display: none;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-size: 0.8rem;
    background: #e9ecef;
    border-radius: 50%;
}

.tag-search-clear:hover {
    color: #495057;
    background: #dee2e6;
}

.tag-search:not(:placeholder-shown) + .search-icon + .tag-search-clear {
    display: block;
}

/* Стили для тегов, не соответствующих поисковому запросу */
.filter-tag.hidden-by-search {
    display: none;
}

/* Подсветка найденного текста */
.filter-tag .highlight {
    background-color: rgba(102, 126, 234, 0.2);
    font-weight: 600;
}

/* Сообщение о пустых результатах поиска */
.no-tags-found {
    padding: 1rem;
    color: #6c757d;
    text-align: center;
    font-style: italic;
    display: none;
}

/* ===== ФИЛЬТРЫ - ДЕСКТОПНАЯ ВЕРСИЯ ===== */

.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 3rem 1.5rem 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* position: sticky; */
    top: 100px;
    /* max-height: calc(100vh - 120px); */
    /* overflow-y: auto; */
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.filters-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.filters-header h3 label {
	display: block;
	font-size: 12px;
}

.close-filters {
    display: none;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2sease;
    user-select: none;
}

.filter-tag:hover {
    border-color: #667eea;
    background: #f1f3ff;
}

.filter-tag.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.selected-filters-count {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== РЕЙТИНГ СЛАЙДЕР ===== */

.rating-filter {
    margin: 1rem 0;
}

#rating-slider {
    margin: 1rem 0;
}

.rating-values {
    text-align: center;
    font-weight: 600;
    color: #495057;
    margin-top: 0.5rem;
}

/* ===== ЧЕКБОКСЫ ===== */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #667eea;
}

.checkbox-group label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* ===== СЕТКА ИГР ===== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-card {
	display: block;
	text-decoration: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-content {
    padding: 1.5rem;
}

.game-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 1.7rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.rating-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.rating-good {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.rating-average {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.rating-poor {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.catalog-content .game-title {
    color: #495057;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.game-title:hover {
    color: #667eea;
}

.game-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.game-meta {
    margin-bottom: 1rem;
}

.game-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.genre-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.genre-tag:hover {
    background: #667eea;
    color: white;
}

/* ===== ПАГИНАЦИЯ ===== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    border-color: #667eea;
    background: #f1f3ff;
    color: #667eea;
}

.page-link.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-dots {
    padding: 0.75rem 0.5rem;
    color: #6c757d;
}

/* ===== ЛОАДЕР ===== */

.loader {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== СООБЩЕНИЯ ===== */

.message {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ===== МОБИЛЬНЫЕ ФИЛЬТРЫ ===== */

.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.mobile-filter-toggle:active {
    transform: translateY(0);
}

.mobile-filter-toggle i {
    margin-right: 8px;
    font-size: 18px;
}

.mobile-filter-toggle .selected-filters-count {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.mobile-filter-toggle.has-filters {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6); }
    100% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); }
}

/* Оверлей для закрытия */
.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filters-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Контент фильтров */
.filters-content {
    flex: 1;
    /* overflow-y: auto; */
}

/* Фиксированная нижняя панель с кнопками */
.filters-footer {
    display: none;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px 20px 70px;
    border-top: 1px solid #e9ecef;
    gap: 12px;
    z-index: 1003;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.filters-footer .btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-footer .btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.filters-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.filters-footer .btn:active {
    transform: scale(0.98);
}

/* ===== АДАПТИВНЫЙ ДИЗАЙН ===== */

@media (max-width: 1280px) {
    /* Показываем мобильные элементы */
    .mobile-filter-toggle {
        display: flex;
    }

    .filters-overlay {
        display: block;
    }

    /* Мобильная версия sidebar */
    .filters-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: right 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        box-shadow: none;
        max-height: none;
        padding: 0;
    }

    .filters-sidebar.show {
        right: 0;
    }

    /* Фиксированная шапка фильтров */
    .filters-header {
        position: sticky;
        top: 0;
        background: white;
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1002;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .filters-header h3 {
        font-size: 20px;
    }

    .close-filters {
        display: flex;
        background: #f8f9fa;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .close-filters:hover {
        background: #e9ecef;
        color: #495057;
    }

    /* Контент фильтров */
    .filters-content {
        padding: 30px 20px 80px;
    }

    /* Показываем нижнюю панель */
    .filters-footer {
        display: flex;
    }

    /* Скрываем десктопные кнопки */
    .filter-actions {
        display: none;
    }

    /* Блокируем скролл body когда открыты фильтры */
    body.filters-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Каталог */
    .catalog-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Игры */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
        gap: 1.5rem;
    }

    .game-card {
        margin-bottom: 0;
    }

    /* Навигация */
    .nav-links {
        gap: 1rem;
    }

    /* Контейнер */
    .container {
        padding: 0 0.75rem;
    }

    .main-content {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mobile-filter-toggle {
        bottom: 15px;
        right: 15px;
        padding: 14px 20px;
        min-width: 120px;
        font-size: 15px;
    }

    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

/* ===== ДЕСКТОПНАЯ ВЕРСИЯ ===== */
@media (min-width: 1281px) {
    .mobile-filter-toggle,
    .filters-overlay,
    .filters-footer {
        display: none !important;
    }

    .filters-sidebar {
        /* position: sticky; */
        width: auto;
        height: auto;
        right: auto;
        transform: none;
        display: block;
    }

    .filters-header {
        position: static;
        box-shadow: none;
        padding: 0;
        padding-bottom: 1rem;
    }

    .close-filters {
        display: none;
    }

    .filters-content {
        padding: 0;
        padding-bottom: 0;
    }

    .filter-actions {
        display: flex;
    }
}

/* ===== УЛУЧШЕННАЯ СТРАНИЦА ИГРЫ ===== */

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #adb5bd;
    font-weight: 500;
}

.breadcrumbs .current {
    color: #495057;
    font-weight: 500;
}

/* Hero секция игры */
.game-hero {
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.game-poster-container {
    position: relative;
}

.game-poster {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.game-poster:hover {
    transform: translateY(-5px);
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.poster-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    border-radius: 15px;
}

.poster-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Рейтинг на постере */
.game-rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 70px;
}

.rating-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.rating-score {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.rating-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.game-rating-badge.rating-excellent .rating-score {
    color: #28a745;
}

.game-rating-badge.rating-good .rating-score {
    color: #17a2b8;
}

.game-rating-badge.rating-average .rating-score {
    color: #ffc107;
}

.game-rating-badge.rating-poor .rating-score {
    color: #6c757d;
}

/* Must Play бейдж */
.must-play-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.must-play-badge i {
    font-size: 0.9rem;
}

/* Основная информация */
.game-main-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-genre {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tag-genre:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.tag-more {
    background: #e9ecef;
    color: #6c757d;
    cursor: default;
}

/* Быстрая информация */
.game-quick-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.quick-info-item i {
    width: 20px;
    color: #667eea;
    font-size: 1rem;
}

.quick-info-item .label {
    font-weight: 500;
    color: #6c757d;
    min-width: 120px;
}

.quick-info-item .value {
    color: #495057;
    font-weight: 500;
}

.quick-info-item .link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-info-item .link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.value-more {
    color: #6c757d;
    font-style: italic;
    margin-left: 0.5rem;
}

/* Описание */
.game-description {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}

.game-description p {
    margin: 0;
    line-height: 1.6;
    color: #495057;
    font-size: 1.05rem;
}

/* Кнопки действий */
.game-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.game-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.game-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.game-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.game-actions .btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.game-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
}

/* Заголовки секций */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Детальная информация */
.game-details-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.details-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
    gap: 1.5rem;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.detail-card:hover {
    border-color: #667eea;
    background: #f1f3ff;
    transform: translateY(-2px);
}

.detail-card-wide {
    grid-column: 1 / -1;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
}

.detail-value a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value a:hover {
    color: #eee;
    text-decoration: underline;
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-pill {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.genre-pill:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Особенности игры */
.game-features-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card-wide {
    grid-column: 1 / -1;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.feature-header i {
    color: #667eea;
    font-size: 1.2rem;
}

.feature-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.feature-content {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Специальные особенности */
.special-features-section {
    margin: 3rem 0;
}

.special-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.special-card {
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.special-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.unique-card {
    background: linear-gradient(135deg, #e8f4fd 0%, #f1f8ff 100%);
    border: 2px solid #b3d9ff;
}

.unique-card::before {
    background: linear-gradient(90deg, #17a2b8 0%, #007bff 100%);
}

.unique-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(23, 162, 184, 0.2);
}

.funny-card {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 2px solid #ffe082;
}

.funny-card::before {
    background: linear-gradient(90deg, #ffc107 0%, #ff8f00 100%);
}

.funny-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2);
}

.special-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.special-header i {
    font-size: 1.5rem;
}

.unique-card .special-header i {
    color: #17a2b8;
}

.funny-card .special-header i {
    color: #ffc107;
}

.special-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.special-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

/* Идеи для улучшения */
.improvement-section {
    margin: 3rem 0;
}

.improvement-card {
    /* background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid #c3e6cb;
    border-radius: 15px; */
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.improvement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.improvement-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

/* Похожие игры */
.similar-games-section {
    margin: 3rem 0;
}

.similar-games-container {
    /* background: white; */
    border-radius: 15px;
    /* padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.notification-error i {
    color: #dc3545;
}

/* ===== АДАПТИВНОСТЬ ДЛЯ СТРАНИЦЫ ИГРЫ ===== */

@media (max-width: 1280px) {
	.logo {
		flex-direction: column;
		font-size: 1rem;
	}	
	.logo label {
		margin-left: 0px;
		font-size: 24px;
	}
	.logo label i {
		margin-left: 0px;
	}
}

@media (max-width: 1024px) {
    .game-hero {
        grid-template-columns: 100%;
        gap: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .special-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .game-hero {
        grid-template-columns: 100%;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .game-poster-container {
        text-align: center;
    }
    
    .game-poster {
        /* max-width: 250px; */
        margin: 0 auto;
    }
    
    .game-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .game-actions .btn {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .game-details-section,
    .game-features-section,
    .similar-games-container {
        padding: 1.5rem;
    }
    
    .special-card,
    .improvement-card {
        padding: 1.5rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-hero {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .game-title {
        font-size: 1.75rem;
    }
    
    .game-details-section,
    .game-features-section,
    .similar-games-container {
        padding: 1rem;
    }
    
    .special-card,
    .improvement-card {
        padding: 1rem;
    }
    
    .details-grid,
    .features-grid {
        gap: 1rem;
    }
    
    .detail-card,
    .feature-card {
        padding: 1rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Плавные переходы */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Фокус для доступности */
.filter-tag:focus,
.btn:focus,
.page-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Скроллбар */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Эффекты наведения */
.game-card,
.filter-tag,
.btn,
.page-link {
    transform: translateZ(0); /* Включает аппаратное ускорение */
}

/* Утилиты */
.d-md-none {
    display: block;
}

@media (min-width: 769px) {
    .d-md-none {
        display: none;
    }
}

/* Стили для тегов особенностей на странице игры */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.65rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Специальные стили для разных типов особенностей */
.unique-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.unique-tag:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.funny-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f093fb;
}

.funny-tag:hover {
    background: linear-gradient(135deg, #ee82e9 0%, #f3455a 100%);
}

/* Стили для секции идей улучшения */
.improvement-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.improvement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    /* background: #f8f9fa; */
	background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-radius: 0.5rem;
    border-left: 3px solid #28a745;
}

.improvement-item i {
    color: #28a745;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .feature-tags {
        gap: 0.375rem;
    }
    
    .feature-tag {
        font-size: 0.8125rem;
        padding: 0.1875rem 0.625rem;
    }
    
    .improvement-item {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
}

/* Анимация появления тегов */
.feature-tag {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для секций особенностей */
.features-grid .feature-content {
    padding-top: 0.5rem;
}

.special-features-grid .special-content {
    padding-top: 0.5rem;
}