:root {
    --color-rose: #e11d48;
    --color-rose-dark: #be123c;
    --color-amber: #f59e0b;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #f9fafb;
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 20px 50px rgba(190, 18, 60, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #fff7ed 100%);
    color: var(--color-text);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.site-nav {
    max-width: 1280px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-amber));
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.28);
    font-size: 14px;
}

.brand-text {
    font-size: 21px;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 650;
    color: #374151;
}

.nav-link {
    position: relative;
    padding: 22px 0;
    transition: color 0.2s ease;
}

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

.nav-link.active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-rose), var(--color-amber));
}

.nav-link-sub {
    color: #6b7280;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

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

.mobile-nav {
    display: none;
    border-top: 1px solid var(--color-border);
    padding: 12px 24px 18px;
    background: #ffffff;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9fafb;
    color: #374151;
    font-weight: 650;
}

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

.hero-section {
    position: relative;
    min-height: 540px;
    height: 70vh;
    overflow: hidden;
    background: linear-gradient(120deg, #881337 0%, #92400e 100%);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.hero-badge,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.94);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.28);
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 650px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
    margin: 0 0 26px;
}

.hero-actions,
.card-actions,
.player-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-rose), var(--color-rose-dark));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.34);
}

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

.btn-ghost {
    background: #ffffff;
    color: var(--color-rose);
    border: 1px solid #fecdd3;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-search {
    margin-top: 28px;
    display: flex;
    width: min(560px, 100%);
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

.hero-search button {
    min-width: 96px;
    border: 0;
    border-radius: 12px;
    margin-left: 8px;
    color: #ffffff;
    background: var(--color-rose);
    font-weight: 800;
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
    font-size: 26px;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.section,
.page-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

.section-soft {
    background: linear-gradient(90deg, #fff7ed 0%, #fff1f2 100%);
}

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

.section-title h2,
.page-head h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #111827;
}

.section-title p,
.page-head p {
    max-width: 760px;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.movie-poster {
    position: relative;
    height: 268px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #881337);
}

.movie-card-large .movie-poster {
    height: 330px;
}

.movie-card-compact .movie-poster {
    height: 190px;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--color-rose);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.84);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-rose);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-card-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--color-rose);
}

.movie-card-body p {
    margin: 0 0 15px;
    color: #4b5563;
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta,
.movie-sub-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.movie-sub-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

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

.scroll-row .movie-card {
    flex: 0 0 290px;
    scroll-snap-align: start;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #fff1f2 50%, #fffbeb);
    border: 1px solid rgba(254, 205, 211, 0.85);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -32px;
    bottom: -42px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.1);
}

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 24px;
    color: #111827;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.7;
}

.category-card span {
    position: relative;
    color: var(--color-rose);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    padding: 12px 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-rose), var(--color-amber));
    color: #ffffff;
    font-weight: 900;
}

.rank-item img {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.rank-copy strong {
    color: #111827;
    font-size: 17px;
}

.rank-copy em {
    color: #6b7280;
    font-style: normal;
    line-height: 1.5;
}

.rank-meta {
    color: var(--color-rose);
    font-weight: 800;
    white-space: nowrap;
}

.page-hero {
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.16), transparent 28%), linear-gradient(135deg, #fff1f2, #ffffff 54%, #fffbeb);
    border-bottom: 1px solid #fee2e2;
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 48px;
}

.page-head {
    margin: 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(140px, 0.55fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: var(--shadow-card);
}

.filter-empty {
    display: none;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

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

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

.breadcrumb {
    margin-bottom: 22px;
    color: #6b7280;
    font-weight: 650;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
    color: #ffffff;
    cursor: pointer;
}

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

.player-cover-inner {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.player-play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-rose), var(--color-amber));
    box-shadow: 0 18px 44px rgba(225, 29, 72, 0.42);
    font-size: 30px;
}

.player-cover strong {
    font-size: 20px;
}

.content-card,
.side-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.content-card {
    padding: 30px;
    margin-top: 26px;
}

.content-card h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
    color: #6b7280;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f9fafb;
}

.detail-block {
    margin: 28px 0;
}

.detail-block h2,
.detail-block h3 {
    margin: 0 0 12px;
    color: #111827;
}

.detail-block p {
    color: #374151;
    line-height: 1.9;
    margin: 0 0 14px;
}

.review-box {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--color-rose);
    font-size: 14px;
    font-weight: 750;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.side-card h2,
.side-card h3 {
    margin: 0 0 18px;
}

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

.info-list div {
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.info-list div:first-child {
    padding-top: 0;
    border-top: 0;
}

.info-list span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 750;
}

.info-list strong {
    color: #111827;
    font-weight: 800;
}

.related-section {
    margin-top: 72px;
}

.site-footer {
    margin-top: 56px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-inner p {
    max-width: 560px;
    line-height: 1.8;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
    justify-content: flex-end;
}

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

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

    .nav-link-sub:nth-last-child(-n+3) {
        display: none;
    }

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

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

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

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

    .hero-section {
        min-height: 620px;
        height: auto;
    }

    .hero-inner {
        padding-top: 86px;
        padding-bottom: 86px;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

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

    .side-card {
        position: static;
    }

    .rank-item {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 3;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-nav,
    .section,
    .page-section,
    .page-hero-inner,
    .hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-text {
        font-size: 18px;
    }

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        flex-direction: column;
        gap: 8px;
    }

    .hero-search button {
        margin-left: 0;
        min-height: 44px;
    }

    .movie-grid,
    .movie-grid-wide,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster,
    .movie-card-large .movie-poster,
    .movie-card-compact .movie-poster {
        height: 260px;
    }

    .rank-item {
        grid-template-columns: 38px 54px minmax(0, 1fr);
        padding: 12px;
        gap: 10px;
    }

    .rank-copy em {
        display: none;
    }

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