:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eef6ff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --dark: #0f172a;
    --dark-2: #1f2937;
    --radius-lg: 28px;
    --radius-md: 20px;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

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

.nav-bar {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 1.22rem;
}

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

.nav-link {
    color: #475569;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary);
}

.header-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-input {
    width: 100%;
    border: 1px solid #dbe3ef;
    outline: none;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 16px;
}

.header-search button,
.mobile-search button,
.large-search button {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #eff6ff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--primary);
    border-radius: 5px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    padding: 18px 0 22px;
    display: grid;
    gap: 14px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--dark);
    color: #ffffff;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.34) 100%), linear-gradient(0deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.05));
}

.hero-inner {
    position: relative;
    z-index: 3;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 56px;
}

.hero-copy h1,
.hero-copy h2,
.hero-site-title {
    margin: 0;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.95;
    margin-bottom: 14px;
}

.hero-copy h2,
.hero-site-title {
    font-size: clamp(2rem, 4.6vw, 4.5rem);
    line-height: 1.02;
    font-weight: 850;
}

.hero-site-title {
    color: rgba(255, 255, 255, 0.92);
}

.eyebrow {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfdbfe;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow.blue {
    color: var(--primary);
}

.hero-lead,
.page-hero p,
.section-heading p,
.intro-card p,
.detail-lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.hero-lead {
    margin: 22px 0;
    font-size: 1.18rem;
}

.hero-meta,
.meta-pills,
.detail-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta span,
.meta-pills span,
.detail-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 750;
}

.hero-meta span,
.meta-pills span,
.detail-tags span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.tag-list span {
    padding: 5px 9px;
    background: #eff6ff;
    color: var(--primary);
}

.hero-actions,
.page-actions,
.category-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 24px;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    color: #ffffff;
    padding: 11px 22px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.ghost-btn.light:hover {
    background: #ffffff;
    color: var(--primary);
}

.ghost-btn.dark {
    color: var(--text);
    border-color: #dbe3ef;
    background: #ffffff;
}

.ghost-btn.dark:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(1.5deg);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 5;
}

.hero-panel-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: #ffffff;
}

.hero-rank-link {
    color: #ffffff;
    font-weight: 850;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.section {
    padding: 72px 0;
}

.section-overlap {
    position: relative;
    z-index: 8;
    margin-top: -72px;
    padding-top: 0;
}

.soft-section {
    background: linear-gradient(180deg, #eff6ff, #f8fafc);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.split-layout.wide-left {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.section-card,
.movie-card,
.category-card,
.category-overview-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: var(--shadow-soft);
}

.section-card {
    border-radius: var(--radius-lg);
    padding: 28px;
}

.intro-card h2,
.section-heading h2,
.category-overview-card h2,
.detail-article h2,
.related-panel h2,
.hot-panel h2,
.compact-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.intro-card p,
.section-heading p,
.category-overview-card p,
.detail-article p {
    color: var(--muted);
}

.large-search {
    margin-top: 24px;
    max-width: 650px;
}

.large-search input {
    padding: 14px 18px;
}

.large-search button {
    padding: 14px 24px;
}

.hot-panel {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: auto 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.mini-card img {
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.35;
}

.mini-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.78rem;
    margin-top: 4px;
}

.mini-rank {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    font-weight: 900;
}

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

.section-heading.centered {
    display: block;
    text-align: center;
}

.section-heading.centered p {
    margin-left: auto;
    margin-right: auto;
}

.text-link {
    color: var(--primary);
}

.text-link:hover {
    color: var(--primary-dark);
    transform: translateX(2px);
}

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

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dbeafe;
}

.poster-link img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    font-size: 0.74rem;
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.34;
}

.card-body h3 a:hover {
    color: var(--primary);
}

.card-desc {
    margin: 0 0 12px;
    color: #526070;
    font-size: 0.88rem;
}

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

.category-card {
    min-height: 168px;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
    color: var(--primary);
    font-weight: 900;
}

.category-card strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.5;
}

.page-hero {
    position: relative;
    padding: 88px 0;
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.45), transparent 28%), linear-gradient(135deg, #0f172a, #1d4ed8);
    overflow: hidden;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.page-hero p {
    margin-top: 18px;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    border-radius: 28px;
    padding: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-thumb-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-thumb-stack img {
    height: 150px;
    border-radius: 18px;
    object-fit: cover;
}

.filter-bar {
    position: sticky;
    top: 86px;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.filter-input {
    padding: 13px 18px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    background: var(--primary);
    color: #ffffff;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 30px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
    color: var(--muted);
    box-shadow: var(--shadow-soft);
}

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

.detail-hero {
    position: relative;
    padding: 86px 0;
    color: #ffffff;
    background: var(--dark);
    overflow: hidden;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--poster-image);
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(1.08);
    transform: scale(1.12);
    opacity: 0.45;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.78));
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-cover {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.9rem);
    line-height: 1.04;
    letter-spacing: -0.052em;
}

.detail-lead {
    margin: 20px 0;
}

.detail-tags {
    margin-top: 14px;
}

.player-section {
    padding: 72px 0 28px;
    background: #050814;
    color: #ffffff;
}

.compact-heading {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.36), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.play-circle {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
    font-size: 2rem;
    padding-left: 5px;
}

.player-overlay strong {
    font-size: 1.18rem;
}

.detail-content-section {
    padding-top: 54px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.info-list {
    margin: 0;
    display: grid;
    gap: 10px;
}

.info-list div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--text);
}

.related-panel {
    position: sticky;
    top: 96px;
}

.site-footer {
    padding: 56px 0 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

.footer-bottom {
    margin-top: 42px;
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

    .hero-inner,
    .split-layout,
    .split-layout.wide-left,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding-top: 90px;
        padding-bottom: 100px;
    }

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

    .sticky-card,
    .related-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .hero,
    .hero-inner {
        min-height: 720px;
    }

    .hero-inner,
    .detail-hero-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .hero-copy h2,
    .hero-site-title,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-panel-inner,
    .section-heading {
        display: block;
    }

    .hero-rank-link {
        display: inline-flex;
        margin-top: 14px;
    }

    .section {
        padding: 52px 0;
    }

    .section-card {
        padding: 22px;
        border-radius: 22px;
    }

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

    .card-body {
        padding: 13px;
    }

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

    .category-thumb-stack img {
        height: 120px;
    }

    .detail-hero {
        padding: 56px 0;
    }

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

    .player-shell {
        border-radius: 20px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .large-search,
    .header-search,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .large-search button,
    .mobile-search button {
        width: 100%;
    }
}
