* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #1f2937;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-text {
    font-size: 26px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    font-size: 15px;
}

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

.nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 6px 7px;
    background: #1f2937;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 18px;
    gap: 10px;
    flex-direction: column;
}

.mobile-nav.open {
    display: flex;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.35;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.24), transparent 32%), rgba(0, 0, 0, 0.18);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 600px;
    margin: 0 auto;
    padding: 72px 20px 70px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 46px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 30px;
    color: #e0f2fe;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.65;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

.btn-primary {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.78);
}

.btn-ghost:hover {
    background: #ffffff;
    color: #2563eb;
}

.hero-carousel {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-card {
    position: relative;
    height: 430px;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-card-content {
    position: absolute;
    inset: auto 0 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0));
}

.hero-card-content h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.hero-card-content p {
    margin: 0 0 16px;
    font-size: 15px;
    color: #dbeafe;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    right: 26px;
    bottom: -28px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.page-shell,
.content-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

.hero + .page-shell {
    padding-top: 56px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 58px;
}

.stat-card {
    padding: 26px 20px;
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
    color: #1f2937;
}

.stat-card span {
    color: #64748b;
    font-weight: 600;
}

.section-block {
    margin-bottom: 66px;
}

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

.section-heading h1,
.section-heading h2,
.page-title h1 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
}

.section-heading p,
.page-title p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.section-more {
    color: #2563eb;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    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:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    height: 290px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.compact-card .poster-wrap {
    height: 240px;
}

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

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

.poster-region,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-region {
    top: 12px;
    right: 12px;
    background: #2563eb;
}

.poster-year {
    left: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-style: normal;
}

.movie-card-body {
    padding: 18px;
}

.movie-card h3 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover h3 {
    color: #2563eb;
}

.movie-card p {
    min-height: 42px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    top: -60px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 26px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #e0f2fe;
    line-height: 1.7;
}

.category-samples {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #ffffff;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    padding: 46px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(120deg, #2563eb, #06b6d4);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.22);
}

.cta-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e0f2fe;
    line-height: 1.8;
}

.page-hero {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    color: #ffffff;
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.7;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.search-input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    outline: none;
    color: #1f2937;
    background: #ffffff;
}

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

.quick-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.filter-chip {
    border: 0;
    padding: 9px 16px;
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: #2563eb;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 88px;
    height: 124px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 8px;
    color: #1f2937;
}

.rank-row p {
    margin: 0 0 10px;
    color: #64748b;
    line-height: 1.55;
}

.rank-score {
    color: #2563eb;
    font-weight: 900;
    white-space: nowrap;
}

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

.breadcrumb a {
    color: #2563eb;
    font-weight: 700;
}

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

.player-card,
.detail-card,
.side-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.09);
}

.player-card {
    overflow: hidden;
    margin-bottom: 26px;
}

.player-stage {
    position: relative;
    background: #020617;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    color: #2563eb;
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
}

.detail-subtitle {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.detail-meta span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
}

.detail-meta strong {
    color: #1f2937;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.article-block {
    margin-top: 26px;
}

.article-block h2 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 26px;
}

.article-block p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

.side-card {
    overflow: hidden;
}

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

.side-card-body {
    padding: 20px;
}

.side-card-body h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.side-link-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-link-list a {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-link-list a:hover {
    background: #e0f2fe;
    transform: translateX(3px);
}

.side-link-list img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.side-link-list strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-link-list span {
    color: #64748b;
    font-size: 12px;
}

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

.site-footer {
    margin-top: 40px;
    padding: 48px 20px 24px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

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

.site-footer a:hover {
    color: #38bdf8;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
}

.hidden-by-search {
    display: none !important;
}

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

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

    .side-card {
        max-width: 520px;
    }
}

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 56px;
    }

    .hero-carousel {
        min-height: 390px;
    }

    .hero-card {
        height: 390px;
    }

    .stats-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
    }

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

@media (max-width: 620px) {
    .site-header-inner {
        padding: 0 16px;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 42px 16px 64px;
    }

    .hero-card,
    .hero-carousel {
        height: 340px;
        min-height: 340px;
    }

    .page-shell,
    .content-shell {
        padding: 38px 16px;
    }

    .stats-grid,
    .category-grid,
    .footer-grid,
    .movie-grid.five,
    .movie-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .poster-wrap,
    .compact-card .poster-wrap {
        height: 230px;
    }

    .movie-card-body {
        padding: 14px;
    }

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

    .movie-card p,
    .tag-row {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .cta-panel,
    .detail-card {
        padding: 24px;
        border-radius: 24px;
    }

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

    .rank-row {
        grid-template-columns: 40px 70px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-row img {
        width: 70px;
        height: 96px;
    }

    .rank-row p {
        display: none;
    }
}
