/* ============================================================
   ULTIMATE PLAYER CARDS - Main Stylesheet
   Premium card & gaming themed design
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Dark theme (default) - Premium Card/Gaming feel */
    --bg-primary: #0a0f1e;
    --bg-secondary: #111a33;
    --bg-card: #162040;
    --bg-card-hover: #1e2a52;
    --bg-header: rgba(10, 15, 30, 0.97);
    --bg-input: #1e2a52;
    
    --text-primary: #ffffff;
    --text-secondary: #c9d1e8;
    --text-muted: #7a86ab;
    
    --accent-primary: #d4af37;
    --accent-primary-hover: #e8c547;
    --accent-secondary: #4169e1;
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #b8941f 50%, #4169e1 100%);
    --accent-gold: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #b8860b 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(65, 105, 225, 0.08) 100%);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gold: #d4af37;
    
    --border-color: rgba(212, 175, 55, 0.12);
    --border-color-hover: rgba(212, 175, 55, 0.35);
    --border-gold: rgba(212, 175, 55, 0.25);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(212, 175, 55, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-card: 12px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --header-height: 72px;
    --container-max: 1400px;
}

/* Light theme */
body.light-theme {
    --bg-primary: #f5f6fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9ff;
    --bg-header: rgba(255, 255, 255, 0.97);
    --bg-input: #eef1f8;
    
    --text-primary: #0a0f1e;
    --text-secondary: #3d4a6b;
    --text-muted: #6b7a9e;
    
    --border-color: rgba(20, 30, 60, 0.08);
    --border-color-hover: rgba(212, 175, 55, 0.4);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    background-image: 
        radial-gradient(ellipse at 10% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(65, 105, 225, 0.05) 0%, transparent 50%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary); }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

/* ---------- Container ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0f1e;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
}
.logo-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1.5px solid rgba(10, 15, 30, 0.3);
    border-radius: 8px;
    pointer-events: none;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-text .line1 {
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}
.logo-text .line2 {
    font-size: 1.15rem;
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-gradient-soft);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    gap: 8px;
    transition: all var(--transition-fast);
    min-width: 220px;
}
.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.icon-btn:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
    border-color: var(--border-gold);
}
.mobile-menu-btn, .mobile-search-btn { display: none; }

/* ---------- Mobile Navigation ---------- */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}
.mobile-nav.active { display: block; }
.mobile-nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    border-color: var(--border-gold);
}
.mobile-search-box {
    display: none;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.mobile-search-box.active { display: block; }
.mobile-search-box .search-box { width: 100%; min-width: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent-gold);
    color: #0a0f1e;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    color: #0a0f1e;
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    color: var(--accent-primary);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero Section ---------- */
.hero {
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 22px;
}
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 12px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
}
.hero-title .brand {
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Section Styles ---------- */
.section { padding: 40px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-title {
    font-size: 1.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.95rem;
}
.section-link:hover { gap: 10px; }

/* ---------- Game Grid ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ---------- Game Card ---------- */
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    display: block;
    box-shadow: var(--shadow-card);
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-gold);
}
.game-card-thumbnail {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}
.game-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.game-card:hover .game-card-thumbnail img { transform: scale(1.08); }
.game-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0a0f1e;
}
.badge-new { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.badge-popular { background: var(--accent-gold); }
.badge-trending { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.badge-featured { background: var(--accent-gold); }
.game-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 30, 0.5);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.game-card:hover .game-card-play { opacity: 1; }
.play-btn {
    width: 56px;
    height: 56px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0f1e;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
    font-weight: 900;
}
.game-card:hover .play-btn { transform: scale(1); }
.game-card-body { padding: 14px; }
.game-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.game-card-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}
.game-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

/* ---------- Category Grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition-normal);
    display: block;
    box-shadow: var(--shadow-card);
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.category-card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--accent-primary);
    font-size: 1.4rem;
}
.category-card-name { font-weight: 600; margin-bottom: 4px; }
.category-card-count { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Ad Placeholders ---------- */
.ad-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 20px 0;
}
.ad-placeholder::before {
    content: 'ADVERTISEMENT';
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--accent-primary);
    opacity: 0.8;
}
.ad-top { min-height: 90px; margin: 0 0 20px; }
.ad-sidebar { min-height: 250px; }
.ad-between-games { min-height: 100px; grid-column: 1 / -1; }
.ad-game-before, .ad-game-after { min-height: 100px; max-width: 728px; margin: 20px auto; }
.ad-in-content { min-height: 120px; margin: 30px 0; }

