:root {
    color-scheme: light;
    --red: #c8202b;
    --ink: #171717;
    --muted: #737373;
    --line: #e5e5e5;
    --paper: #fff;
    --soft: #f5f5f5;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.topline { color: #c8c8c8; background: #111; font-size: 10px; letter-spacing: .35px; text-transform: uppercase; }
.topline .wrap { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.masthead { color: #fff; background: #171717; }
.masthead-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-block; color: #fff; font-size: 31px; font-weight: 900; letter-spacing: -1.3px; line-height: 1.05; }
.brand span { color: #f04a50; }
.brand small { display: block; margin-top: 6px; color: #b7b7b7; font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.search { display: flex; min-width: 260px; height: 38px; overflow: hidden; border: 1px solid #444; border-radius: 2px; }
.search input { min-width: 0; flex: 1; padding: 0 11px; border: 0; outline: 0; color: #fff; background: #202020; font: inherit; font-size: 12px; }
.search button { padding: 0 15px; border: 0; color: #fff; background: #383838; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--red); }

.navigation { border-bottom: 3px solid var(--red); color: #fff; background: #222; }
.nav-inner { display: flex; min-height: 43px; align-items: stretch; gap: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar, .trending::-webkit-scrollbar { display: none; }
.nav-inner a { display: flex; align-items: center; padding: 0 11px; color: #eee; font-size: 10px; font-weight: 700; letter-spacing: .25px; }
.nav-inner a:first-child { padding-left: 0; }
.nav-inner a:hover, .nav-inner a.active { color: #ff777d; }

.page { padding-top: 16px; padding-bottom: 40px; }
.trending { display: flex; min-height: 38px; align-items: center; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); color: #555; font-size: 11px; white-space: nowrap; }
.trending strong { color: var(--red); font-size: 10px; letter-spacing: .6px; }
.trending a { font-weight: 600; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 26px; margin-top: 20px; }
.main-content, .sidebar { min-width: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--red); }
.section-heading h1 { margin: 0; font-size: 19px; line-height: 1.25; }
.section-heading span { color: var(--muted); font-size: 11px; }

.story { min-width: 0; border-bottom: 1px solid var(--line); }
.story-image { position: relative; display: flex; aspect-ratio: 16 / 9; align-items: center; justify-content: center; overflow: hidden; color: #aaa; background: #eee; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.story-image:hover img { transform: scale(1.02); }
.story-image.no-image { background: linear-gradient(135deg, #242424, #4a2528); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.story-body { padding: 12px 0 16px; }
.category { display: inline-block; margin-bottom: 5px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.meta, .article-meta { color: #888; font-size: 11px; }
.story h2 { margin: 5px 0 7px; font-size: 17px; line-height: 1.3; }
.story p { margin: 0 0 9px; color: #555; font-size: 12px; line-height: 1.55; }
.read-more { color: var(--red); font-size: 11px; font-weight: 700; }
.story-lead { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px; padding-bottom: 15px; }
.story-lead .story-image { height: 100%; min-height: 250px; aspect-ratio: auto; }
.story-lead .story-body { align-self: center; padding: 10px 0; }
.story-lead h2 { margin: 7px 0 10px; font-size: 25px; line-height: 1.2; }
.story-lead p { font-size: 13px; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 17px; }
.story-grid .story-image { aspect-ratio: 16 / 9; }

.side-search, .side-box { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); background: #fff; }
.side-search { display: block; min-width: 0; height: auto; }
.side-search h2, .side-box h2 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--red); font-size: 15px; }
.side-search > div { display: flex; min-width: 0; height: 37px; }
.side-search input { min-width: 0; width: 100%; border: 1px solid #ddd; color: var(--ink); background: #fff; }
.side-search button { padding: 0 11px; border: 0; color: #fff; background: #222; cursor: pointer; }
.side-box > a { display: block; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 12px; }
.side-box > a:last-child { border-bottom: 0; }
.side-story { display: block; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 12px; font-weight: 700; line-height: 1.4; }
.side-story:last-child { border-bottom: 0; }

.article-shell { min-width: 0; padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.article-shell h1 { margin: 8px 0 16px; font: 700 34px/1.2 Georgia, "Times New Roman", serif; }
.article-labels { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.article-labels a { padding: 4px 8px; color: var(--red); background: #fff3f3; font-size: 10px; font-weight: 700; }
.article-content { color: #292929; font: 18px/1.8 Georgia, "Times New Roman", serif; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 17px; }
.article-content img { height: auto; margin: 16px auto; }
.article-content iframe { display: block; width: min(100%, 720px); min-height: 340px; margin: 18px auto; border: 0; }
.article-content a { color: var(--red); text-decoration: underline; }
.article-content blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid var(--red); background: var(--soft); }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: 8px; border: 1px solid var(--line); }
.back-link { display: inline-block; margin-top: 14px; color: var(--red); font-size: 12px; font-weight: 700; }

.notice { margin: 14px 0; padding: 22px; border: 1px solid var(--line); background: #fafafa; }
.notice h1, .notice h2 { margin: 0 0 8px; font-size: 19px; }
.notice p { margin: 0 0 10px; color: #555; font-size: 13px; }
.button { display: inline-block; margin-top: 5px; padding: 8px 12px; color: #fff; background: #222; font-size: 12px; font-weight: 700; }
.ad-slot { margin: 16px 0; text-align: center; }

.footer { color: #c8c8c8; background: #171717; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; padding-top: 28px; padding-bottom: 24px; }
.footer-brand { margin-bottom: 7px; font-size: 22px; }
.footer-grid p { margin: 4px 0; font-size: 12px; }
.footer-grid h2 { margin: 0 0 8px; color: #fff; font-size: 13px; }
.footer-grid > div > a:not(.brand) { display: block; padding: 3px 0; font-size: 12px; }
.copyright { padding: 12px 18px; border-top: 1px solid #333; color: #999; background: #111; text-align: center; font-size: 11px; }

@media (max-width: 820px) {
    .content-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; }
    .nav-inner a { padding: 0 9px; }
    .story-lead { grid-template-columns: 1fr; gap: 0; }
    .story-lead .story-image { min-height: 0; aspect-ratio: 16 / 9; }
    .story-lead .story-body { padding-bottom: 14px; }
}

@media (max-width: 640px) {
    .wrap { width: min(100% - 28px, 1120px); }
    .topline .wrap { min-height: 28px; font-size: 9px; }
    .topline .wrap span:last-child { display: none; }
    .masthead-inner { min-height: 72px; gap: 12px; }
    .brand { font-size: 25px; }
    .brand small { font-size: 8px; letter-spacing: 1.5px; }
    .search { min-width: 150px; width: 150px; height: 34px; }
    .search input { display: block; padding: 0 7px; font-size: 11px; }
    .search button { width: auto; padding: 0 9px; font-size: 11px; }
    .nav-inner { width: 100%; padding: 0 14px; }
    .nav-inner a { flex: 0 0 auto; font-size: 9px; }
    .page { padding-top: 10px; padding-bottom: 24px; }
    .trending { gap: 12px; font-size: 10px; }
    .content-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 14px; }
    .section-heading span { display: none; }
    .story-lead h2 { font-size: 21px; }
    .story-grid { gap: 14px 12px; }
    .story-grid .story h2 { font-size: 14px; }
    .story-grid .story p { display: none; }
    .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .side-search, .side-box { margin: 0; padding: 11px; }
    .article-shell { padding: 18px 14px; }
    .article-shell h1 { font-size: 27px; }
    .article-content { font-size: 17px; }
    .article-content iframe { min-height: 220px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
    .search { min-width: 118px; width: 118px; }
    .search button { padding: 0 6px; }
    .story-grid { grid-template-columns: 1fr; }
    .story-grid .story { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 11px; padding: 10px 0; }
    .story-grid .story-image { aspect-ratio: 4 / 3; }
    .story-grid .story-body { padding: 0; }
    .story-grid .story h2 { margin: 3px 0; }
    .story-grid .story .category { margin: 0; font-size: 9px; }
    .story-grid .story .meta { font-size: 9px; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
}

@media (max-width: 380px) {
    .brand { font-size: 20px; }
    .brand small { font-size: 7px; letter-spacing: 1px; }
    .search { min-width: 105px; width: 105px; }
}
