:root {
  --bg: #0f1b12;
  --card-bg: #16241a;
  --accent: #6fbf73;
  --text: #eef4ec;
  --muted: #9db6a2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 48px 24px;
}
h1 {
  text-align: center;
  margin: 0 0 40px;
  font-size: 2.2rem;
  letter-spacing: 1px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
a.card {
  display: block;
  background: #000;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #000;
  transition: border-color 0.15s ease;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
a.card:hover .card-title {
  background: #b31217;
  color: var(--text);
}
.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}
a.card:hover .thumb img {
  transform: scale(1.05);
}
.card-title {
  padding: 16px 18px;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}
