:root {
    --bg: #ffffff;
    --card: #ffffff;
    --text: #111111;
    --muted: #666666;
    --border: #e5e5e5;
    --hover: #f5f5f5;
}
[data-theme="dark"] {
    --bg: #0f0f0f;
    --card: #171717;
    --text: #ffffff;
    --muted: #aaaaaa;
    --border: #2a2a2a;
    --hover: #1f1f1f;
}
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    transition:.3s;
}

header {
    padding: 3rem 1rem 2rem;
    text-align:center;
    position:relative;
}

h1 { font-size:2.8rem; font-weight:800; }
.subtitle { color:var(--muted); margin-top: 1rem; }

.theme-toggle {
    position:absolute;
    right:20px;
    top:20px;
    border:1px solid var(--border);
    background:var(--card);
    padding:8px 14px;
    border-radius:50px;
    cursor:pointer;
}

.search-box { max-width:600px; margin:2rem auto; }

#search {
    width:100%;
    padding:14px 20px;
    border-radius:50px;
    border:1px solid var(--border);
    background:var(--card);
    color:var(--text);
    font-size:16px;
}

.container { max-width:1200px; margin:auto; padding:0 1rem 4rem; }
.counter {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--muted);
}

.games-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

.game-card {
    background:var(--card);
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    cursor:pointer;
    transition:.25s;
}

.game-card:hover {
    background:var(--hover);
    transform:translateY(-4px);
}

.thumb {
    width:100%;
    height:180px;
    object-fit:cover;
}
video.thumb {
    pointer-events: none;   /* клик проходит сквозь видео к карточке */
}

.info { padding:16px; }

.title { font-weight:600; margin-bottom:10px; }

.play-btn {
    display:inline-block;
    padding:8px 16px;
    border-radius:50px;
    background:var(--text);
    color:var(--bg);
    text-decoration:none;
    font-weight:600;
    font-size:14px;
}

/* =========================
   FOOTER — Minimal B/W
========================= */

footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 60px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.footer-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.footer-country {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 14px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    transition: 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* Минималистичная анимация underline */

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Mobile */

/* =========================
   MOBILE FOOTER
========================= */

@media (max-width: 768px) {

    footer {
        padding: 50px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
        max-width: 100%;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-desc,
    .footer-country,
    .footer-copy {
        font-size: 14px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
    }

    .footer-links a {
        padding: 12px 0;
        font-size: 15px;
    }

}
