:root {
    --color-primary: #0057B7;
    --color-primary-dark: #004494;
    --color-accent: #FFD700;
    --color-danger: #C8102E;
    --color-bg: #FAFBFC;
    --color-surface: #FFFFFF;
    --color-border: #E8ECF0;
    --color-text: #1A1D21;
    --color-muted: #6B7280;
    --color-light: #F3F4F6;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    --shadow-lg: 0 4px 20px rgba(0,0,0,.08);
    --container: 1200px;
    --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow { max-width: 780px; }

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--color-primary);
    color: rgba(255,255,255,.9);
    font-size: .8125rem;
}

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

.header-social { display: flex; gap: 1rem; flex-wrap: wrap; }

.yt-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,255,255,.9);
    font-size: .8125rem;
}
.yt-link:hover { color: #fff; }

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--color-text);
    flex-shrink: 0;
}
.logo:hover { color: var(--color-text); }

.logo-pulse {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 50%, var(--color-accent) 50%);
    position: relative;
    flex-shrink: 0;
}
.logo-pulse::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--color-danger);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.85); opacity: .7; }
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.logo-text small { font-size: .75rem; color: var(--color-muted); font-weight: 400; }

.main-nav { display: flex; gap: .25rem; }
.main-nav a {
    padding: .5rem 1rem;
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 500;
    font-size: .9375rem;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--color-light);
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: .2s;
}

/* Hero */
.hero-section { padding: 2rem 0; }

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.hero-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-image:hover img { transform: scale(1.03); }

.hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .75rem;
}

.hero-content h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.hero-content h1 a { color: var(--color-text); }
.hero-content h1 a:hover { color: var(--color-primary); }
.hero-excerpt { color: var(--color-muted); font-size: .9375rem; }
.hero-content time { font-size: .8125rem; color: var(--color-muted); }

.welcome-banner {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.welcome-banner h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .5rem; }
.welcome-banner p { color: var(--color-muted); font-size: 1.125rem; margin-bottom: 2rem; }
.welcome-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.section-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.section-sub { color: var(--color-muted); font-size: .9375rem; margin-top: .25rem; }
.section-link { font-size: .9375rem; font-weight: 500; white-space: nowrap; }

.page-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}
.page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.page-header p { color: var(--color-muted); margin-top: .35rem; }

/* Badges */
.category-badge, .category-badge-sm {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .25rem .6rem;
    border-radius: 4px;
    width: fit-content;
}
.category-badge-sm { font-size: .625rem; padding: .2rem .5rem; }

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.news-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-light);
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-body { padding: 1.125rem; }
.news-card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; margin: .4rem 0; }
.news-card-body h3 a { color: var(--color-text); }
.news-card-body h3 a:hover { color: var(--color-primary); }
.news-card-body p { font-size: .875rem; color: var(--color-muted); margin-bottom: .5rem; }
.news-card-body time { font-size: .75rem; color: var(--color-muted); }

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-light), var(--color-border));
}

.play-badge, .play-badge-sm {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(200,16,46,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.play-badge-sm { width: 44px; height: 44px; }
.play-icon-sm {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 36px; height: 36px;
    background: rgba(200,16,46,.85);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* News list */
.news-list { display: flex; flex-direction: column; gap: 1rem; }

.news-list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s;
}
.news-list-item:hover { box-shadow: var(--shadow); }

.list-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-light);
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-content { padding: 1rem 1rem 1rem 0; display: flex; flex-direction: column; gap: .35rem; justify-content: center; }
.list-content h3 { font-size: 1.0625rem; font-weight: 600; }
.list-content h3 a { color: var(--color-text); }
.list-content h3 a:hover { color: var(--color-primary); }
.list-content p { font-size: .875rem; color: var(--color-muted); }
.list-content time { font-size: .75rem; color: var(--color-muted); }

/* News page layout */
.news-page-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.news-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}
.news-sidebar h3 { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); margin-bottom: .75rem; }

.category-list { list-style: none; }
.category-list a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 6px;
    color: var(--color-text);
    font-size: .9375rem;
    font-weight: 500;
}
.category-list a:hover, .category-list a.active {
    background: var(--color-primary);
    color: #fff;
}

