:root {
    --pink: #ec4899;
    --pink-soft: #fce7f3;
    --purple: #8b5cf6;
    --purple-soft: #ede9fe;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d4e4;
    --card: rgba(255, 255, 255, 0.94);
    --shadow: 0 18px 45px rgba(83, 40, 80, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #ffe4e6 45%, #f5e8ff 100%);
    min-height: 100vh;
}

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

button,
a,
input,
select {
    transition: all 0.25s ease;
}

button {
    font-family: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 10px 32px rgba(236, 72, 153, 0.08);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 22px rgba(236, 72, 153, 0.25);
    font-size: 14px;
}

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

.desktop-nav a,
.mobile-nav a,
.category-strip a {
    font-weight: 700;
    color: #4b5563;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active,
.category-strip a:hover {
    color: var(--pink);
}

.top-search {
    width: 310px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #f9c3dc;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.08);
}

.top-search input,
.mobile-nav input,
.search-page-form input,
.filter-card input,
.filter-card select {
    border: 0;
    outline: 0;
    background: #fff;
    color: var(--text);
}

.top-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
}

.top-search button,
.search-page-form button,
.mobile-nav button {
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 11px 18px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

.menu-button {
    display: none;
    border: 0;
    background: var(--pink-soft);
    color: var(--pink);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 22px;
}

.category-strip {
    border-top: 1px solid rgba(244, 114, 182, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.category-strip div {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    white-space: nowrap;
}

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

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

.mobile-nav form {
    display: flex;
    border: 2px solid #f9c3dc;
    border-radius: 18px;
    overflow: hidden;
}

.mobile-nav input {
    flex: 1;
    padding: 12px;
}

.page-main {
    min-height: 70vh;
}

.with-top-space {
    padding-top: 126px;
}

.content-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.home-stack {
    display: grid;
    gap: 64px;
    padding-bottom: 72px;
}

.hero-carousel {
    position: relative;
    height: 650px;
    overflow: hidden;
    margin-bottom: 64px;
    background: linear-gradient(135deg, #1f1029, #341052);
}

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

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 8, 23, 0.88) 0%, rgba(31, 16, 41, 0.68) 44%, rgba(31, 16, 41, 0.15) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 58%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1240px) / 2));
    bottom: 78px;
    max-width: 720px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.95);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hero-content .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.hero-desc {
    max-width: 650px;
    margin: 22px 0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.section-heading,
.filter-line,
.detail-meta,
.tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 18px 30px rgba(236, 72, 153, 0.28);
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.section-block {
    position: relative;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 24px;
}

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

.section-heading h2 {
    margin: 0 auto 0 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.04em;
}

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

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

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

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

.catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: 72px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(83, 40, 80, 0.11);
    transition: all 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

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

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

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

.play-mark,
.rank-mark {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    color: var(--pink);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
}

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

.rank-mark {
    left: 12px;
    top: 12px;
}

.rank-mark b {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 20px rgba(236, 72, 153, 0.28);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--pink);
}

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--muted);
}

.movie-meta {
    font-size: 13px;
    font-weight: 700;
}

.movie-desc {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    margin-top: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.55;
}

.tag-list {
    margin-top: 14px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #be185d;
    background: var(--pink-soft);
    font-size: 12px;
    font-weight: 800;
}

.tag-list-light span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.two-column-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.ranking-panel,
.filter-card,
.plain-hero,
.detail-info-card,
.player-card,
.cover-panel,
.category-overview-card {
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.ranking-panel {
    padding: 22px;
    align-self: start;
}

.ranking-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

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

.compact-item {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.compact-item img {
    width: 86px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft));
}

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

.compact-item strong {
    font-size: 15px;
}

.compact-item em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.compact-item:hover strong {
    color: var(--pink);
}

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

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

.category-card,
.category-overview-card {
    padding: 22px;
}

.category-card {
    min-height: 164px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.92), rgba(139, 92, 246, 0.92));
    box-shadow: var(--shadow);
}

.category-card span,
.category-title-link {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    line-height: 1.65;
}

.category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 72px;
}

.category-title-link:hover {
    color: var(--pink);
}

.category-overview-card .compact-item {
    grid-template-columns: 74px minmax(0, 1fr);
}

.category-overview-card .compact-item img {
    width: 74px;
    height: 52px;
}

.plain-hero {
    margin-bottom: 28px;
    padding: 36px;
}

.plain-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.06em;
}

.plain-hero p:last-child {
    max-width: 850px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-card {
    margin-bottom: 28px;
    padding: 20px;
}

.filter-line {
    align-items: stretch;
}

.filter-card input,
.filter-card select {
    min-height: 46px;
    padding: 0 16px;
    border: 2px solid #f9c3dc;
    border-radius: 999px;
    font-weight: 700;
}

.filter-card input {
    min-width: min(340px, 100%);
    flex: 1;
}

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

.detail-primary {
    display: grid;
    gap: 22px;
}

.player-card {
    overflow: hidden;
    padding: 0;
    background: #0b0710;
}

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

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050308;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18));
}

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

.big-play {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

.detail-info-card {
    padding: 30px;
}

.detail-info-card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.05em;
}

.detail-meta {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.detail-meta span {
    color: #be185d;
    background: var(--pink-soft);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
    font-size: 14px;
}

.detail-info-card section {
    margin-top: 26px;
}

.detail-info-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.detail-info-card p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.85;
    font-size: 16px;
}

.lead-text {
    color: var(--text) !important;
    font-weight: 800;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
}

.cover-panel {
    overflow: hidden;
    padding: 18px;
}

.cover-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--pink-soft), var(--purple-soft));
}

.full-button {
    width: 100%;
    margin-top: 16px;
}

.side-panel {
    box-shadow: 0 12px 28px rgba(83, 40, 80, 0.11);
}

.search-page-form {
    display: flex;
    width: min(720px, 100%);
    margin-top: 24px;
    overflow: hidden;
    border: 2px solid #f9c3dc;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.1);
}

.search-page-form input {
    flex: 1;
    min-height: 56px;
    padding: 0 20px;
    font-size: 16px;
}

.search-page-form button {
    padding: 0 28px;
}

.site-footer {
    margin-top: 72px;
    padding: 44px 0 28px;
    background: rgba(255, 255, 255, 0.68);
    border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

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

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.is-hidden-card {
    display: none !important;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.84);
}

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

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

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

    .two-column-block,
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .with-top-space {
        padding-top: 92px;
    }

    .hero-carousel {
        height: 560px;
        margin-bottom: 44px;
    }

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

    .hero-control {
        display: none;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .category-overview-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .plain-hero,
    .detail-info-card {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .content-wrap,
    .header-inner,
    .mobile-nav {
        width: min(100% - 22px, 1240px);
    }

    .hero-carousel {
        height: 520px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 40px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .category-overview-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .filter-card input,
    .filter-card select,
    .search-page-form,
    .search-page-form button {
        width: 100%;
    }

    .search-page-form {
        flex-direction: column;
        border-radius: 24px;
    }

    .search-page-form button {
        min-height: 50px;
    }

    .compact-item {
        grid-template-columns: auto 78px minmax(0, 1fr);
    }

    .compact-item img {
        width: 78px;
        height: 54px;
    }
}
