:root {
    --orange: #fb923c;
    --orange-deep: #f97316;
    --pink: #ec4899;
    --purple: #7c3aed;
    --blue: #2563eb;
    --text: #15151f;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.10);
    --paper: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 24px 70px rgba(124, 58, 237, 0.18);
    --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(180deg, #fff7ed 0%, #fdf2f8 28%, #ffffff 58%);
    min-height: 100vh;
}

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

img {
    display: block;
    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: 50;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.08);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #111827;
}

.brand {
    font-size: 22px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.10);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 4px;
}

.hero-section {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.38), transparent 28%), linear-gradient(135deg, #fb923c 0%, #ec4899 48%, #7c3aed 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
    background-size: 26px 26px;
}

.hero-slider {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.68fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease, transform 0.75s ease;
    transform: translateY(18px);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05)), var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(2px);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy {
    color: #ffffff;
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: var(--orange-deep);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy h2 {
    margin: 18px 0 12px;
    font-size: clamp(26px, 3vw, 42px);
}

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

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 35px rgba(236, 72, 153, 0.30);
}

.btn.ghost {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.10);
}

.btn.ghost-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn.light {
    background: #ffffff;
    color: #e11d48;
}

.btn.full {
    width: 100%;
    margin-top: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.hero-poster {
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(31, 41, 55, 0.35);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-poster img {
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #ffffff;
}

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

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.search-panel h2,
.rank-panel h2,
.content-card h2,
.cta-inner h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.05em;
}

.section-heading.centered {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.row-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.more-link {
    color: var(--orange-deep);
    font-weight: 900;
}

.search-band {
    position: relative;
    z-index: 6;
    margin-top: -48px;
}

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

.site-search-form {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.site-search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
    background: #ffffff;
}

.site-search-form input {
    padding: 0 20px;
}

.site-search-form button {
    border: 0;
    padding: 0 25px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.category-pill,
.category-overview-card,
.content-card,
.rank-panel,
.search-panel,
.player-card,
.watch-info {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.11);
    backdrop-filter: blur(18px);
}

.category-pill,
.category-overview-card {
    display: block;
    min-height: 154px;
    padding: 22px;
    border-radius: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-pill:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(236, 72, 153, 0.18);
}

.category-pill strong,
.category-title {
    display: block;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 900;
}

.category-pill span,
.category-overview-card p,
.footer-inner p,
.cta-inner p,
.watch-line,
.content-card p {
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-wrap img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 11px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.28);
}

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

.movie-card h3 {
    margin: 6px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.32;
}

.compact-card h3 {
    font-size: 16px;
}

.eyebrow,
.movie-card .eyebrow {
    color: var(--orange-deep);
}

.movie-line {
    min-height: 58px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.tag-row span {
    color: #9f1239;
    background: #fff1f2;
}

.large-tags span {
    font-size: 14px;
}

.warm-section {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(253, 242, 248, 0.92));
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 24px;
    border-radius: 28px;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-item:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.rank-item span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
}

.rank-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.home-category-block {
    padding: 68px 0;
}

.home-category-block:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.58);
}

.home-category-block > .section-heading,
.home-category-block > .movie-grid {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.cta-section,
.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ec4899 48%, #7c3aed);
}

.cta-section {
    padding: 88px 0;
}

.cta-inner {
    text-align: center;
    max-width: 800px;
}

.cta-inner h2,
.cta-inner .eyebrow,
.cta-inner p {
    color: #ffffff;
}

.page-hero {
    min-height: 380px;
    display: grid;
    align-items: end;
    padding: 104px 0 64px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.22)), var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.50;
}

.small-hero::before {
    opacity: 0.10;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.07em;
}

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

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

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.10);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.listing-grid {
    align-items: stretch;
}

.empty-state {
    display: none;
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    color: #9f1239;
    background: #fff1f2;
    font-weight: 800;
}

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

.movie-card.is-hidden {
    display: none;
}

.watch-section {
    padding: 42px 0 68px;
    background: radial-gradient(circle at 20% 0%, rgba(251, 146, 60, 0.18), transparent 28%), linear-gradient(135deg, #111827, #2e1065 58%, #831843);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.30), rgba(17, 24, 39, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 22px 48px rgba(236, 72, 153, 0.35);
    font-size: 34px;
    text-indent: 5px;
}

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

.watch-info {
    padding: 28px;
    border-radius: 30px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(17, 24, 39, 0.50);
}

.breadcrumb {
    margin: 0 0 18px;
    color: #fed7aa;
    font-weight: 800;
}

.breadcrumb a {
    color: #ffffff;
}

.watch-info h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.watch-info .watch-line {
    color: rgba(255, 255, 255, 0.78);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.meta-grid span {
    padding: 11px 12px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 24px;
    padding: 64px 0 0;
}

.content-card {
    padding: 28px;
    border-radius: 28px;
}

.accent-card {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(253, 242, 248, 0.92));
}

.site-footer {
    padding: 54px 0 24px;
    background: #111827;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1080px) {
    .movie-grid,
    .compact-grid,
    .category-pill-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .rank-panel {
        position: static;
    }

    .hero-slide {
        grid-template-columns: 1fr 300px;
        gap: 28px;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .hero-section,
    .hero-slider {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 34px 0 88px;
    }

    .hero-poster {
        width: min(280px, 78vw);
        justify-self: center;
    }

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

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell,
    .hero-slider,
    .home-category-block > .section-heading,
    .home-category-block > .movie-grid,
    .footer-inner,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

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

    .site-search-form {
        display: grid;
        border-radius: 18px;
    }

    .site-search-form input {
        min-height: 48px;
    }

    .site-search-form button {
        min-height: 48px;
    }

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