* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f3f4f6;
  color: #111928;
  opacity: 0;
  transition: opacity 0.2s;
}
body.ready { opacity: 1; }

/* ── 상단 바 ── */
.top-bar {
  background: #111928;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-title { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.2px; }
.top-bar-sub { font-size: 12px; color: #9CA3AF; }

/* ── 페이지 헤더 ── */
.page-header { background: #1f2937; padding: 36px 40px; color: #fff; }
.page-header h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 6px; }
.page-header p { font-size: 14px; color: #9CA3AF; }

/* ── 그리드 ── */
.grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 32px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── 카드 ── */
.res-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.res-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }

.res-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}
.res-thumb-icon { font-size: 34px; margin-bottom: 10px; }

.res-body { padding: 20px 20px 14px; flex: 1; }

.res-tag {
  display: inline-block;
  background: #FEF2F2;
  color: #E50914;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.res-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.res-desc { font-size: 13px; color: #6B7280; line-height: 1.7; }

.res-footer {
  padding: 12px 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.res-date { font-size: 12px; color: #9CA3AF; }
.res-link {
  font-size: 13px;
  font-weight: 700;
  color: #111928;
  padding: 6px 14px;
  border: 1.5px solid #111928;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.res-link:hover { background: #E50914; border-color: #E50914; color: #fff; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); padding: 24px 20px 48px; }
  .top-bar, .page-header { padding: 18px 20px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 22px; }
}
