:root { --bg: #0f172a; --card: #1e293b; --inner: rgba(51, 65, 85, 0.5); --border: #334155; --text: #cbd5e1; --text-strong: #f8fafc; --text-muted: #94a3b8; --color-blue: #3b82f6; }
        html[data-theme="light"] { --bg: #f0f2f5; --card: #f6f8fa; --inner: #e1e4e8; --border: #d0d7de; --text: #24292f; --text-strong: #0f1419; --text-muted: #57606a; --color-blue: #0969da; }
        body { background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh;  }
        .container { max-width: 800px; margin: 0 auto; padding: 1rem; width: 100%; box-sizing: border-box; }
        header { border-bottom: 1px solid var(--border); padding: 0.75rem 0; margin-bottom: 1.5rem; transition: border-color 0.3s; }
        .header-inner { display: flex; justify-content: space-between; align-items: center; }
        header h1 { margin: 0; font-size: 1.5rem; color: var(--text-strong); }
        .header-actions { display: flex; align-items: center; gap: 10px; }
        .theme-toggle { background: var(--inner); border: 1px solid var(--border); color: var(--text-strong); border-radius: 0.5rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; flex-shrink: 0;  }
        .theme-toggle:hover { background: var(--border); }
        .article-header { text-align: center; margin-bottom: 2rem; }
        .article-title { font-size: 2rem; color: var(--text-strong); margin-bottom: 0.5rem; }
        .article-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
        .article-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: 1rem; margin-bottom: 2rem; }
        .article-body { font-size: 1.05rem; line-height: 1.6; color: var(--text); }
        .article-body h2, .article-body h3 { color: var(--text-strong); margin-top: 1.5rem; }
        .article-body img { max-width: 100%; height: auto; border-radius: 0.5rem; }
        .article-body a { color: var(--color-blue); text-decoration: none; }
        .btn-back { display: inline-block; padding: 0.5rem 1rem; background: var(--inner); border: 1px solid var(--border); color: var(--text-strong); text-decoration: none; border-radius: 0.5rem;  }
        .btn-back:hover { background: var(--border); }
        .site-footer { text-align: center; padding: 2rem 1rem; margin-top: auto; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }
        .site-footer a { color: var(--color-blue); text-decoration: none; font-weight: 500; transition: color 0.2s; }
        .site-footer a:hover { color: var(--text-strong); }
        .footer-links { margin-top: 8px; font-size: 0.85rem; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
        .footer-separator { color: var(--border); }
        .share-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }
        .share-title { font-size: 1.2rem; font-weight: 600; color: var(--text-strong); margin-bottom: 1rem; }
        .share-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
        .share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 8px; font-weight: 600; color: white; text-decoration: none; font-size: 0.9rem; transition: opacity 0.2s; border: none; cursor: pointer; }
        .share-btn:hover { opacity: 0.8; }
        .share-vk { background: #0077FF; }
        .share-tg { background: #229ED9; }
        .share-copy { background: var(--inner); color: var(--text-strong); border: 1px solid var(--border); }
        @media (max-width: 600px) {
            .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
            .header-actions { width: 100%; justify-content: space-between; }
        }
[data-theme="dark"] select option,
[data-theme="dark"] select optgroup {
    background: #1e293b !important;
    color: #f8fafc !important;
}