/* ---------- Page Header ---------- */
.page-header {
    padding: 36px 0 28px;
    background: var(--accent-gradient-soft);
    border-bottom: 1px solid var(--border-gold);
    margin-bottom: 30px;
}
.page-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.page-description { color: var(--text-secondary); max-width: 600px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-primary); }
.breadcrumb-separator { opacity: 0.5; }
.breadcrumbs .current { color: var(--text-primary); font-weight: 500; }

/* ---------- Filters ---------- */
.filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.filters-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}
.filter-select, .filter-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
    min-width: 140px;
}
.filter-select:focus, .filter-input:focus { border-color: var(--accent-primary); }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.filter-tag:hover, .filter-tag.active {
    background: var(--accent-gradient-soft);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.pagination-btn:hover:not(:disabled) { border-color: var(--accent-primary); color: var(--accent-primary); }
.pagination-btn.active {
    background: var(--accent-gold);
    color: #0a0f1e;
    border-color: transparent;
}
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Game Detail Page ---------- */
.game-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 40px;
}
.game-main { min-width: 0; }
.game-info-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.game-info-thumbnail {
    width: 200px;
    height: 150px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-gold);
}
.game-info-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.game-info-text { flex: 1; min-width: 200px; }
.game-info-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.game-info-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.game-info-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.game-info-meta-item .rating { color: var(--gold); font-weight: 600; }
.game-info-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-gradient-soft);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid var(--border-gold);
}
.game-info-description { color: var(--text-secondary); line-height: 1.7; }

/* Game Player */
.game-player-container {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.game-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}
.game-player-title { font-weight: 600; font-size: 1.05rem; }
.game-player-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.game-player-wrapper {
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
}
.game-player-wrapper iframe { width: 100%; height: 100%; border: none; }
.game-player-wrapper.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    aspect-ratio: auto;
}
.game-player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.92), rgba(30, 42, 82, 0.88));
    color: white;
    text-align: center;
    padding: 20px;
}
.game-player-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.game-player-overlay p { opacity: 0.9; margin-bottom: 20px; }

/* Sidebar */
.game-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}
.sidebar-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.info-item-label { color: var(--text-muted); }
.info-item-value { font-weight: 500; }
.share-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-gold); }

/* Content Sections */
.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}
.content-section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.content-section h3 { font-size: 1.1rem; margin: 20px 0 12px; color: var(--accent-primary); }
.content-section p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.content-section ul, .content-section ol { padding-left: 20px; color: var(--text-secondary); }
.content-section li { margin-bottom: 8px; line-height: 1.7; }
.content-section ul li::marker { color: var(--accent-primary); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}
.feature-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.faq-question {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    gap: 16px;
    transition: background var(--transition-fast);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    font-size: 0.8rem;
    font-weight: 700;
}
.faq-item.active .faq-question-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.form-notice {
    padding: 16px;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-gold);
    padding: 50px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.7;
    font-size: 0.95rem;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.footer-social a:hover {
    background: var(--accent-gold);
    color: #0a0f1e;
    border-color: transparent;
}
.footer-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--accent-primary); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- 404 Page ---------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    background: var(--accent-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}
.error-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.error-message { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient-soft);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-primary);
    font-size: 2rem;
}
.empty-state-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.empty-state-message { color: var(--text-secondary); margin-bottom: 24px; }

/* ---------- Article Cards ---------- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: block;
    box-shadow: var(--shadow-card);
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.article-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-body { padding: 20px; }
.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.article-card-category { color: var(--accent-primary); font-weight: 500; }
.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.article-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: toast-in 0.3s ease;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent-primary); }
@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .game-detail { grid-template-columns: 1fr; }
    .game-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
@media (max-width: 1024px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-text .line2 { font-size: 1rem; }
}
@media (max-width: 768px) {
    :root { --header-height: 64px; }
    .search-box { display: none; }
    .mobile-search-btn { display: flex; }
    .hero { padding: 40px 0 30px; }
    .hero-stats { gap: 28px; }
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .game-info-header { flex-direction: column; gap: 16px; }
    .game-info-thumbnail { width: 100%; height: 200px; }
    .article-grid { grid-template-columns: 1fr; }
    .section { padding: 30px 0; }
    .section-title { font-size: 1.25rem; }
    .page-title { font-size: 1.6rem; }
    .filters-row { flex-direction: column; align-items: stretch; }
    .filter-group { flex-direction: column; align-items: stretch; }
    .logo-text .line1 { display: none; }
}
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .game-grid { gap: 10px; }
    .game-card-body { padding: 10px; }
    .game-card-title { font-size: 0.85rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .share-buttons { grid-template-columns: 1fr; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
