:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --indigo-50: #eef2ff;
    --indigo-700: #4338ca;
    --purple-700: #7e22ce;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(30, 58, 138, 0.12);
    --shadow-card: 0 14px 30px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--blue-50), #ffffff 42%, var(--indigo-50));
}

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

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

main {
    min-height: 68vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.95), rgba(238, 242, 255, 0.95), rgba(250, 245, 255, 0.95));
    border-bottom: 2px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.12);
    backdrop-filter: blur(16px);
}

.nav-container,
.quick-nav-inner,
.footer-grid,
.footer-bottom,
.section,
.page-hero,
.detail-hero-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-container {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(90deg, var(--blue-900), var(--purple-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small,
.footer-brand small {
    display: block;
    margin-top: 3px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--blue-900);
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-600), var(--indigo-700));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    gap: 8px;
}

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

.quick-nav {
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.quick-nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.quick-nav-inner a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 12px;
    color: var(--blue-700);
    font-size: 14px;
    font-weight: 700;
}

.quick-nav-inner a:hover {
    background: var(--blue-50);
    color: var(--blue-900);
}

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

.hero-track {
    min-height: 640px;
}

.hero-slide {
    display: none;
    min-height: 640px;
    padding: 72px max(32px, calc((100vw - 1200px) / 2 + 16px));
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.45fr);
    align-items: center;
    gap: 56px;
    background-image: linear-gradient(90deg, rgba(10, 20, 48, 0.92), rgba(24, 40, 101, 0.74), rgba(80, 36, 132, 0.72)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    display: grid;
}

.hero-content {
    max-width: 740px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
}

.hero-content h1,
.page-hero h1,
.detail-headline h1 {
    margin: 0 0 20px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-headline p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.tag-links a {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #7e22ce);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.btn.secondary {
    color: var(--blue-900);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.btn.small {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
    transform: perspective(900px) rotateY(-6deg);
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font-size: 26px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.45;
    background: #ffffff !important;
}

.hero-dot.is-active {
    opacity: 1;
    width: 28px;
    border-radius: 999px;
}

.section {
    padding: 54px 0;
}

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

.section-heading h2,
.category-section-head h2,
.content-card h2,
.info-panel h2,
.tag-panel h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-kicker {
    color: var(--blue-700);
    margin-bottom: 8px;
}

.text-link {
    color: var(--blue-700);
    font-weight: 900;
}

.lead-text {
    max-width: 900px;
    margin: 0;
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.9;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(37, 99, 235, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.18);
}

.movie-card[hidden] {
    display: none !important;
}

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

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

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

.poster-year,
.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.poster-year {
    left: 12px;
    top: 12px;
}

.poster-type {
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 32px;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #7e22ce);
}

.rank-badge + .poster-year {
    display: none;
}

.movie-copy {
    padding: 18px;
}

.movie-copy h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-copy h3 a:hover {
    color: var(--blue-700);
}

.movie-copy p {
    margin: 0 0 14px;
    color: var(--stone-700);
    line-height: 1.65;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 900;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--blue-50);
}

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

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

.movie-card.compact .poster-type {
    display: none;
}

.movie-card.compact .movie-copy {
    padding: 14px;
}

.movie-card.compact .movie-copy h3 {
    font-size: 16px;
}

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

.category-tile,
.category-section-card,
.content-card,
.info-panel,
.tag-panel,
.poster-panel,
.player-card {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--shadow-soft);
}

.category-tile {
    padding: 24px;
    min-height: 154px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.9));
    transition: 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #2563eb, #7e22ce);
    color: #ffffff;
}

.category-tile strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
}

.category-tile span {
    color: var(--stone-700);
    line-height: 1.7;
}

.category-tile:hover span {
    color: rgba(255, 255, 255, 0.88);
}

.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 30px;
}

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

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ranking-grid.small {
    grid-template-columns: 1fr;
}

.page-hero {
    margin-top: 34px;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(67, 56, 202, 0.9), rgba(126, 34, 206, 0.88));
    box-shadow: 0 28px 55px rgba(30, 58, 138, 0.22);
}

.page-hero.slim {
    padding: 54px;
}

.page-hero .section-kicker {
    color: #bfdbfe;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px 180px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.search-box {
    position: relative;
}

.search-box span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--stone-500);
    font-weight: 900;
}

.search-box input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--stone-200);
    border-radius: 14px;
    background: #ffffff;
    color: var(--stone-900);
    font: inherit;
    outline: 0;
}

.search-box input {
    padding: 0 14px 0 42px;
}

.filter-panel select {
    padding: 0 12px;
}

.search-box input:focus,
.filter-panel select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-state {
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

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

.category-section-card {
    padding: 24px;
}

.category-section-head p {
    max-width: 700px;
    margin: 10px 0 0;
    color: var(--stone-700);
    line-height: 1.7;
}

.detail-hero {
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(10, 20, 48, 0.92), rgba(37, 99, 235, 0.76), rgba(126, 34, 206, 0.7)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    padding: 54px 0;
}

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

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

.detail-headline {
    justify-content: space-between;
}

.detail-headline > div {
    max-width: 820px;
}

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

.detail-main,
.detail-aside {
    display: grid;
    gap: 22px;
    align-content: start;
}

.player-card,
.content-card,
.info-panel,
.tag-panel {
    padding: 22px;
}

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

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.4), rgba(30, 58, 138, 0.45));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    padding-left: 6px;
    background: linear-gradient(135deg, #2563eb, #7e22ce);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.42);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 18px;
}

.video-shell.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.content-card p {
    color: var(--stone-700);
    line-height: 2;
    font-size: 17px;
}

.poster-panel {
    overflow: hidden;
}

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

.info-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-panel li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--stone-100);
    color: var(--stone-700);
}

.info-panel li:last-child {
    border-bottom: 0;
}

.info-panel span {
    color: var(--stone-500);
}

.info-panel strong,
.info-panel a {
    color: var(--blue-700);
    text-align: right;
}

.tag-panel .tag-links {
    margin-bottom: 0;
}

.tag-panel .tag-links a {
    color: var(--blue-700);
    border-color: rgba(37, 99, 235, 0.18);
    background: var(--blue-50);
}

.site-footer {
    margin-top: 36px;
    color: #bfdbfe;
    background: linear-gradient(135deg, #1c1917, #172554, #1c1917);
    border-top: 4px solid var(--blue-700);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #dbeafe;
    font-size: 18px;
}

.footer-grid p,
.footer-grid li {
    color: #bfdbfe;
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(191, 219, 254, 0.16);
    color: #93c5fd;
    font-size: 13px;
}

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

    .split-section,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .nav-container {
        height: 70px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .hero-slider,
    .hero-track,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide {
        padding: 48px 18px 92px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

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

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

    .page-hero.slim {
        padding: 36px 22px;
    }

    .section-heading,
    .category-section-head,
    .detail-headline {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .movie-grid.compact-grid,
    .ranking-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 38px 0;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-headline h1 {
        font-size: 34px;
    }
}
