/* ===== CSS Variables ===== */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #00cec9;
    --secondary: #00cec9;
    --accent-color: #fd79a8;
    --accent: #fd79a8;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --sidebar-bg: #0f3460;
    --sidebar-width: 250px;
    --navbar-height: 60px;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-surface: #f0eeff;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f3ff;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #5a4bd1);
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-2xl: 1.5rem;
    --error-color: #e74c3c;
    --success-color: #27ae60;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
    overflow: hidden;
    height: 100%;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Top Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    overflow-x: hidden;
}

.nav-container {
    max-width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.nav-brand .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 5px 15px;
    flex: 0 1 400px;
}

.nav-search .search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    padding: 8px;
    width: 100%;
    font-size: 14px;
}

.nav-search .search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.nav-search .search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Main Container Layout ===== */
.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: calc(100% - 50px);
    margin-top: 50px;
    transition: grid-template-columns 0.3s ease;
    overflow: hidden;
}

.main-container.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}

/* ===== Left Sidebar ===== */
.sidebar {
    position: sticky;
    top: var(--navbar-height);
    width: var(--sidebar-width);
    height: 100%;
    background: var(--sidebar-bg);
    overflow-y: auto;
    transition: width 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.sidebar-menu {
    padding: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    font-size: 14px;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left-color: var(--secondary-color);
}

.sidebar-link.active {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-left: 4px solid var(--primary-color);
    font-weight: 700;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.15);
}

.sidebar-link .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* ===== Sidebar Auth Buttons ===== */
.sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.sidebar-auth-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-login {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-register {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Sidebar User (Logged In) ===== */
.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-user-name {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    text-align: center;
}

.sidebar-logout-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all var(--transition);
}

.sidebar-logout-btn:hover {
    background: rgba(255,80,80,0.2);
    color: #ff5e5e;
    border-color: rgba(255,80,80,0.5);
}

.sidebar-profile-link {
    display: block;
    width: 100%;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition);
}

.sidebar-profile-link:hover {
    background: rgba(78, 205, 196, 0.2);
    color: var(--primary-color);
    border-color: rgba(78, 205, 196, 0.5);
}

