
:root {
    --color-coral: #ff8260;
    --color-red-pink: #ff4057;
    --color-deep-berry: #900048;
    --color-dark-purple: #240041;
    --bg-primary: #0b0018;
    --bg-secondary: #120024;
    --bg-card: #1a0a2e;
    --bg-card-hover: #1f1038;
    --text-primary: #e8e0f0;
    --text-secondary: #b8a8cc;
    --text-muted: #8a7a9e;
    --border-subtle: rgba(144, 0, 72, 0.3);
    --border-glow: rgba(255, 64, 87, 0.4);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 32px rgba(255, 64, 87, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(144, 0, 72, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 60%, rgba(255, 64, 87, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(255, 130, 96, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

/* 顶部导航 */
.top-nav {
    width: 100%;
    background: var(--color-dark-purple);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.top-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 60px;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.nav-brand .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-red-pink), var(--color-coral));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0;
    box-shadow: 0 2px 12px rgba(255, 64, 87, 0.45);
}

.nav-brand:hover {
    color: var(--color-coral);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.nav-links li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
    background: rgba(255, 130, 96, 0.15);
}

.nav-links li a.active {
    background: rgba(255, 64, 87, 0.2);
    color: var(--color-coral);
    font-weight: 600;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--color-coral);
    border-radius: 1px;
    transition: transform var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 用户状态 */
.user-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: none;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1.5px solid var(--color-coral);
}

.btn-login:hover {
    background: var(--color-coral);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 130, 96, 0.4);
    transform: translateY(-1px);
}

.btn-logged-in {
    background: rgba(255, 130, 96, 0.15);
    color: #fff;
    border: 1.5px solid transparent;
    gap: 8px;
    cursor: default;
}

.avatar-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-coral), var(--color-red-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    flex-shrink: 0;
}

.vip-badge {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #ff8260, #ff4057);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: vipPulse 2.5s ease-in-out infinite;
}

@keyframes vipPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 130, 96, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(255, 130, 96, 0); }
}

/* 主内容区 */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 28px 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.section-title .title-bar {
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--color-coral), var(--color-red-pink));
    flex-shrink: 0;
}

.section-title .title-accent {
    color: var(--color-coral);
}

.section-more {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    font-weight: 500;
    white-space: nowrap;
}

.section-more:hover {
    color: var(--color-coral);
}

/* 两栏布局 */
.content-two-col {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.col-main {
    flex: 1;
    min-width: 0;
}

.col-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 84px;
    align-self: flex-start;
}

/* 热门影视网格 */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.hot-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
}

.hot-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    z-index: 5;
}

.hot-card .poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #1a0a2e;
}

.hot-card .poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hot-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.hot-card .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.hot-card .rank-badge.top3 {
    background: var(--color-red-pink);
    box-shadow: 0 2px 8px rgba(255, 64, 87, 0.5);
    font-size: 0.8rem;
}

.hot-card .score-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-coral);
    font-weight: 700;
    font-size: 0.7rem;
    z-index: 2;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

.hot-card .card-info {
    padding: 10px 12px 12px;
}

.hot-card .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.hot-card .card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-card .card-meta .dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.hot-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 3;
    pointer-events: none;
}

.hot-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 64, 87, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 64, 87, 0.55);
    transition: transform var(--transition-fast);
}

.hot-card:hover .play-icon-circle {
    transform: scale(1.1);
}

.play-icon-circle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

/* 周榜推荐 */
.sidebar-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.sidebar-card .sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card .sidebar-title .icon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-red-pink);
    animation: dotBlink 1.8s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--color-red-pink); }
    50% { opacity: 0.35; box-shadow: 0 0 2px var(--color-red-pink); }
}

.rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.rank-list li:hover {
    background: rgba(255, 130, 96, 0.08);
}

