* {
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2c2c2c;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #4a90e2;
    --border-color: #444;
    --hover-bg: #333;
    --link-color: #7db8ff;
    --link-color-hover: #b7dcff;
    --link-underline: rgba(125, 184, 255, 0.55);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
/*
a:visited {
    color: var(--link-color);
}
*/
a:hover {
    color: var(--link-color-hover);
    text-decoration-color: rgba(183, 220, 255, 0.75);
}

a:focus-visible {
    outline: 2px solid rgba(125, 184, 255, 0.65);
    outline-offset: 2px;
    border-radius: 6px;
}

.main-content table a {
    text-decoration: none;
}

.main-content table a:hover {
    text-decoration: underline;
}

.is-hidden {
    display: none !important;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 60px;
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar .search-bar {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.top-bar .search-bar input {
    width: 100%;
    height: 40px;
    padding: 0 45px 0 20px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.top-bar .search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.top-bar .search-bar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.top-bar .search-bar .gt-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 46px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    z-index: 1005;
    max-height: 70vh;
    overflow-y: auto;
}

.top-bar .search-bar .gt-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
}

.top-bar .search-bar .gt-search-item:hover,
.top-bar .search-bar .gt-search-item.is-active {
    background-color: var(--hover-bg);
}

.top-bar .search-bar .gt-search-thumb {
    width: 44px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg);
}

.top-bar .search-bar .gt-search-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.top-bar .search-bar .gt-search-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar .search-bar .gt-search-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar .search-bar .gt-search-empty {
    padding: 0.75rem;
    color: var(--text-muted);
}

.gt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
}

.gt-modal {
    width: min(720px, 100%);
    max-height: min(78vh, 820px);
    height: min(78vh, 820px);
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

.gt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.gt-modal-title {
    margin: 0;
    font-size: 1.1rem;
}

.gt-modal-tabs {
    display: flex;
    align-items: flex-end;
    gap: 2.25rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.gt-modal-tabs::-webkit-scrollbar {
    display: none;
}

.gt-modal-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    padding: 0.85rem 0;
    position: relative;
    white-space: nowrap;
}

.gt-modal-tab:hover {
    color: var(--text-color);
}

.gt-modal-tab.is-active {
    color: var(--text-color);
}

.gt-modal-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 999px;
}

.gt-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.gt-modal-close:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.gt-modal-body {
    padding: 0.75rem 0.75rem;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gt-modal-body::-webkit-scrollbar {
    width: 10px;
}

.gt-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.gt-modal-body::-webkit-scrollbar-thumb {
    background: rgba(160, 160, 160, 0.35);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gt-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 160, 160, 0.55);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gt-modal-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.gt-modal-action {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.gt-modal-action:hover {
    background-color: var(--hover-bg);
}

.gt-modal-empty {
    padding: 1rem;
    color: var(--text-muted);
}

.gt-modal-row {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 0.5rem;
    align-items: center;
    min-height: 72px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
}

.gt-modal-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    min-width: 0;
    height: 100%;
}

.gt-modal-link:hover {
    background-color: var(--hover-bg);
}

.gt-modal-thumb {
    width: 52px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg);
}

.gt-modal-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gt-modal-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-modal-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-modal-remove {
    height: 100%;
    border: none;
    border-left: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.gt-modal-remove:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.top-bar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 40px; /* Match other elements */
}

