@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Source+Sans+Pro:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f8f6f0;
    --paper: #ffffff;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #8a8a8a;
    --accent: #c41e3a;
    --accent-light: #e63950;
    --border: #e0ddd5;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Source Sans Pro', -apple-system, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Magazine Header */
.magazine-header {
    background: var(--paper);
    border-bottom: 4px solid var(--accent);
    padding: 2rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.magazine-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.magazine-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Desktop: header-top behaves as inline flex */
@media (min-width: 769px) {
    .magazine-header-top {
        width: auto;
        flex: 0 0 auto;
        order: 0;
    }
    
    .magazine-header .container {
        flex-wrap: nowrap;
    }
}

.header-search {
    flex: 1;
    max-width: 300px;
    margin: 0 1rem;
}

.header-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: border-color 0.3s ease;
    background: var(--paper);
    color: var(--text);
}

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

.header-search-btn {
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.header-search-btn:hover {
    background: var(--accent-light);
}

.magazine-logo {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.magazine-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.magazine-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.magazine-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.magazine-nav a:hover::after {
    width: 100%;
}

/* Magazine Layout - Multi Column */
.magazine-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Main Column */
.main-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Featured Article */
.featured-article {
    background: var(--paper);
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
}

.featured-article h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -1px;
}

.featured-article .article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.featured-article p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Games Grid - Magazine Style */
.games-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.magazine-game-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.magazine-game-card:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.magazine-game-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.magazine-game-content {
    padding: 1.25rem;
}

.magazine-game-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

.magazine-game-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.magazine-game-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.magazine-game-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Sidebar */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.sidebar-widget h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.category-list a::after {
    content: '→';
    color: var(--text-muted);
    font-size: 0.875rem;
}

.category-list a:hover::after {
    color: var(--accent);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Info Section */
.info-section {
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 4rem 3rem;
    margin: 4rem 0;
    box-shadow: 0 4px 12px var(--shadow);
    text-align: center;
}

.info-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.info-section p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--paper);
    border-top: 4px solid var(--accent);
    padding: 3rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 8px var(--shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

/* Game Detail Page */
.game-detail {
    background: var(--paper);
    border-radius: 20px;
    padding: 4rem;
    margin: 3rem auto;
    max-width: 1000px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
}

.game-detail-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--accent);
}

.game-detail h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.game-detail .game-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.game-content {
    max-width: 850px;
}

.game-content img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border: 1px solid var(--border);
    margin: 3rem 0;
}

.game-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.game-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.9;
}

.game-content ul {
    margin-left: 2rem;
    margin-bottom: 1.75rem;
}

.game-content li {
    margin-bottom: 0.875rem;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.125rem;
}

.game-iframe-container {
    margin: 3rem 0;
    text-align: center;
    background: var(--bg);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    min-height: 400px;
}

.game-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.game-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: contrast(1.02) saturate(1.05);
}

.game-loader-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.game-loader-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.game-loader-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.start-game-btn {
    padding: 1.25rem 3rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.start-game-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
}

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

.game-iframe-wrapper {
    width: 100%;
}

.game-iframe-container h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.game-iframe-container iframe {
    max-width: 100%;
    width: 950px;
    height: 700px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Article Page */
.article-content {
    background: var(--paper);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 850px;
    margin: 3rem auto;
    box-shadow: 0 4px 12px var(--shadow);
}

.article-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.article-content .article-meta {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.article-content img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border: 1px solid var(--border);
    margin: 3rem 0;
}

.article-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.article-content h3 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.article-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.9;
}

/* Game Grid for Search/List Pages */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.game-card:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

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

.game-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 1.5rem 0.75rem;
    color: var(--text);
}

.game-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 1.5rem 1.5rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
/* More Games Section */
.more-games-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border);
}

.more-games-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

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

.more-game-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.more-game-card:hover {
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

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

.more-game-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 1rem 0.5rem;
    color: var(--text);
}

.more-game-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 1rem 1rem;
}

/* Ad Slot Styles */
.ad-slot {
    margin: 2rem 0;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ad-container {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem;
}

.ad-slot-sidebar {
    margin: 0 0 2rem 0;
}

.ad-slot-inline {
    margin: 3rem 0;
}

.ad-slot-top {
    margin: 2rem 0 3rem 0;
}

.ad-slot-content {
    margin: 3rem auto;
    max-width: 1000px;
}

/* Search Page Styles */
.search-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.search-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: border-color 0.3s ease;
}

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

.search-form button {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--accent-light);
}

