:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #db2777;
    --text: #111827;
    --muted: #6b7280;
    --light: #f9fafb;
    --border: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

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

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

.logo-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    border-radius: 12px;
    box-shadow: 0 12px 22px rgba(225, 29, 72, 0.26);
}

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

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

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

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

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input,
.inline-filter input {
    width: 230px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.search-form button {
    border: 0;
    color: #fff;
    background: var(--rose);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--border);
}

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

.mobile-search {
    margin-top: 14px;
}

.mobile-search input {
    flex: 1;
    width: auto;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #881337, #be185d, #e11d48);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.08));
}

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

.hero-copy {
    width: min(660px, 100%);
    color: #fff;
}

.hero-pill,
.detail-pill {
    display: inline-flex;
    margin-bottom: 16px;
    color: #fff;
    background: var(--rose);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 18px;
    max-width: 620px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: var(--rose);
}

.primary-button:hover {
    background: var(--rose-dark);
    transform: translateY(-1px);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.stats-panel {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -64px;
}

.stat-card {
    min-height: 128px;
    border-radius: 18px;
    padding: 24px;
    color: #fff;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.82);
}

.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.green { background: linear-gradient(135deg, #10b981, #059669); }
.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.purple { background: linear-gradient(135deg, #8b5cf6, #a21caf); }

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

.section-heading,
.list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

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

.section-heading h2,
.list-heading h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.list-heading p {
    margin: 0;
    color: var(--muted);
}

.section-heading a {
    color: var(--rose);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px 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 22px 46px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #881337);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.category-card-large:hover img {
    transform: scale(1.06);
}

.cover-badge,
.cover-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cover-badge {
    top: 12px;
    left: 12px;
    color: #fff;
    background: var(--rose);
    padding: 5px 10px;
}

.cover-year {
    right: 12px;
    bottom: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    padding: 5px 9px;
}

.rank-badge {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #e11d48);
}

.cover-play {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 44px;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .cover-play {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

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

.movie-card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta span {
    border-radius: 8px;
    background: #f3f4f6;
    padding: 4px 8px;
}

.category-band {
    background: linear-gradient(135deg, #eef2ff, #faf5ff, #fdf2f8);
    padding: 72px 0;
}

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

.category-tile {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #e11d48, #7c3aed);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    opacity: 0.62;
}

.category-tile span,
.category-tile small {
    position: absolute;
    left: 22px;
    right: 22px;
}

.category-tile span {
    bottom: 58px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
}

.white-section {
    background: #fff;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc, #f3f4f6);
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 42% 1fr;
}

.movie-card-horizontal .movie-cover {
    aspect-ratio: auto;
    min-height: 190px;
}

.scroll-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 4px 22px;
    scroll-snap-type: x mandatory;
}

.scroll-card {
    width: 320px;
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

.masonry-grid .movie-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
}

.page-hero {
    color: #fff;
    padding: 70px 0;
}

.page-hero.rose {
    background: linear-gradient(135deg, #e11d48, #db2777);
}

.page-hero.purple {
    background: linear-gradient(135deg, #6d28d9, #db2777);
}

.page-hero.blue {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.page-hero p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(36px, 7vw, 58px);
    line-height: 1;
    font-weight: 950;
}

.page-hero span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.category-large-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card-large {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.category-card-large a {
    display: block;
    position: relative;
    min-height: 260px;
    color: #fff;
    overflow: hidden;
}

.category-card-large img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    filter: brightness(0.64);
    transition: transform 0.35s ease;
}

.category-card-large div {
    position: absolute;
    inset: auto 22px 22px;
}

.category-card-large span {
    display: inline-flex;
    border-radius: 999px;
    background: var(--rose);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
}

.category-card-large h2 {
    margin: 14px 0 8px;
    font-size: 26px;
}

.category-card-large p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    background: #f3f4f6;
    padding: 0 15px;
    color: #374151;
    font-weight: 700;
}

.filter-panel a:hover,
.filter-panel a.is-active {
    color: #fff;
    background: var(--rose);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-weight: 800;
}

.pagination a:hover,
.pagination a.is-current {
    color: #fff;
    border-color: var(--rose);
    background: var(--rose);
}

.mini-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
}

.mini-cover {
    position: relative;
    display: block;
    width: 86px;
    height: 66px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #881337);
}

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

.mini-card h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
}

.mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 70px 20px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.player-section {
    background: #050505;
    padding: 24px 0;
}

.player-container {
    max-width: 1180px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.58));
}

.player-start span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.95);
    box-shadow: 0 18px 34px rgba(225, 29, 72, 0.42);
    font-size: 32px;
    text-indent: 5px;
}

.player-start strong {
    font-size: 18px;
}

.player-start.is-hidden {
    display: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 42px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-card,
.side-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-meta span {
    border-radius: 10px;
    background: #f3f4f6;
    padding: 6px 10px;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
}

.detail-intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.detail-intro img {
    width: 220px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #881337);
}

.detail-intro h2,
.detail-section h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
}

.detail-intro p,
.detail-section p {
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.9;
}

.detail-section {
    margin-top: 30px;
}

.detail-section .tag-list span {
    color: #374151;
    background: #f3f4f6;
    backdrop-filter: none;
}

.detail-side {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 94px;
}

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

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding-top: 54px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 420px;
    margin: 0;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
}

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

.footer-bottom {
    margin-top: 44px;
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    text-align: center;
}

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .grid-three,
    .grid-four,
    .category-grid,
    .category-large-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .side-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .main-nav,
    .header-inner > .search-form {
        display: none;
    }

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-carousel {
        height: 540px;
    }

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

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -42px;
    }

    .horizontal-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 2;
    }

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

    .inline-filter input {
        width: min(100%, 320px);
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-control {
        display: none;
    }

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

    .stats-panel,
    .grid-three,
    .grid-four,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .masonry-grid {
        column-count: 1;
    }

    .scroll-card {
        width: 280px;
        flex-basis: 280px;
    }

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

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

    .detail-intro img {
        width: 100%;
        max-width: 280px;
    }

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