:root {
    color-scheme: light;
    --rose: #e11d48;
    --pink: #db2777;
    --amber: #f59e0b;
    --green: #059669;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f3d7df;
    --soft: #fff1f5;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(190, 18, 60, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 8px 30px rgba(148, 27, 69, 0.08);
}

.site-nav {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 24px;
}

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

.brand-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, #db2777);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(219, 39, 119, 0.32);
    font-size: 16px;
}

.brand-text strong {
    display: block;
    font-size: 21px;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
    background: #fff1f2;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    background: #fff1f2;
    border-radius: 14px;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #9f1239;
    margin: 5px 0;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 660px;
}

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

.hero-backdrop,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-backdrop::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 30%),
        radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.28), transparent 28%),
        linear-gradient(180deg, transparent 65%, #fff1f5 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    min-height: 660px;
    margin: 0 auto;
    padding: 92px 24px 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 50px;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.92);
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

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

.primary-btn {
    padding: 14px 24px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    padding: 13px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.ghost-btn.dark {
    color: var(--rose);
    background: #fff1f2;
    border-color: #fecdd3;
}

.text-link {
    color: var(--rose);
    font-size: 14px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 500px;
    box-shadow: 0 30px 90px rgba(75, 0, 45, 0.34);
    transform: rotate(1.5deg);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-poster img {
    height: 500px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 18px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-weight: 900;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

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

.hero-search {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: min(780px, calc(100% - 32px));
    display: flex;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-search input,
.inline-search input,
.local-filter input,
.search-box-large input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.hero-search input {
    padding: 0 18px;
    font-size: 16px;
}

.hero-search button,
.inline-search button,
.local-filter button,
.filter-bar button {
    border: 0;
    cursor: pointer;
    font-weight: 900;
    border-radius: 999px;
}

.hero-search button,
.inline-search button {
    padding: 14px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px;
}

.soft-section {
    max-width: none;
    margin: 0;
}

.soft-section > .section-heading,
.soft-section > .movie-grid,
.soft-section > .category-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.rose-soft {
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 50%, #fffbeb 100%);
}

.green-soft {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 48%, #eff6ff 100%);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.section-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.section-rose .section-icon {
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.section-green .section-icon {
    background: linear-gradient(135deg, var(--green), #10b981);
}

.section-amber .section-icon {
    background: linear-gradient(135deg, var(--amber), #f97316);
}

.section-pink .section-icon {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.section-heading h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(190, 18, 60, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 58px rgba(190, 18, 60, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    background: #fff1f2;
}

.movie-cover img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.card-large .movie-cover img {
    aspect-ratio: 16 / 12;
}

.movie-score {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 7px 11px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #f97316);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.32);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

.movie-info h3,
.wide-info h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.wide-info h3 a:hover,
.category-panel h2 a:hover {
    color: var(--rose);
}

.movie-info p,
.wide-info p,
.category-card p,
.category-panel p,
.footer-brand p,
.detail-article p,
.player-side p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-info p {
    min-height: 56px;
    margin: 10px 0 14px;
    font-size: 14px;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 64px 116px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.16);
    box-shadow: 0 16px 38px rgba(190, 18, 60, 0.1);
}

.wide-rank {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #f97316);
    font-size: 18px;
}

.wide-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
}

.wide-info p {
    margin: 8px 0 10px;
    font-size: 14px;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: 26px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
    z-index: 1;
}

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

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

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

.page-hero {
    max-width: 1280px;
    margin: 34px auto 0;
    padding: 70px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: center;
    gap: 36px;
    border-radius: 0 0 42px 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.22), transparent 32%),
        linear-gradient(135deg, var(--rose), var(--pink), var(--amber));
    box-shadow: var(--shadow);
}

.compact-hero,
.ranking-hero,
.search-hero {
    grid-template-columns: minmax(0, 1fr);
}

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

.inline-search,
.local-filter,
.search-box-large,
.filter-bar {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 38px rgba(190, 18, 60, 0.14);
}

.inline-search input,
.local-filter input,
.search-box-large input {
    padding: 12px 14px;
}

.local-filter,
.filter-bar {
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.local-filter button,
.filter-bar button {
    padding: 10px 14px;
    color: #4b5563;
    background: #f9fafb;
}

.local-filter button.active,
.filter-bar button.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.search-box-large {
    margin-bottom: 16px;
}

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

.category-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.16);
    box-shadow: 0 18px 44px rgba(190, 18, 60, 0.1);
}

.category-panel-image img {
    height: 230px;
    object-fit: cover;
    border-radius: 22px;
}

.category-panel h2 {
    margin: 10px 0 8px;
}

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

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

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 570px;
    color: #ffffff;
}

.detail-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 28px 78px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.detail-lead {
    max-width: 820px;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.9;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.24);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.2), rgba(225, 29, 72, 0.38));
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.play-button {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.player-cover strong {
    font-size: 22px;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.player-side {
    padding: 28px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(190, 18, 60, 0.1);
}

.player-side h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-article article {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(190, 18, 60, 0.1);
}

.detail-article h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.detail-article p {
    font-size: 17px;
}

.site-footer {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fffbeb);
    border-top: 1px solid rgba(244, 114, 182, 0.18);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h3 {
    margin: 0 0 16px;
    font-size: 16px;
}

.footer-grid a:not(.brand) {
    display: block;
    margin: 9px 0;
    color: #4b5563;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 34px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    border-top: 1px solid rgba(244, 114, 182, 0.18);
}

[data-search-card].is-hidden {
    display: none;
}

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

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

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

    .hero-content,
    .player-shell,
    .page-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 760px) {
    .site-nav {
        min-height: 64px;
        padding: 0 16px;
    }

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

    .brand-text strong {
        font-size: 18px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 12px 14px;
    }

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

    .hero-content {
        padding: 70px 18px 150px;
    }

    .hero-copy p,
    .detail-lead {
        font-size: 17px;
    }

    .hero-actions,
    .hero-search,
    .inline-search,
    .local-filter,
    .filter-bar {
        flex-direction: column;
    }

    .hero-search button,
    .inline-search button {
        width: 100%;
    }

    .content-section {
        padding: 52px 16px;
    }

    .movie-grid,
    .featured-grid,
    .catalog-grid,
    .wide-grid,
    .category-grid,
    .category-panel-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wide-card {
        grid-template-columns: 52px 86px minmax(0, 1fr);
    }

    .wide-card .text-link {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .page-hero {
        margin-top: 18px;
        padding: 52px 18px;
        border-radius: 0 0 30px 30px;
    }

    .detail-grid,
    .category-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-content {
        padding: 36px 16px 54px;
    }

    .detail-poster {
        max-width: 250px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
