:root {
    --red: #fc0d25;
    --text: #444444;
    --title: #2e2e2e;
    --muted: #888888;
    --line: #e6e6e6;
    --footer: #f5f5f5;
    --font: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

a { color: var(--title); text-decoration: none; }
a:hover { color: var(--red); }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.widget-title {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--title);
    border-bottom: 2px solid var(--red);
    padding-bottom: 4px;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* ===== Header ===== */
.site-header { background: #fff; padding: 14px 0 10px; }
.head-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}
.menu-btn { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #111; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; display: block;
}
.brand-name { color: var(--red); font-size: 30px; font-weight: 700; letter-spacing: -0.4px; line-height: 1; }
.brand:hover .brand-name { color: var(--red); }
.head-search {
    display: flex; align-items: center;
    border: 1px solid #d5d5d5; border-radius: 3px; overflow: hidden;
    max-width: 280px; margin-left: auto; background: #fff;
}
.head-search input {
    border: none; outline: none; padding: 8px 12px;
    font: inherit; font-size: 14px; width: 180px; background: transparent;
}
.head-search button {
    border: none; background: var(--red); color: #fff;
    font: inherit; font-weight: 700; font-size: 13px;
    padding: 8px 14px; cursor: pointer;
}
.head-date { color: #777; font-size: 14px; white-space: nowrap; }

/* ===== Nav ===== */
.nav-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.main-nav, .sub-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.sub-nav { border-top: 1px solid #f0f0f0; }
.main-nav a, .sub-nav a {
    display: inline-block;
    padding: 11px 14px;
    color: #111;
    font-size: 15px;
    font-weight: 600;
}
.main-nav a:hover, .sub-nav a:hover,
.main-nav a.active, .sub-nav a.active { color: var(--red); }
.nav-logo {
    margin-right: 6px; padding: 6px 8px !important;
    background: transparent; display: inline-flex !important; align-items: center;
}
.nav-logo img {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; display: block;
}
.nav-logo:hover { filter: none; }

/* ===== Ticker ===== */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.ticker-label {
    flex-shrink: 0;
    background: var(--red); color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 4px 10px;
}
.ticker-window { overflow: hidden; flex: 1; }
.ticker-track {
    display: flex; gap: 28px; width: max-content;
    animation: ticker 42s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { color: var(--red); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Page shell ===== */
.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    padding: 22px 0 48px;
}
.content-col { min-width: 0; }

/* ===== Big headline ===== */
.headline-block {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.9fr);
    gap: 22px;
    margin-bottom: 26px;
    padding-bottom: 8px;
}
.big-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.big-copy { padding-top: 10px; }
.big-copy time, .related-item time, .meta-line time, .detail-meta time { color: var(--muted); font-size: 13px; }
.big-copy h2 { margin: 4px 0 8px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.big-copy h2 a { color: var(--title); }
.big-copy h2 a:hover { color: var(--red); }
.big-copy p { color: #555; font-size: 15px; }
.related-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.related-thumb img { width: 110px; height: 68px; object-fit: cover; border-radius: 3px; }
.related-item a { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--title); margin-top: 2px; }
.related-item a:hover { color: var(--red); }

/* ===== Headlines strip ===== */
.headlines { margin: 8px 0 18px; }
.headline-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.headline-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.headline-card a { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--title); }
.headline-card a:hover { color: var(--red); }

/* ===== News rows ===== */
.news-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.news-row-thumb img { width: 200px; height: 112px; object-fit: cover; border-radius: 3px; }
.meta-line { display: flex; gap: 10px; align-items: center; margin-bottom: 3px; }
.cat-link { color: var(--red); font-weight: 700; font-size: 13px; }
.cat-link:hover { text-decoration: underline; }
.news-row-body h2 { font-size: 18px; line-height: 1.3; font-weight: 700; margin-bottom: 6px; }
.news-row-body h2 a { color: var(--title); }
.news-row-body h2 a:hover { color: var(--red); }
.news-row-body p { color: #666; font-size: 14.5px; }

.section-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 26px; }
.more-link { color: var(--red); font-weight: 700; font-size: 14px; }
.mini-list { list-style: none; margin: 4px 0 8px; }
.mini-list li { border-bottom: 1px solid #f2f2f2; }
.mini-list a { display: block; padding: 9px 0; font-weight: 600; color: var(--title); }
.mini-list a:hover { color: var(--red); }

/* ===== Sidebar ===== */
.sidebar, .sidebar-col { min-width: 0; }
.side-widget { margin-bottom: 26px; }
.cat-list { list-style: none; }
.cat-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-bottom: 1px solid #f0f0f0;
    color: var(--title); font-weight: 600;
}
.cat-list a:hover { color: var(--red); }
.cat-list .count { color: var(--muted); font-size: 13px; font-weight: 600; }
.popular-list { list-style: none; }
.popular-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.popular-list .rank { color: var(--red); font-weight: 700; min-width: 16px; }
.popular-list a { color: var(--title); font-weight: 600; line-height: 1.35; }
.popular-list a:hover { color: var(--red); }

/* ===== Listing / article ===== */
.page-header { margin-bottom: 8px; }
.page-header h1 { font-size: 28px; font-weight: 700; color: var(--title); line-height: 1.2; }
.page-header p { color: var(--muted); margin-top: 4px; }
.article h1 { font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--title); margin: 8px 0 12px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--red); font-weight: 600; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 16px; font-size: 14px; }
.author-name { font-weight: 700; color: var(--title); }
.detail-hero-img { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 18px; }
.detail-content { font-size: 17px; line-height: 1.75; color: #333; font-weight: 500; }
.detail-content p { margin-bottom: 16px; }
.detail-content h2 { font-size: 22px; margin: 8px 0 10px; color: var(--title); }
.detail-content h3 { font-size: 18px; margin: 6px 0 8px; color: var(--title); }
.detail-content a { color: var(--red); }
.detail-content ul, .detail-content ol { margin: 0 0 16px 22px; }
.detail-content blockquote { border-left: 3px solid var(--red); padding-left: 14px; color: #666; margin-bottom: 16px; }
.source-line { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: #666; }
.source-line a { color: var(--red); font-weight: 700; }
.related-section { margin-top: 28px; }

.empty-state {
    text-align: center; padding: 48px 16px; color: var(--muted);
    border: 1px dashed var(--line); margin-top: 12px;
}
.empty-state .big { font-size: 16px; font-weight: 700; color: var(--title); margin-bottom: 4px; }

.btn {
    display: inline-flex; align-items: center;
    padding: 8px 14px; font: inherit; font-weight: 700; font-size: 14px;
    border: none; cursor: pointer; color: #fff; background: var(--red);
}
.btn-secondary { background: #fff; color: var(--title); border: 1px solid #ccc; }
.btn-secondary:hover { color: var(--red); }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 8px; }
.pagination a, .pagination > span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; padding: 6px 10px;
    border: 1px solid var(--line); color: var(--title); background: #fff; font-weight: 600;
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .active { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .disabled { opacity: 0.45; }

/* ===== Footer ===== */
.site-footer { background: var(--footer); padding: 28px 0 34px; color: #888; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.footer-brand { color: var(--red); font-size: 22px; font-weight: 700; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.footer-links a { color: #565656; font-weight: 600; }
.footer-links a:hover { color: var(--red); }
.footer-about { margin-top: 8px; color: #777; font-size: 14.5px; max-width: 420px; }
.footer-copy { margin-top: 10px; font-size: 13px; }

.flash {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    background: #107c10; color: #fff; padding: 10px 18px;
    z-index: 300; font-weight: 600;
}

@media (max-width: 900px) {
    .head-row { grid-template-columns: auto 1fr; }
    .head-date { display: none; }
    .head-search { grid-column: 1 / -1; max-width: none; margin-left: 0; }
    .head-search input { flex: 1; width: auto; }
    .menu-btn { display: flex; }
    .nav-wrap { display: none; border-bottom: none; }
    .nav-toggle:checked ~ .nav-wrap { display: block; }
    .main-nav, .sub-nav { flex-direction: column; align-items: stretch; }
    .main-nav a, .sub-nav a { border-bottom: 1px solid #f3f3f3; }
    .page-shell, .headline-block, .footer-grid { grid-template-columns: 1fr; }
    .headline-strip { grid-template-columns: repeat(2, 1fr); }
    .news-row { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
    .news-row-thumb img { width: 120px; height: 78px; }
    .brand-name { font-size: 24px; }
    .article h1, .big-copy h2 { font-size: 22px; }
}

@media (max-width: 560px) {
    .headline-strip { grid-template-columns: 1fr 1fr; }
    .related-item { grid-template-columns: 90px 1fr; }
    .related-thumb img { width: 90px; height: 58px; }
}
