* {
    box-sizing: border-box;
}

:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --purple-600: #9333ea;
    --purple-900: #581c87;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 20px 50px rgba(17, 24, 39, 0.12);
    --shadow-card: 0 14px 35px rgba(17, 24, 39, 0.10);
    --container: min(1180px, calc(100vw - 32px));
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--gray-800);
    background:
        radial-gradient(circle at 8% 5%, rgba(244, 63, 94, 0.12), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(147, 51, 234, 0.10), transparent 28%),
        linear-gradient(135deg, var(--gray-50) 0%, var(--rose-50) 48%, #fdf2f8 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 241, 242, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
    width: var(--container);
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #fb7185, var(--pink-500));
    color: #fff;
    font-weight: 900;
    font-size: 23px;
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.35);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-weight: 900;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #fff;
    color: var(--rose-600);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.16);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
    cursor: pointer;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #7f1d1d, #831843 48%, #3b0764);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52) 48%, rgba(17, 24, 39, 0.18)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.90), transparent 44%);
    z-index: 1;
}

.hero-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    mix-blend-mode: overlay;
    transform: scale(1.04);
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 76px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde047;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 5.6vw, 74px);
    line-height: 1.04;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

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

.button-primary,
.button-secondary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.36);
}

.button-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button-light {
    color: var(--rose-600);
    background: #fff;
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.22);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px);
}

.hero-card {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.35);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-card-body {
    padding: 22px;
}

.hero-card-body strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.hero-card-body span {
    display: inline-flex;
    margin-right: 8px;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section.white {
    background: rgba(255, 255, 255, 0.82);
}

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

.section-title {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-copy {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--purple-600));
    transition: opacity 0.24s ease;
}

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

.category-card:hover::before {
    opacity: 1;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    display: block;
    font-size: 42px;
    margin-bottom: 14px;
}

.category-card strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.category-card p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.65;
}

.category-card:hover,
.category-card:hover p {
    color: #fff;
}

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

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

.movie-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.year-badge,
.rank-badge,
.play-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(8px);
}

.rank-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.play-chip {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    transition: all 0.24s ease;
}

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

.card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta span {
    padding: 5px 9px;
    border-radius: 9px;
    background: var(--rose-50);
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 800;
}

.card-body strong {
    color: var(--gray-800);
    font-size: 19px;
    line-height: 1.35;
}

.card-summary {
    color: var(--gray-500);
    line-height: 1.65;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 12px;
}

.filter-panel {
    width: var(--container);
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 22px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.filter-panel h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.filter-panel p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 14px;
    background: #fff;
    color: var(--gray-800);
    padding: 0 14px;
    font: inherit;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--gray-500);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

.page-hero {
    padding: 74px 0;
    color: #fff;
    background: linear-gradient(120deg, #be123c, #db2777 48%, #7e22ce);
}

.page-hero-inner {
    width: var(--container);
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fff;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 850px;
    margin: 0;
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.90);
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #050505;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.28);
}

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

.player-cover.is-hidden {
    display: none;
}

.big-play {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 18px 28px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 20px 42px rgba(244, 63, 94, 0.35);
}

.detail-panel,
.side-panel {
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-card);
    padding: 26px;
}

.detail-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-panel p {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--rose-50);
    color: var(--rose-600);
    font-weight: 800;
}

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

.side-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--gray-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
    background: var(--rose-50);
    transform: translateX(4px);
}

.side-item img {
    width: 92px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.side-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.side-item span {
    color: var(--gray-500);
    font-size: 13px;
}

.cta-band {
    width: var(--container);
    margin: 30px auto 0;
    padding: 48px;
    border-radius: 32px;
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 28px 70px rgba(244, 63, 94, 0.24);
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
}

.cta-band p {
    margin: 0 auto 24px;
    max-width: 720px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 54%, #111827);
}

.footer-grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0 34px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 9px;
    color: #9ca3af;
    line-height: 1.75;
}

.site-footer a:hover {
    color: #fff;
}

.footer-bottom {
    width: var(--container);
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-inner,
    .watch-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }

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

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

@media (max-width: 760px) {
    :root {
        --container: min(100vw - 24px, 1180px);
    }

    .nav-wrap {
        min-height: 68px;
    }

    .brand-subtitle {
        display: none;
    }

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

    .nav-links {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--shadow-soft);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 13px 16px;
    }

    .hero {
        min-height: 660px;
    }

    .hero-inner {
        padding: 54px 0 86px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: grid;
    }

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

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 52px 0;
    }

    .detail-panel,
    .side-panel {
        padding: 20px;
    }

    .side-item {
        grid-template-columns: 84px 1fr;
    }

    .cta-band {
        padding: 32px 18px;
    }

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