* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f5f7; color: #222; }
a { color: inherit; text-decoration: none; }
a:hover { color: #c0392b; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.topbar { background: #c0392b; color: #fff; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.logo { font-size: 22px; font-weight: 700; }
.logo:hover { color: #fff; }
.date { font-size: 14px; opacity: .9; }

.tabs { background: #fff; border-bottom: 1px solid #e3e3e3; position: sticky; top: 0; z-index: 5; }
.tabs .wrap { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.tabs a { padding: 6px 12px; border-radius: 20px; font-size: 14px; }
.tabs a.active { background: #c0392b; color: #fff; }
.search { margin-left: auto; }
.search input { padding: 6px 12px; border: 1px solid #ccc; border-radius: 20px; width: 200px; }

main { padding: 20px 16px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hero img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }
.hero > div { padding: 20px 20px 20px 0; }
.hero h1 { font-size: 26px; line-height: 1.3; margin: 10px 0; }
.badge { background: #c0392b; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card .body { padding: 12px 14px 14px; }
.card h2 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
.rank { display: inline-block; min-width: 24px; color: #c0392b; font-weight: 800; }
p { color: #555; font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
time { font-size: 12px; color: #888; }
.empty { text-align: center; padding: 60px 0; color: #777; }

footer { text-align: center; font-size: 13px; color: #888; padding: 24px 0; }

@media (max-width: 720px) {
    .hero { grid-template-columns: 1fr; }
    .hero > div { padding: 0 16px 16px; }
    .search { margin-left: 0; width: 100%; }
    .search input { width: 100%; }
}
