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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #000;
  color: #eee;
  line-height: 1.6;
}

header {
  background: #000;
  padding: 20px;
  border-bottom: 1px solid #333;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: #eee;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

.card-body {
  padding: 12px 16px 0;
}

.card-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-actions {
  padding: 12px 16px 16px;
  margin-top: auto;
}

.meta {
  color: #999;
  font-size: 0.9rem;
}

.back {
  display: inline-block;
  color: #eee;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.back:hover {
  text-decoration: underline;
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.detail img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
}

.detail-info h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.desc {
  margin: 16px 0 24px;
  color: #bbb;
}

.btn {
  display: inline-block;
  background: #eee;
  color: #000;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.btn:hover {
  background: #fff;
}

.hidden {
  display: none;
}

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