.search-results-section h2,
.all-games-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-results p {
    font-size: 1.125rem;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .magazine-layout {
        grid-template-columns: 1fr;
    }
    
    .games-magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .magazine-nav {
        gap: 1rem;
    }
    
    .magazine-nav a {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .magazine-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .magazine-header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        position: relative;
    }
    
    .magazine-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }
    
    .magazine-logo {
        font-size: 1.5rem;
        flex: 1;
        min-width: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--accent);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: background 0.3s ease;
        position: relative;
        z-index: 10;
    }
    
    .mobile-menu-toggle:hover {
        background: var(--accent-light);
    }
    
    .header-search {
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: 2;
    }
    
    .header-search-form {
        width: 100%;
    }
    
    .header-search-input {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
    
    .header-search-btn {
        padding: 0.875rem 1rem;
        min-width: 50px;
    }
    
    .magazine-nav {
        order: 3;
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
        background: var(--paper);
        padding: 0;
        margin: 0;
        border: 2px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 4px 12px var(--shadow);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        z-index: 100;
    }
    
    .magazine-nav.active {
        display: flex;
    }
    
    .magazine-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .magazine-nav li:last-child {
        border-bottom: none;
    }
    
    .magazine-nav a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: none;
    }
    
    .magazine-nav a::after {
        display: none;
    }
    
    .featured-article {
        padding: 1.5rem;
    }
    
    .featured-article h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .featured-article p {
        font-size: 1rem;
    }
    
    .games-magazine-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .magazine-game-content {
        padding: 1rem;
    }
    
    .magazine-game-content h3 {
        font-size: 1.125rem;
    }
    
    .magazine-game-content p {
        font-size: 0.875rem;
    }
    
    .more-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .more-game-card img {
        height: 120px;
    }
    
    .more-game-card h3 {
        font-size: 1rem;
        margin: 0.75rem 0.75rem 0.5rem;
    }
    
    .more-game-card p {
        font-size: 0.8rem;
        margin: 0 0.75rem 0.75rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .search-form button {
        width: 100%;
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .sidebar-column {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.25rem;
    }
    
    .ad-slot {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .ad-container {
        min-height: 80px;
        padding: 0.75rem;
    }
    
    .game-detail,
    .article-content {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }
    
    .game-detail h1,
    .article-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .game-detail-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .game-content h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
    }
    
    .game-content p {
        font-size: 1rem;
    }
    
    .game-iframe-container {
        padding: 2rem 1rem;
        margin: 2rem 0;
        min-height: 300px;
    }
    
    .game-loader {
        min-height: 300px;
    }
    
    .game-loader-content {
        padding: 2rem 1.5rem;
    }
    
    .game-loader-content h2 {
        font-size: 1.75rem;
    }
    
    .game-loader-content p {
        font-size: 1rem;
    }
    
    .start-game-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .game-iframe-container iframe {
        width: 100%;
        height: 400px;
    }
    
    .more-games-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .more-games-section h2 {
        font-size: 2rem;
    }
    
    .info-section {
        padding: 2.5rem 1.5rem;
        margin: 3rem 0;
    }
    
    .info-section h2 {
        font-size: 2rem;
    }
    
    .info-section p {
        font-size: 1rem;
    }
    
    footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .magazine-header {
        padding: 0.75rem 0;
    }
    
    .magazine-header .container {
        gap: 0.75rem;
    }
    
    .magazine-header-top {
        gap: 0.75rem;
    }
    
    .magazine-logo {
        font-size: 1.25rem;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .header-search-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    .header-search-btn {
        padding: 0.75rem 0.875rem;
        min-width: 44px;
        font-size: 0.9rem;
    }
    
    .magazine-nav {
        top: calc(100% + 0.75rem);
        max-height: calc(100vh - 180px);
    }
    
    .featured-article {
        padding: 1.25rem;
    }
    
    .featured-article h1 {
        font-size: 1.75rem;
    }
    
    .featured-article p {
        font-size: 0.95rem;
    }
    
    .game-detail,
    .article-content {
        padding: 1.5rem 1rem;
    }
    
    .game-detail h1,
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .game-content h2 {
        font-size: 1.5rem;
    }
    
    .game-iframe-container {
        padding: 1.5rem 0.75rem;
        min-height: 250px;
    }
    
    .game-loader {
        min-height: 250px;
    }
    
    .game-loader-content h2 {
        font-size: 1.5rem;
    }
    
    .game-loader-content p {
        font-size: 0.95rem;
    }
    
    .start-game-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .game-iframe-container iframe {
        height: 350px;
    }
    
    .ad-slot {
        margin: 1.25rem 0;
        padding: 0.75rem;
    }
    
    .ad-container {
        min-height: 60px;
        padding: 0.75rem;
    }
    
    .more-games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .more-game-card img {
        height: 100px;
    }
    
    .more-game-card h3 {
        font-size: 0.95rem;
    }
    
    .more-game-card p {
        font-size: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.125rem;
    }
    
    .magazine-game-content {
        padding: 0.875rem;
    }
    
    .magazine-game-content h3 {
        font-size: 1rem;
    }
    
    .magazine-game-content p {
        font-size: 0.8rem;
    }
    
    .game-content h2 {
        margin-top: 2rem;
    }
    
    .game-content p {
        font-size: 0.95rem;
    }
    
    .game-loader-content {
        padding: 1.5rem 1rem;
    }
    
    .info-section {
        padding: 2rem 1rem;
    }
    
    .info-section h2 {
        font-size: 1.75rem;
    }
    
    .info-section p {
        font-size: 0.95rem;
    }
    
    .search-results-section h2,
    .all-games-section h2 {
        font-size: 1.75rem;
    }
    
    .magazine-nav {
        padding: 0;
    }
    
    .magazine-nav a {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .header-search {
        width: 100%;
        max-width: 100%;
    }
    
    .header-search-input {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
    
    .header-search-btn {
        padding: 0.625rem 0.875rem;
        min-width: 40px;
    }
}
