:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: rgba(148, 163, 184, 0.24);
    --pink: #ec4899;
    --pink-dark: #db2777;
    --blue: #3b82f6;
    --green: #22c55e;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 35px rgba(236, 72, 153, 0.13);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.14), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
        linear-gradient(180deg, #fff7fb 0%, #f7fbff 48%, #f8fff9 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--green));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.36);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.site-nav a {
    padding: 10px 14px;
    color: #475569;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-search input {
    width: 190px;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 8px 8px 12px;
}

.nav-search button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

.btn {
    min-height: 46px;
    padding: 0 22px;
}

.btn:hover,
.nav-search button:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.3);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: #334155;
}

.hero-carousel,
.page-hero,
.detail-hero,
.section-shell,
.breadcrumb {
    width: min(1200px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.hero-carousel {
    position: relative;
    margin-top: 28px;
    overflow: hidden;
    min-height: 600px;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.9s ease;
}

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

.hero-slide img,
.page-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fbcfe8, #bfdbfe, #bbf7d0);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.06));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(620px, 88%);
    min-height: 600px;
    padding: 56px;
    color: #fff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    color: var(--pink-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(252, 231, 243, 0.92);
}

.hero-content .eyebrow {
    color: #fff;
    background: rgba(236, 72, 153, 0.72);
    backdrop-filter: blur(8px);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-content p {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.card-tags span {
    padding: 6px 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.36);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    right: 44px;
    bottom: 34px;
    z-index: 6;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 36px;
    border-radius: 999px;
    background: #fff;
}

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

.intro-panel,
.page-hero,
.detail-content,
.player-section,
.category-hero {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.intro-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
}

.intro-panel h2,
.section-heading h2,
.detail-content h2,
.category-overview-body h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.intro-panel p,
.page-hero p,
.category-overview-body p,
.detail-content p,
.footer-grid p,
.card-desc {
    color: var(--muted);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    padding: 9px 14px;
    color: #475569;
    font-weight: 800;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.category-chip:hover,
.category-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    transform: translateY(-2px);
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fbcfe8, #bfdbfe, #bbf7d0);
}

.poster-frame img,
.category-tile img,
.category-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card-link:hover .poster-frame img,
.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.card-category,
.rank-badge,
.card-score {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(8px);
}

.card-category {
    top: 12px;
    left: 12px;
    background: rgba(236, 72, 153, 0.86);
}

.rank-badge {
    top: 12px;
    right: 12px;
    background: rgba(59, 130, 246, 0.86);
}

.card-score {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 10px;
    overflow: hidden;
    color: #111827;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.9em;
    margin: 0 0 12px;
    overflow: hidden;
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-tags span {
    color: var(--pink-dark);
    border-color: rgba(236, 72, 153, 0.14);
    background: rgba(252, 231, 243, 0.72);
}

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

.category-tile,
.category-overview-card a {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.08));
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    display: block;
    padding: 110px 22px 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 22px 22px;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero {
    position: relative;
    display: grid;
    min-height: 360px;
    margin-top: 28px;
    overflow: hidden;
    place-items: center start;
}

.compact-hero {
    min-height: auto;
}

.ranking-hero {
    color: #fff;
    background: #111827;
}

.ranking-hero > div {
    position: relative;
    z-index: 2;
    width: min(650px, 90%);
    padding: 46px;
}

.ranking-hero h1,
.compact-hero h1 {
    margin-bottom: 18px;
}

.category-overview-card a {
    min-height: 100%;
}

.category-cover {
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #fbcfe8, #bfdbfe, #bbf7d0);
}

.category-overview-body {
    padding: 22px;
}

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

.mini-title-list span {
    max-width: 100%;
    overflow: hidden;
    padding: 6px 10px;
    color: #475569;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 999px;
    background: #f8fafc;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.sticky-filter {
    position: sticky;
    top: 88px;
    z-index: 12;
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 999px;
    background: #fff;
    outline: 0;
}

.filter-bar input {
    flex: 1 1 360px;
    padding: 0 18px;
}

.filter-bar select {
    flex: 0 0 150px;
    padding: 0 16px;
}

.empty-state {
    display: none;
    margin: 36px 0;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
    color: #64748b;
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-top: 24px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: linear-gradient(135deg, #fbcfe8, #bfdbfe, #bbf7d0);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.detail-info h1 {
    color: #0f172a;
}

.detail-one-line {
    margin: 20px 0 0;
    color: #475569;
    font-size: 1.12rem;
}

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

.detail-meta span {
    padding: 8px 12px;
    color: #334155;
    font-weight: 800;
    border-radius: 999px;
    background: #f8fafc;
}

.detail-tags span {
    color: var(--pink-dark);
    border-color: rgba(236, 72, 153, 0.18);
    background: rgba(252, 231, 243, 0.78);
}

.detail-info .btn {
    margin-top: 28px;
}

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

.video-element {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.42), rgba(15, 23, 42, 0.56));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 6px;
    color: var(--pink-dark);
    font-size: 2.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 45px rgba(255, 255, 255, 0.28);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.detail-content article {
    padding: 24px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.74);
}

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

.info-table div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
}

.info-table span {
    color: #64748b;
}

.info-table strong {
    color: #0f172a;
    text-align: right;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.95));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 28px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    color: #0f172a;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #64748b;
}

.footer-grid a:hover {
    color: var(--pink-dark);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        flex-wrap: wrap;
        min-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav,
    .nav-search {
        display: none;
        width: 100%;
    }

    .site-nav.is-open,
    .nav-search.is-open {
        display: flex;
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-bottom: 12px;
    }

    .nav-search {
        margin-bottom: 14px;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }

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

    .hero-content {
        min-height: 540px;
        padding: 34px;
    }

    .hero-control {
        display: none;
    }

    .hero-dots {
        right: auto;
        left: 34px;
    }

    .intro-panel,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(340px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .info-table {
        grid-template-columns: 1fr;
    }

    .hero-carousel,
    .page-hero,
    .detail-hero,
    .section-shell,
    .breadcrumb {
        width: min(100% - 20px, 1200px);
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 2.35rem;
        letter-spacing: -0.06em;
    }

    .hero-content,
    .ranking-hero > div,
    .detail-hero,
    .intro-panel,
    .page-hero,
    .detail-content,
    .player-section,
    .category-hero {
        padding: 22px;
    }

    .filter-bar input,
    .filter-bar select {
        flex: 1 1 100%;
    }

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