:root {
    --brand-blue: #2563eb;
    --brand-cyan: #06b6d4;
    --brand-dark: #0f172a;
    --text-main: #111827;
    --text-soft: #64748b;
    --line: #e5e7eb;
    --page: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1800px;
    height: 80px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-soft);
    font-style: normal;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    color: #334155;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.header-search {
    width: min(320px, 25vw);
    display: flex;
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

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

.header-search button {
    border: 0;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    font-size: 22px;
    color: #334155;
    background: #f1f5f9;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 22px 22px;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel nav,
.mobile-cats {
    display: grid;
    gap: 10px;
}

.mobile-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.mobile-cats a {
    padding: 10px 12px;
    border-radius: 14px;
    color: #2563eb;
    background: #eff6ff;
    font-weight: 700;
}

.hero-grid {
    position: relative;
    min-height: 85vh;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow: hidden;
}

.hero-grid:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    pointer-events: none;
    background: linear-gradient(to top, #f8fafc, rgba(248, 250, 252, 0));
}

.hero-card {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
    isolation: isolate;
}

.hero-card img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.hero-card:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.04));
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(24px, 4vw, 44px);
    color: white;
}

.hero-label,
.section-label,
.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #facc15;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0 0 22px;
    max-width: 640px;
    color: #e5e7eb;
    line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span,
.soft-pill {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.4);
}

.hero-play,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-play,
.primary-button {
    color: var(--brand-blue);
    background: white;
}

.secondary-button {
    color: #2563eb;
    background: #eff6ff;
}

.hero-play:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.page-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 28px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-title span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
}

.section-intro {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #dbeafe;
}

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

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

.poster-link:after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-link:after {
    opacity: 1;
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.24);
}

.rank-badge {
    left: 14px;
    right: auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
}

.poster-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.3;
}

.card-title:hover {
    color: var(--brand-blue);
}

.card-meta,
.card-desc {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    background: #eff6ff;
}

.feature-band {
    padding: 72px 28px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.feature-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    align-items: center;
    gap: 44px;
    color: white;
}

.feature-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

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

.feature-poster span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.feature-copy h2 {
    margin: 18px 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.feature-copy p {
    max-width: 720px;
    color: #e0f2fe;
    line-height: 1.8;
    font-size: 18px;
}

.horizontal-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 2px 24px;
    scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
    width: 320px;
    min-width: 320px;
    scroll-snap-align: start;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border-radius: var(--radius);
    color: white;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -54px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
    position: relative;
    display: block;
    z-index: 1;
    margin-bottom: 14px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 82px 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.compact-card strong {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.compact-card b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.compact-card em {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 28px 64px;
    color: white;
    background: radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0891b2);
}

.page-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: white;
}

.page-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 24px 0 0;
    color: #dbeafe;
    line-height: 1.8;
    font-size: 18px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
    background: white;
}

.filter-bar input {
    flex: 1 1 260px;
}

.filter-empty {
    display: none;
    width: 100%;
    padding: 42px 20px;
    border-radius: 22px;
    text-align: center;
    color: var(--text-soft);
    background: white;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: white;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.55;
}

.detail-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.22));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 96px 28px 72px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

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

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

.detail-copy h1 {
    margin: 14px 0 18px;
    max-width: 980px;
    font-size: clamp(42px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 920px;
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 18px;
}

.detail-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 56px 28px 72px;
}

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

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

.player-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.5));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 98px;
    height: 98px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #2563eb;
    font-size: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.3);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    margin-top: 38px;
}

.article-card,
.info-card {
    border-radius: 28px;
    padding: 28px;
    background: white;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.article-card h2,
.info-card h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.article-card p {
    margin: 0 0 22px;
    color: #334155;
    line-height: 1.9;
    font-size: 17px;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2ff;
}

.info-list span {
    color: var(--text-soft);
}

.related-section {
    margin-top: 56px;
}

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

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 56px 28px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 42px;
}

.footer-logo {
    font-size: 26px;
    font-weight: 900;
    color: white;
}

.footer-brand p {
    max-width: 520px;
    color: #bfdbfe;
    line-height: 1.8;
}

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

.footer-links strong {
    color: white;
    margin-bottom: 6px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding: 22px 28px;
    border-top: 1px solid rgba(191, 219, 254, 0.18);
    color: #93c5fd;
}

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

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

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

    .detail-layout,
    .feature-inner {
        grid-template-columns: 1fr;
    }
}

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .header-inner {
        height: 72px;
        padding: 0 16px;
    }

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

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 460px;
    }

    .page-section,
    .detail-main,
    .feature-band,
    .page-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .list-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding: 72px 18px 48px;
    }

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

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

@media (max-width: 560px) {
    .brand-icon {
        width: 42px;
        height: 42px;
    }

    .brand-text em {
        display: none;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .list-panel {
        grid-template-columns: 1fr;
    }

    .horizontal-row .movie-card {
        width: 260px;
        min-width: 260px;
    }

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

    .compact-card img {
        width: 70px;
        height: 92px;
    }
}
