:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --orange: #fb923c;
    --yellow: #fde68a;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --card: #ffffff;
    --line: rgba(148, 163, 184, 0.28);
    --shadow: 0 24px 70px rgba(244, 63, 94, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(251, 146, 60, 0.18), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.16), transparent 34%),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #f8fafc 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
    box-shadow: 0 16px 42px rgba(190, 18, 60, 0.24);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.brand-text {
    font-size: 1.45rem;
    white-space: nowrap;
}

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

.main-nav a {
    font-weight: 700;
    opacity: 0.92;
    transition: 0.2s ease;
}

.main-nav a:hover {
    color: var(--yellow);
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input,
.search-hero-form input,
.local-filter input {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    outline: none;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 11px 16px;
    backdrop-filter: blur(14px);
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.search-form button,
.search-hero-form button {
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--rose-dark);
    font-weight: 800;
    background: #ffffff;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 11px;
    cursor: pointer;
}

.hero {
    padding: 34px 0 28px;
}

.hero-shell {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 580px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    background: var(--slate-950);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.34);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 42px;
    padding: 70px clamp(26px, 6vw, 76px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(26px);
    transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: blur(1px) saturate(1.14);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 20%, rgba(251, 146, 60, 0.45), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(136, 19, 55, 0.74) 48%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 800px;
    margin: 24px 0 16px;
    color: #ffffff;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.8;
}

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

.hero-tags {
    margin: 22px 0 28px;
}

.hero-tags span,
.tag,
.pill {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    color: var(--rose-dark);
    background: #fff1f2;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.3);
}

.btn-light {
    color: var(--rose-dark);
    background: #ffffff;
}

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

.btn.full {
    width: 100%;
}

.hero-poster {
    display: block;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    transform: rotate(2deg);
    backdrop-filter: blur(18px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 21px;
}

.hero-poster span {
    position: absolute;
    right: 24px;
    bottom: 24px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.7rem;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

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

.page-section {
    padding: 56px 0;
}

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

.section-heading .eyebrow,
.sub-hero .eyebrow,
.category-overview-card .eyebrow {
    color: var(--rose-dark);
    background: #ffe4e6;
}

.section-heading h2,
.sub-hero h1,
.detail-content h1 {
    margin: 10px 0 0;
    color: var(--slate-950);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-more,
.text-link {
    color: var(--rose-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.rank-feature:hover img {
    transform: scale(1.05);
}

.play-chip,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.84);
}

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

.movie-meta-line,
.movie-bottom-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.86rem;
}

.movie-meta-line a,
.movie-bottom-line strong {
    color: var(--rose-dark);
    font-weight: 900;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 1.12rem;
    line-height: 1.28;
}

.movie-card p {
    min-height: 3.25em;
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.65;
}

.movie-bottom-line {
    justify-content: space-between;
}

.category-band,
.cta-section {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(251, 146, 60, 0.1));
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.detail-main-card,
.detail-side-card,
.rank-feature {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 20px;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    transition: transform 0.4s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 241, 242, 0.96));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: block;
    margin: 70px 0 8px;
    color: var(--rose-dark);
    font-size: 1.45rem;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: var(--slate-700);
    line-height: 1.6;
}

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

.ranking-panel {
    padding: 22px;
}

.small-heading h2 {
    font-size: 1.7rem;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
    background: #fff7ed;
}

.rank-row strong {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.rank-row span {
    font-weight: 800;
}

.rank-row em {
    color: var(--rose-dark);
    font-style: normal;
    font-weight: 900;
}

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

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.04em;
}

.cta-inner p {
    max-width: 720px;
    margin: 0 auto 26px;
    color: var(--slate-600);
    line-height: 1.8;
}

.sub-hero {
    padding: 76px 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(251, 146, 60, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 228, 230, 0.72));
}

.sub-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--slate-600);
    font-size: 1.14rem;
    line-height: 1.8;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    padding: 18px;
}

