:root {
    color-scheme: light;
    --page-bg: #f5f7fb;
    --text: #172033;
    --muted: #63718a;
    --line: rgba(148, 163, 184, 0.26);
    --brand: #2563eb;
    --brand-dark: #1e3a8a;
    --brand-soft: #dbeafe;
    --card: rgba(255, 255, 255, 0.94);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34rem),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 34%, #f5f7fb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.96));
    color: #eff6ff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.32);
}

.brand-main {
    display: block;
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #bfdbfe, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-sub {
    display: block;
    margin-top: 2px;
    color: #bfdbfe;
    font-size: 0.76rem;
}

.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #dbeafe;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.72);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(260px, 24vw);
}

.header-search input,
.search-panel input,
.page-filter input,
.search-panel select {
    width: 100%;
    border: 1px solid rgba(96, 165, 250, 0.42);
    outline: none;
    border-radius: 14px;
    color: #eff6ff;
    background: rgba(30, 58, 138, 0.54);
    padding: 11px 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.search-panel input:focus,
.page-filter input:focus,
.search-panel select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
    background: rgba(30, 64, 175, 0.62);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.48);
    font-size: 1.5rem;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-nav .nav-link {
    display: block;
    background: rgba(30, 64, 175, 0.44);
}

main {
    min-height: 70vh;
}

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

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

.hero-track {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 13, 31, 0.96) 0%, rgba(15, 23, 42, 0.88) 42%, rgba(15, 23, 42, 0.24) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding: 84px 0 74px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.92);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(2.5rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-desc {
    max-width: 680px;
    color: #dbeafe;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    line-height: 1.9;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-meta {
    margin: 28px 0 34px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.42);
    border: 1px solid rgba(147, 197, 253, 0.25);
    font-size: 0.88rem;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #60a5fa;
}

.section {
    padding: 54px 0;
}

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

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

.section-kicker {
    margin-bottom: 8px;
    color: #2563eb;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-desc {
    margin-top: 10px;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.9;
}

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

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

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

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.card-grid.grid-wide .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

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

.poster-mask {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent);
}

.card-badge,
.rating-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    font-size: 0.78rem;
}

.rating-badge {
    right: 12px;
    top: 12px;
    padding: 6px 9px;
    color: #713f12;
    background: rgba(254, 240, 138, 0.94);
    font-size: 0.78rem;
}

.play-chip {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 15px 15px 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 900;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    margin: 0 0 13px;
    min-height: 43px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 166px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid rgba(147, 197, 253, 0.4);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.category-card span {
    position: relative;
    color: #2563eb;
    font-weight: 900;
}

.page-hero {
    padding: 72px 0 46px;
    background:
        radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.22), transparent 32rem),
        linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin-top: 16px;
    max-width: 820px;
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.9;
}

.page-filter {
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.page-filter input {
    color: #0f172a;
    background: #f8fafc;
    border-color: #dbe3ef;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    color: #334155;
    font-weight: 900;
}

.pagination span,
.pagination a:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 74px 132px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-index {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    font-size: 1.3rem;
    font-weight: 950;
}

.rank-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

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

.rank-title {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 1.16rem;
    font-weight: 950;
}

.rank-desc {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.78));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 36px;
    align-items: end;
    padding: 68px 0 54px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(2rem, 6vw, 4.7rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 860px;
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.9;
}

.player-area {
    padding: 42px 0 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    display: block;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-layer.is-hidden {
    display: none;
    pointer-events: none;
}

.play-layer-inner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    font-size: 1.12rem;
    font-weight: 950;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
}

.play-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #2563eb;
    font-size: 1.4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.86fr);
    gap: 28px;
    align-items: start;
}

.panel {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    padding: 26px;
}

.panel + .panel {
    margin-top: 22px;
}

.panel h2,
.panel h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 950;
}

.panel p {
    margin: 0;
    color: #475569;
    line-height: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 12px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 0.88rem;
    font-weight: 800;
}

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

.side-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
}

.side-card img {
    width: 82px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.side-card h4 {
    margin: 0 0 5px;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.45;
}

.side-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.search-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.search-panel input,
.search-panel select {
    color: #0f172a;
    background: #f8fafc;
    border-color: #dbe3ef;
}

.search-results {
    margin-top: 28px;
}

.empty-state {
    padding: 42px;
    text-align: center;
    border-radius: 24px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 950;
}

.footer-text {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 18px 0;
    color: #64748b;
    text-align: center;
}

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

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

@media (max-width: 900px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

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

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

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

    .rank-item {
        grid-template-columns: 54px 106px 1fr;
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        width: fit-content;
    }

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

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

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

    .brand-sub {
        display: none;
    }

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

    .hero-copy {
        padding-top: 62px;
    }

    .hero-title {
        font-size: 2.7rem;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

    .rank-item {
        grid-template-columns: 46px 1fr;
    }

    .rank-poster {
        display: none;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

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

    .panel {
        padding: 20px;
    }
}
