* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f8fafc;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8 50%, #0f172a);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text em {
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.nav-link {
    position: relative;
    padding: 24px 10px 22px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 16px;
    height: 2px;
    border-radius: 999px;
    background: #2563eb;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #2563eb;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-panel {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.mobile-panel.is-open {
    display: grid;
    gap: 6px;
}

.mobile-link {
    padding: 11px 12px;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: #2563eb;
    background: #eff6ff;
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.9s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 26%, rgba(59, 130, 246, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.78) 45%, rgba(15, 23, 42, 0.26)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 55%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 78px;
    width: min(680px, calc(100% - 48px));
    color: #ffffff;
}

.eyebrow,
.section-heading span,
.section-title-row span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.72);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-content h2 {
    margin: 16px 0 0;
    color: #bfdbfe;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.hero-content p {
    max-width: 620px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.75;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #1e3a8a;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-light {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.24);
}

.button-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.26);
}

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

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

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

.feature-strip {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

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

.feature-grid > div {
    min-height: 104px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
}

.feature-grid strong {
    display: block;
    font-size: 18px;
}

.feature-grid span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.6;
}

.section {
    padding: 78px 0;
}

.section-white {
    background: #ffffff;
}

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

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.section-heading.align-left {
    text-align: left;
    margin-left: 0;
}

.section-heading span,
.section-title-row span,
.page-hero span {
    color: #1d4ed8;
    background: #dbeafe;
}

.section-heading h2,
.section-title-row h2,
.page-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    margin: 15px 0 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.75;
}

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

.section-title-row > a {
    color: #2563eb;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: #1e3a8a;
    box-shadow: 0 18px 42px rgba(30, 64, 175, 0.18);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    position: absolute;
    inset: auto 18px 18px;
    z-index: 2;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 60%);
}

.category-tile strong {
    display: block;
    font-size: 23px;
}

.category-tile em {
    display: block;
    margin-top: 8px;
    color: #dbeafe;
    font-style: normal;
    line-height: 1.55;
}

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden,
.rank-card.is-hidden {
    display: none;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
    position: relative;
    display: block;
    height: 248px;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-body strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.card-body em {
    min-height: 48px;
    margin-top: 9px;
    color: #64748b;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
}

.tag-row {
    margin-top: 13px;
}

.card-action {
    margin-top: auto;
    padding-top: 16px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
}

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

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

.rank-card a {
    display: grid;
    grid-template-columns: auto 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.rank-card img {
    width: 70px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-card strong {
    display: block;
    color: #0f172a;
    line-height: 1.35;
}

.rank-card em {
    display: -webkit-box;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-card small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
}

.rank-number {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    font-weight: 900;
}

.rank-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-section {
    padding: 74px 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #1e3a8a 70%, #0f172a);
}

.cta-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.035em;
}

.cta-section p {
    max-width: 760px;
    margin: 16px auto 28px;
    color: #dbeafe;
    line-height: 1.8;
}

.page-hero {
    padding: 82px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.28), transparent 34%),
        linear-gradient(135deg, #eff6ff, #ffffff 52%, #dbeafe);
}

.small-hero {
    padding: 72px 0;
}

.ranking-hero,
.category-hero {
    background:
        radial-gradient(circle at 75% 30%, rgba(147, 197, 253, 0.38), transparent 35%),
        linear-gradient(135deg, #f8fafc, #eff6ff 55%, #dbeafe);
}

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

.page-hero .breadcrumb {
    color: #64748b;
}

.breadcrumb a {
    color: #93c5fd;
    font-weight: 800;
}

.page-hero .breadcrumb a {
    color: #2563eb;
}

.overview-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.overview-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 150px;
    overflow: hidden;
}

.overview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-body {
    display: block;
    padding: 20px;
}

.overview-body strong {
    display: block;
    font-size: 22px;
}

.overview-body em {
    display: block;
    min-height: 50px;
    margin-top: 8px;
    color: #64748b;
    font-style: normal;
    line-height: 1.65;
}

.overview-body span {
    display: inline-flex;
    margin-top: 14px;
    color: #2563eb;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

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

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 20%, rgba(37, 99, 235, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.78) 56%, rgba(15, 23, 42, 0.42));
}

.detail-head {
    position: relative;
    z-index: 2;
    padding-top: 56px;
    padding-bottom: 58px;
}

.detail-intro {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    margin-top: 28px;
}

.detail-poster {
    width: 260px;
    height: 360px;
    border: 5px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.detail-intro h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-intro p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags span {
    background: rgba(219, 234, 254, 0.92);
}

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

.player-panel,
.info-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.player-panel {
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #020617;
    cursor: pointer;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #2563eb;
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    transform: translate(-50%, -50%);
}

.detail-content {
    padding: 30px;
}

.detail-content h2,
.info-panel h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
}

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

.detail-content p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.info-panel {
    padding: 26px;
    position: sticky;
    top: 92px;
}

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

.info-panel dt {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.info-panel dd {
    margin: -8px 0 0;
    color: #0f172a;
    line-height: 1.7;
}

.info-panel a {
    color: #2563eb;
    font-weight: 800;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 54px 0 38px;
}

.brand-footer .brand-text strong {
    color: #ffffff;
}

.footer-brand p {
    max-width: 540px;
    margin: 18px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-bottom {
    padding: 20px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

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

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

    .info-panel {
        position: static;
    }
}

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

    .menu-button {
        display: inline-block;
    }

    .hero-carousel {
        height: 680px;
    }

    .hero-content {
        bottom: 64px;
    }

    .feature-grid,
    .card-grid,
    .category-grid,
    .overview-grid,
    .rank-page-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .search-field {
        grid-column: 1 / -1;
    }

    .detail-intro {
        grid-template-columns: 160px minmax(0, 1fr);
        align-items: center;
    }

    .detail-poster {
        width: 160px;
        height: 230px;
        border-radius: 20px;
    }

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

@media (max-width: 560px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-text em {
        font-size: 11px;
    }

    .hero-carousel {
        height: 720px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .feature-grid,
    .card-grid,
    .category-grid,
    .overview-grid,
    .rank-page-list,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

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

    .poster-wrap {
        height: 260px;
    }

    .rank-card a {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .rank-card img {
        width: 64px;
        height: 82px;
    }

    .detail-intro {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 180px;
        height: 252px;
    }

    .detail-head {
        padding-top: 34px;
    }

    .play-button {
        width: 66px;
        height: 66px;
        font-size: 24px;
    }
}
