:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-300: #f9a8d4;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-900: #831843;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-900: #7c2d12;
    --yellow-50: #fefce8;
    --yellow-500: #eab308;
    --yellow-900: #713f12;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--pink-50), var(--orange-50) 48%, var(--yellow-50));
    min-height: 100vh;
}

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

img,
video {
    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, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark,
.footer-brand span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500), var(--yellow-500));
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--pink-500), var(--orange-500), var(--yellow-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--gray-700);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-toggle:hover {
    color: var(--pink-500);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 190px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
}

.dropdown-menu a:hover {
    background: var(--pink-50);
    color: var(--pink-600);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 30vw);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 4px;
}

.header-search input {
    flex: 1;
    border: 0;
    outline: 0;
    min-width: 0;
    padding: 10px 14px;
    background: transparent;
    color: var(--gray-800);
}

.header-search button,
.primary-button,
.secondary-button,
.inline-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink-500), var(--orange-500));
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
}

.secondary-button {
    padding: 10px 18px;
    color: var(--pink-600);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(236, 72, 153, 0.18);
}

.inline-button {
    display: inline-flex;
    padding: 8px 14px;
    color: var(--pink-600);
    background: var(--pink-50);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.inline-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-button {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    font-size: 22px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-nav a:hover {
    background: var(--pink-50);
    color: var(--pink-600);
}

.mobile-nav.open {
    display: block;
}

main {
    padding: 30px 0 58px;
}

.hero {
    position: relative;
    min-height: 530px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(105deg, var(--pink-500), var(--orange-500), var(--yellow-500));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    filter: blur(2px);
}

.hero::before {
    width: 420px;
    height: 420px;
    left: -140px;
    top: -120px;
}

.hero::after {
    width: 360px;
    height: 360px;
    right: -110px;
    bottom: -120px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    gap: 34px;
    align-items: center;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 14px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span,
.stat-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
}

.hero-poster {
    position: relative;
    z-index: 2;
    min-height: 390px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.28);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.hero-mini-title {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 3;
    color: #fff;
    font-size: 20px;
    font-weight: 850;
}

.hero-controls {
    position: absolute;
    left: 56px;
    bottom: 32px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.active {
    width: 30px;
    background: #fff;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--pink-600);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 900;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.18;
}

.section-head p,
.page-intro {
    margin: 8px 0 0;
    color: var(--gray-500);
    line-height: 1.8;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), var(--orange-50));
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.card-category,
.card-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.card-category {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, var(--pink-500), var(--orange-500));
}

.card-duration {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    justify-content: center;
    background: var(--yellow-500);
    color: #fff;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.45;
}

.card-title.compact {
    font-size: 16px;
}

.card-title a:hover {
    color: var(--pink-600);
}

.card-meta {
    margin: 0 0 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    color: var(--pink-600);
    background: var(--pink-50);
}

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

.category-panel {
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-panel-body {
    padding: 24px;
}

.category-panel h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-panel p {
    margin: 0 0 18px;
    color: var(--gray-500);
    line-height: 1.8;
}

.mini-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 0 24px 24px;
}

.mini-movie {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1;
    background: var(--pink-100);
}

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

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

.mini-movie span {
    position: absolute;
    inset: auto 0 0;
    padding: 18px 8px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 26px 0 22px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
}

.page-filter-input,
.search-page-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(236, 72, 153, 0.16);
    outline: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: #fff;
    color: var(--gray-800);
    font-size: 15px;
}

.filter-count {
    flex: 0 0 auto;
    color: var(--gray-500);
    font-weight: 700;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    font-weight: 900;
    font-size: 20px;
}

.rank-row img {
    width: 132px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-row p {
    margin: 0 0 8px;
    color: var(--gray-500);
    line-height: 1.55;
}

.stat-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(249, 115, 22, 0.10), rgba(234, 179, 8, 0.10));
    box-shadow: var(--shadow-sm);
}

.player-panel {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow-lg);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    background: #050505;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-start::after {
    content: "▶";
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    font-size: 34px;
    padding-left: 5px;
}

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

.detail-info {
    padding: 6px 2px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
}

.detail-lead {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.85;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.stat-pill {
    padding: 8px 12px;
    color: var(--gray-700);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

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

.article-card,
.side-card {
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.article-card {
    padding: 28px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.95;
    font-size: 16px;
}

.side-card {
    padding: 20px;
    align-self: start;
}

.side-link {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(209, 213, 219, 0.55);
}

.side-link:last-child {
    border-bottom: 0;
}

.side-link img {
    width: 86px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.side-link strong {
    display: block;
    margin-bottom: 5px;
    line-height: 1.38;
}

.side-link span {
    color: var(--gray-500);
    font-size: 13px;
}

.search-panel {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.search-form-large {
    display: flex;
    gap: 12px;
}

.empty-state {
    padding: 32px;
    text-align: center;
    color: var(--gray-500);
}

.site-footer {
    color: #fff;
    background: linear-gradient(90deg, var(--pink-900), var(--orange-900), var(--yellow-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 48px 0 34px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 21px;
    font-weight: 850;
}

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

.site-footer p,
.site-footer a,
.site-footer li {
    color: #fbcfe8;
    line-height: 1.8;
    font-size: 14px;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(251, 207, 232, 0.22);
    text-align: center;
    color: #f9a8d4;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero-slide,
    .detail-hero,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 34px;
    }

    .hero-poster {
        min-height: 280px;
    }

    .hero-poster img {
        min-height: 280px;
    }

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

    .category-grid,
    .ranking-list,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    main {
        padding-top: 18px;
    }

    .hero {
        min-height: 720px;
        border-radius: 24px;
    }

    .hero-slide {
        align-content: start;
        gap: 22px;
        padding: 24px;
    }

    .hero h1 {
        margin-top: 16px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-controls {
        left: 24px;
        bottom: 22px;
    }

    .section-head,
    .list-toolbar,
    .search-form-large {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .ranking-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 48px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .rank-row img {
        width: 96px;
        height: 68px;
    }

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