/* ==========================================================================
   Atari 2600 Theme — Clean Modern Design
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --crt-black: #f3f4f6;
    --crt-dark: #ffffff;
    --crt-panel: #ffffff;
    --crt-card: #ffffff;
    --crt-border: transparent;
    --crt-border-light: transparent;
    --atari-red: #e74c3c;
    --atari-orange: #e67e22;
    --atari-amber: #d35400;
    --crt-green: #16a34a;
    --crt-blue: #2563eb;
    --text-bright: #111827;
    --text-primary: #374151;
    --text-muted: #6b7280;
    --heading-font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --label-font: 'Manrope', sans-serif;
    --max-width: 1200px;
    --content-width: 800px;
    --radius: 10px;
    --glow-red: none;
    --glow-amber: none;
    --glow-green: none;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    background: var(--crt-black);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--atari-orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--atari-amber); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
}

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

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-width {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* --- Header --- */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-bright);
    flex-shrink: 0;
}

.site-brand:hover { color: var(--text-bright); text-shadow: none; }

.brand-logo {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 28px;
}

.logo-bar {
    display: block;
    width: 4px;
    background: var(--atari-red);
    border-radius: 1px;
}

.logo-bar:nth-child(1) { height: 28px; }
.logo-bar:nth-child(2) { height: 24px; }
.logo-bar:nth-child(3) { height: 20px; }
.logo-bar:nth-child(4) { height: 16px; }
.logo-bar:nth-child(5) { height: 20px; }
.logo-bar:nth-child(6) { height: 24px; }
.logo-bar:nth-child(7) { height: 28px; }

.brand-text { display: flex; flex-direction: column; }

.brand-title {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-bright);
}

.brand-tagline {
    font-family: var(--body-font);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0;
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--crt-border-light);
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    border-radius: var(--radius);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-bright);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.site-nav a {
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    letter-spacing: 0;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
    background: rgba(231, 76, 60, 0.08);
    color: var(--atari-red);
}

.site-nav a.active {
    background: var(--atari-red);
    color: #fff;
}

/* --- Main Content --- */
.site-main {
    min-height: 60vh;
    padding: 2rem 0;
}

/* --- Footer --- */
.site-footer {
    background: #ffffff;
    margin-top: 3rem;
    padding: 3rem 0 1.5rem;
}

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

