:root {
    color-scheme: light;
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --rose-soft: #fff1f2;
    --orange: #fb923c;
    --cyan: #06b6d4;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --wash: #f8fafc;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

.site-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.28);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
}

.nav-link {
    color: #4b5563;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

.header-search input {
    width: 13rem;
    border-radius: 999px;
    padding: 0.58rem 2.5rem 0.58rem 1rem;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.header-search button {
    position: absolute;
    right: 0.35rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--rose);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-panel {
    padding: 0 1.25rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.mobile-panel a {
    display: block;
    padding: 0.7rem 0;
    color: #4b5563;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    padding-top: 0.6rem;
}

.mobile-panel input,
.mobile-panel button {
    border-radius: 0.8rem;
    padding: 0.65rem 0.8rem;
}

.mobile-panel button {
    border: 0;
    color: #ffffff;
    background: var(--rose);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #f43f5e 0%, #f97316 52%, #facc15 120%);
}

.hero-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    filter: blur(54px);
    opacity: 0.34;
    pointer-events: none;
}

.hero-glow-a {
    left: -6rem;
    top: -7rem;
    background: #ffffff;
}

.hero-glow-b {
    right: -7rem;
    bottom: -7rem;
    background: #fde047;
}

.hero-slider {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 5rem 1.25rem 4rem;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.88fr);
    gap: 3rem;
    align-items: center;
    min-height: 470px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    color: #fff7ed;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 45rem;
    margin: 1.35rem 0 0;
    color: #fff1f2;
    font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.78rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.24);
}

.btn-light:hover {
    background: #fff1f2;
}

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

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-tags {
    margin-top: 1.4rem;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

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

.tag-row span {
    color: #9f1239;
    background: var(--rose-soft);
}

.hero-poster {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 35px 80px rgba(127, 29, 29, 0.32);
    transform: rotate(1.5deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
}

.hero-poster span,
.hero-poster strong {
    position: absolute;
    left: 1.5rem;
    z-index: 1;
}

.hero-poster span {
    bottom: 4.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--rose);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-poster strong {
    right: 1.5rem;
    bottom: 1.55rem;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.2;
}

.hero-dots {
    position: absolute;
    left: 1.25rem;
    bottom: 2rem;
    display: flex;
    gap: 0.55rem;
}

.hero-dots button {
    width: 2.1rem;
    height: 0.48rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.hero-category-strip {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: -2rem auto 0;
    padding: 0 1.25rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-category-strip a {
    padding: 0.64rem 1rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4.5rem 1.25rem;
}

.section-wrap.compact {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.7rem;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.more-link {
    color: var(--rose);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 1.35rem;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    color: var(--rose);
    background: #ffffff;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-info {
    padding: 1rem;
}

.movie-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.movie-info h2,
.rank-item h2 {
    margin: 0.35rem 0;
    font-size: 1.04rem;
    line-height: 1.35;
}

.movie-info h2 a:hover,
.rank-item h2 a:hover {
    color: var(--rose);
}

.movie-info p,
.rank-item p,
.page-hero p,
.detail-copy .lead,
.text-panel p,
.site-footer p {
    color: var(--muted);
}

.movie-info p {
    min-height: 3.15rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.category-band {
    background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
}

.category-grid,
.overview-grid {
    display: grid;
    gap: 1rem;
}

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

.category-card {
    display: grid;
    gap: 0.45rem;
    min-height: 12rem;
    padding: 1.4rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card span {
    font-size: 2rem;
}

.category-card strong {
    font-size: 1.16rem;
}

.category-card small {
    color: var(--muted);
    font-size: 0.88rem;
}

.rank-list {
    display: grid;
    gap: 1rem;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 7.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1rem;
    background: #ffffff;
}

.rank-num {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 0.8rem;
    background: #ffe4e6;
}

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

.rank-item p {
    margin: 0.25rem 0 0.35rem;
    font-size: 0.92rem;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.25rem 2rem;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 48rem;
    font-size: 1.08rem;
}

.category-hero,
.search-hero {
    padding-bottom: 1rem;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.filter-panel.wide {
    max-width: 850px;
}

.filter-panel input,
.filter-panel select {
    min-height: 2.8rem;
    border-radius: 0.9rem;
    padding: 0.72rem 0.9rem;
}

.filter-panel input {
    flex: 1 1 280px;
}

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

.category-overview-card {
    position: relative;
    min-height: 18rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 0.6rem;
    padding: 1.35rem;
    border-radius: 1.25rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1));
}

.category-overview-card span,
.category-overview-card strong {
    position: relative;
    z-index: 1;
}

.category-overview-card span {
    font-size: 1.55rem;
    font-weight: 900;
}

.category-overview-card strong {
    font-size: 0.94rem;
    font-weight: 500;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    background: #ffffff;
}

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.2rem 1.25rem 1.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, #ffe4e6, #ffedd5);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(2rem, 5vw, 4.3rem);
}

.detail-copy .lead {
    max-width: 58rem;
    font-size: 1.14rem;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1.6rem 0;
}

.meta-list div {
    padding: 0.95rem;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.meta-list dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.meta-list dd {
    margin: 0.25rem 0 0;
    font-weight: 800;
}

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.85rem;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.16), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

.player-start span {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 18px 55px rgba(244, 63, 94, 0.34);
}

.player-start strong {
    font-size: 1.1rem;
}

.player-wrap.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.detail-body {
    padding-top: 1.5rem;
}

.text-panel {
    padding: 2rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.text-panel h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.text-panel h2 + p {
    margin-top: 0;
}

.site-footer {
    color: #cbd5e1;
    background: #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 2rem;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.site-footer h2 {
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.92rem;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.9rem;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 0.7rem;
    }

    .desktop-nav .nav-link:nth-of-type(n + 8) {
        display: none;
    }

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

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

@media (max-width: 920px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slider {
        min-height: auto;
        padding-top: 3.5rem;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-poster img {
        min-height: 320px;
    }

    .home-grid,
    .category-grid,
    .overview-grid,
    .category-movie-grid,
    .rank-list.slim {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        max-width: 24rem;
    }

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

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

@media (max-width: 620px) {
    .site-nav,
    .section-wrap,
    .page-hero,
    .detail-hero,
    .player-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-actions,
    .filter-panel {
        flex-direction: column;
    }

    .btn,
    .filter-panel input,
    .filter-panel select {
        width: 100%;
    }

    .hero-category-strip {
        margin-top: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .home-grid,
    .category-grid,
    .overview-grid,
    .category-movie-grid,
    .rank-list.slim {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: auto 5.8rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .rank-item p {
        display: none;
    }

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

    .text-panel {
        padding: 1.25rem;
    }
}
