* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f4f6f9; color: #333; line-height: 1.5; font-size: 14px; }
a { text-decoration: none; color: inherit; }
a:hover { color: #e74c3c; }
.container { width: 95%; max-width: 1200px; margin: 0 auto; }

/* Top Header */
.top-bar { background: #111a22; color: #a0acb7; font-size: 12px; padding: 6px 0; border-bottom: 1px solid #22313f; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }

/* Main Header */
header { background: #1a252f; color: #fff; padding: 15px 0; border-bottom: 3px solid #e74c3c; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-size: 24px; font-weight: 800; color: #e74c3c; text-transform: uppercase; letter-spacing: -0.5px; }
.logo span { color: #fff; }
.search-box { display: flex; flex: 1; max-width: 450px; }
.search-box input { width: 100%; padding: 8px 12px; border: none; border-radius: 3px 0 0 3px; outline: none; font-size: 13px; }
.search-box button { background: #e74c3c; color: #fff; border: none; padding: 0 18px; border-radius: 0 3px 3px 0; cursor: pointer; font-weight: bold; }

/* Nav */
nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { color: #ecf0f1; font-weight: 600; font-size: 14px; }

/* Hot Grid */
.hero-section { margin: 20px 0; }
.hero-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hero-card { background: #fff; border-radius: 5px; overflow: hidden; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.06); }
.hero-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.hero-card .badge { position: absolute; top: 6px; left: 6px; background: #e74c3c; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 5px; border-radius: 3px; text-transform: uppercase; }
.hero-card .badge.full { background: #27ae60; }
.hero-card .hero-info { padding: 8px; }
.hero-card .hero-title { font-size: 12px; font-weight: 700; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 3px; }

/* Main Layout */
.main-wrapper { display: flex; gap: 20px; margin-bottom: 30px; }
.main-content { flex: 3; }
.sidebar { flex: 1; }

.block-box { background: #fff; padding: 18px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; }
.block-title { font-size: 15px; font-weight: 700; text-transform: uppercase; border-left: 4px solid #e74c3c; padding-left: 10px; margin-bottom: 15px; color: #2c3e50; display: flex; justify-content: space-between; align-items: center; }
.block-title a { font-size: 12px; color: #3498db; text-transform: none; font-weight: normal; }

/* Update Table */
.update-table { width: 100%; border-collapse: collapse; }
.update-table tr { border-bottom: 1px dashed #eee; }
.update-table td { padding: 9px 5px; font-size: 13px; }
.update-table .cat { color: #888; font-size: 12px; width: 110px; }
.update-table .title { font-weight: 600; color: #2c3e50; }
.update-table .chap { color: #e74c3c; }
.update-table .author { color: #7f8c8d; font-size: 12px; }
.update-table .time { color: #95a5a6; font-size: 11px; text-align: right; }

/* Comments Sidebar */
.comment-item { display: flex; gap: 10px; margin-bottom: 12px; border-bottom: 1px dotted #eee; padding-bottom: 10px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: #3498db; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px; flex-shrink: 0; }
.comment-text { font-size: 12px; }
.comment-user { font-weight: bold; color: #34495e; }
.comment-body { color: #555; margin-top: 2px; }

/* Detail Page */
.detail-box { background: #fff; padding: 20px; border-radius: 5px; display: flex; gap: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; }
.detail-cover { width: 190px; height: 260px; object-fit: cover; border-radius: 4px; }
.detail-meta h1 { font-size: 22px; margin-bottom: 10px; color: #2c3e50; }
.meta-line { font-size: 13px; color: #555; margin-bottom: 6px; }
.btn-read-now { display: inline-block; background: #e74c3c; color: #fff; padding: 10px 22px; border-radius: 4px; font-size: 14px; font-weight: bold; margin-top: 12px; }

/* Reader Page */
.reader-box { background: #fff; padding: 35px; border-radius: 5px; max-width: 820px; margin: 20px auto; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.reader-header { text-align: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.reader-content p { font-size: 18px; line-height: 1.8; color: #2b2b2b; margin-bottom: 20px; text-align: justify; }

/* Footer */
footer { background: #111a22; color: #8a99a8; padding: 30px 0 20px 0; font-size: 12px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #22313f; padding-top: 15px; text-align: center; color: #6c7a89; }

@media (max-width: 992px) { .hero-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .main-wrapper, .header-inner, .detail-box, .footer-grid { flex-direction: column; }
    .search-box { width: 100%; max-width: none; }
    .hero-grid { grid-template-columns: repeat(2, 1fr); }
}