:root {
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --text: #1f2937;
    --muted: #667085;
    --line: #ffe4ef;
    --soft: #fff5f8;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.16);
    --shadow-soft: 0 10px 26px rgba(236, 72, 153, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 45%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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, 247, 251, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.08);
}

.header-inner,
.footer-inner,
.content-section,
.featured-strip,
.home-search,
.filter-panel,
.seo-block,
.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
    font-size: 14px;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #475467;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--red);
    background: #ffe8f2;
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    color: var(--text);
    background: transparent;
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.23);
}

.ghost-button {
    color: #d92d20;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #ffd4e6;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffe8f2;
    color: var(--red);
    font-weight: 900;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    border-top: 1px solid var(--line);
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe1ef 0%, #fff1f1 50%, #fff2df 100%);
    border-bottom: 1px solid var(--line);
}

.hero-track {
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

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

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.08em;
    background: linear-gradient(90deg, var(--pink), var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h2 {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 46px);
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: #475467;
    font-size: clamp(16px, 2vw, 20px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--pink);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-tags span,
.detail-tags span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #7a271a;
    border: 1px solid #ffd2e3;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.10);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-actions.single-line {
    justify-content: center;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(239, 68, 68, 0.26);
    border: 8px solid rgba(255, 255, 255, 0.72);
    transform: rotate(2deg);
}

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

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

.hero-poster span,
.play-hover {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    font-weight: 900;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.22;
    filter: blur(2px);
    animation: pulse 3.8s ease-in-out infinite;
}

.orb-one {
    width: 120px;
    height: 120px;
    left: 7%;
    top: 10%;
    background: var(--pink);
}

.orb-two {
    width: 160px;
    height: 160px;
    right: 10%;
    top: 18%;
    background: var(--red);
    animation-delay: 0.8s;
}

.orb-three {
    width: 140px;
    height: 140px;
    left: 35%;
    bottom: 12%;
    background: var(--orange);
    animation-delay: 1.4s;
}

@keyframes pulse {
    50% {
        transform: scale(1.18);
        opacity: 0.12;
    }
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffc2d9;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.featured-strip {
    position: relative;
    z-index: 5;
    margin-top: -70px;
}

.content-section,
.home-search,
.filter-panel,
.seo-block {
    padding: 58px 0;
}

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

.section-heading.compact {
    display: block;
    margin-bottom: 20px;
}

.section-heading h2,
.seo-block h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--pink);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid #fff0f6;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe1ef, #fff2df);
}

.three-col .movie-cover {
    aspect-ratio: 16 / 9;
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.play-hover {
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.movie-info {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.movie-info strong {
    overflow: hidden;
    color: #202939;
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-info em,
.movie-info small {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.movie-info small {
    display: -webkit-box;
    min-height: 39px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-card,
.filter-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}

.search-card {
    padding: 32px;
}

.filter-panel {
    padding: 36px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.filter-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-controls input,
.filter-controls select {
    min-height: 48px;
    border: 1px solid #ffd8e8;
    border-radius: 16px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.07);
}

.filter-controls input {
    flex: 1;
    padding: 0 16px;
}

.filter-controls select {
    width: 170px;
    padding: 0 13px;
}

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

.category-card,
.category-large {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #fff4f8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
    min-height: 150px;
    padding: 24px;
}

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

.category-card span,
.category-large strong {
    display: block;
    color: #c11574;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-card strong,
.category-large small {
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

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

.category-large {
    min-height: 240px;
}

.category-large img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    filter: saturate(1.05);
}

.category-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.72));
}

.category-large span {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
}

.category-large em,
.category-large small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 46px 72px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #fff0f6;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    color: var(--pink);
    font-weight: 900;
    font-size: 22px;
    text-align: center;
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy {
    min-width: 0;
}

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

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    justify-self: end;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red));
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
}

.page-hero {
    margin-top: 34px;
    padding: 76px 34px;
    text-align: center;
    background: linear-gradient(135deg, #ffe6f1, #fff6e8);
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
}

.small-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.small-hero p {
    margin-left: auto;
    margin-right: auto;
}

.detail-hero {
    padding: 34px 0 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #667085;
    font-size: 14px;
    margin-bottom: 22px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
}

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

.player-mask {
    position: absolute;
    inset: 0;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(1.05);
}

.player-mask button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    font-size: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.player-card.is-playing .player-mask {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-copy {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-stats span {
    padding: 14px;
    border-radius: 18px;
    color: #667085;
    background: #fff5f8;
    border: 1px solid var(--line);
    font-size: 13px;
}

.detail-stats strong {
    display: block;
    color: var(--text);
    font-size: 18px;
}

.detail-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
}

.detail-text article,
.detail-text aside,
.seo-block {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.detail-text article,
.detail-text aside {
    padding: 30px;
}

.detail-text p,
.seo-block p {
    color: #475467;
    font-size: 16px;
}

.detail-text dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    margin: 0;
}

.detail-text dt {
    color: #98a2b3;
    font-weight: 800;
}

.detail-text dd {
    margin: 0;
    color: #344054;
}

.seo-block {
    padding: 34px;
    margin-bottom: 34px;
}

.site-footer {
    margin-top: 36px;
    padding: 50px 0 26px;
    background: linear-gradient(180deg, #fff7fb, #ffffff);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 38px;
}

.footer-inner p {
    color: var(--muted);
    max-width: 560px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 12px;
    color: #344054;
}

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

.footer-links a {
    color: var(--muted);
}

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 24px;
    color: #98a2b3;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 13px;
}

[data-card].is-hidden {
    display: none;
}

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

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 26px;
        padding: 36px 0 80px;
    }

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
        transform: rotate(0);
    }

    .movie-grid,
    .movie-grid.three-col,
    .home-grid,
    .related-grid,
    .rank-grid,
    .category-large-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls select {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .footer-inner,
    .content-section,
    .featured-strip,
    .home-search,
    .filter-panel,
    .seo-block,
    .page-hero,
    .detail-hero {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.05em;
    }

    .movie-grid,
    .movie-grid.three-col,
    .home-grid,
    .related-grid,
    .rank-grid,
    .category-grid,
    .category-large-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 38px 58px minmax(0, 1fr) 46px;
        gap: 10px;
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .search-card,
    .filter-panel,
    .detail-copy,
    .detail-text article,
    .detail-text aside,
    .seo-block,
    .page-hero {
        padding: 24px;
        border-radius: 24px;
    }

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