:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --soft: #fff1f7;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fbcfe8;
    --card: #ffffff;
    --shadow: 0 20px 55px rgba(244, 63, 94, 0.14);
}

body {
    color: var(--ink);
    background: linear-gradient(180deg, #fff7fb 0%, #fff 48%, #fff7fb 100%);
}

img {
    background: linear-gradient(135deg, #ffe4ef 0%, #fff7fb 100%);
}

.site-header {
    backdrop-filter: blur(16px);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #f472b6, #fb7185);
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.28);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.logo-link:hover .logo-mark {
    transform: scale(1.08);
}

.logo-text-wrap {
    display: none;
    line-height: 1.12;
}

.logo-title {
    display: block;
    font-size: 1.24rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-subtitle {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 650;
    color: #374151;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    width: 13rem;
    padding: 0.45rem;
    border: 1px solid #ffe4ef;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 25px 60px rgba(31, 41, 55, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.4rem);
    transition: all 0.2s ease;
}

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

.dropdown-link {
    display: block;
    padding: 0.62rem 0.78rem;
    border-radius: 0.7rem;
    color: #4b5563;
    font-size: 0.92rem;
}

.dropdown-link:hover {
    color: var(--pink);
    background: #fff1f7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-search {
    display: none;
    position: relative;
}

.header-search input,
.mobile-search input,
.filter-search input {
    width: 100%;
    border: 1px solid #fce7f3;
    border-radius: 999px;
    background: #fff;
    padding: 0.74rem 2.75rem 0.74rem 1.1rem;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus {
    border-color: #f9a8d4;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.16);
}

.header-search button {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    transform: translateY(-50%);
    color: white;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.mobile-menu-button,
.mobile-search button {
    border-radius: 0.8rem;
    color: #374151;
    background: #fff1f7;
    padding: 0.62rem 0.82rem;
}

.mobile-panel {
    display: none;
    padding: 1rem 0 1.15rem;
    border-top: 1px solid #fce7f3;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.mobile-nav {
    display: grid;
    gap: 0.35rem;
}

.mobile-nav-link {
    padding: 0.72rem 0.9rem;
    border-radius: 0.85rem;
    color: #4b5563;
    background: #fff;
}

.mobile-nav-link:hover {
    color: var(--pink);
    background: #fff1f7;
}

.main-wrap {
    min-height: 64vh;
}

.hero {
    position: relative;
    height: 440px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 44rem;
    color: white;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    font-size: 0.88rem;
    font-weight: 750;
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.32);
}

.hero-copy h1,
.hero-copy h2 {
    margin-top: 1rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 42rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.86rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.primary-button,
.secondary-button,
.section-more,
.detail-play-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.78rem 1.35rem;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.detail-play-link {
    color: white;
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.26);
}

.secondary-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.detail-play-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    transform: translateY(-50%);
    color: #111827;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.hero-arrow:hover {
    background: white;
}

.hero-arrow.prev {
    left: 1rem;
}

.hero-arrow.next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 1.2rem;
    display: flex;
    gap: 0.52rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 2.2rem;
    background: white;
}

.content-section,
.page-hero,
.detail-wrap {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section {
    margin-top: 4rem;
}

.page-hero {
    padding-top: 3.2rem;
}

.page-hero-card {
    border: 1px solid #ffe4ef;
    border-radius: 1.8rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.8rem);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 50rem;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 1.05rem;
}

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

.section-heading h2 {
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.15;
    font-weight: 820;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin-top: 0.42rem;
    color: var(--muted);
}

.section-more {
    padding: 0.58rem 1rem;
    color: var(--pink);
    background: #fff1f7;
}

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

.movie-list {
    display: grid;
    gap: 1rem;
}

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid #ffe4ef;
    border-radius: 1.12rem;
    background: white;
    box-shadow: 0 8px 26px rgba(31, 41, 55, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #f9a8d4;
    box-shadow: 0 18px 46px rgba(236, 72, 153, 0.16);
}

.movie-card-list {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff1f7;
}

.card-cover-list {
    aspect-ratio: auto;
    min-height: 7.5rem;
}

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

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

.card-badge,
.rank-badge,
.detail-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    font-size: 0.75rem;
    font-weight: 750;
}

.card-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.32rem 0.66rem;
}

