:root {
    --bg-start: #ecfeff;
    --bg-mid: #eff6ff;
    --bg-end: #f0fdfa;
    --primary: #0891b2;
    --primary-deep: #0e7490;
    --secondary: #2563eb;
    --accent: #0d9488;
    --ink: #111827;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg-start), var(--bg-mid) 48%, var(--bg-end));
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.96), rgba(37, 99, 235, 0.96), rgba(13, 148, 136, 0.96));
    box-shadow: 0 14px 40px rgba(8, 47, 73, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-weight: 700;
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.header-search {
    flex: 0 1 300px;
    position: relative;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 44px 12px 18px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.18);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

.mobile-panel a {
    display: block;
    padding: 13px 0;
    color: #ffffff;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.page-main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    min-height: 620px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #0891b2, #2563eb 52%, #0d9488);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(18px);
    animation: glowPulse 8s ease-in-out infinite;
}

.hero::before {
    left: -120px;
    top: -120px;
}

.hero::after {
    right: -110px;
    bottom: -140px;
    animation-delay: 1.4s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0 66px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
    gap: 42px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 30px;
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.7;
    color: rgba(236, 254, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
}

.stat-card {
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
}

.stat-label {
    display: block;
    margin-top: 6px;
    color: rgba(236, 254, 255, 0.82);
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 480px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    overflow: hidden;
    border-radius: 32px;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    box-shadow: 0 28px 80px rgba(6, 40, 65, 0.34);
    background: rgba(8, 47, 73, 0.3);
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.08), rgba(8, 47, 73, 0.88));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.hero-slide-content h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 28px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.section {
    padding: 54px 0;
}

.section-tight {
    padding: 34px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.link-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--primary-deep);
    font-weight: 800;
    background: rgba(14, 116, 144, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(8, 47, 73, 0.2);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-cyan {
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.22);
}

.grid {
    display: grid;
    gap: 22px;
}

.movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-grid-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.74);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.movie-cover {
    position: relative;
    aspect-ratio: 3 / 4.08;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(37, 99, 235, 0.18));
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
}

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.movie-score {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    min-width: 44px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
}

.movie-body {
    padding: 18px;
}

.movie-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 800;
    background: rgba(8, 145, 178, 0.09);
}

.category-card {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary) 58%, var(--accent));
    box-shadow: 0 20px 45px rgba(8, 47, 73, 0.16);
    overflow: hidden;
    position: relative;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 22px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 12px 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    z-index: 2;
    font-weight: 900;
}

.panel {
    border-radius: var(--radius);
    padding: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 24px;
}

.filter-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    min-height: 52px;
    border-radius: 18px;
    padding: 0 18px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 0;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--primary-deep);
    font-weight: 900;
    background: rgba(8, 145, 178, 0.1);
}

.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.74);
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.rank-thumb {
    width: 86px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(37, 99, 235, 0.18));
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-heat {
    text-align: center;
    color: var(--primary-deep);
    font-weight: 900;
}

.breadcrumb {
    padding: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-deep);
    font-weight: 800;
}

.detail-hero {
    padding: 30px 0 54px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
    background: #020617;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(2, 6, 23, 0.68));
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #0f172a;
    font-size: 34px;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

.detail-title {
    margin: 24px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.03em;
}

.detail-lead {
    margin: 0 0 18px;
    color: #475569;
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-pill {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--primary-deep);
    font-weight: 900;
    background: rgba(8, 145, 178, 0.1);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.article-block {
    line-height: 1.95;
    color: #334155;
    font-size: 17px;
}

.article-block h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 26px;
}

.article-block p {
    margin: 0 0 18px;
}

.site-footer {
    margin-top: 42px;
    color: rgba(255, 255, 255, 0.84);
    background: linear-gradient(90deg, #0f766e, #0e7490, #1d4ed8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 42px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-inner p,
.footer-inner a {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.empty-message {
    display: none;
    padding: 30px;
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@media (max-width: 1080px) {
    .movie-grid-wide,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-inner,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 430px;
    }

    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 820px) {
    .nav-links,
    .header-search {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-panel.is-open {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0 48px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .section-head,
    .filter-bar {
        display: block;
    }

    .filter-chips {
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid-wide,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-item {
        grid-template-columns: 44px 70px minmax(0, 1fr);
    }

    .rank-heat {
        grid-column: 3;
        text-align: left;
    }

    .rank-thumb {
        width: 70px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .movie-grid,
    .movie-grid-wide,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 390px;
    }

    .hero-slide-content {
        padding: 22px;
    }

    .panel {
        padding: 22px;
    }

    .player-start {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}
