
:root {
    --gold: #ffc300;
    --orange: #ec610a;
    --crimson: #a40a3c;
    --deep-purple: #6b0848;
    --dark-bg: #0d0a0c;
    --darker-bg: #080608;
    --card-bg: #141014;
    --card-bg-alt: #1a1018;
    --text-primary: #e8e0e4;
    --text-secondary: #b0a5ad;
    --text-muted: #7a6e76;
    --border-subtle: #221a20;
    --border-glow: rgba(255, 195, 0, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 32px rgba(236, 97, 10, 0.3);
    --shadow-gold: 0 0 24px rgba(255, 195, 0, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.top-nav {
    width: 100%;
    background: linear-gradient(135deg, var(--deep-purple) 0%, #4a0632 40%, #2d0418 100%);
    border-bottom: 2px solid var(--border-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(107, 8, 72, 0.5);
    backdrop-filter: blur(10px);
}
.top-nav-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; height: 64px; gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; color: var(--text-primary); }
.nav-brand .brand-icon {
    width: 42px; height: 42px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold), var(--orange));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; color: #1a0008; letter-spacing: -1px;
    box-shadow: 0 0 18px rgba(255, 195, 0, 0.45); flex-shrink: 0;
}
.nav-brand .brand-text {
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--gold), #ff9d2f);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; flex-wrap: wrap; justify-content: center; }
.nav-links li a {
    display: block; padding: 8px 16px; text-decoration: none; color: var(--text-secondary);
    font-size: 0.95rem; font-weight: 500; border-radius: 20px; transition: var(--transition-smooth); white-space: nowrap; letter-spacing: 0.5px;
}
.nav-links li a:hover, .nav-links li a.active { color: #fff; background: rgba(255, 195, 0, 0.12); text-shadow: 0 0 8px rgba(255,195,0,0.4); }
.nav-links li a.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; background: var(--gold); border-radius: 2px;
}
.nav-user {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer;
    padding: 6px 14px 6px 6px; border-radius: 28px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08); transition: var(--transition-smooth); text-decoration: none; color: var(--text-primary); white-space: nowrap;
}
.nav-user:hover { background: rgba(255,195,0,0.1); border-color: rgba(255,195,0,0.3); box-shadow: 0 0 16px rgba(255,195,0,0.15); }
.nav-user .user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.nav-user .user-name { font-size: 0.9rem; font-weight: 500; color: #e8e0e4; letter-spacing: 0.5px; }
.nav-user .login-badge { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 0.5px; }
.main-wrapper { max-width: 1400px; margin: 0 auto; display: flex; gap: 28px; padding: 28px 20px; flex: 1; }
.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 92px; align-self: flex-start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--deep-purple) transparent; }
.sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-track { background: transparent; } .sidebar::-webkit-scrollbar-thumb { background: var(--deep-purple); border-radius: 4px; }
.hero-banner { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card), var(--shadow-gold); aspect-ratio: 21/9; min-height: 260px; background: linear-gradient(135deg, #1a0412 0%, #0d0410 50%, #1a0412 100%); display: flex; align-items: flex-end; }
.hero-banner img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.15) 100%); z-index: 1; }
.hero-info { position: relative; z-index: 2; padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; }
.hero-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; letter-spacing: 1px; width: fit-content; }
.hero-title { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,0.7); line-height: 1.2; }
.hero-meta { display: flex; gap: 16px; font-size: 0.9rem; color: #ccc; flex-wrap: wrap; }
.hero-rating { color: var(--gold); font-weight: 700; font-size: 1rem; letter-spacing: 1px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.section-title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; padding-left: 16px; position: relative; }
.section-title::before { content: ''; width: 5px; height: 26px; background: linear-gradient(180deg, var(--gold), var(--orange)); border-radius: 3px; flex-shrink: 0; }
.section-more { color: var(--gold); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(255,195,0,0.25); transition: var(--transition-fast); }
.section-more:hover { background: rgba(255,195,0,0.1); border-color: var(--gold); color: #fff; }
.category-label { font-size: 0.85rem; font-weight: 600; color: var(--orange); letter-spacing: 1px; padding: 4px 0; border-bottom: 2px solid rgba(236,97,10,0.2); margin-bottom: 8px; }
.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.movie-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition-smooth); cursor: pointer; border: 1px solid var(--border-subtle); display: flex; flex-direction: column; }
.movie-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(255,195,0,0.35); z-index: 5; }
.movie-card .poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #1a1018; }
.movie-card .poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.movie-card:hover .poster-wrap img { transform: scale(1.08); }
.movie-card .card-badge { position: absolute; top: 8px; left: 8px; background: var(--crimson); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 12px; z-index: 2; }
.movie-card .card-score { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.75); color: var(--gold); font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 12px; z-index: 2; border: 1px solid rgba(255,195,0,0.3); }
.movie-card .card-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.movie-card .card-title { font-size: 0.9rem; font-weight: 600; color: #e8e0e4; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.movie-card .card-sub { font-size: 0.75rem; color: var(--text-muted); }
.detail-cards-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-card { background: var(--card-bg-alt); border-radius: var(--radius-lg); overflow: hidden; display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border-subtle); transition: var(--transition-smooth); cursor: pointer; }
.detail-card:hover { border-color: rgba(255,195,0,0.3); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.detail-card .detail-poster { width: 120px; height: 170px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; background: #1a1018; }
.detail-card .detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-card .detail-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.detail-card .detail-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #fff; }
.detail-card .detail-meta-row { display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-secondary); flex-wrap: wrap; }
.detail-card .detail-desc { font-size: 0.85rem; color: #a0959e; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.detail-card .detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-card .detail-tags span { font-size: 0.7rem; padding: 3px 10px; border-radius: 14px; background: rgba(164,10,60,0.2); color: #e8a0b8; border: 1px solid rgba(164,10,60,0.25); }
.plot-cards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plot-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); transition: var(--transition-smooth); cursor: pointer; }
.plot-card:hover { border-color: rgba(236,97,10,0.4); box-shadow: 0 0 20px rgba(236,97,10,0.2); transform: translateY(-3px); }
.plot-card .plot-img-wrap { aspect-ratio: 16/9; overflow: hidden; background: #1a1018; }
.plot-card .plot-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.plot-card:hover .plot-img-wrap img { transform: scale(1.06); }
.plot-card .plot-info { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.plot-card .plot-title { font-weight: 700; font-size: 1rem; color: #fff; }
.plot-card .plot-text { font-size: 0.82rem; color: #a0959e; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.comments-section { display: flex; flex-direction: column; gap: 16px; }
.comment-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; gap: 14px; border: 1px solid var(--border-subtle); transition: var(--transition-fast); }
.comment-card:hover { border-color: rgba(255,195,0,0.2); background: #181118; }
.comment-card .comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.1); }
.comment-card .comment-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.comment-card .comment-user { font-weight: 600; font-size: 0.9rem; color: #e0d8de; }
.comment-card .comment-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }
.comment-card .comment-text { font-size: 0.88rem; color: #b0a5ad; line-height: 1.55; }
.comment-card .comment-time { font-size: 0.75rem; color: var(--text-muted); }
.sidebar-card { background: var(--card-bg-alt); border-radius: var(--radius-lg); padding: 18px; border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 12px; }
.sidebar-card .sidebar-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 0.8px; display: flex; align-items: center; gap: 8px; }
.sidebar-card .sidebar-title .icon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); flex-shrink: 0; }
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); transition: var(--transition-fast); cursor: pointer; background: rgba(255,255,255,0.015); }
.rank-list li:hover { background: rgba(255,195,0,0.06); }
.rank-list .rank-num { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; color: #fff; background: rgba(255,255,255,0.08); }
.rank-list li:nth-child(1) .rank-num { background: var(--gold); color: #1a0008; box-shadow: 0 0 14px rgba(255,195,0,0.5); }
.rank-list li:nth-child(2) .rank-num { background: #d4a000; color: #1a0008; }
.rank-list li:nth-child(3) .rank-num { background: #b8860b; color: #fff; }
.rank-list .rank-thumb { width: 44px; height: 60px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: #1a1018; }
.rank-list .rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-list .rank-name { font-size: 0.85rem; font-weight: 600; color: #e0d8de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .rank-heat { font-size: 0.7rem; color: var(--orange); }
.star-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.star-mini-card { background: var(--card-bg); border-radius: var(--radius-md); padding: 12px 10px; text-align: center; border: 1px solid var(--border-subtle); transition: var(--transition-smooth); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.star-mini-card:hover { border-color: rgba(255,195,0,0.35); box-shadow: 0 0 18px rgba(255,195,0,0.15); transform: translateY(-2px); }
.star-mini-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,195,0,0.4); }
.star-mini-card:hover img { border-color: var(--gold); box-shadow: 0 0 16px rgba(255,195,0,0.35); }
.star-mini-card .star-name { font-weight: 600; font-size: 0.85rem; color: #e0d8de; }
.star-mini-card .star-works { font-size: 0.7rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.footer-nav { width: 100%; background: linear-gradient(180deg, #12061a 0%, var(--darker-bg) 100%); border-top: 2px solid rgba(107,8,72,0.4); padding: 32px 20px 20px; margin-top: 20px; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.82rem; transition: var(--transition-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { max-width: 1400px; margin: 20px auto 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 1200px) {
    .movie-grid { grid-template-columns: repeat(4, 1fr); } .plot-cards-row { grid-template-columns: repeat(2, 1fr); } .detail-cards-row { grid-template-columns: 1fr 1fr; } .sidebar { width: 280px; } .hero-title { font-size: 1.6rem; }
}
@media (max-width: 900px) {
    .main-wrapper { flex-direction: column; padding: 16px 12px; gap: 20px; } .sidebar { width: 100%; position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .plot-cards-row { grid-template-columns: repeat(2, 1fr); } .detail-cards-row { grid-template-columns: 1fr; } .top-nav-inner { padding: 0 12px; height: 56px; gap: 8px; } .nav-links { display: none; } .nav-brand .brand-text { font-size: 1.1rem; } .hero-title { font-size: 1.3rem; } .hero-info { padding: 20px; }
}
@media (max-width: 600px) {
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .plot-cards-row { grid-template-columns: 1fr; } .detail-cards-row { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .detail-card { flex-direction: column; align-items: center; text-align: center; } .detail-card .detail-poster { width: 100px; height: 140px; } .hero-banner { aspect-ratio: 16/9; min-height: 180px; } .hero-title { font-size: 1.1rem; } .footer-inner { flex-direction: column; gap: 16px; }
}