.top-bar-action {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.top-bar-action:hover {
    color: var(--text-color);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0 16px;
    height: 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.site-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: var(--secondary-bg);
    padding: 1.5rem 0;
    height: calc(100vh - 60px); /* Adjust height for top-bar */
    position: fixed;
    top: 60px; /* Position below top-bar */
    left: 0;
    overflow-x: hidden;
    transition: width 0.3s ease, left 0.3s ease;
    z-index: 1001; /* Ensure sidebar is above main content */
}

.main-content {
    margin-left: 80px; /* Default margin for collapsed sidebar */
    padding: 1.5rem;
    padding-top: 80px; /* Add top padding to account for fixed top-bar */
    width: calc(100% - 80px);
    transition: margin-left 0.3s ease, width 0.3s ease;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-menu ul li a {
    justify-content: flex-start;
}

.sidebar:not(.collapsed) .nav-menu .nav-text {
    display: inline; /* Or block, depending on your layout */
}

.sidebar.collapsed:hover {
    width: 240px;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
}

.sidebar.sidebar-hovering {
    width: 240px;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
}

.sidebar.sidebar-hovering .nav-text {
    display: inline;
}

.sidebar.collapsed:hover .nav-text {
    display: inline; /* Or block */
}

.main-content.collapsed {
    margin-left: 80px;
    width: calc(100% - 80px);
}








.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.nav-menu .nav-icon {
    font-size: 1.5rem;
}

.nav-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.nav-menu ul li a:hover, .nav-menu ul li a.active {
    background-color: var(--accent-color);
    color: #fff;
}

.game-section {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.view-all-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.game-card a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    height: 100%;
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.game-card-image {
    position: relative;
}

.new-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    line-height: 1;
}

.game-card-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.game-card-info h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.game-card-meta .rating,
.game-card-meta .players {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Top Picks Grid */
.top-picks-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.featured-game a {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

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

.featured-game .game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.featured-game .game-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.featured-game .game-info p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.side-games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.side-games .game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-games .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.game-card.small {
    display: flex;
    flex-direction: column;
}

.game-card.small .game-card-info {
    padding: 0.75rem;
    text-align: center;
}

.game-card.small img {
    height: 80px;
}

/* Promo Section */
.promo-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.promo-card {
    background-color: var(--secondary-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-content .fa-gamepad {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.promo-content h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.promo-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.promo-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.promo-btn:hover {
    background-color: #3a7bc8;
}

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

.promo-game-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.promo-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.promo-game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.promo-game-info {
    padding: 0.75rem;
}

.promo-game-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Info Box Section */
.info-box-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    background-color: var(--secondary-bg);
    padding: 2rem;
    border-radius: 8px;
}

.info-box-content h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.info-box-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.info-box-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
}

.info-box-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.category-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--primary-bg);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.category-link-card:hover {
    background-color: var(--accent-color-faded);
}

.category-link-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.hero-content {
    display: grid;
    gap: 2.25rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .hero-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .hero-mini-grid.hero-mini-grid--6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.hero-mini-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    aspect-ratio: 16 / 10;
}

.hero-mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.hero-mini-card img {
    width: 100%;
    height: 100%;
    min-height: 92px;
    object-fit: cover;
    display: block;
}

.hero-mini-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9));
}

.hero-mini-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.hero-mini-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    opacity: 0.9;
    width: 100%;
}

.hero-mini-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.hero-btn.primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.hero-btn.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero-tags {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-tags .tag {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.home-continue-section {
    margin-bottom: 1rem;
}

.home-row-scroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
}

.home-row-scroll::-webkit-scrollbar {
    height: 10px;
}

.home-row-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.home-row-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.home-row-card {
    scroll-snap-align: start;
    min-width: 260px;
    max-width: 320px;
    flex: 0 0 auto;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

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

.home-row-card img {
    width: 84px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-row-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.25rem 0;
}

.home-row-card-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-game-showcase {
    display: flex;
    justify-content: center;
}

.hero-showcase-grid {
    width: 100%;
    max-width: 720px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 0.9rem;
    align-items: stretch;
}

.hero-featured-card {
    max-width: none;
}

.hero-featured-card img {
    height: 360px;
}

.hero-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(0, 1fr);
    gap: 0.75rem;
    height: 100%;
}

.hero-side-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.hero-side-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    display: block;
}

.hero-side-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.85));
}

.hero-side-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

.hero-side-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.9;
    width: 100%;
}

.hero-side-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.home-shelves {
    margin-bottom: 1rem;
}

.home-shelves #gt-home-shelves {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.home-shelf {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.9rem;
}

.home-shelf-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.home-shelf-title {
    margin: 0;
    font-size: 1.15rem;
}

.home-shelf-title a {
    color: var(--text-color);
    text-decoration: none;
}

.home-shelf-title a:hover {
    color: var(--accent-color);
}

.home-shelf-row {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.25rem;
}

.home-shelf-row::-webkit-scrollbar {
    height: 10px;
}

.home-shelf-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.home-shelf-row::-webkit-scrollbar-track {
    background: transparent;
}

