:root {
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #f59e0b;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f1f5f9;
    --soft: #fff7ed;
    --card: #ffffff;
    --shadow: 0 20px 55px rgba(236, 72, 153, 0.16);
    --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7fb 0%, #fffaf0 42%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 35px rgba(236, 72, 153, 0.08);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown > button:hover {
    color: var(--pink);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 230px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(4px);
}

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

.nav-dropdown-panel a:hover {
    background: #fdf2f8;
    color: var(--pink);
}

.top-search,
.mobile-search,
.search-large {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #f3e8ff;
    border-radius: 999px;
    overflow: hidden;
}

.top-search input,
.mobile-search input,
.search-large input {
    width: 240px;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    background: transparent;
}

.top-search button,
.mobile-search button,
.search-large button {
    border: 0;
    color: #ffffff;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fdf2f8;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 10px;
    background: var(--pink);
}

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

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

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

.mobile-menu nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    color: #4b5563;
    font-weight: 700;
}

main {
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    padding: 26px 0 18px;
}

.hero-shell {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    gap: 40px;
    align-items: center;
    padding: 72px;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 135, 0.58), rgba(236, 72, 153, 0.35)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 78% 68%, rgba(251, 146, 60, 0.24), transparent 32%);
}

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

.hero-eyebrow,
.section-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.22);
}

.hero-content h1,
.hero-content h2 {
    max-width: 720px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 22px;
    color: #ffe4e6;
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fdf2f8;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.button-primary,
.button-ghost,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.32);
}

.button-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.hero-poster {
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(3deg);
}

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

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: #fbcfe8;
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.intro-strip,
.content-section,
.page-main,
.site-footer .footer-grid,
.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-top: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.intro-strip h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.intro-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.content-section {
    padding: 72px 0 0;
}

.no-top-gap {
    padding-top: 28px;
}

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

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.section-heading > a,
.text-link {
    color: var(--pink);
    background: #fdf2f8;
}

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

.category-movie-grid,
.search-results {
    align-items: stretch;
}

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #fdf2f8;
}

.movie-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.35s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
    opacity: 0.9;
}

.movie-play-icon {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.movie-type {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-title-link h2,
.movie-title-link h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-compact .movie-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    min-height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #ffffff;
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.82)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile p {
    margin: 8px 0 0;
    color: #ffe4e6;
    line-height: 1.6;
    font-size: 13px;
}

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

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

.rank-mark {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.page-main {
    padding-top: 34px;
    padding-bottom: 80px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.24), transparent 26%), linear-gradient(135deg, #831843, #ec4899 44%, #f97316);
    box-shadow: var(--shadow-strong);
}

.small-hero,
.search-hero,
.ranking-hero,
.category-hero {
    min-height: 260px;
}

.page-hero h1 {
    margin: 18px 0 14px;
    max-width: 850px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff1f2;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    overflow: hidden;
    border-radius: 20px;
}

.category-preview img {
    width: 100%;
    height: 102px;
    object-fit: cover;
    background: #fdf2f8;
}

.category-overview-card h2 {
    margin: 0 0 8px;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #6b7280;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 800;
}

.filter-panel button.is-active,
.filter-panel button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.search-large {
    width: min(660px, 100%);
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.search-large input {
    width: 100%;
    min-height: 58px;
    font-size: 18px;
}

.search-state {
    margin-top: 14px !important;
    font-size: 14px !important;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: #6b7280;
    font-weight: 700;
}

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

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    overflow: hidden;
    padding: 44px;
    border-radius: 34px;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(136, 19, 55, 0.76)), var(--detail-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-strong);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #ffe4e6;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.player-section {
    padding-top: 54px;
}

.simple-heading {
    align-items: center;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.74));
}

.play-cover span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    font-size: 28px;
}

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

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 34px;
}

.content-card {
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

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

.content-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

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

.site-footer {
    margin-top: 60px;
    color: #ffffff;
    background: linear-gradient(135deg, #831843, #9a3412, #92400e);
}

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

.footer-logo {
    color: #ffffff;
    -webkit-text-fill-color: transparent;
}

.footer-brand p,
.footer-bottom {
    color: #ffe4e6;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-links a {
    color: #ffe4e6;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-poster {
        display: none;
    }

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

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

@media (max-width: 760px) {
    .site-logo {
        font-size: 20px;
    }

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

    .hero-slide {
        padding: 30px;
    }

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

    .intro-strip,
    .section-heading,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-grid,
    .ranking-grid,
    .ranking-list,
    .category-overview-grid,
    .related-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-hero {
        padding: 30px;
        border-radius: 24px;
    }

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-inner,
    .mobile-menu,
    .intro-strip,
    .content-section,
    .page-main,
    .site-footer .footer-grid,
    .footer-bottom,
    .hero-shell {
        width: min(100% - 20px, 1200px);
    }

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

    .mobile-menu nav {
        grid-template-columns: 1fr;
    }
}
