
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --cyan: #06b6d4;
    --green: #10b981;
    --red: #ef4444;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.nav-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 1.18rem;
    background: linear-gradient(90deg, var(--primary-dark), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #334155;
    font-weight: 650;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.text-link {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.text-link:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #334155;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
}

.mobile-nav a:hover {
    background: #eff6ff;
    color: var(--primary);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #0891b2 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.20), transparent 28%),
        radial-gradient(circle at 75% 20%, rgba(14, 165, 233, 0.38), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.04));
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 70px 0 52px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.section-kicker {
    color: var(--primary);
    background: #eff6ff;
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.45rem, 6vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 34px 0 28px;
}

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

.primary-button,
.filter-box button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.hero .primary-button {
    color: var(--primary);
    background: #ffffff;
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.76);
}

.primary-button:hover,
.ghost-button:hover,
.filter-box button:hover {
    transform: translateY(-2px);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
}

.hero-facts div {
    min-width: 88px;
}

.hero-facts dt {
    color: #bfdbfe;
    font-size: 0.82rem;
}

.hero-facts dd {
    margin: 2px 0 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.36);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
}

.hero-poster-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    color: #ffffff;
    font-weight: 800;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.hero-controls button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
    width: 26px;
    background: #ffffff;
}

.search-strip {
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

.search-strip .section-shell {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.search-strip h2 {
    margin: 0 0 16px;
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(120px, 0.55fr) auto;
    gap: 12px;
    align-items: end;
}

.filter-box label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-box input,
.filter-box select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.content-section {
    padding: 64px 0;
}

.soft-section {
    background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
}

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

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 10px 0 0;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    max-width: 720px;
    margin: 10px auto 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    height: 0;
    margin: 0;
    padding-top: 130%;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.compact-card .poster-wrap {
    padding-top: 70%;
}

.poster-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: var(--red);
}

.card-body {
    padding: 16px;
}

.card-meta,
.card-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta span,
.card-tags span,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 760;
}

.card-meta span:first-child {
    color: var(--primary);
    background: #eff6ff;
}

.card-meta span:last-child,
.card-tags span,
.detail-meta span,
.tag-list span {
    color: #475569;
    background: #f1f5f9;
}

.card-body h3 {
    margin: 11px 0 8px;
    font-size: 1.08rem;
    line-height: 1.28;
    min-height: 2.58em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    min-height: 3.1em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-tile img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    transition: transform 0.35s ease;
}

.category-tile:hover img,
.category-card:hover img {
    transform: scale(1.06);
}

.tile-overlay,
.category-card::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
}

.category-tile strong,
.category-tile small {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
}

.category-tile strong {
    bottom: 56px;
    font-size: 1.35rem;
}

.category-tile small {
    bottom: 24px;
    color: #dbeafe;
}

.category-card {
    min-height: 260px;
}

.category-card div {
    position: absolute;
    z-index: 1;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.category-card h2 {
    margin: 0;
    font-size: 1.5rem;
}

.category-card p {
    color: #dbeafe;
}

.category-card span {
    font-weight: 900;
}

.page-hero {
    padding: 74px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.page-hero .breadcrumb {
    margin-bottom: 18px;
}

.page-hero .filter-box {
    margin-top: 26px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    backdrop-filter: blur(16px);
}

.page-hero .filter-box label,
.page-hero .filter-box input,
.page-hero .filter-box select {
    color: #ffffff;
}

.page-hero .filter-box input,
.page-hero .filter-box select {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
}

.page-hero .filter-box input::placeholder {
    color: #dbeafe;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

.stacked-previews {
    display: grid;
    gap: 56px;
}

.ranking-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.rank-card,
.rank-list,
.detail-content article,
.detail-content aside,
.player-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.rank-card {
    padding: 28px;
    position: sticky;
    top: 92px;
}

.rank-card h2 {
    margin: 14px 0 10px;
    font-size: 2rem;
}

.rank-card p {
    margin: 0;
    color: var(--muted);
}

.rank-list {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row:hover {
    background: #f8fafc;
}

.rank-index {
    font-weight: 950;
    color: var(--red);
}

.rank-title {
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-hero {
    padding: 56px 0;
    color: #ffffff;
    background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.35), transparent 26%), linear-gradient(135deg, #0f172a, #1d4ed8 56%, #0891b2);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
    gap: 36px;
    align-items: center;
}

.detail-copy h1 {
    max-width: 840px;
}

.detail-one-line {
    max-width: 780px;
    color: #dbeafe;
    font-size: 1.1rem;
}

.detail-meta,
.tag-list {
    margin-top: 18px;
}

.detail-meta span,
.tag-list span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-poster {
    overflow: hidden;
    margin: 0;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.player-section {
    padding: 52px 0 26px;
}

.player-card {
    padding: 18px;
}

.player-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 8px 18px;
}

.player-head h2 {
    margin: 10px 0 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.player-head > span {
    color: var(--muted);
    font-weight: 800;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.62));
    border: 0;
    cursor: pointer;
}

.play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.player-card.is-playing .play-overlay {
    display: none;
}

.player-status {
    margin: 14px 8px 2px;
    color: var(--muted);
    font-weight: 700;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding: 26px 0 34px;
}

.detail-content article,
.detail-content aside {
    padding: 28px;
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.detail-content p {
    color: #334155;
    font-size: 1.03rem;
}

.detail-content dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-content dl div {
    display: grid;
    gap: 4px;
}

.detail-content dt {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.detail-content dd {
    margin: 0;
    font-weight: 780;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-logo .brand-text {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.footer-brand p,
.site-footer p,
.site-footer a {
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.site-footer a:hover {
    color: #38bdf8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
        font-size: 0.92rem;
    }

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-shell {
        min-height: auto;
        padding: 46px 0 42px;
    }

    .hero-slide,
    .detail-layout,
    .ranking-panel,
    .detail-content,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        transform: none;
        max-width: 380px;
    }

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

    .filter-box .search-field,
    .filter-box button {
        grid-column: 1 / -1;
    }

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

    .rank-card {
        position: static;
    }

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

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

@media (max-width: 560px) {
    .nav-shell,
    .section-shell,
    .footer-shell,
    .hero-shell,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-actions,
    .hero-facts,
    .section-heading,
    .player-head {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-box,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-card-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 42px 0;
    }

    .page-hero {
        padding: 52px 0;
    }
}