.home-tile-card {
    scroll-snap-align: start;
    min-width: 170px;
    max-width: 200px;
    flex: 0 0 auto;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.home-tile-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.home-tile-meta {
    padding: 0.65rem 0.75rem 0.75rem 0.75rem;
}

.home-tile-title {
    margin: 0 0 0.35rem 0;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-tile-sub {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.featured-game-card:hover {
    transform: translateY(-5px);
}

.featured-game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.featured-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.featured-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.featured-game-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
}

.featured-game-info p {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.game-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.game-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Quick Categories */
.quick-categories {
    margin-bottom: 1rem;
}

.quick-categories h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

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

.category-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.category-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Trending Games */
.trending-games {
    margin-bottom: 1rem;
}

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

.section-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
}

#gt-trending-grid:not(.is-list) {
    gap: 0.85rem;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    grid-template-rows: repeat(2, minmax(120px, auto));
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

#gt-trending-grid:not(.is-list)::-webkit-scrollbar {
    height: 10px;
}

#gt-trending-grid:not(.is-list)::-webkit-scrollbar-track {
    background: transparent;
}

#gt-trending-grid:not(.is-list)::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

#gt-trending-grid:not(.is-list) .trending-game-card {
    scroll-snap-align: start;
}

@media (min-width: 900px) {
    #gt-trending-grid:not(.is-list) {
        grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(120px, 1fr));
        grid-auto-rows: 110px;
        grid-template-rows: repeat(2, 110px);
        align-items: stretch;
    }

    #gt-trending-grid:not(.is-list) .trending-game-card.featured {
        grid-column: 1 / span 1;
        grid-row: span 2;
    }
}

@media (min-width: 1200px) {
    #gt-trending-grid:not(.is-list) {
        grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(140px, 1fr));
        grid-auto-rows: 118px;
        grid-template-rows: repeat(2, 118px);
    }
}

.trending-grid.is-list {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    overflow: visible;
}

.trending-grid.is-list .trending-game-card {
    display: flex;
    align-items: center;
    min-height: 92px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.trending-grid.is-list .trending-game-card.featured {
    grid-column: span 1;
    grid-row: span 1;
}

.trending-grid.is-list .trending-game-card img {
    width: 150px;
    height: 92px;
}

.trending-grid.is-list .game-overlay {
    position: static;
    background: transparent;
    padding: 0.9rem 1rem;
}

.trending-grid.is-list .trending-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.trending-grid.is-list .game-details p,
.trending-grid.is-list .game-meta {
    color: var(--text-muted);
    opacity: 1;
}

.trending-grid.is-list .trending-badge {
    margin-bottom: 0.25rem;
}

.trending-game-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    grid-column: span 1;
    grid-row: span 1;
}

.trending-game-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

#gt-trending-grid:not(.is-list) .trending-game-card {
    border-radius: 10px;
}

#gt-trending-grid:not(.is-list) .game-overlay {
    padding: 0.8rem;
}

#gt-trending-grid:not(.is-list) .trending-game-card:not(.featured) .game-overlay h4 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
}

#gt-trending-grid:not(.is-list) .trending-game-card:not(.featured) .game-meta {
    gap: 0.6rem;
    font-size: 0.78rem;
}

.trending-grid.trending-grid--row {
    grid-auto-rows: 140px;
}

.trending-grid.trending-grid--row .trending-game-card.featured {
    grid-row: span 1;
}

.trending-grid.trending-grid--row .game-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.trending-grid.trending-grid--row .game-details p {
    display: none;
}

.home-duo-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 1200px) {
    .home-duo-sections {
        gap: 2.5rem;
    }
}

.home-duo-section {
    min-width: 0;
}

