:root {
    --page-bg: #fff7fb;
    --surface: #ffffff;
    --text: #26202b;
    --muted: #716978;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #facc15;
    --rose-dark: #831843;
    --shadow: 0 20px 60px rgba(190, 24, 93, 0.14);
    --soft-shadow: 0 12px 30px rgba(190, 24, 93, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.12), transparent 28rem),
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.10), transparent 30rem),
        var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 8px 28px rgba(112, 26, 117, 0.07);
    backdrop-filter: blur(16px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.logo-text {
    font-size: 25px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4b3d51;
    font-weight: 700;
}

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

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > span {
    cursor: default;
}

.dropdown-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 360px;
    transform: translate(-50%, 12px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    padding: 8px 10px;
    border-radius: 12px;
    color: #5b5060;
    text-align: center;
    font-size: 14px;
}

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

.header-search {
    position: relative;
    width: min(290px, 28vw);
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 44px 11px 16px;
    color: #3b3340;
    background: #f5edf3;
    border-radius: 999px;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.16);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.mobile-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    color: var(--pink);
    cursor: pointer;
    border-radius: 14px;
    background: #fff1f7;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel a {
    display: block;
    padding: 11px 14px;
    margin: 3px 0;
    color: #574b5b;
    font-weight: 700;
    border-radius: 14px;
}

.mobile-panel a:hover {
    color: var(--pink);
    background: #fff1f7;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    margin: 34px auto 52px;
    overflow: hidden;
    border-radius: 34px;
    background: #2a1028;
    box-shadow: 0 30px 80px rgba(131, 24, 67, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 30px;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(21, 7, 24, 0.94), rgba(131, 24, 67, 0.70) 48%, rgba(249, 115, 22, 0.38)),
        radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.18), transparent 20rem),
        radial-gradient(circle at 75% 80%, rgba(250, 204, 21, 0.22), transparent 22rem);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.33;
    filter: saturate(1.15) blur(1px);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 13px;
    color: #ffe4f1;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(36px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 28px;
    color: #ffe7f2;
    font-size: 19px;
}

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

.hero-meta span,
.tag-pill,
.detail-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #8a123f;
    font-weight: 800;
    border-radius: 999px;
    background: #ffe3ee;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.34);
}

.btn.is-light {
    color: #8a123f;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.18);
}

.hero-poster {
    justify-self: center;
    width: min(360px, 100%);
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 32px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 36px;
    height: 8px;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

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

.section {
    margin: 54px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.36);
    box-shadow: var(--shadow);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ef, #fff7d6);
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 48%);
    opacity: 0.86;
}

.movie-badge,
.movie-duration,
.movie-score {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
}

.movie-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.movie-duration {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.72);
}

.movie-score {
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    color: #5a3300;
    background: linear-gradient(135deg, #fde68a, #facc15);
}

.movie-body {
    padding: 17px;
}

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 9px;
    overflow: hidden;
    color: #2d2630;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #8a7d90;
    font-size: 13px;
}

.movie-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f7edf3;
}

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

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

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

.category-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -34px;
    bottom: -44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

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

.rank-cover {
    width: 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 900;
}

.rank-meta {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select,
.search-hero input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 13px 16px;
    color: #403545;
    border-radius: 16px;
    background: #f7edf3;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-hero input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.page-hero {
    margin: 34px 0 34px;
    padding: 42px;
    color: #ffffff;
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22), transparent 18rem),
        linear-gradient(135deg, var(--pink), var(--orange), #f59e0b);
    box-shadow: 0 24px 64px rgba(236, 72, 153, 0.20);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 6vw, 62px);
    letter-spacing: -0.05em;
    line-height: 1.06;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 18px;
    color: #876f82;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--pink);
    font-weight: 800;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-main {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-intro {
    margin: 0 0 18px;
    color: #5f5364;
    font-size: 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.detail-meta div {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff3f8;
}

.detail-meta strong {
    display: block;
    color: #8b1645;
    font-size: 13px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.player-section {
    margin-top: 42px;
}

.player {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 30px;
    background: #120716;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.player video {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    background: #120716;
    object-fit: contain;
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.35);
}

.player-button span {
    display: block;
    margin-left: 7px;
    font-size: 42px;
    line-height: 1;
}

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

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 3;
    display: none;
    padding: 10px 14px;
    color: #ffe4ef;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.58);
}

.player-message.is-visible {
    display: block;
}

.content-card {
    padding: 28px;
    margin: 26px 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #5f5364;
}

.search-hero {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    max-width: 780px;
    margin-top: 24px;
}

.search-hero button {
    min-width: 130px;
}

.empty-state {
    padding: 36px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.site-footer {
    margin-top: 70px;
    color: #ffe4ef;
    background: linear-gradient(135deg, #831843, #7c2d12, #713f12);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.footer-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
}

.footer-text,
.footer-list a,
.footer-bottom {
    color: #ffd4e5;
    font-size: 14px;
}

.footer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 46px;
    }

    .hero-poster {
        display: none;
    }

    .detail-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }
}

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

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

    .hero-slider {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px 24px 70px;
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

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

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

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

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

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

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

    .rank-row .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

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

    .page-hero,
    .detail-main,
    .content-card {
        padding: 24px;
        border-radius: 24px;
    }

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

    .hero-title {
        font-size: 42px;
    }

    .hero-text {
        font-size: 16px;
    }

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

    .player,
    .player video {
        min-height: 260px;
    }

    .player-button {
        width: 86px;
        height: 86px;
    }

    .search-hero {
        grid-template-columns: 1fr;
    }

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