:root {
  --primary: #10b981;
  --accent: #fbbf24;
  --bg: #0a1410;
  --text: #ecfdf5;
  --card-bg: #11241c;
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
  --shadow-hover: 0 20px 40px rgba(16, 185, 129, 0.2);
  --gradient: linear-gradient(135deg, #10b981 0%, #0a1410 100%);
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
.navbar {
  background: rgba(10, 20, 16, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 20, 16, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}
.navbar-brand {
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}
.navbar-brand i { margin-right: 8px; color: var(--accent); }
.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.05);
}
.navbar-toggler { border: none; color: var(--text); }
.navbar-toggler:focus { box-shadow: none; }
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.15), transparent 50%), radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.08), transparent 40%);
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.2;
}
.hero-title .typed {
  color: var(--primary);
  border-right: 3px solid var(--accent);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(236, 253, 245, 0.7);
  margin-top: 1rem;
  max-width: 700px;
}
.hero-search {
  margin-top: 2rem;
  max-width: 600px;
}
.hero-search input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 0.75rem 1.2rem;
  border-radius: 50px;
}
.hero-search input::placeholder { color: rgba(236, 253, 245, 0.4); }
.hero-search input:focus { background: rgba(255, 255, 255, 0.15); border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.hero-search button {
  background: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  color: #0a1410;
  transition: all 0.3s;
}
.hero-search button:hover { background: var(--accent); transform: scale(1.02); }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i { color: var(--accent); }
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.movie-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.movie-card .poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #1a2e24;
}
.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}
.movie-card:hover img { transform: scale(1.1); }
@keyframes fadeIn { to { opacity: 1; } }
.badge-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #0a1410;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.movie-info {
  padding: 0.8rem 1rem;
}
.movie-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.movie-meta {
  font-size: 0.78rem;
  color: rgba(236, 253, 245, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rating { color: var(--accent); font-weight: 700; }
.film-type { font-size: 0.72rem; background: rgba(16, 185, 129, 0.2); padding: 2px 6px; border-radius: 4px; color: var(--primary); }
.top-list {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.top-list-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  border-radius: 8px;
  padding: 0.8rem 0.5rem;
}
.top-list-item:hover { background: rgba(16, 185, 129, 0.1); }
.top-rank {
  font-size: 1.5rem;
  font-weight: 900;
  width: 40px;
  color: var(--accent);
  font-style: italic;
}
.top-list-title { font-weight: 600; flex: 1; }
.top-list-meta { font-size: 0.8rem; color: rgba(236, 253, 245, 0.5); }
.genre-chip {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0.4rem 0.6rem 0;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.genre-chip:hover {
  background: var(--primary);
  color: #0a1410;
  border-color: var(--primary);
}
.genre-chip.active {
  background: var(--primary);
  color: #0a1410;
}
.accordion-button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
}
.accordion-button:not(.collapsed) {
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary);
}
.accordion-body { background: rgba(255, 255, 255, 0.03); color: rgba(236, 253, 245, 0.8); }
.trailer-card {
  background: linear-gradient(145deg, #11241c, #0f1d18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  cursor: pointer;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.trailer-card:hover { transform: scale(1.02); }
.trailer-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.trailer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #0a1410;
  transition: all 0.3s;
}
.trailer-card:hover .play-btn { background: var(--accent); transform: translate(-50%, -50%) scale(1.1); }
.friends-links {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer {
  padding: 3rem 0 2rem;
  background: rgba(0, 0, 0, 0.3);
}
.footer a { color: rgba(236, 253, 245, 0.7); }
.footer a:hover { color: var(--primary); }
.sidebar-detail {
  position: fixed;
  right: -450px;
  top: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: #0f1d18;
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  padding: 2rem;
}
.sidebar-detail.open { right: 0; }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1049;
  display: none;
}
.sidebar-overlay.show { display: block; }
.sidebar-detail img { width: 100%; border-radius: 8px; margin-bottom: 1rem; }
.sidebar-detail h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.sidebar-detail .detail-field { margin-bottom: 0.8rem; }
.sidebar-detail .detail-field strong { color: var(--primary); margin-right: 8px; }
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 1;
}
.close-btn:hover { background: var(--accent); color: #0a1410; }
.mood-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  margin: 0.3rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mood-tag:hover, .mood-tag.active { background: var(--primary); color: #0a1410; border-color: var(--primary); }
.list-item-thumb {
  width: 50px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 12px;
}
.news-item {
  padding: 0.8rem;
  border-radius: 8px;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.news-item:hover { background: rgba(255,255,255,0.03); }
.news-title { font-weight: 600; font-size: 0.95rem; }
.news-desc { font-size: 0.8rem; color: rgba(236,253,245,0.6); }
.section-margin { margin: 4rem 0; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
.badge-new { position: absolute; top: 10px; left: 10px; background: #ef4444; color: white; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.lazy-placeholder { background: linear-gradient(110deg, #11241c 30%, #1a2e24 50%, #11241c 70%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.8rem; }
  .sidebar-detail { width: 100%; right: -100%; }
  .section-title { font-size: 1.3rem; }
}

/* --- 子页面追加 --- */
/* 关于页专属样式 */
        .about-hero {
            padding: 80px 0 50px;
            background: var(--gradient);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
.about-hero .section-title {
            margin-bottom: 20px;
        }
.about-content {
            padding: 60px 0;
        }
.about-section {
            margin-bottom: 50px;
        }
.about-section h2 {
            color: var(--primary);
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 18px;
            padding-left: 15px;
            border-left: 4px solid var(--accent);
            line-height: 1.4;
        }
.about-section h3 {
            color: var(--text);
            font-size: 1.15rem;
            font-weight: 600;
            margin-top: 25px;
            margin-bottom: 12px;
        }
.about-section p {
            color: rgba(236, 253, 245, 0.8);
            line-height: 1.9;
            font-size: 0.95rem;
            margin-bottom: 15px;
        }
.about-section ul, .about-section ol {
            color: rgba(236, 253, 245, 0.8);
            padding-left: 20px;
            line-height: 1.9;
            margin-bottom: 15px;
        }
.about-section li {
            margin-bottom: 6px;
        }
.about-highlight {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 30px;
            margin: 30px 0;
            border: 1px solid rgba(16, 185, 129, 0.2);
            box-shadow: var(--shadow);
        }
.about-highlight .icon-box {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 15px;
        }
.about-highlight h4 {
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
.about-highlight p {
            font-size: 0.9rem;
            margin-bottom: 0;
        }
.about-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            margin: 40px 0;
        }
.stat-item {
            text-align: center;
            padding: 20px 15px;
            background: var(--card-bg);
            border-radius: var(--radius);
            border: 1px solid rgba(16, 185, 129, 0.15);
        }
.stat-item .stat-number {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
            display: block;
        }
.stat-item .stat-label {
            color: rgba(236, 253, 245, 0.6);
            font-size: 0.85rem;
            margin-top: 5px;
        }
.about-timeline {
            position: relative;
            padding-left: 30px;
            margin-left: 15px;
        }
.about-timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            bottom: 5px;
            width: 2px;
            background: var(--primary);
            opacity: 0.4;
        }
.timeline-item {
            position: relative;
            margin-bottom: 30px;
        }
.timeline-item::before {
            content: '';
            position: absolute;
            left: -27px;
            top: 8px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
        }
.timeline-item .time {
            font-size: 0.8rem;
            color: var(--accent);
            font-weight: 600;
            display: block;
            margin-bottom: 4px;
        }
.timeline-item .title {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 6px;
        }
.timeline-item p {
            font-size: 0.88rem;
            margin-bottom: 0;
        }
.about-hero { padding: 50px 0 30px; }
.about-content { padding: 40px 0; }
.about-section h2 { font-size: 1.35rem; }
.about-highlight { padding: 20px; }

/* --- 子页面追加 --- */
/* 本页专属补充样式 */
        .disclaimer-section {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow);
            border-left: 4px solid var(--primary);
            transition: box-shadow 0.3s ease;
        }
.disclaimer-section:hover {
            box-shadow: var(--shadow-hover);
        }
.disclaimer-section h2 {
            color: var(--primary);
            font-weight: 700;
            font-size: 1.35rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
.disclaimer-section h2 i {
            color: var(--accent);
            font-size: 1.1rem;
        }
.disclaimer-section p, .disclaimer-section li {
            color: var(--text);
            opacity: 0.9;
            line-height: 1.8;
            font-size: 0.95rem;
        }
.disclaimer-section ul {
            padding-left: 1.5rem;
            margin-bottom: 0;
        }
.disclaimer-section ul li {
            margin-bottom: 0.5rem;
        }
.disclaimer-page-title {
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 900;
            font-size: 2.2rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }
.disclaimer-page-sub {
            color: var(--text);
            opacity: 0.7;
            text-align: center;
            margin-bottom: 2.5rem;
            font-size: 1rem;
        }
.last-updated {
            display: inline-block;
            background: rgba(16, 185, 129, 0.15);
            color: var(--primary);
            padding: 0.25rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
        }
.disclaimer-section {
                padding: 1.25rem;
            }
.disclaimer-page-title {
                font-size: 1.7rem;
            }

/* --- Bootstrap 组件配色适配(程序自动补,避免白底黑字) --- */
.form-control { background:rgba(0,0,0,.35) !important; color:#ecfdf5 !important; border-color:rgba(255,255,255,.12) !important; }
.accordion-item { background:rgba(255,255,255,.04) !important; color:#ecfdf5 !important; border-color:rgba(255,255,255,.12) !important; }
.accordion-header { background:transparent !important; }
.form-control::placeholder { color: rgba(255,255,255,.45) !important; }
