:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #fb923c;
    --orange-dark: #ea580c;
    --yellow: #facc15;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8ff;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(236, 72, 153, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 45%, #fefce8 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 34px rgba(249, 168, 212, 0.18);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
    transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small,
.footer-brand small {
    display: block;
    margin-top: 6px;
    color: #8a8f98;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    padding: 10px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

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

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #fee2e2;
    background: #fff;
    padding: 12px 16px 18px;
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #f472b6 0%, #fb923c 54%, #facc15 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(circle at 20% 20%, #fff 0 3px, transparent 4px), radial-gradient(circle at 80% 30%, #fff 0 4px, transparent 5px), radial-gradient(circle at 50% 80%, #fff 0 5px, transparent 6px);
    background-size: 70px 70px, 110px 110px, 90px 90px;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: 48px;
    min-height: 680px;
    padding: 70px 0 110px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero h1 span {
    color: #fff7c7;
    text-shadow: 0 8px 28px rgba(124, 45, 18, 0.18);
}

.hero-copy {
    max-width: 650px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: var(--pink-dark);
    background: #fff;
    box-shadow: 0 18px 36px rgba(126, 34, 206, 0.18);
}

.btn-ghost {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.hero-slider {
    position: relative;
    min-height: 510px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.48s ease, transform 0.48s ease;
}

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

.hero-card {
    position: relative;
    height: 510px;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 35px 80px rgba(124, 45, 18, 0.28);
}

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

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.08) 60%, rgba(255, 255, 255, 0.04));
}

.hero-card-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
}

.hero-card-content h2 {
    margin: 10px 0 8px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.1;
}

.hero-card-content p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(236, 72, 153, 0.88);
    font-size: 13px;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 28px;
    bottom: -34px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

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

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

.main-section.white {
    background: #fff;
}

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

.section-heading p {
    margin: 0 0 8px;
    color: var(--pink-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-more {
    flex: none;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: #fff;
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.13);
    font-weight: 800;
}

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

.feature-box {
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease;
}

.feature-box:nth-child(2) {
    background: linear-gradient(135deg, #fff, #fdf2f8);
}

.feature-box:nth-child(3) {
    background: linear-gradient(135deg, #fff, #fefce8);
}

.feature-box:hover {
    transform: translateY(-6px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-size: 26px;
}

.feature-box h2,
.feature-box h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.feature-box p {
    margin: 0;
    color: var(--muted);
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: 0 12px 34px rgba(251, 146, 60, 0.14);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.18);
}

.category-tile span {
    position: absolute;
    top: -30px;
    right: -20px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(251, 146, 60, 0.25));
}

.category-tile strong {
    position: relative;
    display: block;
    padding: 28px 22px 8px;
    font-size: 23px;
}

.category-tile small {
    position: relative;
    display: block;
    padding: 0 22px 24px;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 24px 54px rgba(236, 72, 153, 0.22);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 45%);
}

.poster-year {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.66);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--pink-dark);
    background: #fff;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

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

.card-meta-row,
.fine-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta-row strong {
    color: #f59e0b;
    font-size: 14px;
}

.movie-card h2 {
    display: -webkit-box;
    min-height: 46px;
    margin: 8px 0;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: linear-gradient(90deg, #fce7f3, #ffedd5);
    font-size: 11px;
    font-weight: 800;
}

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

.rank-panel {
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #fdf2f8;
    transform: translateX(4px);
}

.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.rank-item img {
    width: 54px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-content strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.page-hero {
    padding: 70px 0 40px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8 48%, #fefce8);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-panel {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(236, 72, 153, 0.12);
}

.search-box {
    position: relative;
    flex: 1 1 340px;
}

.search-box span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 20px;
}

.search-box input,
.filter-select {
    width: 100%;
    height: 48px;
    border: 1px solid #f5d0fe;
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: #374151;
    font: inherit;
}

.search-box input {
    padding: 0 16px 0 45px;
}

.filter-select {
    min-width: 150px;
    padding: 0 14px;
}

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

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.detail-main,
.detail-side,
.related-section {
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-main {
    overflow: hidden;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.18));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--pink-dark);
    background: #fff;
    font-size: 34px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #374151;
    background: #fff7ed;
    font-size: 14px;
    font-weight: 800;
}

.detail-block {
    margin-top: 26px;
}

.detail-block h2 {
    margin: 0 0 10px;
    color: var(--pink-dark);
    font-size: 22px;
}

.detail-block p {
    margin: 0;
    color: #4b5563;
}

.detail-side {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.side-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

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

.side-info {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #fce7f3;
}

.info-row span:first-child {
    color: var(--muted);
}

.info-row strong {
    text-align: right;
}

.related-section {
    margin-top: 28px;
    padding: 26px;
}

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

.site-footer {
    color: #f9fafb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 52px 0 36px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #f9a8d4;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li,
.footer-bottom {
    color: #cbd5e1;
    font-size: 14px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a:hover {
    color: #f9a8d4;
}

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

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .detail-side {
        position: static;
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .brand-text strong {
        font-size: 21px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 54px 0 100px;
    }

    .hero-slider {
        min-height: 460px;
    }

    .hero-card {
        height: 430px;
    }

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

    .filter-panel {
        display: grid;
    }
}

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

    .header-inner {
        height: 66px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-card {
        height: 390px;
        border-radius: 26px;
    }

    .hero-card-content {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

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

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

    .main-section {
        padding: 48px 0;
    }

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

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

    .detail-content,
    .related-section {
        padding: 20px;
    }

    .play-core {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
