:root {
  --bg: #1a1a1a;
  --card: #222;
  --text: #e0e0e0;
  --muted: #999;
  --accent: #e50914;
  --border: #333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

/* Header */
.header { background: #111; padding: 12px 20px; display: flex; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.logo { font-weight: 700; font-size: 22px; flex-shrink: 0; }
.logo .jav { color: var(--accent); }
.logo .night { color: #fff; }
.nav { display: flex; justify-content: space-evenly; flex: 1; }
.nav a { font-size: 14px; white-space: nowrap; }
.header-right { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.search-icon, .lang, .menu-btn { cursor: pointer; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.menu-btn { display: none; font-size: 18px; }
.lang { position: relative; }
.lang-menu { display: none; position: absolute; top: 100%; right: 0; background: #222; border: 1px solid var(--border); border-radius: 4px; min-width: 110px; z-index: 200; }
.lang-menu.open { display: block; }
.lang-menu div { padding: 8px 12px; cursor: pointer; }
.lang-menu div:hover { background: #333; }

/* Top Search (点击图标弹出) */
.top-search {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: #1a1a1a;
  padding: 12px 20px;
  z-index: 150;
  border-bottom: 1px solid #333;
}
.top-search form {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
}
.top-search input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px 0 0 6px;
  outline: none;
}
.top-search button {
  padding: 0 20px;
  background: #3a3a3a;
  border: 1px solid #444;
  border-left: none;
  color: #fff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.top-search button:hover {
  background: #444;
}

/* Big Search (首页大搜索) */
.big-search { max-width: 720px; margin: 30px auto; padding: 0 20px; }
.search-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}
.search-title span {
  color: #e50914;
}
.big-search form {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
}
.big-search input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
}
.big-search button {
  padding: 0 24px;
  background: #fff;
  border: none;
  border-left: 1px solid #ddd;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 16px;
}
.big-search button:hover {
  background: #f5f5f5;
}

/* Sections */
.section { padding: 20px; max-width: 1400px; margin: 0 auto; }
.section h2 { margin-bottom: 12px; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.thumb { height: 160px; background: #333; position: relative; display: flex; align-items: center; justify-content: center; }
.duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.7); padding: 2px 6px; font-size: 12px; border-radius: 3px; }
.card-info { padding: 8px 10px; font-size: 13px; }
.more { color: var(--accent); font-size: 14px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Footer */
.footer { padding: 30px 20px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; margin-top: 40px; }
.footer a { color: var(--muted); margin: 0 12px; }

/* Mobile */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #111; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; border-bottom: 1px solid #333; }
  .menu-btn { display: block; }
  .header { position: relative; }
}