:root {
  --red: #e51b23;
  --dark-red: #b50f16;
  --black: #101010;
  --text: #191919;
  --muted: #6a6a6a;
  --line: #e4e4e4;
  --bg: #f4f4f4;
  --paper: #fff;
  --soft: #f0f0f0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.utilityBar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px max(4vw, calc((100vw - 1180px) / 2));
  font-size: 13px;
}
.utilityBar div { display: flex; gap: 18px; flex-wrap: wrap; }
.utilityBar a { color: var(--red); font-weight: 800; }

.siteHeader { background: var(--paper); }
.headerTop {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.brand {
  color: var(--black);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
.brand span { color: var(--red); }
.headerAd {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  min-width: min(460px, 45vw);
  padding: 16px;
  text-align: center;
  font-weight: 800;
}
.nav {
  background: var(--black);
  border-top: 3px solid var(--red);
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 max(4vw, calc((100vw - 1180px) / 2));
  font-weight: 900;
}
.nav a {
  color: #fff;
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}
.nav a.active,
.nav a:hover { background: var(--red); }

.container {
  width: min(1180px, 92vw);
  margin: 22px auto 50px;
}
.breakingStrip {
  align-items: center;
  background: var(--paper);
  border-left: 4px solid var(--red);
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  padding: 12px 14px;
}
.breakingStrip strong {
  background: var(--red);
  color: #fff;
  padding: 6px 10px;
  text-transform: uppercase;
}
.breakingStrip span { color: var(--muted); font-weight: 700; }

.categoryTiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.categoryTiles a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  min-height: 110px;
  padding: 14px;
}
.categoryTiles span {
  color: var(--red);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}
.categoryTiles strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.magazineShell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.mainColumn,
.sidebar,
.emptyState,
.panel {
  background: var(--paper);
}
.mainColumn,
.sidebar {
  padding: 18px;
  border: 1px solid var(--line);
}
.sectionTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--black);
  margin: 0 0 16px;
  font-weight: 900;
  font-size: 22px;
}
.sectionTitle span {
  background: var(--black);
  color: #fff;
  display: inline-flex;
  padding: 8px 12px;
}
.sectionTitle a {
  color: var(--red);
  font-size: 14px;
  padding-bottom: 8px;
}
.sectionTitle.compact {
  font-size: 18px;
  margin-top: 8px;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .75fr);
  gap: 18px;
}
.mainLead,
.featureCard,
.miniStory,
.storyCard,
.sideItem {
  background: #fff;
}
.featureCard {
  overflow: hidden;
  position: relative;
}
.mainLead img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--soft);
}
.storyText { padding: 12px 0 2px; }
.kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  margin: 7px 0 10px;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.12;
  letter-spacing: 0;
}
h2 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}
h3 {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.25;
}
p { line-height: 1.65; margin: 0 0 10px; }
.meta,
.muted { color: var(--muted); font-size: 13px; }

.featureStack {
  display: grid;
  gap: 16px;
}
.featureCard a {
  display: grid;
  min-height: 190px;
  position: relative;
  overflow: hidden;
}
.featureCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.featureCard::after {
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.82));
  content: "";
  position: absolute;
  inset: 0;
}
.overlayText {
  align-self: end;
  color: #fff;
  padding: 16px;
  position: relative;
  z-index: 1;
}
.overlayText h2 { font-size: 18px; }
.overlayText .kicker { color: #fff; }

.sideItem {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  margin-bottom: 12px;
}
.sideItem a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}
.sideItem img {
  width: 92px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}
.popularList {
  counter-reset: popular;
  list-style: none;
  margin: 0;
  padding: 0;
}
.popularList li {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  font-weight: 800;
}
.popularList li::before {
  color: var(--red);
  content: counter(popular);
  counter-increment: popular;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.newsSection {
  background: var(--paper);
  border: 1px solid var(--line);
  margin-top: 28px;
  padding: 18px;
}
.storyGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.storyCard {
  border-bottom: 1px solid var(--line);
}
.storyCard img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--soft);
}
.storyCard h2 { font-size: 19px; }
.categoryList { margin-top: 22px; }
.emptyState {
  border: 1px solid var(--line);
  padding: 30px;
}

.adminBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: #111;
  color: #fff;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
}
.button.secondary,
button.secondary { background: #333; }
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; }
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px;
  font: inherit;
}
textarea { min-height: 180px; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.error { color: var(--red); font-weight: 800; }

@media (max-width: 980px) {
  .magazineShell,
  .heroGrid,
  .categoryTiles,
  .storyGrid { grid-template-columns: 1fr; }
  .headerAd { display: none; }
}

@media (max-width: 560px) {
  .container,
  .headerTop { width: min(100% - 28px, 1180px); }
  .utilityBar { display: none; }
  .nav { padding: 0 14px; }
  .nav a { padding: 12px 14px; }
  .mainColumn,
  .sidebar,
  .newsSection { padding: 14px; }
  .sideItem a { grid-template-columns: 86px minmax(0, 1fr); }
  .sideItem img { width: 86px; }
  h2 { font-size: 18px; }
}
