html {
    scroll-behavior: smooth;
}

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

body.is-menu-open {
    overflow: hidden;
}

img,
video {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

.header-inner,
.footer-inner,
.section-inner {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0d9488);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.26);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(135deg, #059669, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.primary-nav a,
.mobile-nav a {
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.mobile-nav a:hover {
    color: #059669;
}

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

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 16px;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
}

.header-search button {
    border: 0;
    width: 42px;
    align-self: stretch;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0d9488);
    cursor: pointer;
}

.menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 22px;
    cursor: pointer;
}

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

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

.mobile-nav-grid {
    width: min(100%, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 16px;
}

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

.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transform: scale(1.06);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 25%, rgba(16, 185, 129, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.70) 48%, rgba(2, 6, 23, 0.42)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.08) 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    gap: 42px;
    align-items: center;
    padding: 56px 0;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.hero-lead {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(15, 118, 110, 0.78);
    font-size: 13px;
    font-weight: 700;
}

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

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0d9488);
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(13, 148, 136, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.34);
}

.button.secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.45);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero-card {
    position: relative;
    min-height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.58);
    transform: rotate(1.5deg);
}

.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.hero-card-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.70);
    backdrop-filter: blur(16px);
}

.hero-card-caption strong {
    display: block;
    font-size: 18px;
}

.hero-card-caption span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    z-index: 6;
    right: max(20px, calc((100vw - 1280px) / 2));
    bottom: 30px;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.28), transparent 30%),
        linear-gradient(135deg, #020617, #0f172a 55%, #134e4a);
    padding: 78px 0 62px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.content-block {
    padding: 42px 0;
}

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

.section-heading h2,
.section-heading h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-heading p {
    margin: 8px 0 0;
    color: #64748b;
}

.section-link {
    color: #059669;
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

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

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

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

.card-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 42px;
    background: rgba(2, 6, 23, 0.38);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
}

.card-year,
.card-type {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 118, 110, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.card-year {
    right: 10px;
}

.card-type {
    left: 10px;
    background: rgba(15, 23, 42, 0.72);
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

.card-title a:hover {
    color: #059669;
}

.card-line {
    min-height: 42px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

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

.category-card {
    display: block;
    padding: 24px;
    border-radius: 26px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.category-card strong {
    display: block;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.category-card p {
    min-height: 68px;
    margin: 10px 0 16px;
    color: #64748b;
    line-height: 1.65;
}

.category-count {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    background: #f8fafc;
    outline: 0;
    font-size: 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

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

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

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0d9488);
    font-weight: 900;
}

.rank-poster {
    display: block;
    width: 96px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #e2e8f0;
}

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

.rank-item h2,
.rank-item h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.rank-item p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
    gap: 32px;
}

.player-card,
.detail-card,
.sidebar-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.46);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #0d9488);
    box-shadow: 0 22px 52px rgba(16, 185, 129, 0.32);
    font-size: 34px;
}

.detail-card {
    padding: 26px;
}

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

.breadcrumb a {
    color: #059669;
    font-weight: 750;
}

.detail-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.detail-one-line {
    margin: 16px 0 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-weight: 800;
    font-size: 13px;
}

.prose-block {
    margin-top: 28px;
}

.prose-block h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.prose-block p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.sidebar-card {
    padding: 18px;
}

.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    color: #0f172a;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: #ecfdf5;
    transform: translateX(3px);
}

.related-item img {
    width: 78px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
}

.related-item strong {
    display: block;
    line-height: 1.35;
}

.related-item span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.index-list {
    columns: 4 240px;
    column-gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.index-list li {
    break-inside: avoid;
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.index-list a {
    color: #0f172a;
    font-weight: 750;
}

.index-list a:hover {
    color: #059669;
}

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

.footer-inner {
    padding: 46px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
}

.footer-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
}

.footer-copy {
    max-width: 560px;
    margin: 14px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-col h2,
.footer-col h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 16px;
}

.footer-col a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-col a:hover {
    color: #34d399;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 13px;
}

.empty-result {
    display: none;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

@media (max-width: 860px) {
    .hero,
    .hero-slider,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 46px 0 84px;
    }

    .hero-card {
        min-height: 360px;
        transform: none;
    }

    .hero-card img {
        min-height: 360px;
    }

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

    .category-grid,
    .footer-grid,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 78px minmax(0, 1fr);
    }

    .rank-item .button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

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

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

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

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-dots {
        left: 20px;
        right: auto;
    }

    .rank-item {
        grid-template-columns: 34px 72px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .rank-poster {
        width: 72px;
    }
}
