/*
Theme Name: Casino Slots Theme
Theme URI: https://1spin4win.top
Author: Your Name
Author URI: https://1spin4win.top
Description: Modern casino slots theme
Version: 1.0.0
License: GPL v2 or later
Text Domain: casino-slots
*/

/* === ОСНОВНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    --bg-primary: #0c1137;
    --bg-secondary: #1a203f;
    --bg-card: #222844;
    --accent-primary: #ff8a00;
    --accent-secondary: #ffc107;
    --accent-teal: #17c6b9;
    --text-primary: #ffffff;
    --text-secondary: #b0b4cf;
    --border-color: #2d3453;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* === ОБЩИЕ == */

/* Кнопки */
.btn {
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #ff9a00;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.btn-play {
    background: linear-gradient(135deg, var(--accent-primary), #ff6b00);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.4);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 138, 0, 0.5);
    background: linear-gradient(135deg, #ff9a00, #ff8a00);
}

/* === HEADER === */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-primary);
    border-radius: 2px;
}

/* === ГЛАВНАЯ СТРАНИЦА (index.php) === */

/* Шапка страницы */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Панель фильтров */
.controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.filter-sort-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.search-wrapper {
    position: relative;
    min-width: 250px;
    flex: 1;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

.filter-input {
    padding: 12px 20px 12px 45px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(23, 198, 185, 0.1);
}

.filter-select {
    padding: 12px 35px 12px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.95rem;
    min-width: 180px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b0b4cf' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.filter-select:focus {
    border-color: var(--accent-teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 198, 185, 0.1);
}

.stats {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stats span {
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Сетка карточек игр */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* КАРТОЧКА ИГРЫ - ОСНОВНЫЕ ИСПРАВЛЕНИЯ */
.game-card {
    background: linear-gradient(145deg, var(--bg-card), #1d223a);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

/* ИЗОБРАЖЕНИЕ НА ВСЮ ШИРИНУ */
.card-image {
    width: 100%;
    height: 240px; /* Увеличиваем высоту */
    object-fit: cover; /* Заполняем весь блок */
    display: block;
    background: linear-gradient(135deg, #0c1137 0%, #1a203f 100%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--border-color);
}

.game-card:hover .card-image {
    transform: scale(1.05);
}

/* Заглушка для отсутствующей картинки */
.card-image.placeholder {
    background: linear-gradient(135deg, var(--bg-secondary), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3.5rem;
    opacity: 0.7;
}

/* Контент карточки */
.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Заголовок и информация */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.game-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-title a:hover {
    color: var(--accent-primary);
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-provider,
.release-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-provider i,
.release-date i {
    color: var(--accent-teal);
}

/* Краткое описание */
.game-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Статистика игры */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
    padding: 16px;
    background: rgba(34, 40, 68, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 8px 0;
}

.stat {
    text-align: center;
    padding: 8px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-label i {
    margin-right: 4px;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.rtp {
    color: var(--accent-secondary);
}

.volatility {
    color: var(--accent-teal);
    font-size: 1.2rem;
}

.volatility.high,
.volatility-high { 
    color: #ff6b6b; 
    font-weight: 800;
}

.volatility.medium,
.volatility-medium { 
    color: var(--accent-teal); 
    font-weight: 800;
}

.volatility.low,
.volatility-low { 
    color: #4cd964; 
    font-weight: 800;
}

/* Действия карточки */
.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-demo {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-demo:hover {
    background-color: #ff9a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.max-win-badge {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: var(--bg-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* === СТРАНИЦА ОТДЕЛЬНОГО СЛОТА (single.php) === */

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0;
    background: linear-gradient(to right, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.game-description {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.full-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.full-description h2 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.full-description h3 {
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.full-description p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.full-description ul, 
.full-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.full-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Статистика в hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
}

.stat-box {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-box:hover {
    border-color: var(--accent-teal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-rtp {
    color: var(--accent-secondary);
}

.stat-volatility {
    color: var(--accent-teal);
}

/* Кнопки в hero */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

/* Большая картинка слота */
.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* Детали игры */
.details-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-primary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.detail-item {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.detail-item:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.detail-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.detail-value.highlight {
    color: var(--accent-primary);
}

/* === БЛОК ПОХОЖИХ СЛОТОВ (новые стили) === */
.related-slots-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin: 40px auto 60px;
    box-shadow: var(--shadow-md);
    max-width: 1200px;
}

.related-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-slot-card {
    background: linear-gradient(145deg, var(--bg-card), #1d223a);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.related-slot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.related-slot-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #0c1137 0%, #1a203f 100%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--border-color);
}

.related-slot-card:hover .related-slot-image {
    transform: scale(1.05);
}

.related-slot-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-slot-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.related-slot-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-slot-title a:hover {
    color: var(--accent-primary);
}

.related-slot-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
    background: rgba(34, 40, 68, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 8px 0;
}

.related-stat {
    text-align: center;
    padding: 6px;
}

.related-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.related-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.related-slot-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-view-slot {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
}

.btn-view-slot:hover {
    background-color: #ff9a00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.related-max-win {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: var(--bg-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* === ФУТЕР === */
.main-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.page-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-footer p {
    margin-bottom: 10px;
}

.page-footer i {
    color: var(--accent-primary);
    margin-right: 5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.copyright {
    font-size: 0.9rem;
}

.brand, .brand-highlight {
    color: var(--accent-secondary);
    font-weight: bold;
}

/* === ДОПОЛНИТЕЛЬНЫЕ КОМПОНЕНТЫ === */

/* Индикатор загрузки */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 17, 55, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщение "нет результатов" */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--border-color);
    opacity: 0.7;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-results p {
    max-width: 400px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .hero-section {
        gap: 40px;
    }
    
    .hero-image img {
        height: 450px;
    }
    
    .related-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .related-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .controls-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .filter-sort-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .search-wrapper {
        min-width: 100%;
    }
    
    .filter-select {
        width: 100%;
        min-width: unset;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
        gap: 12px;
    }
    
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .details-section {
        padding: 25px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-item {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-slots-section {
        padding: 25px;
        margin: 20px;
    }
    
    .related-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .related-slot-image {
        height: 160px;
    }
    
    .footer-links {
        gap: 15px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .card-image {
        height: 180px;
    }
    
    .game-title {
        font-size: 1.3rem;
    }
    
    .game-excerpt {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .btn-demo {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .max-win-badge {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .btn-play {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .related-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .related-slot-image {
        height: 160px;
    }
}

/* Особые случаи для очень маленьких экранов */
@media (max-width: 360px) {
    .games-grid {
        gap: 15px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-demo,
    .max-win-badge {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .related-slot-stats {
        grid-template-columns: 1fr;
    }
    
    .related-slot-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-view-slot,
    .related-max-win {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Поддержка темной темы браузера */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0f2e;
        --bg-secondary: #161b38;
        --bg-card: #1e243f;
    }
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease forwards;
}

.game-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.game-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Анимация для похожих слотов */
.related-slot-card {
    animation: fadeInUp 0.5s ease forwards;
}

.related-slot-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.related-slot-card:nth-child(even) {
    animation-delay: 0.2s;
}