/* ===== Login Form Styles ===== */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: var(--font-size-base);
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition);
    background: var(--bg-card);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group .error-text {
    color: var(--error-color);
    font-size: var(--font-size-xs);
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input {
    border-color: var(--error-color);
}

.form-group.has-error .error-text {
    display: block;
}

.btn-auth {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-auth.loading {
    position: relative;
    color: transparent;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: var(--font-size-sm);
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-box.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 2.5rem;
}

.password-toggle .toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
}

.password-toggle .toggle-icon:hover {
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.social-login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-login-divider span {
    padding: 0 1rem;
}

.social-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-social {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-social i {
    font-size: var(--font-size-lg);
}

.btn-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.btn-facebook:hover {
    background: #1877f2;
    color: white;
}

.btn-google {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-google:hover {
    background: #ea4335;
    color: white;
}

.btn-twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

.btn-twitter:hover {
    background: #1da1f2;
    color: white;
}

.btn-steam {
    border-color: #171a21;
    color: #171a21;
}

.btn-steam:hover {
    background: #171a21;
    color: white;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-login-buttons {
        flex-direction: column;
    }
    
    .btn-social {
        min-width: 100%;
    }
}

/* ===== Main Content Area ===== */
.main-content {
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* ===== Hero Banner ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    padding: 60px 0;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%!important;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-tagline {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 6px 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    animation: fadeInDown 1s ease;
    line-height: 1.2;
}

.hero-typewriter {
    display: inline;
    white-space: nowrap;
}

.hero-cursor {
    display: none!important;
    font-weight: 100;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease;
    line-height: 1.6;
}

.hero-subdescription {
    font-size: 15px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.hero-stats .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2px;
}

.hero-stats .stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.hero-actions .btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.4);
}

.hero-actions .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.3s backwards;
}

.cta-button:hover {
    background: #00b894;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Game List Section ===== */
.games-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 28px;
    color: var(--text-primary);
    margin: 0;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* ===== Game Card Styles ===== */
.game-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
    background: var(--gray-200);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

.game-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
}

.tag.new {
    background: #00b894;
}

.tag.hot {
    background: #e17055;
}

.tag.original {
    background: var(--primary-color);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(108, 92, 231, 0.9);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .play-btn {
    opacity: 1;
}

.play-btn:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.05);
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.game-category {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #fdcb6e;
    font-size: 13px;
}

.rating-count {
    font-size: 11px;
    color: var(--gray-600);
}

/* ===== Platform Features Section ===== */
.features-section {
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 50px;
}

.features-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 50px 30px 20px;
    margin-top: 50px;
    transition: margin-left 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 13px;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    font-size: 22px;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: var(--secondary-color);
}

/* ===== Animation Effects ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */

/* Tablet Devices */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }

    .nav-search {
        flex: 0 1 300px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Restore body-level scrolling for mobile */
    html, body {
        height: auto;
        overflow: auto;
    }

    body {
        overflow: auto;
    }

    /* Mobile overlay mode, reset Grid layout */
    .main-container {
        display: block;
        grid-template-columns: none;
        height: auto;
        margin-top: var(--navbar-height);
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 220px;
        height: calc(100vh - var(--navbar-height));
        transform: translateX(-100%);
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px 15px;
        max-width: 100vw;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .footer {
        margin-left: 0;
    }

    .nav-container {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 12px;
    }

    .nav-brand {
        gap: 8px;
        flex-shrink: 0;
    }

    .sidebar-toggle {
        font-size: 20px;
        padding: 4px 8px;
    }

    .nav-brand .logo {
        font-size: 18px;
    }

    .nav-search {
        flex: 1;
        min-width: 0;
        order: 0;
        padding: 4px 10px;
    }

    .nav-search .search-input {
        font-size: 13px;
        padding: 6px;
    }

    .nav-search .search-btn {
        font-size: 14px;
    }

    .nav-actions {
        flex-shrink: 0;
        gap: 6px;
    }

    .nav-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .hero-section {
        padding: 30px 15px;
        border-radius: var(--radius-md);
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero-container {
        padding: 0;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-stats {
        gap: 15px;
    }

    .hero-stats .stat-number {
        font-size: 20px;
    }

    .hero-stats .stat-label {
        font-size: 12px;
    }

    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-thumbnail {
        height: 120px;
    }

    .game-info {
        padding: 10px;
    }

    .game-title {
        font-size: 13px;
    }

    .game-category {
        font-size: 11px;
    }

    .game-rating {
        font-size: 11px;
    }

    /* Show play button on mobile (no hover) */
    .play-btn {
        opacity: 1;
        padding: 6px 14px;
        font-size: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .feature-icon {
        font-size: 32px;
    }

    .feature-card h3 {
        font-size: 15px;
    }

    .footer {
        padding: 35px 15px 15px;
        margin-top: 35px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-header {
        margin-bottom: 15px;
    }

    .games-section {
        margin-bottom: 35px;
    }

    .features-section {
        padding: 30px 15px;
        margin-bottom: 35px;
    }

    /* ===== Contact Page Tablet ===== */
    .contact-section {
        margin-bottom: 35px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-hero {
        padding: 28px 20px;
        margin-bottom: 30px;
        border-radius: var(--radius-md);
        max-width: 100%;
    }

    .contact-hero-content h1 {
        font-size: 26px;
    }

    .contact-hero-content p {
        font-size: 13px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 20px;
        border-radius: var(--radius-md);
        max-width: 100%;
    }

    .contact-form-container .section-title,
    .contact-info-container .section-title {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0; /* form-group margin-bottom handles spacing */
    }

    .contact-form .form-group {
        margin-bottom: 15px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 13px;
        max-width: 100%;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    .contact-intro {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .info-cards {
        gap: 12px;
        margin-bottom: 22px;
    }

    .info-card {
        padding: 14px;
        gap: 12px;
    }

    .info-card:hover {
        transform: none; /* disable slide on touch */
    }

    .info-icon {
        font-size: 24px;
        width: 38px;
        height: 38px;
    }

    .info-content h4 {
        font-size: 14px;
    }

    .info-content p {
        font-size: 12px;
    }

    .contact-social h3 {
        font-size: 14px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }

    .social-icon:hover {
        transform: none; /* disable lift on touch */
    }

    .faq-section {
        margin-bottom: 35px;
    }

    .faq-section .section-title {
        margin-bottom: 22px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .faq-card {
        padding: 18px;
    }

    .faq-card:hover {
        transform: none;
    }

    .faq-card h4 {
        font-size: 14px;
    }

    .faq-card p {
        font-size: 12px;
    }

    .submit-btn {
        font-size: 15px;
        padding: 13px 24px;
    }

    .submit-btn:hover {
        transform: none;
    }

    /* Toast notification tablet */
    .toast-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
        max-width: none;
    }
}

/* Small Screen Phones */
@media (max-width: 480px) {
    .main-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .main-content {
        padding: 12px 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-section {
        padding: 25px 12px;
        margin-bottom: 25px;
        border-radius: var(--radius-sm);
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .game-thumbnail {
        height: 100px;
    }

    .game-info {
        padding: 8px;
    }

    .game-title {
        font-size: 12px;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-category {
        font-size: 10px;
    }

    .game-tags .tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .play-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .features-section {
        padding: 25px 12px;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 15px 10px;
    }

    .feature-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .feature-card h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .games-section {
        margin-bottom: 30px;
    }

    .footer {
        padding: 30px 10px 12px;
        margin-top: 30px;
    }

    .footer-content {
        gap: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-header {
        margin-bottom: 12px;
    }

    .nav-brand .logo {
        font-size: 16px;
    }

    .nav-link {
        display: none;
    }

    .nav-search {
        padding: 3px 8px;
    }

    .nav-search .search-input {
        font-size: 12px;
        padding: 5px;
    }

    .nav-search .search-input::placeholder {
        font-size: 12px;
    }

    .nav-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* ===== Contact Page Phone ===== */
    .contact-section {
        margin-bottom: 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-hero {
        padding: 25px 15px;
        margin-bottom: 25px;
        border-radius: var(--radius-sm);
    }

    .contact-hero-content h1 {
        font-size: 22px;
    }

    .contact-hero-content p {
        font-size: 12px;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 16px 12px;
        border-radius: var(--radius-sm);
    }

    .contact-form-container .section-title,
    .contact-info-container .section-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .contact-form .form-group {
        margin-bottom: 14px;
    }

    .contact-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 13px;
        max-width: 100%;
    }

    .contact-form textarea {
        min-height: 90px;
    }

    .contact-form select {
        background-position: right 12px center;
        padding-right: 32px;
    }

    .contact-intro {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .info-cards {
        gap: 10px;
        margin-bottom: 18px;
    }

    .info-card {
        padding: 12px;
        gap: 10px;
    }

    .info-icon {
        font-size: 22px;
        width: 36px;
        height: 36px;
    }

    .info-content h4 {
        font-size: 13px;
    }

    .info-content p {
        font-size: 11px;
    }

    .contact-social {
        padding-top: 14px;
    }

    .contact-social h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icon {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }

    .social-icon:hover {
        transform: none;
    }

    .faq-section {
        margin-bottom: 28px;
    }

    .faq-section .section-title {
        margin-bottom: 18px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-card {
        padding: 15px;
    }

    .faq-card h4 {
        font-size: 13px;
    }

    .faq-card p {
        font-size: 11px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 12px 18px;
    }

    .submit-btn:hover {
        transform: none;
    }

    .game-card:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }
}

/* ===== Sidebar Collapse/Accordion ===== */
.collapsible-section {
    margin-bottom: 30px;
}

.collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.collapse-header:hover {
    color: var(--white);
}

.collapse-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.collapse-header[aria-expanded="true"] .collapse-arrow {
    transform: rotate(180deg);
}

.collapse-body {
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.collapse-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* ===== Sidebar Collapsed State ===== */
.sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

/* ===== Overlay Layer (Mobile) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== Contact Page Styles ===== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Grid Layout */
.contact-section {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-container .section-title {
    margin-bottom: 25px;
    font-size: 24px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--gray-100);
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-600);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.submit-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Info Container */
.contact-info-container {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info-container .section-title {
    margin-bottom: 15px;
    font-size: 24px;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card:hover {
    background: #f0eeff;
    transform: translateX(5px);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.info-content h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Social */
.contact-social {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}

.contact-social h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========== Game Detail Iframe ========== */
.iframe_detail {
    border: none;
}

/* Desktop: two-column contact layout */
@media (min-width: 1025px) {
    .contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 40px;
    }

    .iframe_detail {
        height: 800px!important;
    }
}

/* FAQ Section */
.faq-section {
    margin-bottom: 50px;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.faq-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.faq-card h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Form validation styles */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e17055;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #00b894;
}

/* ===== Shared Page Hero Styles (Privacy, Terms, Disclaimer, About, Detail) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.about-hero-bg {
    background: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
}

.page-hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Policy Content Styles (Privacy, Terms, Disclaimer) ===== */
.policy-content {
    margin-bottom: 50px;
}

.policy-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.policy-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.policy-block {
    margin-bottom: 30px;
}

.policy-block:last-child {
    margin-bottom: 0;
}

.policy-block h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.policy-block h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin: 18px 0 10px;
}

.policy-block p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.policy-block ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 12px;
}

.policy-block ul li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.policy-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== About Page Styles ===== */
.about-section {
    margin-bottom: 50px;
}

.about-section.alt-bg {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 50px;
}

.about-section .section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-center {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h2 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.mission-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.mission-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mission-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.value-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    font-size: 56px;
    margin-bottom: 12px;
}

.team-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--darker-bg) 100%);
    color: var(--white);
    text-align: center;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.about-cta h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.about-cta p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.85);
}

.about-cta .cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
}

.about-cta .cta-button:hover {
    background: #00b894;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Detail Page Styles ===== */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--gray-600);
}

.breadcrumb .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Game Player Wrapper ---- */
.game-player-wrapper {
    --ctrl-bg: #1a1a2e;
    --ctrl-text: #ccc;
    --ctrl-text-hover: #fff;
    --ctrl-accent: #e74c3c;
    --ctrl-accent-hover: #c0392b;
    --ctrl-fav: #ff6b6b;
    --ctrl-divider: rgba(255, 255, 255, 0.12);
    --ctrl-radius: 6px;
    --ctrl-gap: 4px;
    --ctrl-font-size: 13px;

    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* ---- Iframe Area ---- */
.detail-hero-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.detail-hero-img iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .detail-hero-img {
        aspect-ratio: 4 / 3;
    }

    .iframe_detail {
        height: 500px;
     
    }
}
/* ---- Controls Bar ---- */
.game-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: var(--ctrl-bg);
}

.game-controls-left,
.game-controls-right {
    display: flex;
    align-items: center;
    gap: var(--ctrl-gap);
}

/* ---- Control Buttons ---- */
.game-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border: none;
    border-radius: var(--ctrl-radius);
    background: transparent;
    color: var(--ctrl-text);
    font-size: var(--ctrl-font-size);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.game-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ctrl-text-hover);
}

/* accent buttons */
.like-btn:hover {
    color: #2ecc71;
}
.dislike-btn:hover {
    color: var(--ctrl-accent);
}
.fav-btn:hover {
    color: var(--ctrl-fav);
}
.fullscreen-btn:hover {
    color: #3498db;
}

/* ---- Count Badge ---- */
.ctrl-count {
    font-weight: 600;
    font-size: var(--ctrl-font-size);
}

/* ---- Divider ---- */
.game-ctrl-divider {
    width: 1px;
    height: 22px;
    background: var(--ctrl-divider);
    margin: 0 6px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .game-controls-bar {
        padding: 8px 10px;
        gap: 4px;
    }
    .game-ctrl-btn {
        padding: 6px 9px;
        font-size: 12px;
    }
    .game-ctrl-divider {
        margin: 0 3px;
    }
}
    
/* Detail Hero */
.detail-hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 40px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.detail-thumbnail {
    padding: 0;
}

.detail-img {
    position: relative;
    height: 100%;
    min-height: 350px;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
}

.detail-info {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: 30px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.detail-category {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(108,92,231,0.1);
    padding: 5px 14px;
    border-radius: 20px;
}

.detail-rating {
    font-size: 14px;
    color: var(--text-secondary);
}

.rate-num {
    font-weight: bold;
    color: var(--text-primary);
}

.detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.play-now-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.play-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.save-btn,
.share-btn {
    padding: 12px 20px;
    background: var(--gray-100);
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover,
.share-btn:hover {
    background: var(--white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.d-stat {
    text-align: center;
}

.d-stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.d-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail Body */
.detail-body {
    margin-bottom: 50px;
}

.detail-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-block {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.detail-block h2 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.how-to-play {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.key-icon {
    display: inline-block;
    background: var(--darker-bg);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    min-width: 90px;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gray-200);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00b894;
    font-weight: bold;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.screenshot-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-200);
}

.screenshot-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-card {
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    font-size: 32px;
}

.review-header strong {
    font-size: 14px;
    color: var(--text-primary);
}

.review-stars {
    font-size: 12px;
    margin-top: 2px;
}

.review-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-600);
}

.review-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Detail Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--text-primary);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 12px;
    transition: var(--transition);
}

.cloud-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.related-item:hover {
    background: var(--gray-100);
}

.related-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.related-item strong {
    font-size: 13px;
    color: var(--text-primary);
    display: block;
}

.rel-stars {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===== Responsive styles for new pages ===== */
@media (max-width: 1024px) {
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-img {
        min-height: 250px;
    }

    .detail-body-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 28px 18px;
        margin-bottom: 30px;
        border-radius: var(--radius-md);
    }

    .page-hero-content h1 {
        font-size: 24px;
    }

    .page-hero-content p {
        font-size: 13px;
    }

    .policy-container {
        padding: 20px 15px;
        border-radius: var(--radius-md);
    }

    .policy-block h2 {
        font-size: 18px;
    }

    .policy-block ul li {
        font-size: 13px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .detail-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .detail-actions .play-now-btn,
    .detail-actions .save-btn,
    .detail-actions .share-btn {
        width: 100%;
        text-align: center;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .about-section.alt-bg {
        padding: 22px 15px;
    }

    .timeline {
        padding-left: 25px;
    }

    .about-cta {
        padding: 30px 18px;
    }

    .detail-info {
        padding: 20px 15px;
    }

    .detail-header h1 {
        font-size: 20px;
    }

    .detail-body-grid {
        gap: 20px;
    }

    .detail-block {
        padding: 20px 15px;
    }

    .container {
        padding: 0;
    }

    .page {
        padding: 18px 15px;
        margin-bottom: 20px;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 22px 14px;
        margin-bottom: 25px;
        border-radius: var(--radius-sm);
    }

    .page-hero-content h1 {
        font-size: 20px;
    }

    .page-hero-content p {
        font-size: 12px;
    }

    .policy-container {
        padding: 16px 12px;
        border-radius: var(--radius-sm);
    }

    .policy-block h2 {
        font-size: 16px;
    }

    .policy-block p,
    .policy-block ul li {
        font-size: 12px;
    }

    .about-section.alt-bg {
        padding: 18px 12px;
        margin-bottom: 25px;
    }

    .detail-info {
        padding: 16px 12px;
    }

    .detail-block {
        padding: 16px 12px;
    }

    .detail-header h1 {
        font-size: 18px;
    }

    .detail-desc {
        font-size: 12px;
    }

    .mission-card {
        padding: 20px 15px;
    }

    .mission-icon {
        font-size: 36px;
    }

    .mission-card h3 {
        font-size: 16px;
    }

    .page {
        padding: 14px 10px;
        margin-bottom: 16px;
        border-radius: var(--radius-sm);
    }
}

/* ===== Detail Page Content Container ===== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.page {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

/* ===== Detail Similar Games Card ===== */
.new-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.new-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.new-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.new-card-img {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: var(--gray-200);
}

.new-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.new-card:hover .new-card-img img {
    transform: scale(1.05);
}

.new-card-body {
    padding: 14px;
}

.new-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.new-card-title a {
    color: inherit;
    text-decoration: none;
}

.new-card-title a:hover {
    color: var(--primary);
}

.new-card-meta {
    margin-bottom: 8px;
}

.new-card-genre {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.new-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-game {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.btn-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    color: #fff;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.empty-state-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.empty-state-btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.empty-state-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Tags Page Styles ===== */
.tags-hero .page-hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.tag-group {
    margin-bottom: 45px;
}

.tag-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tag-group-header .group-icon {
    font-size: 28px;
}

.tag-group-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.tag-group-header .group-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--gray-200);
    padding: 3px 12px;
    border-radius: 20px;
}

/* Tag Cloud Grid */
.tag-cloud-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.tag-cloud-item:hover {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.05);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tag-cloud-item .tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-cloud-item .tag-count {
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 2px;
}

/* Tag dot colors */
.tag-dot.genre { background: #6c5ce7; }
.tag-dot.status { background: #e17055; }
.tag-dot.feature { background: #00b894; }
.tag-dot.platform { background: #fdcb6e; }
.tag-dot.theme { background: #fd79a8; }

/* Tag sizes variation */
.tag-cloud-item.size-lg {
    padding: 14px 26px;
    font-size: 17px;
    font-weight: 700;
    border-width: 3px;
}
.tag-cloud-item.size-md {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
}
.tag-cloud-item.size-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Global Scrollbar Styles ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ===== Pagination Styles ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    display: inline-block;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination-item.active .pagination-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    cursor: default;
}

.pagination-item.active .pagination-link:hover {
    transform: none;
}

.pagination-link.prev,
.pagination-link.next {
    font-size: 18px;
    font-weight: 700;
    padding: 0 14px;
}

.pagination-link.prev:hover,
.pagination-link.next:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination-link.disabled {
    color: var(--gray-600);
    background: var(--gray-100);
    border-color: var(--gray-200);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-link.disabled:hover {
    transform: none;
    background: var(--gray-100);
    color: var(--gray-600);
    border-color: var(--gray-200);
    box-shadow: none;
}

@media (max-width: 768px) {
    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }

    .pagination-list {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 6px;
    }

    .pagination-list {
        gap: 3px;
    }
}


.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 限制行数 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Toast Notification ===== */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 10000;
  overflow: hidden;
  animation: toastSlideIn 0.3s ease;
}

.toast-notification.hide {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
  border-left: 4px solid #27ae60;
}

.toast-error {
  border-left: 4px solid #e74c3c;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}

.toast-success .toast-header {
  color: #27ae60;
  background: rgba(39,174,96,0.08);
}

.toast-error .toast-header {
  color: #e74c3c;
  background: rgba(231,76,60,0.08);
}

.toast-header .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  line-height: 1;
  padding: 0 4px;
  transition: opacity 0.2s;
}

.toast-header .close-btn:hover {
  opacity: 1;
}

.toast-body {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100px); }
}

@media (max-width: 480px) {
  .toast-notification {
    left: 20px;
    right: 20px;
    min-width: auto;
    max-width: none;
  }
}

/* ===== Contact Submit Button Loading State ===== */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/* ===== Share buttons & copy modal (theme-adaptive) ===== */
.geme-social-share p {
	color: #6c5ce7;
	font-size: 16px;
	font-weight: 600;
	margin: 0 8px 0 0;
}
.geme-social-share a {
	display: -webkit-inline-flex;
	display: -ms-inline-flex;
	display: inline-flex;
	width: 34px;
	height: 34px;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(108, 92, 231, .15);
	color: #6c5ce7;
	border: 1px solid rgba(108, 92, 231, .3);
	margin-left: 10px;
	-webkit-transition: all .3s;
	transition: all .3s;
}
.geme-social-share a:hover {
	background: #6c5ce7;
	color: #fff;
	border-color: transparent;
}
.share-copy-modal {
	position: fixed;
	inset: 0;
	background: rgba(8, 8, 16, .82);
	display: none;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	z-index: 9999;
	padding: 15px;
}
.share-copy-modal.show {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.share-copy-box {
	background: #0c0c1a;
	border: 1px solid rgba(108, 92, 231, .4);
	border-radius: 12px;
	max-width: 460px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	box-shadow: 0 0 30px rgba(108, 92, 231, .4);
}
.share-copy-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #9190a5;
	cursor: pointer;
	transition: color .3s;
}
.share-copy-close:hover {
	color: #6c5ce7;
}
.share-copy-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #fff;
}
.share-copy-desc {
	margin: 0 0 16px;
	color: #9190a5;
	font-size: 14px;
}
.share-copy-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 8px;
}
.share-copy-input {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(108, 92, 231, .45);
	border-radius: 8px;
	font-size: 14px;
	color: #fff;
	background: rgba(255, 255, 255, .06);
}
.share-copy-input:focus {
	outline: none;
	border-color: #6c5ce7;
}
.share-copy-btn {
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #6c5ce7 0%, #988dee 100%);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .3s;
}
.share-copy-btn:hover {
	opacity: .9;
}
.share-copy-status {
	margin: 12px 0 0;
	font-size: 13px;
	color: #4ade80;
	min-height: 18px;
}



.hero-section{
    padding-top: 20px!important;
}