:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.10);
    --shadow-lg: 0 25px 55px rgba(236, 72, 153, 0.18);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 36%, #fffaf0 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--pink-100);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--amber-500));
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.45rem;
    background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 600;
}

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

.nav-link {
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-menu {
    position: relative;
}

.nav-menu-button {
    padding: 0;
    border: 0;
    background: transparent;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(88px, 1fr));
    gap: 6px;
    min-width: 250px;
    padding: 12px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pink-100);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-menu:hover .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.nav-dropdown a {
    padding: 10px 12px;
    color: var(--gray-700);
    border-radius: 12px;
    font-weight: 650;
}

.nav-dropdown a:hover {
    color: var(--pink-500);
    background: var(--pink-50);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--pink-50);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-800);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--pink-100);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

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

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--pink-50);
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    isolation: isolate;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.22), transparent 35%), radial-gradient(circle at 75% 18%, rgba(245, 158, 11, 0.20), transparent 32%), linear-gradient(135deg, #fff1f9 0%, #ffffff 48%, #fff7df 100%);
}

.hero-stage {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
    padding: 72px 0 90px;
    opacity: 0;
    transform: translateX(26px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--pink-600);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1, .hero h2 {
    max-width: 760px;
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero h1 span, .gradient-text {
    background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--gray-700);
    font-size: 1.08rem;
}

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

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

.hero-tags span, .tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--pink-600);
    background: rgba(252, 231, 243, 0.85);
    border: 1px solid rgba(251, 207, 232, 0.95);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.hero-actions, .page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(236, 72, 153, 0.28);
}

.btn-soft {
    color: var(--pink-600);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--pink-200);
}

.btn-soft:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.hero-art {
    position: relative;
    min-height: 500px;
}

.hero-poster {
    position: absolute;
    top: 14px;
    right: 26px;
    width: min(420px, 80%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), var(--amber-100));
    border: 14px solid rgba(255, 255, 255, 0.82);
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2.2deg);
}

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

.hero-float-card {
    position: absolute;
    left: 0;
    bottom: 60px;
    width: min(330px, 72%);
    padding: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-900);
    font-size: 1.05rem;
}

.hero-float-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

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

.hero-dot {
    width: 34px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.24);
}

.hero-dot.active {
    background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
}

.page-hero {
    padding: 70px 0 38px;
    background: linear-gradient(135deg, #fff1f9 0%, #ffffff 55%, #fff6dc 100%);
}

.page-hero-card {
    display: grid;
    gap: 16px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--pink-100);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.page-hero h1, .detail-title h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--gray-600);
    font-size: 1.04rem;
}

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

.content-section.compact {
    padding-top: 34px;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.section-more {
    color: var(--pink-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--pink-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--pink-200);
    box-shadow: var(--shadow-md);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), var(--amber-100));
}

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

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--amber-500));
    border-radius: 12px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

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

.movie-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.score {
    color: var(--amber-500);
    font-weight: 900;
}

.movie-meta, .movie-desc {
    margin: 8px 0 0;
    color: var(--gray-500);
    font-size: 0.84rem;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.92), rgba(255, 255, 255, 0.9) 48%, rgba(254, 243, 199, 0.92));
    border: 1px solid var(--pink-100);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card:after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -32px;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.20), transparent 70%);
    border-radius: 999px;
}

.category-card h2, .category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--gray-900);
    font-size: 1.35rem;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: var(--gray-600);
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 18px;
    color: var(--pink-600);
    font-weight: 800;
}

.search-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--pink-100);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid var(--pink-100);
    border-radius: 999px;
}

.search-box span {
    color: var(--pink-500);
    font-size: 1.25rem;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--gray-800);
    background: transparent;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-chip {
    min-height: 34px;
    padding: 0 13px;
    color: var(--gray-700);
    background: #ffffff;
    border: 1px solid var(--pink-100);
    border-radius: 999px;
    font-weight: 750;
}

.filter-chip.active, .filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--amber-500));
    border-color: transparent;
}

.empty-state {
    display: none;
    padding: 30px;
    color: var(--gray-500);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--pink-100);
    border-radius: 22px;
}

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

.detail-title {
    padding: 56px 0 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--gray-500);
    font-weight: 700;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-meta span {
    padding: 7px 11px;
    color: var(--gray-700);
    background: #ffffff;
    border: 1px solid var(--pink-100);
    border-radius: 999px;
    font-weight: 750;
}

.player-card, .detail-panel, .side-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--pink-100);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

.player-card {
    overflow: hidden;
}

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

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.76));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-start {
    display: inline-grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--amber-500));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.30);
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.player-start:hover {
    transform: scale(1.08);
}

.player-caption {
    padding: 16px 20px;
    color: var(--gray-600);
}

.detail-panel {
    padding: 26px;
}

.detail-panel h2, .side-panel h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 1.35rem;
}

.detail-panel p {
    margin: 0 0 18px;
    color: var(--gray-700);
}

.side-panel {
    padding: 20px;
}

.side-poster {
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 20px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--pink-100), var(--amber-100));
}

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

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 56px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--pink-100);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.ranking-row img {
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--amber-500));
    border-radius: 14px;
    font-weight: 900;
}

.ranking-row h2, .ranking-row h3 {
    margin: 0;
    font-size: 1.05rem;
}

.ranking-row p {
    margin: 6px 0 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.ranking-row .btn {
    min-height: 38px;
    padding: 0 14px;
}

.site-footer {
    margin-top: 40px;
    background: linear-gradient(180deg, #fff7fb, var(--pink-100));
    border-top: 1px solid var(--pink-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    padding: 46px 0 30px;
}

.site-footer p {
    max-width: 500px;
    color: var(--gray-600);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 1.05rem;
}

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

.footer-links a {
    color: var(--gray-600);
    font-weight: 700;
}

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

.footer-bottom {
    padding: 18px 0 24px;
    color: var(--gray-500);
    text-align: center;
    border-top: 1px solid rgba(251, 207, 232, 0.86);
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero, .hero-stage {
        min-height: 820px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 44px 0 80px;
    }

    .hero-art {
        min-height: 390px;
    }

    .hero-poster {
        right: 0;
        left: 14%;
        width: 72%;
    }

    .hero-float-card {
        left: 0;
        bottom: 24px;
    }

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

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

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

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

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

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

    .ranking-row {
        grid-template-columns: 42px 62px minmax(0, 1fr);
    }

    .ranking-row .btn {
        grid-column: 2 / -1;
    }

    .page-hero-card, .detail-panel {
        padding: 22px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        display: none;
    }
}
