:root {
  --red: #d00000;
  --dark: #0d0d0d;
  --mid: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #f0a500;
  --bg: #111;
  --card-bg: #181818;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; width: 100%; object-fit: cover; }

/* ---- Header ---- */
.site-header {
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
  flex-shrink: 0;
}
.logo span { color: var(--red); }
.main-nav {
  display: flex;
  gap: 18px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.main-nav a:hover { color: #fff; }
.header-social { display: flex; gap: 12px; }
.header-social a {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 3px;
  transition: all 0.15s;
}
.header-social a:hover { color: #fff; border-color: #fff; }

/* ---- Breaking bar ---- */
.breaking-bar {
  background: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px;
  overflow: hidden;
}
.breaking-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.breaking-ticker {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.breaking-ticker a { color: #fff; font-weight: 600; }
.breaking-ticker a:hover { text-decoration: underline; }

/* ---- Main layout ---- */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 2px;
  margin-right: 4px;
}
.tag-crime     { background: #7a0000; color: #ffaaaa; }
.tag-emergency { background: #7a3a00; color: #ffcc88; }
.tag-courts    { background: #003a7a; color: #aaccff; }
.tag-weather   { background: #004a4a; color: #aaffee; }
.tag-general   { background: #2a2a2a; color: #aaa; }
.tag-breaking  { background: var(--red); color: #fff; }
.region-tag {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
}
.breaking-label-big { font-size: 14px; }
.see-all { font-size: 12px; color: var(--muted); }
.see-all:hover { color: var(--accent); }

/* ---- Breaking cards ---- */
.breaking-section { margin-bottom: 32px; }
.breaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.breaking-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.breaking-card:hover { transform: translateY(-2px); border-color: var(--red); }
.breaking-card img { height: 160px; }
.breaking-card-body { padding: 14px; }
.breaking-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 6px 0;
}
.breaking-card-body p { font-size: 13px; color: var(--muted); }
.time { font-size: 11px; color: var(--muted); margin-top: 8px; display: block; }
.byline-brand { font-size: 13px; font-weight: 700; color: var(--red); }

/* ---- Home grid ---- */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
}

/* ---- Article list ---- */
.article-list { display: flex; flex-direction: column; gap: 1px; }
.article-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.article-row:hover { background: rgba(255,255,255,0.02); }
.article-row.is-breaking { border-left: 3px solid var(--red); padding-left: 12px; }
.article-row img { width: 100px; height: 70px; flex-shrink: 0; border-radius: 3px; object-fit: cover; }
.article-row-body { flex: 1; }
.article-meta { margin-bottom: 4px; }
.article-row-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 4px 0;
}
.article-row-body p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-block {}
.sidebar-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-item:hover h4 { color: var(--accent); }
.sidebar-item.is-breaking { border-left: 2px solid var(--red); padding-left: 8px; }
.sidebar-item h4 { font-size: 13px; font-weight: 600; line-height: 1.35; margin: 4px 0; }

/* ---- Article page ---- */
.article-page { max-width: 780px; margin: 0 auto; }
.article-header { margin-bottom: 24px; }
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.25;
  margin: 10px 0;
}
.article-byline { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.dot { color: var(--border); }
.article-hero { height: 420px; border-radius: 4px; margin-bottom: 24px; }
.article-body {}
.article-summary {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
}
.article-source-link { margin-bottom: 24px; }
.article-source-link a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.article-original {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.article-original h4 { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.article-original p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.article-share {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.article-share a {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 12px;
}

/* ---- Category page ---- */
.category-page h1 { font-size: 28px; font-weight: 900; }
.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-logo span { color: var(--red); }
.footer-tagline { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.footer-nav { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-nav a { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.footer-disclaimer { font-size: 11px; color: var(--border); max-width: 600px; margin: 0 auto; line-height: 1.6; }
