:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --text-main: #111827;
    --text-muted: #64748b;
    --line: #e5eefb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
    --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.22);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.62), #ffffff 35%, rgba(239, 246, 255, 0.72));
}

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: 100;
    border-bottom: 1px solid rgba(191, 219, 254, 0.72);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.36);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a {
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--blue-600);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--blue-200);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(239, 246, 255, 0.72);
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 11px 10px 11px 18px;
    background: transparent;
}

.nav-search button,
.btn-primary,
.btn-secondary,
.filter-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.btn-primary,
.filter-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.2);
}

.nav-search button {
    padding: 10px 18px;
    margin-right: 3px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover,
.nav-search button:hover,
.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--blue-50);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #2563eb;
    border-radius: 999px;
}

.page-shell,
.section-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.1)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.08) 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding: 90px 0 82px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow,
.hero-tags span,
.tag-row span,
.detail-tags span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.eyebrow {
    margin-bottom: 18px;
    padding: 8px 13px;
    color: #dffaff;
    background: rgba(34, 211, 238, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.32);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 32px;
}

.hero-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.hero-controls {
    position: absolute;
    z-index: 5;
    right: max(24px, calc((100% - 1200px) / 2));
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot,
.hero-arrow {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    padding: 0;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 22px;
}

.hero-search-card {
    position: relative;
    z-index: 6;
    width: min(1200px, calc(100% - 32px));
    margin: -38px auto 0;
    padding: 20px;
    border: 1px solid rgba(191, 219, 254, 0.85);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search-card form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.hero-search-card input,
.filter-panel input,
.filter-panel select,
.search-large input {
    width: 100%;
    border: 1px solid var(--blue-200);
    border-radius: 18px;
    padding: 14px 16px;
    outline: 0;
    color: #0f172a;
    background: rgba(239, 246, 255, 0.72);
}

.hero-search-card button,
.search-large button {
    min-width: 128px;
}

.section {
    padding: 72px 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: var(--shadow);
}

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

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

.movie-card:hover .poster-link img,
.category-covers a:hover img,
.rank-poster:hover img {
    transform: scale(1.06);
}

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
}

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

.movie-title {
    display: block;
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-title:hover,
.rank-title:hover {
    color: var(--blue-600);
}

.movie-card-body p,
.rank-item p,
.detail-copy p,
.category-tile p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

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

.tag-row span,
.detail-tags span,
.filter-chip {
    padding: 6px 10px;
    color: #2563eb;
    background: var(--blue-50);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 246px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.08);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.1));
    transition: opacity 0.2s ease;
}

.category-tile:hover::before {
    opacity: 1;
}

.category-main-link,
.category-tile p,
.category-covers {
    position: relative;
    z-index: 1;
}

.category-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.category-main-link span {
    font-size: 24px;
    font-weight: 900;
}

.category-main-link strong {
    color: var(--blue-600);
    font-size: 13px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.category-covers a {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: var(--blue-50);
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cta-panel {
    padding: 48px;
    border-radius: 34px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
}

.cta-panel p {
    margin: 0 auto 26px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.page-hero {
    padding: 74px 0 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.page-title {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.page-title p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 14px;
    align-items: center;
    margin: 32px 0 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.08);
}

.filter-button {
    min-height: 50px;
    padding: 0 22px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 88px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.rank-no {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.rank-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: var(--blue-50);
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-title {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 900;
}

.detail-hero {
    padding: 46px 0 32px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.78), rgba(255, 255, 255, 0));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 32px;
    align-items: start;
}

.detail-title {
    margin-bottom: 20px;
}

.detail-title .breadcrumb {
    color: #64748b;
}

.detail-title .breadcrumb a:hover {
    color: var(--blue-600);
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow-strong);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.18));
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-cover span {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--blue-600);
    font-size: 32px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.25);
}

.play-cover strong {
    font-size: 20px;
}

.detail-panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: var(--blue-50);
}

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

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.detail-stats span {
    padding: 12px;
    border-radius: 18px;
    text-align: center;
    color: #2563eb;
    font-weight: 900;
    background: var(--blue-50);
}

.detail-copy {
    margin-top: 26px;
}

.detail-copy section {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.07);
}

.detail-copy h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.search-large {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    max-width: 820px;
    margin-top: 28px;
}

.empty-state {
    display: none;
    padding: 42px;
    border: 1px dashed var(--blue-200);
    border-radius: 24px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

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

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(191, 219, 254, 0.82);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), #ffffff);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

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

.footer-grid p {
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: #475569;
    font-weight: 650;
}

.footer-links a:hover {
    color: var(--blue-600);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 32px;
    border-top: 1px solid rgba(191, 219, 254, 0.72);
    color: #64748b;
    font-size: 14px;
}

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 22px;
    }
}

@media (max-width: 900px) {
    .nav-shell {
        flex-wrap: wrap;
        min-height: auto;
        padding: 14px 0;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 0;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 22px;
    }

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

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

@media (max-width: 640px) {
    .brand-text {
        font-size: 20px;
    }

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

    .hero-search-card form,
    .search-large {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 74px 1fr;
        gap: 12px;
    }

    .detail-panel {
        display: block;
    }

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

    .cta-panel {
        padding: 34px 22px;
    }
}
