:root {
    color-scheme: light;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --orange: #f97316;
    --blue: #3b82f6;
    --green: #10b981;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --card: #ffffff;
    --border: rgba(236, 72, 153, 0.14);
    --shadow: 0 22px 55px rgba(139, 92, 246, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 48%, #fdf2f8 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.32);
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--pink);
    background: rgba(236, 72, 153, 0.1);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.header-search input,
.home-search-band input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
}

.header-search button,
.home-search-band button {
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 9px 15px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

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

.hero-shade,
.detail-backdrop-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1180px) / 2));
    top: 50%;
    width: min(640px, calc(100% - 48px));
    transform: translateY(-50%);
    color: white;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    background: var(--pink);
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.36);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-content h1 {
    font-size: clamp(40px, 6vw, 70px);
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.7;
}

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

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

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

.hero-tags span {
    color: white;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

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

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.list-card:hover {
    transform: translateY(-3px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: white;
    font-size: 42px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: white;
}

.home-search-band,
.content-section,
.page-main,
.detail-content,
.detail-nav-row,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-band {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    margin-top: 36px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.home-search-band h2,
.section-head h2,
.panel-title h2,
.story-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.home-search-band p,
.section-head p,
.category-tile p,
.category-overview-body p,
.story-card p {
    color: var(--muted);
    line-height: 1.75;
}

.home-search-band form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: white;
    box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.9);
}

.home-search-band input {
    flex: 1;
    padding: 13px 16px;
}

.content-section {
    margin-top: 54px;
}

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

.section-link,
.panel-title a {
    color: var(--pink);
    font-weight: 900;
}

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

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

.category-movie-grid {
    margin-top: 22px;
}

.movie-card,
.list-card,
.category-tile,
.category-overview-card,
.story-card,
.ranking-panel,
.filter-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 14px 34px rgba(139, 92, 246, 0.12);
}

.movie-card {
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 54px rgba(236, 72, 153, 0.18);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

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

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

.region-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.region-badge {
    top: 12px;
    left: 12px;
    background: var(--pink);
}

.year-badge {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    right: 12px;
    top: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-glow {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    font-size: 54px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.32);
    transition: opacity 0.24s ease;
}

.movie-card:hover .play-glow {
    opacity: 1;
}

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

.movie-card-body h3,
.list-card h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card-body p,
.list-card p {
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

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

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #be185d;
    padding: 5px 8px;
    background: #fce7f3;
}

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

.compact-card .movie-card-body p,
.compact-card .tag-row {
    display: none;
}

.compact-card .movie-card-body {
    padding: 12px;
}

.compact-card .movie-card-body h3 {
    font-size: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    align-items: start;
}

.list-stack,
.ranking-list,
.ranking-page-list {
    display: grid;
    gap: 14px;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 28px;
}

.list-card {
    border-radius: 22px;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.list-card-link {
    display: grid;
    grid-template-columns: auto 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.list-card img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.78));
}

.category-tile div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: white;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.page-main {
    padding-bottom: 64px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: 56px;
    border-radius: 38px;
    color: #111827;
    background: radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.28), transparent 30%), radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.25), transparent 28%), rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
}

.page-hero p {
    max-width: 820px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px rgba(229, 231, 235, 0.95);
}

.empty-state {
    padding: 34px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: white;
}

.category-overview-card {
    overflow: hidden;
    border-radius: 28px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 170px;
    overflow: hidden;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.category-overview-body h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 950;
}

.category-overview-body span {
    color: var(--pink);
    font-weight: 900;
}

.ranking-page-list .list-card-link {
    grid-template-columns: auto 110px minmax(0, 1fr);
}

.ranking-page-list .list-card img {
    width: 110px;
    height: 148px;
}

.detail-main {
    padding-bottom: 64px;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.02);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 42px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 800;
}

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

.detail-info h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.detail-info p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: white;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-tags span {
    color: white;
    padding: 7px 12px;
    background: rgba(236, 72, 153, 0.75);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #050505;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: white;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    font-size: 42px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 22px 52px rgba(236, 72, 153, 0.44);
}

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

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

.story-card {
    padding: 28px;
    border-radius: 30px;
}

.story-card p {
    margin-bottom: 0;
    font-size: 16px;
}

.detail-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.detail-nav-row a {
    flex: 1;
    padding: 18px 22px;
    border-radius: 20px;
    color: var(--pink);
    font-weight: 900;
    background: white;
    border: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.1);
}

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

.site-footer {
    margin-top: 70px;
    padding: 38px 0;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
    color: var(--pink);
    font-weight: 900;
}

@media (max-width: 1060px) {
    .header-search {
        display: none;
    }

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

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

    .two-column-section,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

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

    .mobile-nav.open {
        display: grid;
        gap: 8px;
    }

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

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

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

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 34px;
    }

    .home-search-band {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .home-search-band form {
        border-radius: 24px;
        flex-direction: column;
    }

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

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

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

    .list-card-link,
    .ranking-page-list .list-card-link {
        grid-template-columns: auto 78px minmax(0, 1fr);
        gap: 12px;
    }

    .list-card img,
    .ranking-page-list .list-card img {
        width: 78px;
        height: 104px;
    }

    .list-card p {
        -webkit-line-clamp: 1;
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 28px;
    }

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

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0;
    }

    .detail-poster {
        width: min(260px, 78vw);
    }

    .detail-nav-row {
        flex-direction: column;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .featured-grid,
    .poster-strip,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .footer-links {
        flex-direction: column;
    }
}
