:root {
    --blue-900: #172554;
    --blue-800: #1e3a8a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --cyan-500: #06b6d4;
    --teal-400: #2dd4bf;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --amber: #f59e0b;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.13);
    --shadow-card: 0 12px 32px rgba(37, 99, 235, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #ecfeff 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 12px;
    color: var(--slate-700);
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: var(--blue-600);
    background: #eff6ff;
}

.nav-link:hover {
    transform: translateY(-1px);
}

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

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu {
    display: none;
    padding: 0 22px 18px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.page-main {
    padding-top: 68px;
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #2dd4bf 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.20), transparent 26%),
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.24));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 34px 34px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    min-height: 540px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    align-items: center;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 34px;
    animation: fadeIn 0.55s ease both;
}

.hero-slide.is-active {
    display: grid;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-weight: 700;
    color: #dffaff;
}

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

.hero h1 span {
    display: block;
    color: #cffafe;
}

.hero p {
    margin: 22px 0 0;
    max-width: 660px;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.75;
    color: #dbeafe;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.search-button,
.filter-button {
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.search-button,
.filter-button {
    background: var(--white);
    color: var(--blue-700);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.82);
    background: rgba(37, 99, 235, 0.24);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover,
.search-button:hover,
.filter-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-search {
    margin-top: 24px;
    width: min(100%, 560px);
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-poster {
    position: relative;
    min-height: 410px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.34);
    transform: rotate(1deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
    filter: saturate(1.06);
}

.hero-poster-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 90px 24px 24px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.90), transparent);
}

.hero-poster-info h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--white);
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 22px 0;
}

.section-tight {
    padding-top: 36px;
}

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

.section-title {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.035em;
}

.section-subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--slate-600);
    line-height: 1.8;
}

.link-more {
    color: var(--blue-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 24px 56px rgba(37, 99, 235, 0.18);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
}

.card-cover img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.movie-card:hover .rank-thumb img {
    transform: scale(1.08);
}

.card-score {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--white);
    font-weight: 900;
    text-align: center;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.34);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-600);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-700);
    font-weight: 700;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.36;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover {
    color: var(--blue-600);
}

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

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

.tag {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 176px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: var(--shadow-soft);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    right: -70px;
    bottom: -70px;
    background: rgba(255, 255, 255, 0.20);
}

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

.category-card p {
    position: relative;
    margin: 0;
    color: #e0f2fe;
    line-height: 1.72;
}

.feature-panel {
    padding: 34px;
    border-radius: 32px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600) 48%, var(--cyan-500));
    box-shadow: var(--shadow-soft);
}

.feature-panel h1,
.feature-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 50px);
    letter-spacing: -0.045em;
}

.feature-panel p {
    margin: 14px 0 0;
    max-width: 860px;
    color: #dbeafe;
    line-height: 1.85;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(120px, 0.5fr)) auto;
    gap: 12px;
    margin: 24px 0;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
    background: var(--white);
    color: var(--slate-900);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 140px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.rank-thumb {
    display: block;
    overflow: hidden;
    min-height: 96px;
    border-radius: 16px;
    background: #dbeafe;
}

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.rank-content p {
    margin: 0 0 12px;
    color: var(--slate-600);
    line-height: 1.72;
}

.detail-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 54%, #0891b2);
    color: var(--white);
}

.detail-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #bfdbfe;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--white);
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-copy p {
    margin: 18px 0 0;
    color: #dbeafe;
    line-height: 1.85;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e0f2fe;
    font-weight: 800;
}

.content-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 22px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.content-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0 0 16px;
    color: var(--slate-700);
    line-height: 1.95;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.32);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background:
        linear-gradient(to top, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.12)),
        rgba(2, 6, 23, 0.18);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-badge {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.34);
}

.play-badge::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 27px solid var(--white);
}

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

.side-link {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.side-link:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.26);
}

.side-link img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
}

.side-link strong {
    display: block;
    line-height: 1.35;
}

.side-link span {
    display: block;
    margin-top: 5px;
    color: var(--slate-600);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 22px;
    color: var(--slate-600);
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 72px;
    color: var(--white);
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 44px 22px;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr;
    gap: 28px;
}

.footer-grid p {
    margin: 14px 0 0;
    max-width: 580px;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 22px 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .content-grid {
        padding-top: 34px;
    }

    .hero-poster {
        min-height: 340px;
    }
}

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

    .menu-toggle {
        display: flex;
    }

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

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 34px;
        padding-bottom: 74px;
    }

    .hero-slide {
        gap: 26px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input,
    .search-button {
        min-height: 46px;
        width: 100%;
    }

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

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

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

    .rank-item {
        grid-template-columns: 52px 92px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        font-size: 18px;
    }

    .rank-content h3 {
        font-size: 17px;
    }

    .rank-content p {
        display: none;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }

    .content-card {
        padding: 20px;
    }

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