.footer-brand .brand-title {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-links h4 {
    font-family: var(--heading-font);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.2rem 0;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Hero Section --- */
.hero {
    background: #ffffff;
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Hero search */
.hero-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--crt-black);
    border: none;
    border-radius: var(--radius);
    color: var(--text-bright);
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.hero-search input:focus {
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Cards --- */
.card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

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

.card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--crt-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.card-image .placeholder {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: #d1d5db;
}

.card-body { padding: 1rem; }

.card-body h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.card-body h3 a { color: var(--text-bright); }
.card-body h3 a:hover { color: var(--atari-orange); }

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Game Card (specialized) --- */
.game-card .card-body { display: flex; flex-direction: column; gap: 0.4rem; }

.game-card .game-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--atari-orange);
}

.game-card .game-publisher {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Grids --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

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

/* --- Games Grid with list view --- */
.games-grid.list-view {
    grid-template-columns: 1fr;
}

.games-grid.list-view .game-card {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.games-grid.list-view .card-image { aspect-ratio: 1; }

.games-grid.list-view .card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Rarity Badges --- */
.rarity-badge {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rarity-1, .rarity-2 { background: #2d5a27; color: #90ee90; }
.rarity-3, .rarity-4 { background: #1a4a6e; color: #87ceeb; }
.rarity-5, .rarity-6 { background: #6e5a1a; color: #ffd700; }
.rarity-7, .rarity-8 { background: #6e3a1a; color: #ff8c00; }
.rarity-9, .rarity-10 { background: #6e1a1a; color: #ff4444; }

.rarity-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    padding-bottom: 0.75rem;
}

.section-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--atari-orange); }
.breadcrumbs .separator { margin: 0 0.5rem; color: #d1d5db; }

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    letter-spacing: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.tab-btn:hover { color: var(--text-bright); }

.tab-btn.active {
    color: var(--atari-orange);
    border-bottom-color: var(--atari-orange);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Game Hero Header --- */
.game-hero {
    background: #2a2a2a;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.game-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 400px;
}

.game-hero-media {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
}

.game-hero-media-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    min-width: 500px;
    min-height: 400px;
}

.game-hero-media img.game-hero-img {
    width: auto;
    height: 100%;
    min-height: 400px;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0;
    border-radius: 0;
}

.game-hero-media .video-bg.game-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    z-index: 0;
}

.game-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    font-family: var(--heading-font);
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

.game-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem;
}

.game-hero-media-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 15%;
    background: linear-gradient(to left, #2a2a2a 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.game-hero-title {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.game-hero-year {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.game-hero-boxart {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-width: 200px;
    max-width: 260px;
}

.game-hero-boxart-img {
    max-height: 440px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* --- Game Details Panel (below hero) --- */
.game-details-panel {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.game-details-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .game-hero-inner {
        grid-template-columns: 1fr;
    }
    .game-hero-media-wrap {
        min-width: 100%;
        min-height: 280px;
    }
    .game-hero-boxart {
        max-width: 100%;
        padding: 1rem;
        justify-content: center;
    }
    .game-hero-boxart-img {
        max-height: 240px;
    }
    .game-hero-title {
        font-size: 1.25rem;
    }
}

.game-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

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

.game-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 0.9rem;
    color: var(--text-bright);
}

/* --- Price Guide --- */
.price-guide {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

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

.price-card {
    background: var(--crt-black);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.price-card h4 {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crt-green);
}

.price-currency {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.price-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.8;
}

/* Staleness badge */
.price-staleness {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    display: inline-block;
    white-space: nowrap;
}

.price-fresh {
    color: var(--crt-green, #4ade80);
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.price-stale {
    color: var(--atari-orange, #e67e22);
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.25);
}

/* eBay CTA button */
.price-cta {
    margin-top: 1.25rem;
    text-align: center;
}

.price-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #e67e22), color-mix(in srgb, var(--primary-color, #e67e22) 80%, #000));
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.price-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    color: #fff;
}

.price-cta-icon {
    font-size: 1.4rem;
}

.price-cta-text {
    text-align: left;
    line-height: 1.3;
}

.price-cta-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: normal;
}

.price-cta-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
}

.price-cta-disclosure {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* --- Label Variants --- */
.label-variants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.variant-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.variant-card img {
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.variant-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-bright);
}

/* --- Related Games Grid --- */
.related-games {
    margin: 2rem 0;
}

/* --- Rating Widget Placeholder --- */
.rating-widget, .high-scores, .user-reviews {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.placeholder-text {
    font-family: var(--heading-font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Editorial Rating Display --- */
.editorial-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--crt-black);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}

.rating-score {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--atari-orange);
}

.rating-max {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- FAQ Section --- */
.faq-list { margin-bottom: 2rem; }

.faq-item {
    border-bottom: 1px solid #f3f4f6;
}

.faq-question {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-bright);
    padding: 1rem 2rem 1rem 0;
    cursor: pointer;
    position: relative;
    list-style: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--atari-orange);
    transition: transform 0.2s;
}

.faq-question.open::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer.open {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* --- Image Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.gallery-thumb {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-bright);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.lightbox-close:hover { color: var(--atari-red); }

/* --- Filter Bar --- */
.filter-bar {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.filter-bar label {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-bar select,
.filter-bar input[type="text"] {
    background: var(--crt-black);
    border: none;
    border-radius: 8px;
    color: var(--text-bright);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    outline: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* --- View Toggle --- */
.view-toggle {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.view-toggle button {
    background: var(--crt-black);
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.view-toggle button.active,
.view-toggle button:hover {
    background: var(--atari-red);
    color: #fff;
}

/* --- Game Count --- */
.results-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.results-info strong {
    color: var(--atari-orange);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination a, .pagination .current {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.pagination a {
    color: var(--text-primary);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--atari-red);
    color: #fff;
}

.pagination .current {
    background: var(--atari-red);
    color: #fff;
}

.pagination .dots {
    color: var(--text-muted);
    padding: 0.4rem 0.25rem;
}

/* --- Pillar Tiles (Homepage) --- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pillar-tile {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

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

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.pillar-tile h3 {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-bright);
}

.pillar-tile p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Start Here Box --- */
.start-here {
    background: #ffffff;
    border-left: 4px solid var(--atari-red);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.start-here h2 {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--atari-red);
    margin-bottom: 0.75rem;
}

.start-here p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.start-here .btn { margin-top: 0.5rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    letter-spacing: 0;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--atari-red);
    color: #fff;
}

.btn-primary:hover {
    background: #c0392b;
    color: #fff;
}

.btn-secondary {
    background: var(--crt-black);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: var(--text-bright);
}

/* --- Featured Game Card --- */
.featured-game {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.featured-game-inner {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
}

.featured-game-image {
    background: var(--crt-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.featured-game-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-label {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--atari-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-game-body h3 {
    font-size: 1.25rem;
}

.featured-game-body h3 a { color: var(--text-bright); }
.featured-game-body h3 a:hover { color: var(--atari-orange); }

/* --- Article Content --- */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
}

.article-content p { margin-bottom: 1rem; }

.article-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

.article-content blockquote {
    border-left: 3px solid var(--atari-orange);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-content ul, .article-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.article-content li { margin-bottom: 0.4rem; }

.article-content code {
    background: var(--crt-black);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--atari-red);
}

.article-content pre {
    background: var(--crt-black);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* --- Affiliate Placeholder --- */
.affiliate-placeholder {
    background: var(--crt-black);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.affiliate-placeholder p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Blog Cards --- */
.blog-card .card-body .blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Page Template --- */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.page-header h1 {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- 404 Page --- */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-code {
    font-family: var(--heading-font);
    font-size: 5rem;
    font-weight: 800;
    color: var(--atari-red);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- Curated Page Header --- */
.curated-header {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.curated-header h1 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* --- Publisher Page --- */
.publisher-header {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.publisher-header-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.publisher-logo {
    background: var(--crt-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.5rem;
}

.publisher-logo img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.publisher-info { padding: 1.5rem; }

.publisher-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-value {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--atari-orange);
}

.stat-label {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.publisher-description {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: var(--radius);
    border-left: 3px solid var(--atari-orange);
    box-shadow: var(--shadow-sm);
}

/* --- Release Timeline --- */
.release-timeline {
    margin-bottom: 2rem;
}

.timeline-year {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
}

.timeline-year:last-child { border-bottom: none; }

.timeline-year-label {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--atari-orange);
    padding-top: 0.25rem;
}

.timeline-year-games {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.timeline-game {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-game:hover { color: var(--atari-orange); }

/* --- Hardware Page --- */
.hardware-header {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.hardware-header-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.hardware-image {
    background: var(--crt-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.hardware-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hardware-info { padding: 1.5rem; }

.hardware-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.hardware-values {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.value-label {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-amount {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--crt-green);
}

.hardware-description {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: var(--radius);
    border-left: 3px solid var(--crt-blue);
    box-shadow: var(--shadow-sm);
}

.hardware-type-section { margin-bottom: 2rem; }

/* --- Specs Table --- */
.specs-table {
    margin-bottom: 2rem;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    font-size: 0.9rem;
}

.specs-table th {
    color: var(--text-muted);
    width: 35%;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.specs-table td {
    color: var(--text-bright);
}

.specs-table tr:nth-child(even) {
    background: #f9fafb;
}

/* --- Type Badges --- */
.type-badge {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.badge-console { background: #1a4a6e; color: #87ceeb; }
.badge-controller { background: #2d5a27; color: #90ee90; }
.badge-peripheral { background: #6e5a1a; color: #ffd700; }
.badge-accessory { background: #4a2d6e; color: #d8b4fe; }
.badge-clone { background: #6e3a1a; color: #ff8c00; }
.badge-modern { background: #1a6e5a; color: #5eead4; }
.badge-first-party { background: #6e1a1a; color: #ff4444; }
.badge-role { background: #2a2a5a; color: var(--crt-blue); }

/* --- Person Page --- */
.person-header {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.person-header-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

.person-photo {
    background: var(--crt-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-info { padding: 1.5rem; }

.person-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.person-bio {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: var(--radius);
    border-left: 3px solid var(--atari-orange);
    box-shadow: var(--shadow-sm);
}

/* --- Quotes --- */
.quotes-list {
    margin-bottom: 2rem;
}

.person-quote {
    background: #ffffff;
    border-left: 3px solid var(--atari-amber);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.person-quote p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
}

.person-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

/* --- Placeholder Icon --- */
.placeholder-icon {
    font-size: 3rem;
    color: #d1d5db;
}

/* --- External Links --- */
.external-links {
    list-style: none;
    margin-bottom: 2rem;
}

.external-links li {
    margin-bottom: 0.5rem;
}

.external-links a {
    font-size: 0.9rem;
}

/* --- History / Collecting Guide Layout --- */
.history-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.history-content { min-width: 0; }

.history-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.history-hero-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.history-article blockquote {
    background: #ffffff;
    border-left: 3px solid var(--atari-amber);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.history-article blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
}

/* --- Table of Contents --- */
.toc-panel, .sidebar-panel {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 80px;
    box-shadow: var(--shadow-sm);
}

.toc-panel h3, .sidebar-panel h3 {
    font-family: var(--heading-font);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.toc-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin-bottom: 0.4rem;
}

.toc-nav a {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    padding: 0.2rem 0;
}

.toc-nav a:hover { color: var(--atari-orange); }
.toc-nav a.active { color: var(--atari-orange); font-weight: bold; }

.toc-h3 { padding-left: 1rem; }

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li { margin-bottom: 0.4rem; }

.sidebar-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar-links a:hover { color: var(--atari-orange); }

/* --- Reproduction Warning --- */
.repro-warning {
    padding: 1rem;
    background: rgba(231, 76, 60, 0.05);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.repro-warning-title {
    font-size: 0.9rem;
    color: var(--atari-red);
    font-weight: 600;
}

.repro-warning-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Search Page --- */
.search-form {
    margin-bottom: 2rem;
}

.search-input-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: relative;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 1;
}

.search-input-wrap input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #ffffff;
    border: none;
    border-radius: var(--radius);
    color: var(--text-bright);
    font-size: 0.95rem;
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-input-wrap input:focus {
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(231, 76, 60, 0.15);
}

.search-input-wrap input::placeholder { color: var(--text-muted); }

.search-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.search-summary strong { color: var(--atari-orange); }

.search-type-counts {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.type-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.search-section {
    margin-bottom: 2.5rem;
}

.search-section-title {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-result-item {
    display: block;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.search-result-item:hover {
    box-shadow: var(--shadow-md);
}

.search-result-item h4 {
    font-size: 1rem;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.search-result-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.search-more {
    font-size: 0.85rem;
    margin-top: 1rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.search-no-results p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* --- Enhanced Blog --- */
.blog-category-badge {
    display: inline-block;
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--crt-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.blog-meta-line {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-author { color: var(--atari-orange); }

.blog-hero-image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

/* --- Social Sharing --- */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.share-label {
    font-family: var(--heading-font);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: none;
    background: var(--crt-black);
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #e5e7eb;
    color: var(--text-bright);
}

/* --- Enhanced 404 --- */
.error-search {
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.error-suggestions {
    margin-top: 3rem;
}

.error-popular {
    margin-top: 2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 0.25rem;
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .hero h1 { font-size: 1rem; }

    .featured-game-inner { grid-template-columns: 1fr; }
    .featured-game-image { height: 200px; }

    .publisher-header-inner { grid-template-columns: 1fr; }
    .publisher-logo { min-height: 150px; }

    .hardware-header-inner { grid-template-columns: 1fr; }
    .hardware-image { min-height: 200px; }

    .person-header-inner { grid-template-columns: 1fr; }
    .person-photo { min-height: 200px; }

    .history-layout { grid-template-columns: 1fr; }
    .toc-panel, .sidebar-panel { position: static; }

    .timeline-year { grid-template-columns: 60px 1fr; }

    .search-input-wrap { flex-direction: column; }
    .search-input-wrap .search-icon { top: 0.75rem; }
    .search-input-wrap input { width: 100%; }

    .game-meta-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .price-cta-btn { font-size: 0.85rem; padding: 0.75rem 1rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggle { margin-left: 0; justify-content: center; }

    .tabs { gap: 0; }
    .tab-btn { padding: 0.6rem 0.75rem; font-size: 0.7rem; }

    .games-grid.list-view .game-card {
        grid-template-columns: 80px 1fr;
    }
}

@media (max-width: 480px) {
    .brand-title { font-size: 0.7rem; }
    .card-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .card-body { padding: 0.75rem; }
    .card-body h3 { font-size: 0.85rem; }
    .pillar-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Video Elements --- */

/* Preview mode: muted autoplay in listing cards */
.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

/* Full-size mode: controllable video in posts/pages/game detail */
.video-full {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 4/3;
    background: #e5e7eb;
    border-radius: var(--radius);
    display: block;
    margin: 1rem 0;
}

/* Background mode: fills parent container */
.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
    pointer-events: none;
}

/* Card video overlay: replaces image in game cards */
.card-image .video-preview {
    aspect-ratio: 4/3;
}

@media (max-width: 640px) {
    .video-full { max-width: 100%; }
}
