:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --pink-soft: #fce7f3;
    --blue: #60a5fa;
    --blue-soft: #dbeafe;
    --purple: #a855f7;
    --purple-soft: #f3e8ff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #ffffff;
    --soft-bg: #fdf2f8;
    --shadow: 0 22px 55px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.brand-text {
    font-size: 26px;
    color: transparent;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 9px 15px;
}

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

.nav-search,
.mobile-search,
.search-panel,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.mobile-search input,
.filter-input,
.filter-select {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
    width: 160px;
    padding: 9px 13px;
}

.nav-search button,
.mobile-search button {
    border: none;
    border-radius: 999px;
    padding: 9px 15px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    cursor: pointer;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 14px;
    background: var(--pink-soft);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--pink-dark);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-link {
    display: block;
    padding: 11px 13px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #f9a8d4 0%, #c084fc 50%, #93c5fd 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.42), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.25), transparent 26%),
        rgba(0, 0, 0, 0.12);
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 48px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--pink-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero h2 {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.2;
    backdrop-filter: blur(12px);
}

.hero p {
    max-width: 700px;
    margin: 0 0 24px;
    font-size: clamp(17px, 2.2vw, 22px);
    color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span {
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
}

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

.primary-btn,
.ghost-btn,
.quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.primary-btn:hover,
.ghost-btn:hover,
.quick-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(31, 41, 55, 0.16);
}

.hero-poster {
    position: relative;
    width: min(320px, 100%);
    justify-self: end;
    border-radius: 34px;
    overflow: hidden;
    transform: rotate(3deg);
    box-shadow: 0 28px 70px rgba(31, 41, 55, 0.28);
}

.hero-poster::before {
    content: "";
    display: block;
    padding-top: 132%;
}

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

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 88px;
    display: flex;
    gap: 10px;
}

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

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

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 92px;
}

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

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

.center-head {
    display: block;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.section-head p:not(.eyebrow),
.center-head p:not(.eyebrow),
.page-hero p {
    color: var(--muted);
}

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

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

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

.category-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 30px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(31, 41, 55, 0.18);
}

.category-card-1 {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.category-card-2 {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.category-card-3 {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}

.category-card-4 {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.category-card-5 {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.category-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    font-weight: 900;
}

.category-card strong {
    margin-top: 18px;
    font-size: 23px;
}

.category-card small {
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #e5e7eb;
    box-shadow: 0 13px 30px rgba(31, 41, 55, 0.12);
}

.movie-poster::before {
    content: "";
    display: block;
    padding-top: 136%;
}

.movie-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.78));
}

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: var(--pink);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px 12px 12px;
    color: #ffffff;
}

.movie-caption strong,
.movie-caption small {
    display: block;
}

.movie-caption strong {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-caption small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.82);
}

.band-section {
    background: linear-gradient(90deg, rgba(243, 232, 255, 0.9), rgba(252, 231, 243, 0.9), rgba(219, 234, 254, 0.9));
}

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

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

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

.rank-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card a {
    display: grid;
    grid-template-columns: auto 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
}

.rank-card img {
    width: 62px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
}

.rank-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

.rank-card strong,
.rank-card small {
    display: block;
}

.rank-card strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-card small {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    background: linear-gradient(120deg, #f9a8d4 0%, #c084fc 54%, #93c5fd 100%);
}

.page-hero-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 18px;
}

.filter-panel,
.search-panel {
    position: sticky;
    top: 88px;
    z-index: 10;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(16px);
}

.filter-input,
.filter-select {
    min-height: 46px;
    padding: 0 16px;
}

.filter-input.wide {
    min-width: min(360px, 100%);
    flex: 1 1 280px;
}

.filter-select {
    min-width: 140px;
}

.quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.quick-links a {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-section {
    padding-top: 36px;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
    cursor: pointer;
}

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

.big-play {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.42);
    font-size: 30px;
}

.detail-card,
.side-card {
    margin-top: 22px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-card {
    padding: clamp(24px, 4vw, 38px);
}

.detail-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--pink-dark);
    background: var(--pink-soft);
    font-weight: 900;
}

.detail-card h1 {
    margin-top: 16px;
    font-size: clamp(32px, 4vw, 52px);
}

.detail-card h2,
.side-card h2 {
    margin: 28px 0 12px;
    font-size: 22px;
}

.detail-card p {
    color: #4b5563;
    font-size: 16px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 700;
}

.detail-card .tag-list span {
    color: #374151;
    background: #f3f4f6;
}

.detail-cover {
    width: 100%;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e5e7eb;
    box-shadow: var(--shadow);
}

.side-card {
    padding: 24px;
}

.side-card dl {
    margin: 0 0 24px;
}

.side-card div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--text);
}

.full-btn {
    width: 100%;
}

.site-footer {
    margin-top: 36px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-brand {
    color: var(--pink-dark);
    font-size: 24px;
}

.footer-shell p,
.footer-links a,
.footer-bottom {
    color: var(--muted);
}

.footer-shell h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
}

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

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

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

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

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        min-height: 620px;
        padding: 44px 0 130px;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-shell {
        min-height: 620px;
    }

    .hero-poster {
        width: min(250px, 78vw);
        justify-self: start;
    }

    .hero-dots {
        bottom: 96px;
    }

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

    .rank-grid,
    .rank-list,
    .detail-layout,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .detail-side {
        order: -1;
    }

    .detail-cover {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .brand-text {
        font-size: 22px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 10px;
    }

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

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

    .rank-card a {
        grid-template-columns: auto 54px minmax(0, 1fr);
    }

    .rank-card img {
        width: 54px;
        height: 72px;
    }

    .page-hero-shell {
        padding: 54px 0;
    }

    .filter-panel,
    .search-panel {
        position: relative;
        top: auto;
        display: grid;
    }

    .filter-input,
    .filter-select,
    .filter-input.wide {
        width: 100%;
        min-width: 0;
    }

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

    .hero h2 {
        font-size: 25px;
    }
}
