* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo span,
.footer-logo span,
.gradient-text {
    background: linear-gradient(135deg, #f43f5e, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-size: 1.45rem;
}

.logo-icon {
    width: 2.15rem;
    height: 2.15rem;
    color: #f43f5e;
    flex: 0 0 auto;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    color: #374151;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    border: 0;
    border-radius: 0.75rem;
    color: #374151;
    background: #f3f4f6;
}

.mobile-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #f3f4f6;
    background: rgba(255, 255, 255, 0.98);
}

.mobile-nav.is-open {
    display: block;
    animation: fadeIn 0.25s ease both;
}

.mobile-nav-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: grid;
    gap: 0.8rem;
}

.hero-carousel {
    position: relative;
    height: 540px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 660px;
    color: #ffffff;
    animation: fadeUp 0.7s ease both;
}

.hero-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 6vw, 4.8rem);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 1.55rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary,
.btn-secondary,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.btn-white {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.btn-secondary {
    border: 2px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 42px rgba(244, 63, 94, 0.26);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 2rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.page-hero {
    padding: 4.4rem 0 2.4rem;
    background: linear-gradient(135deg, #fff1f2, #eff6ff 54%, #faf5ff);
}

.page-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 1.08rem;
}

.section-block {
    padding: 3.1rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.2rem);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #111827, #f43f5e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading p {
    max-width: 680px;
    margin: 0.5rem 0 0;
    color: #6b7280;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #f43f5e;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.section-more {
    flex: 0 0 auto;
    color: #f43f5e;
    font-weight: 800;
}

.category-strip {
    padding: 2.6rem 0 1.25rem;
}

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

.category-card {
    padding: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 88px;
    margin-bottom: 0.8rem;
    border-radius: 0.85rem;
    font-size: 2.3rem;
    background: linear-gradient(135deg, #ffe4e6, #eff6ff);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
}

.category-card p {
    margin: 0.55rem 0 0;
    color: #6b7280;
    font-size: 0.92rem;
    text-align: center;
}

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

.card {
    overflow: hidden;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.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);
}

.badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.badge-region {
    top: 0.75rem;
    left: 0.75rem;
}

.badge-year {
    right: 0.75rem;
    bottom: 0.75rem;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    color: #f43f5e;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

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

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

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
}

.card-meta span:first-child {
    color: #2563eb;
    background: #eff6ff;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 0.5rem;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 850;
    transition: color 0.2s ease;
}

.movie-card:hover h2,
.movie-card:hover h3 {
    color: #f43f5e;
}

.card-body p {
    margin: 0 0 0.8rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
    margin-top: auto;
}

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 0.76rem;
    font-weight: 700;
}

.genre-line {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.feature-band {
    margin: 2rem 0;
    padding: 3rem 0;
    border-radius: 2rem;
    background: linear-gradient(180deg, #ffffff, #fff1f2);
}

.rank-list {
    display: grid;
    gap: 0.75rem;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 74px minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    font-weight: 900;
}

.rank-item img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 0.7rem;
    background: #f3f4f6;
}

.rank-item h2,
.rank-item h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 850;
}

.rank-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rank-score {
    color: #f43f5e;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 2.85rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 0 0.9rem;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

.empty-state {
    display: none;
    padding: 2rem;
    border-radius: 1rem;
    color: #6b7280;
    background: #f9fafb;
    text-align: center;
}

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

.detail-shell {
    background: linear-gradient(180deg, #111827 0, #111827 420px, #ffffff 420px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 1.6rem 0 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2.4rem;
    color: #ffffff;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.3rem;
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
    background: #1f2937;
}

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

.detail-info h1 {
    margin: 0 0 0.9rem;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-info .lead {
    max-width: 800px;
    margin: 0 0 1.2rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.detail-meta span {
    display: inline-flex;
    min-height: 1.85rem;
    align-items: center;
    padding: 0.24rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player-card,
.content-card {
    border-radius: 1.3rem;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.11);
}

.player-card {
    margin-top: 0;
    padding: 1rem;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    background: #000000;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 4.3rem;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.play-button .play-circle {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.content-card {
    padding: 1.25rem;
}

.content-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 1rem;
    color: #374151;
    line-height: 1.9;
}

.related-section {
    padding: 2.5rem 0 3.5rem;
}

.back-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #f43f5e;
    box-shadow: 0 16px 32px rgba(244, 63, 94, 0.28);
}

.site-footer {
    margin-top: 2rem;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
    color: #4b5563;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 2.7rem;
    padding-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 0.75rem;
    color: #f43f5e;
}

.footer-logo span {
    font-size: 1.2rem;
}

.site-footer p {
    max-width: 440px;
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem 1rem 1.6rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

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

    .filter-panel {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
    }
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-hero {
        grid-template-columns: 320px minmax(0, 1fr);
        align-items: end;
    }

    .content-card {
        padding: 1.8rem;
    }

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

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

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

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

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

@media (max-width: 767px) {
    .hero-carousel {
        height: 560px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.78));
    }

    .hero-content {
        align-items: end;
        padding-bottom: 4.7rem;
    }

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

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

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