:root {
    --site-rose: #f43f5e;
    --site-rose-dark: #be123c;
    --site-ink: #111827;
    --site-muted: #6b7280;
    --site-line: #e5e7eb;
    --site-soft: #fff1f2;
    --site-card: #ffffff;
    --site-dark: #0f172a;
    --site-radius: 1.25rem;
    --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-ink);
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 32%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-rose), #fb7185 55%, #f97316);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--site-rose);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #374151;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
}

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

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

.mobile-menu .nav-link {
    padding: 12px 0;
    border-top: 1px solid var(--site-line);
}

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

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 24%, rgba(244, 63, 94, 0.45), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(15, 23, 42, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 70vh;
    align-items: center;
    padding: 88px 0 72px;
}

.hero-panel {
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 16px;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.7rem, 8vw, 5.8rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.hero-desc {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    line-height: 1.8;
}

.hero-actions,
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-actions {
    margin-bottom: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

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

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

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-rose), #fb7185);
    box-shadow: 0 15px 32px rgba(244, 63, 94, 0.32);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.btn-light {
    color: var(--site-rose);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.section {
    padding: 72px 0;
}

.section-alt {
    background: #ffffff;
}

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

.section-eyebrow {
    color: var(--site-rose);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.15;
}

.section-desc {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--site-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    background: var(--site-card);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--site-radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.28);
    box-shadow: var(--site-shadow);
}

.card-link {
    display: grid;
    height: 100%;
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #111827, #881337);
}

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

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

.poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.76));
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.92);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #111827;
    background: #ffffff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    margin: 0;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--site-muted);
    font-size: 0.86rem;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #be123c;
    background: #ffe4e6;
    border-radius: 999px;
    font-size: 0.82rem;
    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: 190px;
    padding: 28px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #111827, #9f1239);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.category-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.page-hero {
    padding: 78px 0 52px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.45), transparent 28%),
        linear-gradient(135deg, #111827, #4c0519 62%, #881337);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-box {
    display: flex;
    align-items: center;
    flex: 1 1 320px;
    min-height: 48px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid var(--site-line);
    border-radius: 999px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    outline: none;
    background: transparent;
}

.search-box .btn {
    min-height: 40px;
    margin-right: 4px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    min-height: 40px;
    padding: 0 15px;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--site-rose);
    border-color: var(--site-rose);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 74px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow);
}

.ranking-number {
    color: var(--site-rose);
    font-size: 1.45rem;
    font-weight: 900;
    text-align: center;
}

.ranking-poster {
    overflow: hidden;
    width: 86px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #111827, #881337);
    border-radius: 14px;
}

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

.ranking-main h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.ranking-main p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--site-muted);
    font-weight: 700;
}

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

.player-card,
.detail-card,
.side-card {
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    box-shadow: var(--site-shadow);
}

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

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.22), rgba(2, 6, 23, 0.48));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button-core {
    display: grid;
    gap: 12px;
    place-items: center;
    font-size: 1rem;
    font-weight: 900;
}

.play-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    padding-left: 5px;
    color: var(--site-rose);
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.detail-card {
    padding: 30px;
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.14;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    color: #4b5563;
}

.detail-meta span {
    padding: 7px 12px;
    background: #f9fafb;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    font-weight: 700;
}

.detail-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--site-line);
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.detail-section p {
    margin: 0;
    color: #374151;
    font-size: 1.02rem;
    line-height: 1.9;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 1.28rem;
}

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

.related-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #111827, #881337);
    border-radius: 12px;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-title {
    margin: 0 0 6px;
    font-weight: 900;
    line-height: 1.45;
}

.related-meta {
    color: var(--site-muted);
    font-size: 0.86rem;
}

.empty-state {
    display: none;
    padding: 36px;
    color: var(--site-muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: 20px;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0;
}

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

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

.footer-links {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 20px 0;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(75, 85, 99, 0.45);
}

[data-card][hidden],
.ranking-item[hidden] {
    display: none;
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero,
    .hero-content {
        min-height: 78vh;
    }

    .hero-content {
        padding: 76px 0 64px;
    }

    .hero-dots {
        right: 50%;
        transform: translateX(50%);
    }

    .section-head,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .card-body {
        padding: 14px;
    }

    .ranking-item {
        grid-template-columns: 52px 74px 1fr;
    }

    .ranking-action {
        grid-column: 1 / -1;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 46px 68px 1fr;
        gap: 12px;
    }

    .detail-card {
        padding: 22px;
    }
}
