:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  --bg: #0c0f14;
  --panel: #11161d;
  --panel-border: #262c35;
  --panel-highlight: rgba(255, 255, 255, 0.02);
  --text: #e8edf2;
  --muted: #9aa4b1;
  --accent: #29d8f5;
  --accent-dark: #0b8aa1;
}

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

body {
  background: radial-gradient(circle at top left, #131822, #0b0e13 45%, #090b10);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 40px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #1f2530;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brand-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-title span {
  color: var(--accent);
}

.brand-subtitle {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 2px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.status .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(41, 216, 245, 0.7);
}

.headlines {
  padding-top: 28px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 24px;
}

.popular {
  padding-top: 28px;
}

.headlines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.headlines-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.count {
  font-size: 12px;
  color: var(--muted);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  background: linear-gradient(160deg, #131a24, #0f131a);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 1px 0 var(--panel-highlight), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.news-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.news-card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent);
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #2a303b;
  font-size: 11px;
  color: var(--text);
  background: #0f141b;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.8px;
  background: rgba(41, 216, 245, 0.18);
  color: var(--accent);
  font-weight: 600;
}

.card-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #2a303b;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
  background: #10141b;
}

.pager {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pager-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #2a303b;
  background: #10141b;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.pager-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 860px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .card-action {
    align-self: flex-end;
  }
}
