:root {
    --primary: #6c5ce7;
    --bg: #0f0f15;
    --card: #1e1e2e;
    --text: #ffffff;
    --text-muted: #a0a0a0;
}
[data-theme="light"] {
    --primary: #6c5ce7;
    --bg: #f5f6fa;
    --card: #ffffff;
    --text: #2d3436;
    --text-muted: #636e72;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: 0.3s background, 0.3s color; }
a { text-decoration: none; color: var(--text); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header { background: var(--card); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav a { margin: 0 15px; font-weight: 600; transition: 0.3s; }
.nav a:hover { color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; display: inline-block; transition: 0.3s; text-align: center; }
.btn-primary:hover { background: #5b4bd6; }
.btn-icon { background: transparent; color: var(--text); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; transition: 0.3s; }
.btn-icon:hover { background: rgba(108, 92, 231, 0.1); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 15px; }

.hero { text-align: center; padding: 80px 20px; background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), transparent); border-radius: 16px; margin-top: 40px; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }

.section { margin: 60px 0; }
.section-title { font-size: 24px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.game-slider { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.game-slider::-webkit-scrollbar { display: none; }
.game-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 40px 0; }

.game-card { background: var(--card); border-radius: 12px; overflow: hidden; transition: 0.3s; position: relative; min-width: 220px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(108,92,231,0.2); }
.game-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.game-card h3 { padding: 15px; font-size: 16px; text-align: center; }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 160px; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.game-card:hover .card-overlay { opacity: 1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.game-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.game-card-sm a { display: flex; align-items: center; gap: 15px; background: var(--card); padding: 10px; border-radius: 8px; transition: 0.3s; }
.game-card-sm a:hover { background: rgba(108, 92, 231, 0.1); }
.game-card-sm img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

.game-page { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; margin: 40px 0; }
.game-container { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; position: relative; }
.game-container iframe, .game-container div { width: 100%; height: 100%; border: none; }
.game-header-row { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; }

.reactions-bar { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.react-btn { background: var(--card); color: var(--text); border: 1px solid rgba(255,255,255,0.1); padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.react-btn:hover { border-color: var(--primary); color: var(--primary); }

.tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--card); padding-bottom: 10px; }
.tab-link { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 5px 10px; transition: 0.3s; }
.tab-link.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.tab-content { background: var(--card); padding: 20px; border-radius: 12px; }

.comment-form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; min-height: 100px; margin-bottom: 10px; outline: none; font-family: inherit; }
.comments-list { margin-top: 30px; }
.comment-item { background: var(--bg); padding: 15px; border-radius: 8px; margin-bottom: 15px; }

.sidebar-widget { background: var(--card); padding: 20px; border-radius: 12px; }
.sidebar-widget h3 { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; transition: 0.3s; }
.sidebar-item:hover { color: var(--primary); }
.sidebar-item img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }

.footer { background: var(--card); padding: 60px 0 20px; margin-top: 60px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3, .footer h4 { margin-bottom: 20px; color: var(--primary); }
.footer a { color: var(--text-muted); display: block; margin-bottom: 10px; transition: 0.3s; }
.footer a:hover { color: var(--primary); }
.copyright { text-align: center; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

@media (max-width: 768px) {
    .game-page { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .nav { display: none; }
    .hero h1 { font-size: 32px; }
}