:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --rose: #fb7185;
    --yellow: #facc15;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --slate: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 60px rgba(249, 115, 22, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fefce8 100%);
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.brand,
.brand-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--yellow));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link,
.nav-dropdown > button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: #4b5563;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-dropdown > button:hover,
.nav-link.active {
    color: var(--orange-dark);
    background: #ffedd5;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 180px;
    display: grid;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
}

.dropdown-menu a:hover {
    color: var(--orange-dark);
    background: #fff7ed;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: var(--orange-dark);
    background: #ffedd5;
    border-radius: 14px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 8px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    color: #4b5563;
}

.hero {
    position: relative;
    min-height: 520px;
    height: 70vh;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.12)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 16px;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.hero-content p {
    margin: 0 0 22px;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

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

.btn-primary,
.btn-ghost,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    min-height: 50px;
    padding: 0 28px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.3);
}

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

.btn-ghost {
    min-height: 50px;
    padding: 0 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 38px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.content-section,
.rank-section,
.category-band {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.category-band {
    width: 100%;
    padding: 58px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.84), rgba(252, 231, 243, 0.82));
}

.section-head {
    margin-bottom: 26px;
}

.section-head.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-kicker {
    color: var(--orange-dark);
}

.section-head h2,
.detail-text h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--yellow));
    -webkit-background-clip: text;
    color: transparent;
}

.text-link {
    color: var(--orange-dark);
    background: #ffedd5;
    padding: 10px 16px;
}

.filter-toolbar,
.sort-toolbar {
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.filter-actions,
.sort-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-actions button,
.sort-toolbar button,
.filter-actions select {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: #4b5563;
    background: #f3f4f6;
    cursor: pointer;
}

.filter-actions button.active,
.sort-toolbar button.active,
.filter-actions button:hover,
.sort-toolbar button:hover,
.filter-actions select:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

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

.movie-grid.dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.7));
    opacity: 0.72;
}

.type-badge,
.duration-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.type-badge {
    left: 12px;
    background: rgba(249, 115, 22, 0.92);
}

.duration-badge {
    right: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    opacity: 0;
    transform: scale(0.8);
    transition: 0.25s ease;
}

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

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-card-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: var(--orange-dark);
}

.movie-card-body em {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta span {
    color: var(--muted);
    background: #f3f4f6;
}

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

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    padding: 8px 12px;
    font-size: 13px;
}

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

.category-tile,
.overview-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.category-tile img,
.overview-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile::after,
.overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.76));
}

.category-tile > span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.category-tile strong,
.overview-card strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.category-tile em,
.overview-card em {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.overview-card {
    display: grid;
    min-height: 300px;
    background: #111827;
}

.overview-covers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
}

.overview-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
}

.overview-copy b {
    display: inline-flex;
    margin-top: 16px;
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.page-hero {
    position: relative;
    padding: 82px max(16px, calc((100% - 1180px) / 2));
    color: #ffffff;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -40% 10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(10px);
}

.page-hero > div {
    position: relative;
    max-width: 820px;
}

.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.orange-pink {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.red-orange {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.violet-pink {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.pink-amber {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.slate-orange {
    background: linear-gradient(135deg, #0f172a, #f97316);
}

.blue-purple {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.yellow-orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.cyan-blue {
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

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

.rank-item {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-number {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--rose));
}

.rank-number.top {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.rank-copy {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
}

.rank-copy strong,
.rank-copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.rank-copy small {
    margin-top: 4px;
    color: var(--muted);
}

.rank-item img {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.detail-hero {
    position: relative;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45)), var(--detail-image);
    background-position: center;
    background-size: cover;
}

.detail-overlay {
    padding: 28px max(16px, calc((100% - 1180px) / 2)) 66px;
    background: radial-gradient(circle at 75% 18%, rgba(236, 72, 153, 0.28), transparent 34%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
    gap: 32px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.68));
}

.play-layer.is-hidden {
    display: none;
}

.play-pulse {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    font-size: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.12);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.34);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 22px rgba(236, 72, 153, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-copy p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-text {
    max-width: 940px;
}

.detail-text h2 {
    margin-top: 28px;
}

.detail-text p {
    margin: 16px 0;
    color: #374151;
    font-size: 17px;
    line-height: 2;
    text-align: justify;
}

.empty-state {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 50px 0;
}

.site-footer {
    margin-top: 44px;
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #db2777, #ca8a04);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.8);
}

.footer-group h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    padding: 18px 16px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero {
        height: 76vh;
        min-height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

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

    .section-head.split,
    .filter-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .overview-grid,
    .rank-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .content-section,
    .rank-section,
    .category-band {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .page-hero {
        padding-top: 58px;
        padding-bottom: 58px;
    }
}

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

    .hero-actions,
    .filter-actions,
    .sort-toolbar {
        width: 100%;
    }

    .btn-primary,
    .btn-ghost,
    .filter-actions button,
    .sort-toolbar button,
    .filter-actions select {
        flex: 1 1 auto;
    }

    .rank-item img {
        width: 58px;
        height: 58px;
    }
}