.category-cover {
    overflow: hidden;
    border-radius: 20px;
    background: var(--slate-900);
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 10px 0;
    font-size: 1.8rem;
}

.category-overview-card p {
    margin: 0 0 16px;
    color: var(--slate-600);
    line-height: 1.75;
}

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-preview span {
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--slate-100);
    padding: 7px 11px;
    font-size: 0.86rem;
}

.local-filter {
    margin-top: 28px;
}

.local-filter input,
.search-hero-form input {
    width: min(620px, 100%);
    color: var(--text);
    border-color: var(--line);
    background: #ffffff;
}

.search-hero-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.search-hero-form button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.sticky-panel {
    position: sticky;
    top: 100px;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
}

.movie-card-list .movie-poster img {
    height: 100%;
    min-height: 184px;
    aspect-ratio: auto;
}

.movie-card-list p {
    min-height: auto;
}

.wide-list .movie-card-list {
    grid-template-columns: 170px minmax(0, 1fr);
}

.small-tags {
    margin-top: 12px;
}

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

.rank-feature {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 24px;
    color: #ffffff;
}

.rank-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rank-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.88));
}

.rank-feature span,
.rank-feature h2,
.rank-feature p {
    position: relative;
    z-index: 1;
}

.rank-feature span {
    display: inline-flex;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    padding: 8px 13px;
    font-weight: 900;
}

.rank-feature h2 {
    margin: 190px 0 10px;
    font-size: 1.75rem;
}

.rank-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.detail-page {
    padding: 34px 0 10px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--slate-600);
}

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

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

.detail-main-card,
.detail-side-card {
    overflow: hidden;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px 24px 0 0;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
    cursor: pointer;
}

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

.player-button-mark {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rose-dark);
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.detail-content {
    padding: 28px;
}

.detail-tags {
    margin-bottom: 16px;
}

.pill.strong {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    font-weight: 900;
}

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

.detail-meta-grid span,
.detail-side-card dl div {
    border-radius: 16px;
    color: var(--slate-700);
    background: #fff7ed;
    padding: 12px 14px;
}

.detail-text-block {
    margin-top: 28px;
}

.detail-text-block h2 {
    margin: 0 0 12px;
    color: var(--slate-950);
    font-size: 1.48rem;
}

.detail-text-block p {
    margin: 0;
    color: var(--slate-700);
    font-size: 1.05rem;
    line-height: 1.92;
}

.detail-side-card {
    position: sticky;
    top: 100px;
    padding: 18px;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
}

.detail-side-card h2 {
    margin: 18px 0 10px;
    font-size: 1.55rem;
}

.detail-side-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

.detail-side-card dl {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
}

.detail-side-card dt {
    color: var(--muted);
}

.detail-side-card dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 800;
}

.empty-state {
    border-radius: 18px;
    color: var(--slate-600);
    background: #ffffff;
    padding: 20px;
    text-align: center;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding: 48px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fda4af;
    font-size: 1.08rem;
}

.footer-grid p,
.footer-grid a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.25rem;
}

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

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

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

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

    .hero-poster,
    .sticky-panel,
    .detail-side-card {
        position: relative;
        top: auto;
    }

    .hero-poster {
        max-width: 330px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 68px;
        gap: 12px;
    }

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

    .main-nav {
        order: 3;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-left: 0;
        padding-bottom: 14px;
    }

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

    .main-nav a {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.14);
        padding: 11px 14px;
    }

    .hero-shell {
        min-height: 760px;
        border-radius: 24px;
    }

    .hero-slide {
        align-content: start;
        padding: 42px 22px 86px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 13vw, 4.2rem);
    }

    .hero-poster {
        max-width: 240px;
        transform: none;
    }

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

    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

    .brand-text {
        font-size: 1.18rem;
    }

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

    .movie-card-list,
    .wide-list .movie-card-list {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .movie-card-list .movie-poster img {
        min-height: 168px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .detail-content {
        padding: 22px;
    }
}