/* Article */
.breadcrumb {
    display: flex;
    gap: .5rem;
    font-size: .875rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

.article-page { padding: 2rem 0 3rem; }

.article-header { margin-bottom: 1.5rem; }
.article-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: .75rem 0; }
.article-meta { font-size: .875rem; color: var(--color-muted); display: flex; gap: .5rem; align-items: center; }

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: #000;
}
.video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.article-image { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }

.article-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text);
}

.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin-bottom: 1rem; }
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
    margin: 1.75rem 0 .75rem;
    color: var(--color-text);
}
.rich-content h2 { font-size: 1.5rem; }
.rich-content h3 { font-size: 1.25rem; }
.rich-content h4 { font-size: 1.125rem; }
.rich-content ul,
.rich-content ol { margin: 0 0 1rem 1.25rem; }
.rich-content li { margin-bottom: .35rem; }
.rich-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.25rem 0;
    box-shadow: var(--shadow);
}
.rich-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-primary);
    background: var(--color-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #374151;
    font-style: italic;
}
.rich-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .9375rem;
}
.rich-content th,
.rich-content td {
    border: 1px solid var(--color-border);
    padding: .625rem .75rem;
    text-align: left;
}
.rich-content th {
    background: var(--color-light);
    font-weight: 600;
}
.rich-content pre,
.rich-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .875rem;
}
.rich-content pre {
    background: #1E293B;
    color: #F8FAFC;
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1rem 0;
}
.rich-content figure { margin: 1.25rem 0; }
.rich-content figcaption {
    text-align: center;
    font-size: .875rem;
    color: var(--color-muted);
    margin-top: .5rem;
}
.rich-content iframe {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.article-youtube-links { margin: 2rem 0; padding: 1.25rem; background: var(--color-light); border-radius: var(--radius); }
.article-youtube-links p { margin-bottom: .75rem; font-weight: 500; }

.share-block {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
    flex-wrap: wrap;
}
.share-block > span { font-weight: 500; font-size: .875rem; }
.share-btn {
    padding: .4rem .875rem;
    border-radius: 6px;
    font-size: .8125rem;
    font-weight: 500;
    color: #fff;
}
.share-tg { background: #0088cc; }
.share-fb { background: #1877F2; }
.share-btn:hover { opacity: .9; color: #fff; }

.about-content .lead { font-size: 1.125rem; line-height: 1.7; margin-bottom: 2rem; }
.about-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .75rem; }

/* YouTube section */
.youtube-section { background: linear-gradient(180deg, var(--color-bg) 0%, #EEF2FF 100%); }

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

.youtube-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 2rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow .2s, transform .2s;
    color: var(--color-text);
}
.youtube-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--color-text); }

.yt-icon { color: #FF0000; margin-bottom: .25rem; }
.youtube-card h3 { font-size: 1.125rem; font-weight: 700; }
.yt-handle { font-size: .875rem; color: var(--color-muted); margin-bottom: .5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9375rem;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-youtube { background: #FF0000; color: #fff; }
.btn-youtube:hover { background: #CC0000; color: #fff; }
.btn-sm { padding: .4rem .875rem; font-size: .8125rem; background: var(--color-primary); color: #fff; }
.btn-sm:hover { background: var(--color-primary-dark); color: #fff; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.page-btn {
    padding: .5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-surface);
}
.page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.page-info { font-size: .875rem; color: var(--color-muted); }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-muted);
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px dashed var(--color-border);
}
.empty-state p { margin-bottom: 1rem; }

.text-center { text-align: center; }

/* Footer */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,.8);
    padding: 3rem 0 0;
    margin-top: 2rem;
}

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

.footer-brand strong { font-size: 1.125rem; color: #fff; display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .875rem; line-height: 1.5; }

.footer-links h4 { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .75rem; }
.footer-links a { display: block; color: rgba(255,255,255,.7); font-size: .875rem; padding: .25rem 0; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .8125rem;
    color: rgba(255,255,255,.5);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-card { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-page-layout { grid-template-columns: 1fr; }
    .news-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: .75rem;
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .header-main { position: relative; }
    .header-main-inner { flex-wrap: wrap; }

    .news-grid { grid-template-columns: 1fr; }
    .news-list-item { grid-template-columns: 1fr; }
    .list-content { padding: 0 1rem 1rem; }
    .youtube-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 1.5rem; }
    .welcome-banner h1 { font-size: 1.75rem; }
}
