* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Mobile Styles */
header {
    position: fixed;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    transition: background 0.3s;
}

header.scrolled {
    background: rgba(10, 10, 10, 1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff; 
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.logo-img {
    height: 40px; 
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
    position: relative;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 10px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00d4ff;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #00d4ff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: #00d4ff;
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Добавляем отступ сверху для фиксированного header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s forwards;
    padding: 0 20px;
    max-width: 90%;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.cta-button {
    padding: 15px 40px;
    background: #00d4ff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    color: #000;
    font-weight: bold;
}

.cta-button:hover {
    transform: scale(1.05);
    background: #00a3cc;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Trending Section */
.trending {
    padding: 80px 0;
}

.trending h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #00d4ff;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    padding: 0 15px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: calc(0.2s * var(--index));
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.5);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 22px;
    color: #00d4ff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.game-info p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 10px;
}

.game-info .rating {
    display: block;
    margin-top: 10px;
    color: #ffaa00;
    font-size: 16px;
}

/* Quick News */
.quick-news {
    padding: 80px 0;
    background: #141414;
}

.quick-news h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #00d4ff;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    padding: 0 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: calc(0.2s * var(--index));
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.news-card h3 {
    font-size: 20px;
    color: #00d4ff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-card p {
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 15px;
}

.date {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    display: block;
}

.more-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
    font-weight: bold;
}

.more-link:hover {
    color: #ff007a;
    transform: translateX(5px);
}

/* Games Section */
.games-section {
    padding: 100px 0 80px; /* Больше отступ сверху из-за фиксированного header */
    min-height: 100vh;
}

.games-section h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #00d4ff;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    padding: 0 15px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.filter-bar input {
    padding: 12px 15px;
    width: 300px;
    max-width: 100%;
    border: none;
    border-radius: 5px;
    background: #1a1a1a;
    color: #fff;
    transition: background 0.3s;
    font-size: 16px;
}

.filter-bar input:focus {
    background: #2a2a2a;
    outline: none;
    box-shadow: 0 0 0 2px #00d4ff;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    padding: 12px 20px;
    background: #00d4ff;
    border: none;
    border-radius: 5px;
    color: #000;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    font-size: 16px;
}

.filter-btn:hover {
    background: #ff007a;
    color: #fff;
}

.filter-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    width: 400px;
    margin-top: 10px;
}

.filter-dropdown:hover .filter-options {
    display: block;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 16px;
    color: #00d4ff;
    margin-bottom: 12px;
    font-weight: bold;
}

.filter-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.filter-columns div {
    flex: 1;
}

.filter-group label {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    cursor: pointer;
}

/* News Section */
.news-section {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.news-section h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #00d4ff;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    padding: 0 15px;
}

/* Trailers Section */
.trailers-section {
    padding: 100px 0 80px;
    min-height: 100vh;
}

.trailers-section h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    color: #00d4ff;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    padding: 0 15px;
}

.trailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trailer-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: calc(0.2s * var(--index));
}

.trailer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.trailer-card h3 {
    font-size: 20px;
    color: #00d4ff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.trailer-card iframe {
    border-radius: 5px;
    margin-bottom: 15px;
    width: 100%;
    height: 200px;
}

.trailer-card p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

/* Footer */
footer {
    padding: 50px 0;
    background: #000;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    margin: 20px;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 20px;
    color: #00d4ff;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-section p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff007a;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00d4ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    transition: background 0.3s, transform 0.3s;
    z-index: 1000;
}

.scroll-top:hover {
    background: #ff007a;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* ========== MOBILE RESPONSIVE STYLES ========== */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 50px;
    }
    
    .hero p {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .trending h2,
    .quick-news h2,
    .games-section h2,
    .news-section h2,
    .trailers-section h2 {
        font-size: 32px;
    }
    
    .filter-options {
        width: 350px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styles */
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 15px 0;
    }
    
    .social-links {
        margin-left: auto;
        margin-right: 15px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Sections */
    .trending,
    .quick-news,
    .games-section,
    .news-section,
    .trailers-section {
     padding: 60px 0;
    }
    
    .games-section,
    .news-section,
    .trailers-section {
        padding: 80px 0 60px;
    }
    
    .trending h2,
    .quick-news h2,
    .games-section h2,
    .news-section h2,
    .trailers-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* Game Grid */
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-info h3 {
        font-size: 20px;
    }
    
    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-bar input {
        width: 100%;
        font-size: 14px;
    }
    
    .filter-options {
        width: 300px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .filter-columns {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        margin: 15px 0;
    }
    
    .footer-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    /* Header */
    .logo-text {
        font-size: 20px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Sections */
    .trending h2,
    .quick-news h2,
    .games-section h2,
    .news-section h2,
    .trailers-section h2 {
        font-size: 24px;
    }
    
    /* Game Grid */
    .game-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-card img {
        height: 180px;
    }
    
    .game-info h3 {
        font-size: 18px;
    }
    
    .game-info p {
        font-size: 13px;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card {
        padding: 20px;
    }
    
    /* Filter Options */
    .filter-options {
        width: 280px;
        padding: 15px;
    }
    
    /* Footer */
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .filter-options {
        width: 250px;
    }
    
    .trailer-card iframe {
        height: 180px;
    }
    
    .hero-content {
        max-width: 95%;
    }
}

/* Mobile Menu Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improve touch targets for mobile */
button, 
a, 
input, 
label {
    min-height: 44px;
    min-width: 44px;
}

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
}

/* Always show navigation on desktop */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
}