* {
    box-sizing: border-box;
}

:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --blue-600: #2563eb;
    --cyan-500: #06b6d4;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), #ffffff 28%, var(--slate-50));
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text {
    font-size: 22px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.26);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link,
.mobile-link {
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--sky-600);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--slate-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--slate-700);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 10px;
    flex-direction: column;
}

.mobile-nav.open {
    display: flex;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--slate-50);
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-600), var(--blue-600) 56%, var(--cyan-500));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.2), transparent 28%), radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.16), transparent 32%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    min-height: 620px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0 96px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 700;
}

.section-kicker {
    color: var(--sky-700);
    background: var(--sky-50);
    border-color: var(--sky-100);
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 5.8vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: #cffafe;
}

.hero p {
    max-width: 660px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: 20px;
}

.hero-actions,
.card-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
    color: var(--sky-700);
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover {
    background: var(--sky-50);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(3, 105, 161, 0.72);
    border-color: rgba(255, 255, 255, 0.38);
}

.btn-secondary:hover {
    background: rgba(3, 105, 161, 0.92);
}

.btn-sky {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
    box-shadow: 0 16px 26px rgba(2, 132, 199, 0.22);
}

.btn-outline {
    color: var(--sky-700);
    background: #ffffff;
    border-color: var(--sky-100);
}

.hero-panel {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 430px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 36px 90px rgba(15, 23, 42, 0.34);
    background: rgba(15, 23, 42, 0.4);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide-content {
    width: 100%;
    padding: 34px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.hero-slide h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-slide p {
    margin: 0 0 16px;
    font-size: 15px;
    color: #e2e8f0;
}

.hero-tags,
.tag-row,
.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.meta-badges span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.tag-row span,
.meta-badges span {
    color: var(--slate-600);
    background: var(--slate-100);
}

.hero-dots {
    position: absolute;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

.stat-strip {
    position: relative;
    z-index: 2;
    margin-top: -48px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--sky-600);
    font-size: 28px;
}

.stat-card span {
    color: var(--slate-500);
    font-weight: 700;
}

.section {
    padding: 78px 0;
}

.section.tight {
    padding: 48px 0;
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 12px 0 0;
    color: var(--slate-500);
    max-width: 760px;
}

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

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

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(14, 165, 233, 0.26);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

.movie-card-compact .poster-link {
    aspect-ratio: 4 / 3;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.poster-badge,
.poster-type {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    left: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
}

.poster-type {
    right: 12px;
    color: var(--sky-700);
    background: rgba(255, 255, 255, 0.9);
}

.movie-card-body {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    min-height: 2.8em;
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--sky-600);
}

.movie-card p {
    min-height: 3em;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

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

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

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-600), var(--blue-600) 62%, var(--cyan-500));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 800px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.filter-panel {
    margin: -32px auto 38px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 190px;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--slate-800);
    outline: none;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-result {
    grid-column: 1 / -1;
    color: var(--slate-500);
    font-size: 14px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.rank-list,
.side-panel,
.info-card,
.related-panel {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-100);
    transition: background 0.22s ease;
}

.rank-row:hover {
    background: var(--sky-50);
}

.rank-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-weight: 900;
}

.top-rank .rank-num {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-info {
    color: var(--slate-500);
    font-size: 13px;
}

.detail-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), var(--sky-700));
}

.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.player-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 36px 88px rgba(0, 0, 0, 0.35);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.36), rgba(15, 23, 42, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-layer.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-core {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--sky-700);
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
    font-size: 38px;
    padding-left: 5px;
}

.detail-side {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

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

.detail-side-body {
    padding: 20px;
}

.detail-side-body h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.detail-side-body p {
    margin: 0 0 16px;
    color: #dbeafe;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.article-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.article-card h2,
.side-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 20px;
    color: var(--slate-700);
    font-size: 17px;
}

.info-card {
    padding: 22px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
}

.info-row span:first-child {
    color: var(--slate-500);
}

.info-row span:last-child {
    font-weight: 800;
    text-align: right;
}

.related-panel {
    padding: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.related-item p {
    margin: 0;
    color: var(--slate-500);
    font-size: 12px;
}

.empty-state {
    display: none;
    padding: 46px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: var(--slate-500);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-state.show {
    display: block;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 42px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 9px;
}

.site-footer a:hover {
    color: #7dd3fc;
}

.footer-copy {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero-inner,
    .player-grid,
    .content-layout,
    .rank-layout {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        max-width: 420px;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-inner {
        min-height: auto;
        padding: 56px 0 84px;
        gap: 32px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-slider {
        min-height: 360px;
    }

    .stat-grid,
    .movie-grid,
    .movie-grid.five,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-info {
        grid-column: 2;
    }
}

@media (max-width: 520px) {
    .nav-wrap,
    .mobile-nav,
    .container,
    .hero-inner,
    .detail-wrap,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stat-grid,
    .movie-grid,
    .movie-grid.five,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 22px;
    }
}
