* {
    box-sizing: border-box;
}

:root {
    --rose: #e11d48;
    --rose-deep: #be123c;
    --pink: #ec4899;
    --orange: #f97316;
    --amber-soft: #fff7ed;
    --rose-soft: #fff1f2;
    --gray-950: #0f172a;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 16px 34px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #fdf2f8 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: var(--gray-700);
    white-space: nowrap;
    font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--rose);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: var(--gray-100);
    color: var(--gray-800);
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    display: grid;
    gap: 12px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 620px;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.36;
    transform: scale(1.05);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 74% 25%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.36), rgba(225, 29, 72, 0.25));
}

.hero-content {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 54px;
    color: var(--white);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #ffe4e6;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 26px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 21px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

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

.btn-light {
    color: var(--rose);
    background: var(--white);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    font-size: 26px;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 36px;
    background: var(--white);
}

.home-search-panel {
    margin-top: -42px;
    position: relative;
    z-index: 12;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 460px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-panel-inner h2 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.search-panel-inner p {
    margin: 0;
    color: var(--gray-600);
}

.quick-search,
.filter-bar {
    display: flex;
    gap: 12px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 14px 16px;
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.quick-search button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    white-space: nowrap;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

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

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

.section-heading h2,
.page-title h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.06em;
}

.section-heading p,
.page-title p {
    margin: 0;
    max-width: 760px;
    color: var(--gray-600);
}

.section-link {
    color: var(--rose);
    font-weight: 900;
    white-space: nowrap;
}

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

.category-tile,
.category-card-main {
    display: grid;
    gap: 10px;
    padding: 28px;
    min-height: 170px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 242, 0.76));
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card-main:hover,
.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 29, 72, 0.22);
    box-shadow: 0 24px 48px rgba(225, 29, 72, 0.14);
}

.category-tile strong,
.category-card-main h2 {
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-tile span,
.category-card-main p {
    color: var(--gray-600);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--rose-soft), #fdf2f8);
}

.movie-card.large .card-poster {
    aspect-ratio: 16 / 9;
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 14px 24px rgba(225, 29, 72, 0.32);
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.card-meta span,
.detail-meta span,
.detail-meta a {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--gray-100);
}

.movie-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.movie-card h2 a:hover,
.mini-card h3 a:hover {
    color: var(--rose);
}

.movie-card p {
    min-height: 54px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
}

.tag-row span {
    color: var(--rose-deep);
    background: #ffe4e6;
}

.tag-row.large span {
    padding: 8px 13px;
}

.soft-band {
    background: linear-gradient(90deg, rgba(255, 228, 230, 0.72), rgba(254, 215, 170, 0.54));
}

.ranking-grid,
.side-list {
    display: grid;
    gap: 16px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mini-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 5;
    background: var(--rose-soft);
}

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

.mini-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.mini-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.28;
}

.mini-card p,
.mini-card span {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.page-shell {
    min-height: 70vh;
    padding: 58px 0 88px;
}

.page-title {
    margin-bottom: 34px;
}

.page-title .eyebrow {
    color: var(--rose);
}

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

.category-card {
    display: grid;
    gap: 12px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a,
.related-categories a {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.catalog-tools {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.filter-bar {
    margin-bottom: 26px;
}

.filter-bar.extended {
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr));
}

.filter-bar select {
    max-width: 220px;
}

.related-categories {
    margin-top: 42px;
}

.related-categories h2 {
    margin: 0 0 16px;
}

.related-categories div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

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

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

.player-card,
.detail-content,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
    background: #000;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.54));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    font-size: 34px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

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

.detail-content,
.side-card {
    padding: 26px;
}

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

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

.detail-content h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

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

.detail-content .lead {
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 800;
}

.review-box {
    border-radius: var(--radius-lg);
    padding: 22px;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.sticky-card {
    position: sticky;
    top: 94px;
}

.side-more {
    display: block;
    margin-top: 18px;
    border-radius: 16px;
    padding: 13px 16px;
    color: var(--white);
    text-align: center;
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    max-width: 520px;
}

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

.footer-links a:hover {
    color: #fb7185;
}

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

[hidden],
.is-filtered {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

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

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

    .sticky-card {
        position: static;
    }
}

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 72px 0 92px;
    }

    .hero-poster {
        width: min(320px, 78vw);
        transform: none;
    }

    .search-panel-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid.three,
    .movie-grid.four,
    .category-grid,
    .category-list-grid,
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar,
    .quick-search {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }
}

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

    .brand {
        font-size: 19px;
    }

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

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

    .hero p {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid.three,
    .movie-grid.four,
    .category-grid,
    .category-list-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: grid;
    }

    .mini-card {
        grid-template-columns: 82px 1fr;
    }

    .detail-content,
    .side-card,
    .catalog-tools,
    .search-panel-inner {
        padding: 18px;
    }
}
