:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --line: #e5e7eb;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --blue: #3b82f6;
    --green: #22c55e;
    --orange: #f97316;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(239, 246, 255, 0.96), rgba(240, 253, 244, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.24);
}

.logo-title {
    display: block;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link,
.dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #374151;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.dropdown-button:hover {
    color: var(--pink-dark);
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 270px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: 0.22s ease;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-panel a {
    padding: 9px 11px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 14px;
}

.dropdown-panel a:hover {
    color: var(--pink-dark);
    background: var(--soft);
}

.header-search {
    width: min(280px, 24vw);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 11px 16px 11px 42px;
    outline: 0;
    background: rgba(255, 255, 255, 0.82);
    transition: box-shadow 0.2s ease, border 0.2s ease;
}

.search-box input:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    box-shadow: var(--shadow-soft);
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
    border-top: 1px solid rgba(229, 231, 235, 0.9);
}

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

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #4b5563;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.is-active .hero-bg {
    transform: scale(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 24%, rgba(236, 72, 153, 0.3), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(670px, 100%);
    color: #ffffff;
    padding: 64px 0 82px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #f9a8d4;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 20px 0 28px;
    max-width: 760px;
    color: #e5e7eb;
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #475569;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.badge-pink {
    color: #be185d;
    background: #fce7f3;
}

.badge-blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.badge-green {
    color: #15803d;
    background: #dcfce7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    box-shadow: 0 15px 32px rgba(59, 130, 246, 0.24);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.btn-light {
    color: var(--pink-dark);
    background: #ffffff;
    border-color: #fbcfe8;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

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

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

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

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(180deg, transparent, #f8fafc);
}

.section {
    padding: 58px 0;
}

.section-soft {
    background: linear-gradient(90deg, #fdf2f8, #eff6ff, #f0fdf4);
}

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

.title-line {
    display: flex;
    align-items: center;
    gap: 13px;
}

.title-line::before {
    content: "";
    width: 5px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--pink), var(--blue));
}

.section h2,
.page-section h2,
.detail-section h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-note {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.8;
}

.more-link {
    color: var(--pink-dark);
    font-weight: 800;
}

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

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.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-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.66));
    opacity: 0.82;
}

.poster-play {
    position: absolute;
    right: 13px;
    bottom: 13px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

.poster-year {
    position: absolute;
    left: 13px;
    top: 13px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.55);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(7px);
}

.card-body {
    padding: 18px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.card-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--pink-dark);
}

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

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

.card-score {
    color: #d97706;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #3b82f6);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card:nth-child(3n + 3) {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
}

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

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -52px;
    bottom: -72px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 27px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 116px 1fr;
    gap: 15px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.rank-item img {
    width: 116px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 20%, rgba(236, 72, 153, 0.34), transparent 32%),
        linear-gradient(135deg, #111827, #1d4ed8 58%, #be185d);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% 36%;
    height: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(3px);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 170px 170px auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.detail-hero {
    padding: 42px 0 36px;
    background:
        radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.22), transparent 28%),
        linear-gradient(135deg, #0f172a, #1e3a8a 58%, #831843);
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #fce7f3, #dbeafe);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.watch-player {
    padding: 54px 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    display: grid;
    place-items: center;
    padding: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

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

.play-circle {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 36px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.36);
    transition: transform 0.2s ease;
}

.player-cover:hover .play-circle {
    transform: scale(1.08);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 32px 0 62px;
}

.detail-section {
    margin-bottom: 28px;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-section p {
    color: #374151;
    font-size: 16px;
    line-height: 1.92;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #be185d;
    background: #fce7f3;
    font-weight: 700;
    font-size: 13px;
}

.side-card {
    position: sticky;
    top: 105px;
    padding: 22px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

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

.side-link img {
    width: 72px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

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

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

.search-results {
    min-height: 240px;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #1f2937);
}

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

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

.footer-inner p,
.footer-inner a {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

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

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

.copyright {
    padding: 18px 0 26px;
    color: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

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

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

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

    .detail-poster {
        max-width: 520px;
    }

    .side-card {
        position: static;
    }
}

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

    .header-inner {
        min-height: 70px;
    }

    .logo-title {
        font-size: 21px;
    }

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

    .hero-copy {
        padding: 54px 0 104px;
    }

    .section {
        padding: 44px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 92px 1fr;
    }

    .rank-item img {
        width: 92px;
    }

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

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

    .detail-section {
        padding: 22px;
    }
}