.rank-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.32rem 0.66rem;
    background: linear-gradient(90deg, #f97316, #ec4899);
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3.4rem;
    height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ec4899;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-hover-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    font-size: 0.88rem;
    transform: translateY(0.35rem);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-hover-text {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 1rem;
}

.card-body h2,
.card-body h3 {
    color: #1f2937;
    font-weight: 760;
    line-height: 1.28;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    margin-top: 0.52rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.card-body-list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.card-body-list h2 {
    font-size: 1.08rem;
}

.card-body-list p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin-top: 0.72rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    background: #fff1f7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.26rem 0.6rem;
    color: #be185d;
    background: #fce7f3;
    font-size: 0.78rem;
}

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

.category-card {
    border: 1px solid #ffe4ef;
    border-radius: 1.3rem;
    padding: 1.25rem;
    background: white;
    box-shadow: 0 10px 34px rgba(31, 41, 55, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.category-card p {
    margin-top: 0.55rem;
    color: #6b7280;
    line-height: 1.65;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 1rem;
}

.category-samples span {
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
    color: #be185d;
    background: #fce7f3;
    font-size: 0.8rem;
}

.filter-panel {
    display: grid;
    gap: 0.9rem;
    border: 1px solid #ffe4ef;
    border-radius: 1.4rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 40px rgba(31, 41, 55, 0.06);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    border-radius: 999px;
    padding: 0.52rem 0.9rem;
    color: #4b5563;
    background: #fff1f7;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: white;
    background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.empty-state {
    display: none;
    border: 1px dashed #f9a8d4;
    border-radius: 1.2rem;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    background: #fff7fb;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 2.2rem 2.2rem;
    background: #111827;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    min-height: 26rem;
    object-fit: cover;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.58;
}

.detail-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.92));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    gap: 1.5rem;
    color: white;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1.5rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

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

.detail-info h1 {
    margin-top: 0.9rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 54rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.72;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.detail-meta span,
.detail-badge {
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    font-size: 0.86rem;
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.detail-wrap {
    margin-top: 3rem;
}

.player-box {
    overflow: hidden;
    border: 1px solid #ffe4ef;
    border-radius: 1.5rem;
    background: #0f172a;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.16));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.player-button {
    position: relative;
    z-index: 1;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    color: #ec4899;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.player-button:hover {
    transform: scale(1.06);
}

.player-title-bar {
    padding: 1rem 1.2rem;
    color: white;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.22), rgba(244, 63, 94, 0.1));
}

.detail-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-article,
.detail-side {
    border: 1px solid #ffe4ef;
    border-radius: 1.4rem;
    padding: 1.25rem;
    background: white;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.06);
}

.detail-article h2,
.detail-side h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.detail-article p {
    margin-top: 0.85rem;
    color: #4b5563;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #be185d;
}

.related-list {
    display: grid;
    gap: 0.7rem;
}

.related-link {
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    border-radius: 0.95rem;
    padding: 0.55rem;
    background: #fff7fb;
}

.related-link:hover {
    background: #fce7f3;
}

.related-link img {
    width: 5.4rem;
    height: 3.2rem;
    border-radius: 0.7rem;
    object-fit: cover;
}

.related-link strong {
    display: block;
    overflow: hidden;
    color: #1f2937;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-link span {
    display: block;
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid #fbcfe8;
    background: linear-gradient(135deg, #fff1f7, #fff);
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-grid h2 {
    margin-bottom: 0.8rem;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: #6b7280;
    line-height: 1.75;
}

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

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid #fbcfe8;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.88rem;
}

@media (min-width: 640px) {
    .logo-text-wrap {
        display: block;
    }

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

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

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .header-search {
        display: block;
        width: min(24vw, 18rem);
    }

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

    .hero {
        height: 500px;
    }

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

    .detail-hero-inner {
        grid-template-columns: minmax(19rem, 28rem) minmax(0, 1fr);
        align-items: center;
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1fr) 22rem;
        align-items: start;
    }

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

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

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

@media (max-width: 767px) {
    .hero-arrow {
        display: none;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 4.2rem;
    }

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

    .movie-card-list {
        grid-template-columns: 1fr;
    }

    .card-cover-list {
        aspect-ratio: 16 / 9;
    }
}