.trending-game-card:hover {
    transform: scale(1.02);
}

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

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.trending-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.game-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.game-details p {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.game-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-showcase-side .game-overlay h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

/* New Games Section */
.new-games-section {
    margin-bottom: 1rem;
}

.compact-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.compact-games-grid.compact-games-grid--single {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .compact-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .compact-games-grid.compact-games-grid--single {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .compact-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-games-grid.compact-games-grid--6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .compact-games-grid.compact-games-grid--single {
        grid-template-columns: 1fr;
    }
}

.compact-game-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.compact-game-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.compact-game-card img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.compact-game-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.compact-game-title {
    font-weight: 750;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.compact-game-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

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

.game-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

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

.game-card-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: #3a7bc8;
    transform: scale(1.1);
}

.game-card-content {
    padding: 1rem;
}

.game-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-category {
    background: rgba(74, 144, 226, 0.2);
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Recommended Section */
.recommended-section {
    margin-bottom: 1rem;
}

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

.game-card-small {
    background: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
}

.game-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: var(--accent-color);
    color: white;
}

.game-card-small img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-card-small-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-small:hover .game-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Modern Promo Section */
.promo-section-modern {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1rem;
}

.promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.promo-left-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.promo-left-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-left-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.promo-left-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.promo-left-title {
    padding: 0.7rem 0.75rem 0 0.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-left-meta {
    padding: 0.4rem 0.75rem 0.75rem 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.promo-left-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.promo-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.promo-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.promo-feature i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.promo-feature h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.promo-feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.promo-cta-btn {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
}

.promo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

.promo-games h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.promo-section-modern .promo-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.promo-section-modern .promo-game-card {
    background: var(--primary-bg);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.promo-section-modern .promo-game-card:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.promo-section-modern .promo-game-card img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.promo-section-modern .promo-game-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.promo-section-modern .promo-game-info .game-stats {
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (min-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .games-grid-small {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .promo-content {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 2rem;
    }

    .promo-left-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Stats Section */
.stats-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    color: var(--accent-color);
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Info Section Modern */
.info-section-modern {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 3rem;
    background: var(--secondary-bg);
    border-radius: 16px;
}

.info-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.info-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.info-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.info-feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.info-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.info-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.info-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.info-feature i {
    color: #4caf50;
    font-size: 1.2rem;
}

.device-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.device:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(10px);
}

.device i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.device span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modern Footer */
.modern-footer {
    background: #1a1a1d;
    color: #c5c6c7;
    padding: 3rem 1.5rem;
    margin-top: auto;
}

.modern-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.modern-footer .footer-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #66fcf1;
    text-transform: uppercase;
}

.modern-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.modern-footer .footer-links a {
    color: #c5c6c7;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.modern-footer .footer-links a:hover {
    color: #66fcf1;
}

.modern-footer .footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modern-footer .social-link {
    width: 38px;
    height: 38px;
    background: #2c2f36;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5c6c7;
    text-decoration: none;
    transition: all 0.2s ease;
}

.modern-footer .social-link:hover {
    background: #66fcf1;
    color: #1a1a1d;
}

.modern-footer .footer-description {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.modern-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2c2f36;
}

.modern-footer .footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

.modern-footer .footer-actions {
    display: flex;
    gap: 1rem;
}

.modern-footer .footer-btn {
    background: transparent;
    border: 1px solid #4b5263;
    color: #c5c6c7;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.modern-footer .footer-btn.signup-btn {
    background: #66fcf1;
    border-color: #66fcf1;
    color: #1a1a1d;
}

.modern-footer .footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .modern-footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .modern-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modern-footer .footer-social {
        justify-content: center;
    }

    .modern-footer .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.25rem 1.25rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-showcase-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .hero-featured-card img {
        height: 300px;
    }
    
    .game-showcase {
        grid-template-columns: 1fr;
    }
    
    .game-showcase-side {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 150px);
    }
    
    .promo-content {
        grid-template-columns: 1fr;
    }
    
    .promo-section-modern .promo-games-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section-modern {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .info-features {
        grid-template-columns: 1fr;
    }
    
    .modern-footer .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modern-footer .footer-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-row-card {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.75rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-featured-card img {
        height: 260px;
    }
    
    .game-showcase-side {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 120px);
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-tile-card {
        min-width: 155px;
        max-width: 190px;
    }
}

.page-link, .page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    background-color: var(--secondary-bg);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.page-link:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.page-link.active {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.page-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    background-color: var(--secondary-bg);
}

.page-link.prev i, .page-link.next i {
    font-size: 0.8rem;
}

.page-link.prev i {
    margin-right: 0.5rem;
}

.page-link.next i {
    margin-left: 0.5rem;
}

.page-dots {
    background-color: transparent;
    color: var(--text-muted);
    padding: 0 0.25rem;
}

/* SEO Content Area */
.seo-content-area {
    background-color: var(--secondary-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.seo-content-area h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.seo-content-area h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-content-area p, .seo-content-area ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content-area a {
    color: var(--accent-color);
    text-decoration: underline;
}

.seo-content-area ul {
    padding-left: 1.5rem;
}

.seo-content-area ul {
    padding-left: 1.5rem;
}

/* Main Footer */
.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2.5rem;
}

.main-footer .footer-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.main-footer .footer-btn .fa-random {
    margin-right: 0.5rem;
}

.main-footer .signup-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
}

.main-footer .footer-btn:hover {
    background-color: var(--hover-bg);
}

.main-footer .signup-btn:hover {
    background-color: #3a7bc8;
}

.main-footer .footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
}

@media (max-width: 992px) {
    .top-bar-center {
        display: none; /* Hide search bar on mobile */
    }

    .sidebar {
        left: -240px; /* Hide sidebar by default */
        z-index: 999;
    }

    .sidebar.open {
        left: 0; /* Show sidebar */
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* New Play Page Styles */
.play-page-new {
    padding: 1.5rem;
    padding-top: 80px;
}

.game-main-container {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.game-player-area {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
}

.gt-embed-stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gt-embed-scale {
    transform-origin: center center;
    display: inline-block;
}

.game-player-area iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    text-align: center;
    z-index: 2;
}

.embed-fallback-content {
    max-width: 540px;
}

.embed-fallback-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}

.embed-fallback-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.embed-fallback-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.embed-fallback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.embed-fallback-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.game-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0.755rem;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.game-title {
    font-size: 1.5rem;
    margin: 0;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.action-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.action-btn.is-active {
    background-color: rgba(74, 144, 226, 0.18);
    border-color: rgba(74, 144, 226, 0.55);
    color: var(--text-color);
}

.gt-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: transparent;
}

.gt-share-panel {
    position: absolute;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gt-share-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
}

.gt-share-item:hover {
    background: var(--hover-bg);
}

.gt-share-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.gt-share-sep {
    height: 1px;
    background: var(--border-color);
    opacity: 0.85;
    margin: 0.25rem 0;
}

.play-page-columns {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.play-page-left {
    /* Styles for the left column content */
}

.play-page-right {
    align-self: start;
    width: 350px;
    max-width: 350px;
}

.gt-ad-slot {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-ad-slot--inline {
    margin-bottom: 1.5rem;
    min-height: 90px;
}

.gt-ad-slot--sidebar {
    width: 100%;
    margin-bottom: 1.5rem;
    min-height: 250px;
}

@media (max-width: 992px) {
    .play-page-columns {
        grid-template-columns: 1fr;
    }

    .play-page-right {
        width: 100%;
        max-width: none;
    }

    .gt-ad-slot--sidebar {
        width: 100%;
    }
}

.game-details-box {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

.game-details-box h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.game-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.game-meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.game-meta a:hover {
    text-decoration: underline;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.rating .fa-star {
    color: #f9c74f;
}

.share-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.game-info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.game-info-grid strong {
    color: var(--text-color);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    background-color: var(--hover-bg);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.tag:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.game-description-full h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.game-description-full h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-description-full p,
.game-description-full ul {
    color: var(--text-muted);
    line-height: 1.7;
}

.game-description-full ul {
    padding-left: 20px;
}

.game-video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 1rem;
}

.game-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.play-page-right {
    /* Styles for the right column (related games) */
}

.related-games-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-game-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--secondary-bg);
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.related-game-card:hover {
    background-color: var(--hover-bg);
}

.related-game-card img {
    width: 100px;
    height: 56px;
    object-fit: cover;
    border-radius: 5px;
}

.related-game-card span {
    font-weight: 500;
}



/* Category Page Styles */
.category-header-new {
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.category-header-new h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

.category-header-new p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
}

/* Enhanced Category Header */
.category-header-enhanced {
    padding: 2rem 0;
    text-align: center;
}

.category-header-enhanced h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-header-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-tag {
    background-color: var(--secondary-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.filter-tag.active, .filter-tag:hover {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.category-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.6;
}

.category-page .category-header-enhanced {
    padding: 1.25rem 0 0.75rem;
}

.category-page .category-header-enhanced h1 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.category-page .promo-banner {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
}

.category-page .toolbar {
    margin-bottom: 1rem;
}

.category-page .game-section {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

.category-page .games-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.category-page .game-card-image {
    height: 140px;
}

.tag-page .game-section {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

.tag-page .games-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.tag-page .game-card-image {
    height: 140px;
}

/* Promo Banner */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    gap: 1rem;
}

.promo-banner .fa-gamepad {
    font-size: 1.5rem;
}

.promo-banner span {
    font-weight: 500;
}

.promo-link {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-switch {
    display: flex;
    gap: 0.5rem;
}

.toolbar .view-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.toolbar .view-btn.active, .toolbar .view-btn:hover {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-btn {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.sort-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.sort-btn:not(.active):hover {
    background-color: var(--hover-bg);
}

.filter-options {
    position: relative;
}

.related-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.game-details-card {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.game-details-card .card-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.game-details-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-details-card ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.game-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.game-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
