:root {
  --primary: #f97316;
  --accent: #facc15;
  --bg: #1a1410;
  --text: #fff7ed;
  --text-dim: rgba(255, 247, 237, 0.65);
  --border: rgba(255, 247, 237, 0.18);
  --border-strong: rgba(255, 247, 237, 0.35);
  --card-bg: #221a13;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
.container { max-width: 1280px; padding: 0 24px; margin: 0 auto; }

/* Navbar */
.navbar {
  background: rgba(26, 20, 16, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}
.navbar-brand i { color: var(--accent); margin-right: 6px; }
.nav-link {
  font-weight: 500;
  color: var(--text) !important;
  margin: 0 0.4rem;
  padding: 0.4rem 0.6rem !important;
  font-size: 0.92rem;
}
.nav-link:hover { color: var(--primary) !important; }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(1); }

/* Hero Stats */
.hero-stats {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  position: relative;
}
.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.hero-stats .stat-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Section */
.section {
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.section-more {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}
.section-more:hover { color: var(--primary); }

/* Film Cards */
.film-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 14px;
}
.film-card {
  position: relative;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card-bg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: cardIn 0.5s forwards;
  animation-delay: calc(var(--i) * 80ms);
}
.film-card:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(249, 115, 22, 0.15);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.film-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #2a211a, #1a1410);
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s;
}
.film-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 20, 16, 0.85) 0%, transparent 50%);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.film-card:hover .film-poster::after { opacity: 0.95; }
.film-card:hover .film-poster img { transform: scale(1.08); }
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s;
}
.film-card:hover .play-overlay { opacity: 1; }
.play-overlay i {
  font-size: 2.2rem;
  color: var(--accent);
  background: rgba(26, 20, 16, 0.7);
  border: 2px solid var(--accent);
  border-radius: 50%;
  padding: 12px 12px 12px 16px;
  transition: transform 0.2s;
}
.play-overlay i:hover { transform: scale(1.1); }
.film-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px 8px;
  z-index: 2;
}
.film-title {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.film-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.film-rating {
  color: var(--accent);
  font-weight: 600;
}

/* Rank List */
.rank-list {
  display: flex;
  flex-direction: column;
}
.rank-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background 0.2s;
  cursor: pointer;
  border-radius: 6px;
}
.rank-item:hover { background: rgba(249, 115, 22, 0.06); }
.rank-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 44px;
  text-align: center;
}
.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: var(--accent);
  font-size: 1.5rem;
}
.rank-thumb {
  width: 72px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.rank-tags {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-heat {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Horizontal scroll */
.h-scroll {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll::-webkit-scrollbar-track { background: var(--bg); }
.h-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.h-scroll .film-card { flex: 0 0 160px; min-width: 160px; }

/* Icon List */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.icon-list-item:hover { border-color: var(--primary); }
.icon-list-item i {
  color: var(--primary);
  font-size: 1.4rem;
  min-width: 28px;
  padding-top: 4px;
}
.icon-list-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.icon-list-item p {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* Accordion (custom) */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.accordion-header {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text);
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}
.accordion-header:hover { background: rgba(249, 115, 22, 0.05); }
.accordion-header i { transition: transform 0.3s; color: var(--primary); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }
.accordion-body {
  padding: 0 20px 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  display: none;
  line-height: 1.7;
}
.accordion-item.active .accordion-body { display: block; }

/* Detail Sidebar */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 4, 0.7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.detail-overlay.show { opacity: 1; visibility: visible; }
.detail-sidebar {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 2001;
  transition: right 0.4s ease;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0,0,0,0.4);
}
.detail-sidebar.show { right: 0; }
.detail-sidebar .poster {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.detail-content { padding: 24px; }
.detail-content h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.detail-content .score {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-content .field {
  display: flex;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.detail-content .field-label {
  color: var(--text-dim);
  min-width: 70px;
  flex-shrink: 0;
}
.detail-content .field-value { color: var(--text); }
.detail-content .plot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.8;
}
.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(26, 20, 16, 0.8);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.close-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Friend Links */
.friend-links {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  background: rgba(249, 115, 22, 0.03);
}
.friend-links h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.friend-links .links { font-size: 0.85rem; line-height: 2; }

/* Footer */
footer {
  padding: 2.5rem 0 2rem;
  background: #140f0b;
  border-top: 1px solid var(--border);
}
footer .brand { font-weight: 900; color: var(--primary); font-size: 1.3rem; }
footer .sub { color: var(--text-dim); font-size: 0.82rem; }
footer .links a { color: var(--text-dim); margin-right: 18px; font-size: 0.82rem; }
footer .links a:hover { color: var(--primary); }
footer .copyright { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.75rem; }

/* Lazyload placeholder */
img.lazy { opacity: 0; transition: opacity 0.5s; }
img.lazy.loaded { opacity: 1; }

/* Utility */
.text-primary-custom { color: var(--primary) !important; }
.text-accent-custom { color: var(--accent) !important; }
.font-mono { font-family: var(--font-mono); }
.border-bottom-custom { border-bottom: 1px solid var(--border); }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-right: 6px;
}

@media (max-width: 768px) {
  .hero-stats .stat-num { font-size: 2.2rem; }
  .section-title { font-size: 1.3rem; }
  .film-row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px 10px; }
  .h-scroll .film-card { flex: 0 0 130px; min-width: 130px; }
  .film-title { font-size: 0.8rem; }
  .film-meta { font-size: 0.65rem; }
  .rank-thumb { width: 56px; height: 40px; }
  .detail-sidebar { width: 340px; }
}

/* --- 子页面追加 --- */
/* 本页专属小范围微调（尽量复用站点样式，仅补充细节） */
    .about-hero {
      border-bottom: 1px solid var(--border);
      background: linear-gradient(145deg, rgba(249, 115, 22, 0.06) 0%, rgba(26, 20, 16, 0.8) 100%);
    }
.about-section {
      padding: 4.5rem 0;
      border-bottom: 1px solid var(--border);
    }
.about-section:last-of-type {
      border-bottom: none;
    }
.section-title .mono-tag {
      font-family: var(--font-mono);
      color: var(--accent);
      letter-spacing: 0.1em;
      font-size: 0.9rem;
      text-transform: uppercase;
      display: block;
      margin-bottom: 0.5rem;
    }
.about-grid-icon {
      color: var(--primary);
      font-size: 2rem;
      margin-bottom: 1rem;
    }
.about-quote {
      border-left: 3px solid var(--primary);
      padding-left: 1.5rem;
      color: var(--text-dim);
      font-style: italic;
      margin: 2rem 0;
    }
.stat-underline {
      border-bottom: 2px solid var(--accent);
      display: inline-block;
      padding-bottom: 0.2rem;
    }
.nav-link.active {
      color: var(--primary) !important;
      font-weight: 600;
    }
/* 覆盖 bootstrap 可能引入的白底 */
    .navbar, .navbar-brand, .nav-link, .navbar-toggler {
      background: transparent !important;
      color: var(--text) !important;
    }

/* --- 子页面追加 --- */
/* 本页专属样式——免责声明 */
        .disclaimer-hero {
            padding: 60px 0 40px;
            border-bottom: 1px solid var(--border);
        }
.disclaimer-hero h1 {
            font-size: 2.4rem;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 12px;
            letter-spacing: -0.02em;
        }
.disclaimer-hero h1 span {
            color: var(--primary);
        }
.disclaimer-hero p {
            color: var(--text-dim);
            font-size: 1.05rem;
            max-width: 720px;
        }
.disclaimer-wrap {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 0 60px;
        }
.disclaimer-section {
            margin-bottom: 40px;
            padding: 30px 34px;
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 14px;
        }
.disclaimer-section h2 {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 18px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 10px;
        }
.disclaimer-section h2 i {
            color: var(--primary);
            font-size: 1.1rem;
        }
.disclaimer-section h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text);
            margin-top: 22px;
            margin-bottom: 10px;
        }
.disclaimer-section p {
            color: var(--text-dim);
            line-height: 1.8;
            font-size: 0.95rem;
            margin-bottom: 14px;
        }
.disclaimer-section ul, .disclaimer-section ol {
            color: var(--text-dim);
            padding-left: 22px;
            line-height: 1.8;
            font-size: 0.95rem;
            margin-bottom: 14px;
        }
.disclaimer-section li {
            margin-bottom: 8px;
        }
.disclaimer-section strong {
            color: var(--text);
            font-weight: 600;
        }
.disclaimer-section a {
            color: var(--primary);
            text-decoration: none;
        }
.disclaimer-section a:hover {
            text-decoration: underline;
        }
.update-time {
            font-size: 0.85rem;
            color: var(--text-dim);
            margin-bottom: 0;
        }
.back-home {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 26px;
            background: var(--primary);
            color: #fff;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
        }
.back-home:hover {
            background: #ea580c;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
        }
.disclaimer-hero h1 {
                font-size: 1.8rem;
            }
.disclaimer-section {
                padding: 22px 20px;
            }

/* --- 子页面追加 --- */
.privacy-section {
            padding: 60px 0;
        }
.privacy-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 28px;
            margin-bottom: 24px;
            transition: border-color 0.3s ease;
        }
