:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #db2777;
    --orange: #f97316;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f2d5db;
    --bg: #fff7f8;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(190, 18, 60, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(244, 63, 94, 0.14), transparent 30rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 34rem),
        linear-gradient(180deg, #fff7f8 0%, #fff 45%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 248, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(225, 29, 72, 0.12);
    box-shadow: 0 14px 40px rgba(190, 18, 60, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.25);
    font-size: 15px;
}

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

.nav-link,
.nav-pill,
.section-more,
.text-button {
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.section-more:hover,
.text-button:hover {
    color: var(--rose);
}

.nav-pill {
    padding: 10px 16px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 56px 0 68px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 237, 213, 0.86)),
        radial-gradient(circle at 78% 18%, rgba(244, 63, 94, 0.18), transparent 28rem),
        radial-gradient(circle at 22% 62%, rgba(249, 115, 22, 0.16), transparent 30rem);
}

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

.hero-slider {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0;
    color: #4b5563;
    font-size: 19px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.detail-meta span {
    padding: 8px 12px;
    color: #9f1239;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(225, 29, 72, 0.13);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 18px 36px rgba(225, 29, 72, 0.28);
}

.secondary-button {
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(225, 29, 72, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 36px;
    isolation: isolate;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 36px;
    box-shadow: 0 34px 90px rgba(17, 24, 39, 0.26);
}

.hero-glow {
    position: absolute;
    inset: 10% -10% -8% 12%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.4), rgba(249, 115, 22, 0.35));
    filter: blur(34px);
    border-radius: 36px;
}

.hero-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.hero-search {
    display: flex;
    width: min(540px, 100%);
    padding: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(225, 29, 72, 0.12);
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(225, 29, 72, 0.12);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    font-size: 15px;
}

.hero-search button {
    border: 0;
    padding: 12px 22px;
    color: #fff;
    background: var(--rose);
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.24);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--rose);
}

.section {
    padding: 72px 0;
}

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

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

.section-heading h2,
.detail-block h2,
.detail-side h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

.mosaic-grid .movie-card:nth-child(4n + 1) {
    grid-row: span 2;
}

.movie-card,
.category-card,
.category-overview-card,
.compact-card,
.filter-panel,
.detail-side,
.detail-block {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(225, 29, 72, 0.12);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
}

.movie-card:hover,
.category-card:hover,
.category-overview-card:hover,
.compact-card:hover {
    border-color: rgba(225, 29, 72, 0.26);
    box-shadow: 0 28px 70px rgba(190, 18, 60, 0.18);
}

.poster-link,
.poster-frame {
    display: block;
    position: relative;
}

.poster-frame {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fff1f2;
}

.poster-frame img,
.compact-thumb img,
.category-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-gradient {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 14px;
    padding: 7px 10px;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(225, 29, 72, 0.92);
}

.type-badge {
    left: 14px;
}

.rank-badge {
    right: 14px;
    background: rgba(249, 115, 22, 0.92);
}

.card-body {
    padding: 18px;
}

.card-kicker {
    color: var(--rose);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

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

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

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

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

.category-section,
.recommend-band {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.88), rgba(255, 237, 213, 0.7));
}

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

.category-card {
    min-height: 178px;
    padding: 26px;
    border-radius: 26px;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 16px;
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.category-card p,
.category-overview-card p,
.compact-card p {
    margin: 0;
    color: var(--muted);
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 90px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 22px;
}

.compact-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 15px;
    font-weight: 900;
}

.compact-thumb {
    overflow: hidden;
    height: 120px;
    border-radius: 16px;
    background: #fff1f2;
}

.compact-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.compact-card span:not(.compact-rank) {
    display: inline-block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(225, 29, 72, 0.16), transparent 26rem),
        linear-gradient(135deg, #fff1f2, #ffedd5);
}

.compact-hero h1 {
    max-width: 760px;
}

.compact-hero p {
    max-width: 820px;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 26px;
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 22px;
    background: #fff1f2;
}

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(225, 29, 72, 0.9);
    border-radius: 999px;
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 4px 0 10px;
}

.filter-panel {
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
}

.filter-bar {
    display: flex;
    align-items: end;
    gap: 16px;
}

.search-field {
    flex: 1;
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-field input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 2px solid #f7cbd3;
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.search-field input {
    padding: 0 16px;
}

.filter-select {
    padding: 0 14px;
}

.search-field input:focus,
.filter-select:focus {
    border-color: var(--rose);
}

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

.view-button {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    color: #9f1239;
    background: #fff1f2;
    border-radius: 16px;
    font-weight: 900;
    cursor: pointer;
}

.view-button.is-active {
    color: #fff;
    background: var(--rose);
}

.movie-grid.is-list-view {
    grid-template-columns: 1fr;
}

.movie-grid.is-list-view .movie-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
}

.empty-state {
    display: none;
    padding: 32px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border-radius: 22px;
}

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

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

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.34;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.03);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.58)),
        radial-gradient(circle at 72% 25%, rgba(225, 29, 72, 0.32), transparent 34rem);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 54px 0 64px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.detail-info .detail-meta span,
.detail-info .detail-tags a {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #050816;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.25);
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050816;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.56), rgba(190, 18, 60, 0.42));
    cursor: pointer;
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    color: var(--rose);
    background: #fff;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.detail-block,
.detail-side {
    padding: 26px;
    border-radius: 26px;
}

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

.detail-side dl {
    margin: 18px 0 0;
}

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.detail-side dd {
    margin: 4px 0 14px;
    color: var(--ink);
}

.site-footer {
    margin-top: 36px;
    padding: 56px 0 28px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 58%, #3f1624);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 36px;
}

.footer-brand {
    font-size: 24px;
}

.footer-inner p {
    max-width: 620px;
    color: #d1d5db;
}

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

.footer-links a {
    color: #fff;
    font-weight: 800;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
}

@media (max-width: 980px) {
    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(225, 29, 72, 0.12);
        border-radius: 24px;
        box-shadow: 0 28px 70px rgba(17, 24, 39, 0.14);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0 54px;
    }

    .hero-slider {
        min-height: 860px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-poster {
        width: min(360px, 86vw);
        margin: 0 auto;
    }

    .hero-tools,
    .filter-bar,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .recommend-columns,
    .detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .brand {
        font-size: 20px;
    }

    .section {
        padding: 48px 0;
    }

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

    .hero-slider {
        min-height: 760px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-summary,
    .detail-one-line {
        font-size: 16px;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .recommend-columns,
    .detail-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .compact-card,
    .movie-grid.is-list-view .movie-card {
        grid-template-columns: 1fr;
    }

    .compact-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .detail-poster {
        width: min(260px, 80vw);
        margin: 0 auto;
    }

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

    .filter-select {
        grid-column: span 2;
    }
}
