* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-align: center;
}

.tagline {
    text-align: center;
    color: #aaaaaa;
    margin-bottom: 40px;
    font-size: 18px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.game-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #2a2a2a;
}

.game-info {
    padding: 16px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.game-category {
    font-size: 14px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #aaaaaa;
}

footer {
    background: #1a1a1a;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid #333;
    text-align: center;
    color: #aaaaaa;
}

/* Game Detail Page */
.game-detail {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.game-main {
    flex: 1;
}

.game-embed {
    width: 100%;
    min-height: 600px;
    background: #000;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.game-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
}

.game-description {
    background: #1a1a1a;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #333;
}

.game-description h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.game-description p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 16px;
}

.game-description h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 18px;
    color: #ffffff;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #2a2a2a;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #aaaaaa;
}

.sidebar {
    width: 300px;
}

.sidebar h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.recommended-games {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommended-game {
    display: flex;
    gap: 12px;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.recommended-game:hover {
    background: #252525;
}

.recommended-game img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.recommended-game-info {
    flex: 1;
}

.recommended-game-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.recommended-game-category {
    font-size: 12px;
    color: #aaaaaa;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.back-button:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .game-detail {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    h1 {
        font-size: 32px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

