:root {
    --bg: #f7f9fd;
    --surface: #ffffff;
    --surface-strong: #f1f5ff;
    --text: #111827;
    --muted: #5f6b7a;
    --line: #e5eaf2;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --indigo: #4f46e5;
    --cyan: #06b6d4;
    --rose: #f43f5e;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

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

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: #eaf1ff;
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input,
.large-search input,
.page-search {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.header-search input {
    padding: 11px 12px 11px 18px;
}

.header-search button,
.large-search button {
    border: 0;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--blue);
    font-weight: 800;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    background: #eff5ff;
    font-weight: 800;
    color: #1e3a8a;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #050816;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-bg,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.2) 100%), linear-gradient(0deg, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0.05));
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 680px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px 0 170px;
    color: #ffffff;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
}

.eyebrow {
    color: var(--blue);
    background: #eaf1ff;
}

.hero h1 {
    width: min(850px, 100%);
    margin: 22px 0 8px;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.12;
}

.hero p {
    width: min(760px, 100%);
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: 20px;
}

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

.hero-meta span,
.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 7px 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.11);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.28);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-3px);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
    bottom: 144px;
    display: flex;
    gap: 10px;
}

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

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

.hero-rail {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    transform: translateX(-50%);
}

.hero-thumb {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-thumb img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-thumb span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
}

.quick-entry {
    margin-top: -42px;
    position: relative;
    z-index: 10;
}

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

.quick-grid a,
.category-card,
.movie-card,
.info-panel,
.filter-panel,
.ranking-list,
.video-frame,
.detail-poster,
.poster-card a {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.quick-grid a {
    border-radius: var(--radius);
    padding: 24px;
}

.quick-grid strong,
.quick-grid span {
    display: block;
}

.quick-grid strong {
    margin-bottom: 5px;
    font-size: 22px;
}

.quick-grid span {
    color: var(--muted);
}

.content-section {
    padding: 72px 0;
}

.alt-bg {
    background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 8px;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-heading p,
.page-hero p,
.detail-copy p,
.lead-text {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.section-link {
    color: var(--blue);
    background: #eaf1ff;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.card-link {
    display: block;
    height: 100%;
}

.card-poster {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #dbeafe;
}

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

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

.card-year,
.rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    right: auto;
    left: 14px;
    background: linear-gradient(135deg, #f97316, #f43f5e);
}

.card-body {
    padding: 18px;
}

.card-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--blue);
    background: #eaf1ff;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span,
.tag-cloud span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.compact-card .card-poster {
    height: 170px;
}

.compact-card .card-body h3 {
    font-size: 17px;
}

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

.poster-card a {
    display: block;
    overflow: hidden;
    border-radius: 20px;
}

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

.poster-card div {
    padding: 12px;
}

.poster-card h3 {
    display: -webkit-box;
    margin: 0 0 4px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.poster-card span {
    color: var(--muted);
    font-size: 12px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: center;
}

.ranking-list {
    margin: 0;
    padding: 16px;
    border-radius: var(--radius);
    list-style: none;
}

.ranking-list li + li {
    border-top: 1px solid var(--line);
}

.ranking-list a {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.ranking-list span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    font-weight: 900;
}

.ranking-list em {
    color: var(--muted);
    font-style: normal;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 86px 0 64px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.9), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #312e81);
}

.small-hero {
    padding-bottom: 52px;
}

.page-hero h1 {
    width: min(840px, 100%);
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    width: min(760px, 100%);
    color: #dbeafe;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #dbeafe;
    font-size: 14px;
}

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

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

.category-card {
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    box-shadow: var(--shadow);
}

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

.category-card h2 {
    margin: 10px 0;
    font-size: 28px;
}

.category-card p {
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    border-radius: 999px;
    padding: 6px 10px;
    background: #eaf1ff;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    border-radius: var(--radius);
    padding: 18px;
}

.page-search {
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    padding: 14px 18px;
    background: #ffffff;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #334155;
    background: #eef2f7;
    font-weight: 800;
    cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.large-search {
    display: flex;
    width: min(650px, 100%);
    margin-top: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.large-search input {
    padding: 16px 20px;
}

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

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

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

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    filter: blur(6px);
    transform: scale(1.04);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.76)), linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.2));
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 38px;
    align-items: end;
    padding: 74px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
}

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

.detail-copy h1 {
    width: min(850px, 100%);
    font-size: clamp(36px, 5.5vw, 64px);
}

.detail-copy p {
    width: min(760px, 100%);
    color: #dbeafe;
    font-size: 19px;
}

.detail-copy .primary-btn {
    margin-top: 26px;
}

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

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.2));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
    font-size: 30px;
    text-indent: 5px;
}

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

.video-column > h2 {
    margin: 26px 0 8px;
    font-size: 30px;
}

.detail-article {
    margin-top: 28px;
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-article h2 {
    margin: 0 0 10px;
}

.detail-article p + h2 {
    margin-top: 26px;
}

.info-panel {
    position: sticky;
    top: 96px;
    border-radius: 24px;
    padding: 22px;
}

.info-panel h2 {
    margin: 0 0 16px;
}

.info-panel dl {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.info-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    margin: 10px 0 0;
    color: #94a3b8;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.08);
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .header-search {
        min-width: 220px;
        margin-left: auto;
    }

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

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

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

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

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

    .info-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

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

    .header-search {
        order: 3;
        width: 100%;
    }

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

    .hero-content {
        padding: 96px 0 260px;
    }

    .hero-controls {
        right: 20px;
        bottom: 230px;
    }

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

    .hero-thumb:nth-child(n+4) {
        display: none;
    }

    .quick-grid,
    .category-grid,
    .four-grid,
    .three-grid,
    .poster-grid,
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .quick-entry {
        margin-top: 0;
        padding-top: 18px;
    }

    .section-heading,
    .footer-grid {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

    .detail-hero-grid {
        padding: 42px 0;
    }

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

    .ranking-list a {
        grid-template-columns: 48px 1fr;
    }

    .ranking-list em {
        grid-column: 2;
    }
}
