* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
}
header {
  position: sticky;
  top: 0;
  background: #16181d;
  padding: 16px 24px;
  border-bottom: 1px solid #262a33;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}
header h1 { margin: 0; font-size: 20px; }
.controls { display: flex; gap: 10px; align-items: center; }
select, button {
  background: #1f232b;
  color: #e6e6e6;
  border: 1px solid #333846;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}
button {
  background: #4f6df5;
  border: none;
  font-weight: 600;
}
button:disabled { opacity: 0.6; cursor: default; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px;
}
.loading { color: #9aa0ac; padding: 20px; }

.card {
  background: #181b21;
  border: 1px solid #262a33;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: #4f6df5; }

.card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #1f232b;
}
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.card-body { padding: 12px 14px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}
.source { color: #9aa0ac; }
.badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-announce { background: #2e2350; color: #b9a5ff; }
.badge-release { background: #1e3a2b; color: #7fe0a3; }
.badge-other { background: #2a2d35; color: #9aa0ac; }

.card-title {
  font-size: 15px;
  margin: 0 0 8px 0;
  line-height: 1.35;
}
.card-time { margin: 0; font-size: 12px; color: #7d838f; }
.card-popularity {
  margin: 0 0 4px 0;
  font-size: 12px;
  color: #f5c451;
  font-weight: 600;
}
