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

body {
  background: #0f0f13;
  color: #e2e2f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

a.back {
  font-size: 13px;
  color: #6a6a8a;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}
a.back:hover { color: #5b4cf5; }

header h1 { font-size: 28px; font-weight: 700; color: #fff; }
.subtitle { font-size: 14px; color: #6a6a8a; margin-top: 6px; }

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 12px;
  padding: 16px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status {
  font-size: 13px;
  color: #6a6a8a;
  flex: 1;
}
.status.error { color: #ff6b6b; }
.status.ok { color: #10b981; }

.search-row input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #0f0f13;
  border: 1px solid #2e2e42;
  border-radius: 8px;
  color: #e2e2f0;
  outline: none;
}
.search-row input:focus { border-color: #5b4cf5; }

button {
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #2e2e42;
  padding: 8px 14px;
  background: #1a1a24;
  color: #e2e2f0;
  cursor: pointer;
  transition: all 0.15s;
}

button:hover:not(:disabled) { border-color: #5b4cf5; background: #1e1e2e; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

button.primary {
  background: #5b4cf5;
  border-color: #5b4cf5;
  color: white;
  font-weight: 600;
}
button.primary:hover { background: #6e5fff; border-color: #6e5fff; }

.filter-section {
  border-top: 1px solid #2e2e42;
  padding-top: 12px;
}

.filter-section summary {
  font-size: 13px;
  font-weight: 600;
  color: #a0a0c0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  user-select: none;
  padding: 4px 0;
}

.filter-section summary:hover { color: #e2e2f0; }

.filter-count {
  font-size: 11px;
  color: #6a6a8a;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #2e2e42;
  background: #0f0f13;
  color: #a0a0c0;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.chip:hover { border-color: #5b4cf5; color: #e2e2f0; }
.chip.active {
  background: #5b4cf5;
  border-color: #5b4cf5;
  color: white;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article {
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
}
.article:hover { border-color: #3e3e5a; background: #1e1e2e; }

.article-title {
  font-size: 15px;
  font-weight: 600;
  color: #e2e2f0;
  line-height: 1.4;
  text-decoration: none;
  display: block;
}
.article-title:hover { color: #8e7fff; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #6a6a8a;
}

.source-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.source-espn  { background: rgba(204, 0, 0, 0.18); color: #ff4d4d; }
.source-nfl   { background: rgba(1, 51, 105, 0.4); color: #4d9aff; }
.source-pft   { background: rgba(0, 169, 92, 0.18); color: #10c97e; }
.source-br    { background: rgba(255, 95, 22, 0.18); color: #ff8a4a; }

.article-teams {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.team-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0f0f13;
  border: 1px solid #2e2e42;
  color: #a0a0c0;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: #6a6a8a;
  font-size: 14px;
}
.hidden { display: none; }

footer {
  text-align: center;
  font-size: 12px;
  color: #6a6a8a;
  padding-top: 12px;
  border-top: 1px solid #2e2e42;
}

.skeleton {
  background: #1a1a24;
  border: 1px solid #2e2e42;
  border-radius: 10px;
  padding: 14px 16px;
  height: 78px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 600px) {
  body { padding: 20px 12px; }
  header h1 { font-size: 22px; }
}