.privacy-card:hover {
            border-color: var(--border-strong);
        }
.privacy-card h2 {
            color: var(--primary);
            font-size: 1.35rem;
            font-weight: 700;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.privacy-card h2 i {
            color: var(--accent);
            font-size: 1.1rem;
        }
.privacy-card p, .privacy-card li {
            color: var(--text-dim);
            line-height: 1.8;
            font-size: 0.95rem;
        }
.privacy-card strong {
            color: var(--text);
        }
.privacy-card ul {
            padding-left: 20px;
            margin-bottom: 12px;
        }
.privacy-card ul li {
            margin-bottom: 6px;
        }
.privacy-highlight {
            background: rgba(249, 115, 22, 0.1);
            border-left: 3px solid var(--primary);
            padding: 16px 20px;
            border-radius: 0 8px 8px 0;
            margin: 20px 0;
        }
.privacy-highlight p {
            color: var(--text) !important;
            font-weight: 500;
        }
.privacy-updated {
            text-align: center;
            color: var(--text-dim);
            font-size: 0.9rem;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }
.privacy-updated i {
            color: var(--accent);
            margin-right: 6px;
        }
.privacy-toc {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 30px;
        }
.privacy-toc h3 {
            color: var(--text);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 14px;
        }
.privacy-toc a {
            color: var(--text-dim);
            text-decoration: none;
            display: block;
            padding: 6px 0;
            font-size: 0.9rem;
            transition: color 0.2s ease;
        }
.privacy-toc a:hover {
            color: var(--primary);
        }
.privacy-toc a i {
            color: var(--accent);
            margin-right: 8px;
            font-size: 0.8rem;
        }
.privacy-section {
                padding: 40px 0;
            }
.privacy-card {
                padding: 20px;
            }

/* --- 子页面追加 --- */
/* 本页专属样式 */
        .sitemap-section { margin-bottom: 2.5rem; }
.sitemap-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); border-left: 3px solid var(--primary); padding-left: 0.8rem; margin-bottom: 1.2rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sitemap-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; transition: border-color .3s, transform .3s; }
.sitemap-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.sitemap-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--accent); }
.sitemap-card p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.8rem; line-height: 1.5; }
.sitemap-card a { color: var(--primary); font-size: 0.85rem; text-decoration: none; font-weight: 500; }
.sitemap-card a:hover { color: var(--accent); text-decoration: underline; }
.sitemap-index { background: rgba(249, 115, 22, 0.08); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; margin-bottom: 2rem; }
.sitemap-index h2 { font-size: 1.2rem; color: var(--text); border: none; padding-left: 0; margin-bottom: 1rem; }
.sitemap-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; }
.sitemap-index li a { color: var(--primary); text-decoration: none; font-size: 0.9rem; }
.sitemap-index li a:hover { color: var(--accent); text-decoration: underline; }
.sitemap-divider { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; opacity: .6; }
.quick-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.quick-links a { background: var(--card-bg); border: 1px solid var(--border); border-radius: 30px; padding: 0.45rem 1.2rem; font-size: 0.85rem; color: var(--text); text-decoration: none; transition: all .3s; }
.quick-links a:hover { border-color: var(--primary); color: var(--primary); }