*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --red: #dc2626;
    --dark-red: #991b1b;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-600: #525252;
    --gray-400: #a3a3a3;
    --gray-200: #e5e5e5;
    --bg-primary: var(--black);
    --bg-secondary: var(--gray-900);
    --bg-header: rgba(10, 10, 10, 0.95);
    --text-primary: var(--white);
    --text-secondary: var(--gray-400);
    --text-muted: var(--gray-600);
    --border-color: var(--gray-800);
    --card-bg: var(--gray-900);
    --input-bg: var(--black);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}
[data-theme="light"] {
    --black: #ffffff;
    --white: #0a0a0a;
    --red: #dc2626;
    --dark-red: #b91c1c;
    --gray-900: #f5f5f5;
    --gray-800: #e5e5e5;
    --gray-600: #737373;
    --gray-400: #525252;
    --gray-200: #262626;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --border-color: #e5e5e5;
    --card-bg: #f5f5f5;
    --input-bg: #ffffff;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(220,38,38,0.02) 0%, transparent 50%);
    pointer-events: none;
}
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* HEADER */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-family: var(--font-sans);
    font-weight: 900; font-size: 1.5rem;
    letter-spacing: -0.04em;
    display: flex; align-items: center; gap: 8px;
}
.logo-text { color: var(--red); }
.logo-badge {
    font-size: 0.55rem; font-weight: 700;
    background: var(--red); color: var(--white);
    padding: 2px 6px; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.header-nav {
    display: flex; align-items: center; gap: 24px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
}
.header-nav a:hover { color: var(--text-primary); transition: color 0.2s; }
.hamburger { display: none; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* THEME TOGGLE */
.theme-toggle {
    background: none; border: 1px solid var(--border-color);
    border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.2s; margin-left: 8px;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }

/* SUBPAGE LAYOUT */
.page { max-width: 720px; margin: 40px auto; padding: 0 24px; }
.page h1 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page .subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 32px; }
.page h2 { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.page p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.page .highlight { color: var(--red); font-weight: 700; }

/* AD UNITS */
.ad-container { margin: 20px auto; text-align: center; }
.ad-leaderboard { width: 100%; max-width: 1280px; margin: 20px auto; padding: 0 24px; }
.ad-leaderboard-inner {
    width: 100%; height: 150px; overflow: hidden;
    background: var(--card-bg); border: 1px dashed var(--border-color);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: var(--text-muted);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.ad-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1280px; margin: 20px auto; padding: 0 24px; }
.ad-duo-inner {
    height: 150px; overflow: hidden;
    background: var(--card-bg); border: 1px dashed var(--border-color);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: var(--text-muted);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px 24px;
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
    font-size: 0.82rem; color: var(--text-secondary);
    max-width: 320px; line-height: 1.6;
}
.footer-col h4 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-secondary); letter-spacing: 0.08em; margin-bottom: 14px;
}
.footer-col a {
    display: block; font-size: 0.85rem; color: var(--text-muted);
    margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: 1280px; margin: 32px auto 0;
    padding-top: 16px; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.72rem; color: var(--text-muted);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--text-muted); transition: color 0.2s; }
.footer-socials a:hover { color: var(--red); }

/* RESPONSIVE SHARED */
@media (max-width: 968px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .header-nav { display: none; }
    .header-nav.open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: #000;
        padding: 80px 32px 32px;
        gap: 8px;
        z-index: 9000;
        overflow-y: auto;
    }
    .header-nav.open a {
        font-size: 1.1rem; padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .header-nav.open .theme-toggle { margin: 16px 0 0; align-self: flex-start; }
    .hamburger {
        display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
        position: fixed; top: 14px; right: 20px; z-index: 9999;
    }
    .hero-main { min-height: 240px; }
    .hero-main img { width: 100%; height: 240px; object-fit: cover; }
    .hero-side-item { grid-template-columns: 80px 1fr; gap: 10px; }
    .hero-side-item img { width: 80px; height: 60px; }
    .card img { height: 160px; }
    .ad-leaderboard-inner { height: 100px; }
    .ad-duo-inner { height: 100px; }
    .ad-duo { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.3rem; }
    .hero-side { gap: 12px; }
    .grid { grid-template-columns: 1fr; }
    .opinion-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}