.rank-list .rank-num {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.rank-list li:nth-child(1) .rank-num { background: linear-gradient(135deg, #ff8260, #ff4057); color: #fff; box-shadow: 0 2px 8px rgba(255,64,87,0.4); font-size: 0.9rem; }
.rank-list li:nth-child(2) .rank-num { background: rgba(255,64,87,0.55); color: #fff; font-size: 0.85rem; }
.rank-list li:nth-child(3) .rank-num { background: rgba(255,130,96,0.5); color: #fff; font-size: 0.82rem; }

.rank-list .rank-info { flex: 1; min-width: 0; }
.rank-list .rank-name { font-size: 0.85rem; font-weight: 500; color: #e0d8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list li:nth-child(1) .rank-name,
.rank-list li:nth-child(2) .rank-name,
.rank-list li:nth-child(3) .rank-name { font-weight: 600; color: #fff; }
.rank-list .rank-heat { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.rank-list .rank-arrow { color: var(--color-coral); font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.rank-list .rank-arrow.up { color: #ff4057; }
.rank-list .rank-arrow.stay { color: var(--text-muted); }

/* 明星推荐 */
.stars-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.star-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.star-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.star-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 130, 96, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.star-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
    border: 3px solid var(--border-subtle);
    transition: var(--transition-smooth);
    background: #1a0a2e;
}

.star-card:hover .star-avatar {
    border-color: var(--color-coral);
    box-shadow: 0 0 20px rgba(255, 130, 96, 0.35);
}

.star-name { font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 4px; }
.star-role { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.star-works { font-size: 0.72rem; color: var(--color-coral); font-weight: 500; letter-spacing: 0.3px; }

/* 剧情介绍 */
.plots-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.plot-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
}

.plot-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.plot-card .plot-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a0a2e;
}
.plot-card .plot-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.plot-card:hover .plot-img-wrap img {
    transform: scale(1.06);
}

.plot-card .plot-content { padding: 14px 16px 16px; }
.plot-card .plot-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 64, 87, 0.2);
    color: var(--color-coral);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.plot-card .plot-title { font-weight: 700; font-size: 0.95rem; color: #fff; margin-bottom: 6px; line-height: 1.4; }
.plot-card .plot-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 电影详情 */
.detail-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.detail-card .detail-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1a0a2e;
    position: relative;
}
.detail-card .detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.detail-card:hover .detail-img-wrap img {
    transform: scale(1.06);
}

.detail-card .detail-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.detail-card .detail-title { font-weight: 700; font-size: 0.95rem; color: #fff; line-height: 1.3; }
.detail-card .detail-meta-row { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: var(--text-muted); }
.detail-card .detail-meta-row span { padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.04); white-space: nowrap; }
.detail-card .detail-rating { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-coral); font-size: 0.9rem; }
.detail-card .detail-rating .stars-text { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.detail-card .detail-desc { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 评论 */
.reviews-section { margin-bottom: 40px; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }

.review-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: default;
}

.review-item:hover {
    border-color: var(--border-subtle);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1a0a2e; border: 2px solid var(--border-subtle); }
.review-user-info { flex: 1; min-width: 0; }
.review-username { font-weight: 600; font-size: 0.9rem; color: #fff; }
.review-time { font-size: 0.7rem; color: var(--text-muted); }
.review-stars { color: var(--color-coral); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; letter-spacing: 1px; }
.review-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.review-movie-tag { display: inline-block; font-size: 0.7rem; color: var(--color-coral); font-weight: 500; margin-bottom: 6px; padding: 2px 8px; border-radius: 4px; background: rgba(255,130,96,0.08); }

/* 底部导航 */
.bottom-nav {
    width: 100%;
    background: var(--color-dark-purple);
    border-top: 2px solid var(--border-subtle);
    padding: 32px 28px 20px;
    box-shadow: 0 -2px 24px rgba(0,0,0,0.5);
}

.bottom-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.bottom-col h4 { font-weight: 700; color: #fff; margin-bottom: 10px; font-size: 0.95rem; letter-spacing: 0.3px; }
.bottom-col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.bottom-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; transition: var(--transition-fast); }
.bottom-col ul li a:hover { color: var(--color-coral); }
.bottom-copyright { width: 100%; text-align: center; color: var(--text-muted); font-size: 0.75rem; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); letter-spacing: 0.3px; }

/* 响应式 */
@media (max-width: 1400px) {
    .hot-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
    .col-sidebar { width: 300px; }
    .hot-card .card-title { font-size: 0.78rem; }
}
@media (max-width: 1200px) {
    .content-two-col { flex-direction: column; }
    .col-sidebar { width: 100%; position: static; order: -1; }
    .hot-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .stars-row, .plots-row, .detail-cards-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sidebar-card .rank-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
@media (max-width: 768px) {
    .top-nav-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
    .nav-links { order: 3; width: 100%; justify-content: center; overflow-x: auto; gap: 2px; padding-bottom: 4px; }
    .nav-links li a { padding: 6px 10px; font-size: 0.78rem; }
    .hot-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stars-row, .plots-row, .detail-cards-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sidebar-card .rank-list { grid-template-columns: 1fr; }
    .bottom-nav-inner { flex-direction: column; gap: 20px; }
    .main-container { padding: 14px 10px 24px; }
    .section-title { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .hot-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .stars-row, .plots-row, .detail-cards-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .review-item { padding: 12px 14px; }
    .nav-brand { font-size: 1.1rem; }
    .user-btn { padding: 6px 12px; font-size: 0.78rem; }
}
