:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-400: #fbbf24;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 12px 40px rgba(190, 18, 60, 0.12);
    --shadow-card: 0 14px 34px rgba(17, 24, 39, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--orange-50) 0%, #fff7fb 44%, var(--rose-50) 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(254, 205, 211, 0.82);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(225, 29, 72, 0.08);
}

.nav-wrap {
    width: min(100% - 32px, var(--container));
    height: 68px;
    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-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-600), var(--orange-600));
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--rose-600), var(--orange-600));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--rose-50);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--rose-600);
}

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

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

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 241, 242, 0.72);
}

.hero-carousel {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(190, 18, 60, 0.92) 0%, rgba(234, 88, 12, 0.84) 46%, rgba(17, 24, 39, 0.28) 100%);
}

.hero-carousel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(0deg, var(--orange-50), rgba(255, 247, 237, 0));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    min-height: 610px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--rose-600);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--rose-100);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: var(--rose-100);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    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: var(--rose-600);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.22);
}

.ghost-btn {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.88);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.78), rgba(255, 228, 230, 0.82));
}

.section-warm {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.76), rgba(255, 247, 237, 0.92));
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading h2,
.section-head-row h2,
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    line-height: 1.16;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--gray-600);
    line-height: 1.8;
}

.section-head-row {
    width: min(100% - 32px, var(--container));
    margin: 0 auto 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

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

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

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

.category-card {
    display: flex;
    min-height: 238px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid rgba(254, 205, 211, 0.86);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.category-name {
    margin-bottom: 8px;
    font-size: 1.18rem;
    font-weight: 900;
}

.category-desc {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid rgba(254, 205, 211, 0.8);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.filter-panel > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filter-panel strong {
    font-size: 1.08rem;
}

.filter-panel span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--rose-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--gray-700);
    background: var(--white);
    outline: none;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--rose-100), var(--orange-100));
}

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

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.14));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.type-badge,
.rank-badge,
.type-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 0 11px;
    color: var(--white);
    background: var(--rose-600);
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 32px;
    min-height: 32px;
    color: var(--white);
    background: var(--amber-400);
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.32);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
}

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

.movie-info p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 84px 0 54px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-700), var(--orange-600));
}

.small-hero p {
    margin-left: 0;
    color: var(--rose-100);
}

.small-hero .section-kicker {
    color: var(--rose-100);
}

.crumbs {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 700;
}

.crumbs a:hover {
    color: var(--white);
}

.detail-hero {
    padding: 46px 0 0;
}

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

.detail-primary .crumbs {
    color: var(--gray-600);
}

.detail-primary .crumbs a:hover {
    color: var(--rose-600);
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.32);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.24), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

.player-card.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.player-play-icon {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    position: relative;
}

.player-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid var(--rose-600);
}

.detail-box,
.side-panel {
    margin-top: 26px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.type-label {
    min-height: 30px;
    padding: 0 12px;
    color: var(--rose-600);
    background: var(--rose-100);
}

.detail-box h1 {
    margin: 16px 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.lead-text {
    margin: 0 0 22px;
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.85;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.detail-meta-list div {
    display: grid;
    gap: 6px;
}

.detail-meta-list dt {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 800;
}

.detail-meta-list dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 900;
}

.detail-meta-list a {
    color: var(--rose-600);
}

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

.detail-section h2 {
    margin: 0 0 14px;
    padding-left: 14px;
    border-left: 5px solid var(--rose-600);
    font-size: 1.32rem;
}

.detail-section p {
    margin: 0 0 14px;
    color: var(--gray-700);
    line-height: 1.9;
}

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

.detail-side {
    position: sticky;
    top: 92px;
}

.side-panel {
    margin-top: 44px;
}

.side-panel h2 {
    margin: 0 0 18px;
    font-size: 1.18rem;
}

.side-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--gray-200);
}

.side-card:first-of-type {
    border-top: 0;
}

.side-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
}

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

.side-card:hover img {
    transform: scale(1.08);
}

.side-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.34);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.side-play::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--white);
}

.side-card:hover .side-play {
    opacity: 1;
}

.side-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.side-info strong {
    line-height: 1.45;
}

.side-info em {
    color: var(--gray-500);
    font-style: normal;
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 40px;
    color: var(--rose-100);
    background: linear-gradient(135deg, var(--rose-700), #8f1732 60%, var(--orange-600));
}

.footer-wrap {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    gap: 24px;
}

.footer-brand {
    color: var(--white);
    background: none;
    -webkit-background-clip: initial;
}

.footer-wrap p {
    max-width: 720px;
    margin: 12px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.footer-links a {
    color: var(--rose-100);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.88rem;
}

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

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

    .detail-side {
        position: static;
    }

    .side-panel {
        margin-top: 0;
    }
}

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-content {
        padding: 56px 0 84px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .section {
        padding: 56px 0;
    }

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

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

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

    .detail-meta-list {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .movie-card.compact {
        display: grid;
        grid-template-columns: 112px 1fr;
    }

    .movie-card.compact .poster-link {
        aspect-ratio: 3 / 4;
        height: 100%;
    }

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