:root {
    color-scheme: light;
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --amber: #f59e0b;
    --blue: #2563eb;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3f4f6;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #ffffff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(17, 24, 39, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.logo,
.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--rose);
}

.mobile-menu {
    display: none;
    padding: 0 16px 16px;
}

.mobile-link {
    display: block;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 700;
    color: #374151;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--rose);
    background: #fff1f2;
}

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

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 30%), linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.2));
}

.hero-content {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.1fr 380px;
    align-items: center;
    gap: 60px;
    color: #fff;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
    color: #fecdd3;
}

.hero-copy h1,
.detail-info h1,
.page-hero h1 {
    margin: 14px 0 20px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p,
.detail-info p,
.page-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.8;
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.32);
}

.ghost-btn {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.22);
}

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

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

.hero-dot.is-active {
    width: 54px;
    background: #fff;
}

.quick-search {
    margin-top: -42px;
    position: relative;
    z-index: 12;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.quick-search form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 2px solid #ffe4e6;
    border-radius: 16px;
    padding: 14px 16px;
    color: #111827;
    outline: none;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.quick-search button {
    border: 0;
    border-radius: 16px;
    padding: 0 28px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a,
.tag-list span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #fff1f2;
    font-size: 13px;
    font-weight: 800;
}

.section {
    padding: 76px 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.section-title h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-title p {
    color: var(--muted);
    margin: 8px 0 0;
}

.section-title > a {
    color: var(--rose);
    font-weight: 900;
}

.section-title.centered {
    justify-content: center;
    text-align: center;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    border-color: #fecdd3;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.14);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fff1f2, #ffedd5);
    overflow: hidden;
}

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

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

.poster-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.3);
}

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

.movie-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    min-height: 3.4em;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f9fafb;
}

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

.category-band {
    padding: 76px 0;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

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

.category-card,
.category-overview-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 16px 42px rgba(17, 24, 39, 0.13);
}

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

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.2));
}

.category-card span,
.category-card strong,
.category-overview-card div {
    position: relative;
    z-index: 1;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
}

.category-card span {
    font-size: 22px;
    font-weight: 950;
}

.category-card strong {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.category-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}

.rank-number {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 20px;
    font-weight: 950;
}

.rank-content {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 16px;
    align-items: center;
}

.rank-content h2 {
    margin: 0 0 7px;
    font-size: 19px;
}

.rank-content p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

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

.page-hero {
    position: relative;
    padding: 96px 0 80px;
    overflow: hidden;
    color: #fff;
}

.soft-hero {
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.17), transparent 32%), linear-gradient(135deg, #fff1f2, #fffbeb);
}

.ranking-hero {
    background: linear-gradient(135deg, #be123c, #f97316, #f59e0b);
}

.soft-hero p {
    color: #6b7280;
}

.soft-hero .eyebrow {
    color: var(--rose);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 16px;
    margin-top: 36px;
    padding: 20px;
    border: 1px solid #ffe4e6;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 900;
}

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

.category-overview-card {
    min-height: 260px;
}

.category-overview-card div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px;
}

.category-overview-card .eyebrow {
    color: #fecdd3;
}

.category-overview-card h2 {
    margin: 8px 0 10px;
    font-size: 28px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #fff;
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
    min-height: 640px;
    padding: 54px 0;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
}

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

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

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.player-section {
    padding-bottom: 30px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.stream-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    color: #fff;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18), rgba(0, 0, 0, 0.55));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.35);
    font-size: 34px;
    padding-left: 5px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 30px;
}

.story-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.07);
}

.story-card:first-child {
    grid-column: 1 / -1;
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

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

.site-footer {
    padding: 56px 0;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 34px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 10px 0;
    color: #4b5563;
}

.site-footer a:not(.footer-logo):hover {
    color: var(--rose);
}

[hidden] {
    display: none !important;
}

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

    .hero-content,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 360px;
    }

    .filter-panel,
    .overview-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 54px 0 110px;
        gap: 28px;
    }

    .hero-copy p,
    .detail-info p,
    .page-hero p {
        font-size: 17px;
    }

    .hero-poster {
        display: none;
    }

    .quick-search form,
    .filter-panel,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .overview-grid,
    .rank-grid,
    .rank-grid-wide,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-content {
        grid-template-columns: 1fr 72px;
    }

    .rank-content img {
        width: 72px;
        height: 72px;
    }

    .detail-hero-inner {
        min-height: auto;
    }

    .detail-poster {
        max-width: 260px;
    }

    .detail-info h1,
    .hero-copy h1,
    .page-hero h1 {
        font-size: 42px;
    }
}
