/* khatst 69影视 - 深色影视风
   区别于 huichuan8 漫画站: 深底、顶部大轮播、横向卡片、侧边榜单 */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  background:#0d1117; color:#e6edf3; line-height:1.6;
}
a { color:inherit; text-decoration:none; }
img { display:block; }

/* 顶部导航 */
.topbar {
  background:#161b22; border-bottom:1px solid #21262d;
  position:sticky; top:0; z-index:50;
}
.topbar-inner {
  max-width:1200px; margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; gap:24px;
}
.logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800; color:#fff; }
.logo .dot { width:10px; height:10px; border-radius:50%; background:#f0261e; box-shadow:0 0 12px #f0261e; }
.logo small { font-size:12px; color:#8b949e; font-weight:400; }
.nav { display:flex; gap:4px; margin-left:auto; flex-wrap:wrap; }
.nav a {
  color:#8b949e; padding:6px 14px; border-radius:6px; font-size:14px;
  transition:.2s;
}
.nav a:hover { color:#fff; background:#21262d; }
.nav a.active { color:#fff; background:#f0261e; }
.menu-checkbox { display:none; }
.menu-toggle { display:none; font-size:22px; color:#fff; cursor:pointer; margin-left:auto; }

/* 顶部大轮播 */
.hero {
  max-width:1200px; margin:20px auto 0; padding:0 20px;
}
.hero-banner {
  position:relative; border-radius:14px; overflow:hidden; height:360px;
  background:#161b22;
}
.hero-banner img { width:100%; height:100%; object-fit:cover; opacity:.55; }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(13,17,23,.96) 0%, rgba(13,17,23,.55) 45%, transparent 70%);
  display:flex; flex-direction:column; justify-content:center; padding:0 56px;
}
.hero-overlay .tag { align-self:flex-start; background:#f0261e; color:#fff; font-size:12px; padding:3px 10px; border-radius:20px; margin-bottom:14px; }
.hero-overlay h1 { font-size:34px; font-weight:800; margin-bottom:10px; color:#fff; }
.hero-overlay p { color:#c9d1d9; max-width:480px; font-size:14px; }
.hero-overlay .meta { margin-top:16px; color:#8b949e; font-size:13px; display:flex; gap:16px; }
.hero-overlay .btn {
  align-self:flex-start; margin-top:20px; background:#f0261e; color:#fff;
  padding:10px 26px; border-radius:8px; font-weight:700; font-size:14px;
  transition:.2s;
}
.hero-overlay .btn:hover { background:#d01c14; }

/* 内容区 */
.container { max-width:1200px; margin:0 auto; padding:20px; }
.section { margin-bottom:34px; }
.sec-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:16px; border-left:4px solid #f0261e; padding-left:12px; }
.sec-head h2 { font-size:20px; font-weight:800; color:#fff; }
.sec-head .more { color:#8b949e; font-size:13px; }
.sec-head .more:hover { color:#f0261e; }

/* 卡片: 横向影视卡(带角标) */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:18px; }
.card {
  background:#161b22; border-radius:12px; overflow:hidden; border:1px solid #21262d;
  transition:.2s;
}
.card:hover { transform:translateY(-4px); border-color:#f0261e; }
.card-poster { position:relative; aspect-ratio:3/4; overflow:hidden; background:#21262d; }
.card-poster img { width:100%; height:100%; object-fit:cover; }
.badge { position:absolute; top:10px; left:10px; background:rgba(0,0,0,.6); color:#fff; font-size:11px; padding:2px 8px; border-radius:4px; }
.badge.hot { background:#f0261e; }
.score {
  position:absolute; bottom:10px; right:10px; background:rgba(0,0,0,.72); color:#ffd700;
  font-weight:800; font-size:14px; padding:2px 8px; border-radius:6px;
}
.card-body { padding:12px 14px; }
.card-body h3 { font-size:15px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-body .meta { margin-top:6px; font-size:12px; color:#8b949e; display:flex; justify-content:space-between; }

/* 分类页顶部 + 榜单行 */
.page-head { margin-bottom:20px; }
.page-head h1 { font-size:26px; font-weight:800; color:#fff; margin-bottom:6px; }
.page-head p { color:#8b949e; font-size:14px; }

/* 排行榜 */
.rank-list { display:flex; flex-direction:column; gap:10px; }
.rank-item {
  display:flex; align-items:center; gap:16px; background:#161b22;
  border-radius:10px; padding:10px 16px; border:1px solid #21262d; transition:.2s;
}
.rank-item:hover { border-color:#f0261e; background:#1a2029; }
.rank-no { font-size:22px; font-weight:900; width:40px; text-align:center; color:#8b949e; }
.rank-item:nth-child(-n+3) .rank-no { color:#f0261e; }
.rank-thumb { width:64px; height:88px; border-radius:6px; overflow:hidden; flex-shrink:0; }
.rank-thumb img { width:100%; height:100%; object-fit:cover; }
.rank-info { flex:1; min-width:0; }
.rank-info h3 { color:#fff; font-size:16px; font-weight:700; }
.rank-info .meta { color:#8b949e; font-size:12px; margin-top:4px; }
.rank-score { color:#ffd700; font-weight:800; font-size:15px; }

/* 详情页 */
.detail-wrap { display:flex; gap:28px; margin-top:24px; }
.detail-poster { width:280px; flex-shrink:0; aspect-ratio:3/4; border-radius:12px; overflow:hidden; border:1px solid #21262d; }
.detail-poster img { width:100%; height:100%; object-fit:cover; }
.detail-info { flex:1; min-width:0; }
.detail-info h1 { font-size:30px; font-weight:800; color:#fff; margin-bottom:12px; }
.detail-tags { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.detail-tags span { background:#21262d; color:#c9d1d9; font-size:12px; padding:4px 12px; border-radius:20px; }
.detail-desc { background:#161b22; border:1px solid #21262d; border-radius:12px; padding:18px; margin-top:18px; }
.detail-desc h3 { color:#fff; font-size:16px; margin-bottom:10px; }
.detail-desc p { color:#c9d1d9; font-size:14px; line-height:1.9; }
.detail-actions { margin-top:20px; display:flex; gap:14px; }
.detail-actions .btn {
  background:#f0261e; color:#fff; padding:12px 30px; border-radius:8px; font-weight:700;
}
.detail-actions .btn.ghost { background:#21262d; color:#c9d1d9; }
.detail-actions .btn.ghost:hover { color:#fff; }
.back-link { display:inline-block; color:#8b949e; font-size:13px; margin-top:14px; }
.back-link:hover { color:#f0261e; }
.note { color:#6e7681; font-size:12px; margin-top:12px; font-style:italic; }

/* 底部 */
.footer { border-top:1px solid #21262d; margin-top:40px; padding:24px 20px; text-align:center; color:#6e7681; font-size:13px; }

/* 移动端 */
@media (max-width:768px) {
  .menu-toggle { display:block; }
  .nav {
    display:none; position:absolute; top:100%; left:0; right:0;
    background:#161b22; flex-direction:column; padding:10px; border-top:1px solid #21262d;
  }
  .menu-checkbox:checked ~ .nav { display:flex; }
  .hero-banner { height:240px; }
  .hero-overlay { padding:0 24px; }
  .hero-overlay h1 { font-size:24px; }
  .detail-wrap { flex-direction:column; }
  .detail-poster { width:100%; aspect-ratio:16/9; }
}
