:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --orange: #f97316;
    --yellow: #fde047;
    --ink: #111827;
    --muted: #6b7280;
    --paper: #fff7f8;
    --line: #ffe4e6;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

* {
    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: var(--ink);
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 42%, #fffbeb 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #f43f5e 0%, #ec4899 45%, #f97316 100%);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.28);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

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

.nav-link,
.mobile-link {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff7ad;
    background: rgba(255, 255, 255, 0.14);
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.nav-search input,
.mobile-search input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: #ffffff;
    background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.mobile-search button {
    border: 0;
    padding: 10px 16px;
    color: var(--rose-dark);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: flex;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-search input {
    width: 100%;
}

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

.hero-track {
    position: relative;
    min-height: 640px;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(253, 224, 71, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(136, 19, 55, 0.72) 48%, rgba(0, 0, 0, 0.28) 100%);
}

.hero-copy {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 86px;
    width: min(640px, calc(100% - 64px));
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--rose);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-kicker {
    color: #fde047;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 8vw, 74px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 20px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #9f1239;
    background: #ffe4e6;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

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

.hero-actions.center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: 0.22s ease;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, #f43f5e, #f97316);
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 48px rgba(244, 63, 94, 0.42);
}

.btn.ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.btn.ghost.light {
    color: #9f1239;
    background: #ffffff;
}

.btn.full {
    width: 100%;
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dots button {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.stat-strip {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    z-index: 3;
}

.stat-strip a {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.stat-strip a:hover {
    transform: translateY(-4px);
}

.stat-strip strong,
.stat-strip span {
    display: block;
}

.stat-strip strong {
    font-size: 22px;
}

.stat-strip span {
    margin-top: 6px;
    color: var(--muted);
}

.section-block,
.filter-panel,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-block {
    padding: 68px 0;
}

.section-block.soft-bg {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: rgba(255, 255, 255, 0.52);
}

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

.section-heading h2,
.filter-panel h2 {
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.1;
}

.text-link {
    color: var(--rose);
    font-weight: 900;
}

.text-link:hover {
    color: var(--rose-dark);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.1);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f43f5e, #fb7185 48%, #f97316);
}

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

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

.type-badge,
.score-badge,
.rank-num {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.type-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(6px);
}

.score-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, #f43f5e, #f97316);
}

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

.card-meta,
.card-desc,
.wide-meta {
    color: var(--muted);
}

.card-meta {
    min-height: 42px;
    margin: 0 0 8px;
    font-size: 14px;
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.compact {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
}

.movie-card.compact .poster-link {
    aspect-ratio: auto;
    min-height: 178px;
}

.movie-card.compact .card-desc {
    -webkit-line-clamp: 3;
}

.featured-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.side-grid {
    display: grid;
    gap: 16px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    transition: 0.25s ease;
}

.wide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.wide-poster {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f43f5e, #f97316);
}

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

.rank-num {
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f43f5e, #f97316);
}

.wide-content {
    padding: 22px;
}

.wide-topline {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--rose);
    font-weight: 900;
}

.wide-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.22;
}

.wide-card p {
    margin: 8px 0 14px;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.88));
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 24px;
}

.category-card em {
    margin-top: 6px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero {
    padding: 86px max(16px, calc((100% - 1180px) / 2));
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(253, 224, 71, 0.24), transparent 28%),
        linear-gradient(90deg, #f43f5e 0%, #ec4899 44%, #f97316 100%);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 8vw, 68px);
    line-height: 1;
}

.page-hero p {
    width: min(760px, 100%);
    margin: 0 auto;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.92);
}

.page-hero .eyebrow {
    color: #fff7ad;
}

.filter-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    align-items: end;
    margin-top: 34px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
    gap: 12px;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 0 12px;
    background: #fff7f8;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.detail-shell {
    padding: 36px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--rose);
}

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

.player-column,
.detail-side {
    min-width: 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #050505;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    font-size: 36px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    max-width: 80%;
    font-size: 22px;
}

.detail-text,
.detail-side {
    margin-top: 24px;
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.detail-text h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.08;
}

.detail-text h2 {
    margin: 26px 0 12px;
    font-size: 26px;
}

.detail-text p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.detail-side {
    position: sticky;
    top: 96px;
    margin-top: 0;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #f43f5e, #f97316);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 10px;
    border-radius: 14px;
    color: #4b5563;
    background: #fff1f2;
    text-align: center;
    font-weight: 800;
}

.score-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(90deg, #f43f5e, #f97316);
}

.score-panel strong {
    font-size: 32px;
}

.detail-tags {
    margin-bottom: 20px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    margin: 14px 0 0;
    color: #9ca3af;
}

.footer-links,
.footer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a,
.footer-cats a {
    color: #9ca3af;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

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

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

    .wide-grid,
    .featured-layout,
    .detail-card,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .header-inner {
        min-height: 66px;
    }

    .hero-carousel,
    .hero-track,
    .hero-slide img {
        min-height: 580px;
    }

    .hero-copy {
        bottom: 74px;
    }

    .hero-control {
        display: none;
    }

    .stat-strip {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

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

    .wide-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .wide-poster {
        min-height: 220px;
    }

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

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

@media (max-width: 560px) {
    .hero-carousel,
    .hero-track,
    .hero-slide img {
        min-height: 540px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .movie-grid,
    .category-grid,
    .category-grid.large,
    .wide-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.compact,
    .wide-card {
        grid-template-columns: 1fr;
    }

    .movie-card.compact .poster-link {
        aspect-ratio: 2 / 3;
    }

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

    .page-hero {
        padding-top: 62px;
        padding-bottom: 62px;
    }
}
