:root {
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent: #00d2ff;
    --text: #ffffff;
}

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

body {
    background: #0f0f0f;
    color: var(--text);
    min-height: 100vh;
}

img {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

/* Grid Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

h1, .title {
    color: #ffffff;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Card Styling */
.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent);
    border-color: var(--accent);
}

.thumb-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .thumbnail {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

h2, .game-name {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.platform-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.play-button {
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    transition: opacity 0.2s;
}

.play-button:hover {
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 2rem 1rem;
    }
}