:root {
    color-scheme: light;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --purple: #7c3aed;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.24);
    --paper: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 20px 45px rgba(148, 72, 38, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 40%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.brand-name {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, var(--orange-dark), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 14px;
    color: #374151;
    font-weight: 650;
    transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #374151;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 660px;
    padding: 46px 0 90px;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c 0%, #ec4899 52%, #7c3aed 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26), transparent 28%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(135deg, rgba(255, 255, 255, 0.09) 25%, transparent 25%);
    background-size: auto, auto, 54px 54px;
    opacity: 0.85;
}

.hero-slides {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slide {
    display: none;
    min-height: 490px;
    align-items: center;
    gap: 56px;
    padding: 56px;
    border-radius: 34px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, rgba(17, 24, 39, 0.82), rgba(124, 58, 237, 0.24)), var(--hero-image) center / cover;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.32);
}

.hero-slide.active {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.06));
}

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

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.section-kicker {
    color: var(--orange-dark);
    background: #ffedd5;
    border-color: rgba(249, 115, 22, 0.18);
}

.hero h1 {
    margin: 22px 0 12px;
    max-width: 790px;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3.6vw, 48px);
}

.hero p {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions.left {
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn.primary {
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
}

.btn.ghost.dark {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn:hover,
.movie-card:hover,
.category-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster img,
.poster-wrap img,
.detail-poster img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 26px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: 0.25s ease;
}

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

.hero-search {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-search input,
.search-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 15px 18px;
    background: #ffffff;
    color: var(--ink);
}

.hero-search button,
.search-panel button,
.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.content-section,
.category-strip,
.detail-content,
.player-section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section,
.category-strip.standalone {
    padding: 64px 0 8px;
}

.category-strip {
    padding-top: 64px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy-head h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p,
.detail-copy-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

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

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

.category-card {
    position: relative;
    min-height: 164px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    border-radius: 24px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.category-card.large {
    min-height: 260px;
}

.category-art {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.78)), var(--category-image) center / cover;
    transition: 0.4s ease;
}

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

.category-card span:last-child {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}

.category-card strong {
    font-size: 22px;
}

.category-card em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

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

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

.movie-card {
    display: grid;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(148, 72, 38, 0.12);
    transition: 0.25s ease;
    border: 1px solid rgba(251, 146, 60, 0.14);
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-card strong {
    color: #111827;
    font-size: 19px;
    line-height: 1.3;
}

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

.movie-card.compact p {
    display: none;
}

.movie-meta {
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 750;
}

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 750;
    background: #ffedd5;
}

.tag-row.small span {
    min-height: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 78px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(148, 72, 38, 0.1);
    transition: 0.25s ease;
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--orange);
    text-align: center;
}

.rank-row img {
    width: 78px;
    height: 104px;
    border-radius: 16px;
}

.rank-info {
    display: grid;
    gap: 5px;
}

.rank-info strong {
    font-size: 20px;
}

.rank-info span,
.rank-info em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.rank-heat {
    color: var(--pink);
    font-weight: 900;
    white-space: nowrap;
}

.inner-page {
    padding-bottom: 80px;
}

.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 30px;
}

.page-hero.slim {
    padding-top: 72px;
}

.category-nav,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.cat-chip,
.filter-row button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    background: #ffffff;
    color: #374151;
    font-weight: 750;
}

.cat-chip.active,
.filter-row button.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 820px;
    margin-top: 24px;
    padding: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel input {
    background: #fff7ed;
}

.empty-state {
    display: none;
    padding: 48px;
    text-align: center;
    border-radius: 28px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.is-hidden {
    display: none !important;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.56)), var(--detail-image) center / cover;
    filter: saturate(1.1);
}

.detail-inner {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.74);
}

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

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

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-copy-head p {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

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

.player-section {
    padding: 46px 0 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.26);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.video-cover-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.22), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

.video-shell.is-playing .video-cover-button {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.32);
    font-size: 34px;
}

.video-cover-button strong {
    font-size: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-top: 28px;
}

.text-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.text-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.text-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.related-section {
    padding-top: 52px;
}

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

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 38px;
}

.footer-brand p {
    max-width: 420px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-col strong {
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-col a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
    }

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

    .hero-slide.active,
    .detail-layout,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        padding: 34px;
    }

    .hero-poster {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .rank-row {
        grid-template-columns: 44px 68px minmax(0, 1fr);
    }

    .rank-heat,
    .rank-row .tag-row {
        display: none;
    }

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

@media (max-width: 640px) {
    .nav-inner,
    .hero-slides,
    .content-section,
    .category-strip,
    .detail-content,
    .player-section,
    .page-hero,
    .detail-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1200px);
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
        padding: 24px 0 52px;
    }

    .hero-slide {
        min-height: auto;
        padding: 24px;
        border-radius: 26px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .hero-search,
    .search-panel {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search button,
    .search-panel button {
        min-height: 48px;
    }

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

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

    .rank-row {
        grid-template-columns: 38px 58px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .rank-row img {
        width: 58px;
        height: 78px;
        border-radius: 12px;
    }

    .rank-number {
        font-size: 20px;
    }

    .detail-layout {
        gap: 24px;
    }

    .video-shell {
        border-radius: 18px;
    }

    .play-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}
