:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --radius: 22px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: var(--slate-50);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.main-nav a,
.mobile-nav a,
.footer-links a {
    color: var(--slate-700);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    width: 270px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 12px 10px 16px;
}

.header-search button {
    border: 0;
    color: var(--white);
    background: var(--blue-600);
    padding: 10px 16px;
    cursor: pointer;
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--blue-700);
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    flex-direction: column;
    gap: 14px;
}

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

.hero-section {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 132px max(6vw, 28px) 160px;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.80) 42%, rgba(15, 23, 42, 0.38) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

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

.hero-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), transparent);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-100);
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(191, 219, 254, 0.24);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    max-width: 800px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

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

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

.primary-btn {
    color: var(--white);
    background: var(--blue-600);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

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

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-control-panel {
    position: absolute;
    z-index: 3;
    left: max(6vw, 28px);
    right: max(6vw, 28px);
    bottom: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

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

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

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

.hero-mini-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    max-width: 680px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    color: var(--white);
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-mini-card img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--blue-900);
}

.hero-mini-card strong,
.hero-mini-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini-card em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-style: normal;
}

.section-block {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-overlap {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel {
    padding: 24px;
}

.big-search,
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.big-search input,
.filter-bar input {
    flex: 1;
    min-height: 54px;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    outline: 0;
    padding: 0 18px;
    background: var(--white);
}

.big-search button,
.filter-bar a,
.quick-links a {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 0 20px;
    font-weight: 800;
    color: var(--white);
    background: var(--blue-600);
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a {
    min-height: 42px;
    color: var(--blue-700);
    background: var(--blue-50);
}

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

.section-heading span {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.06em;
}

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

.compact-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.72);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    right: 12px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    left: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 16px;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.movie-card-body strong {
    min-height: 28px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body em {
    color: var(--slate-500);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.card-line {
    color: var(--slate-700);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row span {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-100);
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 170px;
}

.movie-card-compact .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-compact .movie-card-body strong {
    min-height: auto;
}

.soft-bg {
    max-width: none;
    background: linear-gradient(180deg, #ffffff, var(--blue-50));
}

.soft-bg .section-heading,
.soft-bg .movie-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    background: var(--white);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: var(--blue-200, #bfdbfe);
}

.rank-row span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
    font-weight: 900;
}

.rank-row strong,
.rank-row em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    grid-column: 2;
    color: var(--slate-500);
    font-style: normal;
    font-size: 14px;
}

.rank-list-wide .rank-row-wide {
    grid-template-columns: 76px minmax(0, 1fr) minmax(180px, 0.42fr);
}

.rank-list-wide .rank-row-wide em {
    grid-column: auto;
    text-align: right;
}

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

.category-tile,
.category-card {
    display: block;
    padding: 24px;
    border-radius: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
    transition: transform 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
}

.category-tile strong,
.category-card span {
    display: block;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-tile span,
.category-card strong {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.7;
}

.page-shell,
.detail-shell {
    padding-top: 76px;
}

.page-hero {
    position: relative;
    padding: 92px 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 68%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1 {
    margin: 20px auto 16px;
    font-size: clamp(42px, 6vw, 68px);
    letter-spacing: -0.08em;
}

.page-hero p {
    max-width: 760px;
    margin-top: 0;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 19px;
    line-height: 1.75;
}

.slim-hero {
    padding-top: 82px;
    padding-bottom: 76px;
}

.filter-bar {
    margin-bottom: 24px;
}

.filter-bar a {
    color: var(--blue-700);
    background: var(--blue-50);
}

.filter-empty {
    display: none;
    padding: 18px 20px;
    border-radius: 18px;
    color: var(--slate-700);
    background: var(--white);
    border: 1px solid var(--slate-200);
}

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

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--slate-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue-600);
    font-weight: 700;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 54px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

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

.detail-info .eyebrow {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-100);
}

.detail-info h1 {
    margin: 22px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.08em;
}

.detail-info p {
    color: var(--slate-700);
    font-size: 19px;
    line-height: 1.8;
}

.detail-info .hero-tags span,
.detail-meta span {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-100);
}

.detail-info .ghost-btn {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-100);
}

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 72px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-ring {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue-600);
    box-shadow: 0 20px 55px rgba(37, 99, 235, 0.45);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 0;
}

.detail-content article {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.detail-content h2 {
    margin-top: 0;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.detail-content p {
    margin-bottom: 0;
    color: var(--slate-700);
    line-height: 1.9;
}

.site-footer {
    background: var(--slate-900);
    color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.footer-inner p {
    margin: 12px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.74);
}

.is-hidden-by-filter {
    display: none !important;
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

    .two-columns,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

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

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

    .header-inner {
        height: 68px;
    }

    .page-shell,
    .detail-shell {
        padding-top: 68px;
    }

    .hero-section {
        min-height: 860px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding-top: 110px;
        padding-bottom: 210px;
    }

    .hero-copy h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero-poster {
        width: min(250px, 70vw);
        transform: none;
    }

    .hero-control-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-mini-list {
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .rank-list-wide .rank-row-wide em {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .section-block,
    .page-hero,
    .detail-hero,
    .player-section,
    .breadcrumb,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-section {
        min-height: 820px;
    }

    .hero-slide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-control-panel {
        left: 16px;
        right: 16px;
    }

    .big-search,
    .filter-bar,
    .section-heading,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .hero-mini-list,
    .category-tile-grid,
    .category-card-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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

    .player-frame {
        border-radius: 18px;
    }

    .play-ring {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
