:root {
    color-scheme: light;
    --red: #ef4444;
    --pink: #ec4899;
    --orange: #f97316;
    --purple: #8b5cf6;
    --indigo: #312e81;
    --blue: #1d4ed8;
    --cyan: #06b6d4;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f8fafc;
    --card: #ffffff;
    --line: rgba(148, 163, 184, 0.22);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 34%, #eef2ff 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.12), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.12), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.13), transparent 38%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--red), var(--pink), var(--orange));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
}

.nav-wrap {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-name {
    font-size: 24px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

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

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    border-radius: 999px;
    transition: 0.25s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.nav-search,
.mobile-search,
.big-search,
.inline-filter {
    display: flex;
    align-items: center;
}

.nav-search {
    width: 330px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.nav-search input,
.mobile-search input,
.big-search input,
.inline-filter input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.nav-search input {
    padding: 9px 12px;
}

.nav-search button,
.mobile-search button,
.big-search button {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 800;
}

.menu-button {
    display: none;
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 14px 20px 18px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    gap: 8px;
    background: #f3f4f6;
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    padding: 8px;
}

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

.mobile-link {
    color: var(--text);
    padding: 10px 12px;
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--purple);
    background: #f5f3ff;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(17, 24, 39, 0.65) 42%, rgba(17, 24, 39, 0.14) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82) 0%, transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 560px;
    padding: 150px 22px 84px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

.hero-actions,
.detail-stats,
.card-stats,
.card-meta,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    padding: 13px 24px;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.28);
}

.primary-button:hover,
.movie-card:hover,
.category-overview-card:hover,
.feature-row:hover,
.rank-row:hover {
    transform: translateY(-4px);
}

.ghost-button {
    color: #fff;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}

.home-search-panel,
.content-section,
.page-main,
.site-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.home-search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 5;
}

.big-search {
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.big-search input {
    padding: 15px 16px;
    font-size: 17px;
}

.big-search button {
    padding: 15px 24px;
}

.content-section {
    padding-top: 64px;
}

.no-top-space {
    padding-top: 26px;
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    background: linear-gradient(90deg, var(--red), var(--pink), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more,
.text-button {
    color: var(--purple);
    background: #f5f3ff;
    padding: 10px 15px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: 0.28s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #312e81);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.movie-card:hover img,
.feature-row:hover img,
.category-overview-card:hover .category-cover {
    transform: scale(1.06);
}

.duration,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.duration {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--purple);
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
    min-height: 52px;
}

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #6d28d9;
    background: #f5f3ff;
    font-size: 12px;
    font-weight: 800;
}

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.card-stats span:first-child {
    color: #f59e0b;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.18));
}

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

.category-tile span {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-tile strong {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel,
.page-hero,
.detail-content,
.watch-section,
.category-overview-card,
.rank-row,
.prev-next {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--shadow);
}

.rank-panel {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rank-panel h2 {
    margin: 0;
    color: #f97316;
}

.rank-panel a {
    color: var(--purple);
    font-weight: 800;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: auto 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.compact-card img {
    width: 74px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong {
    display: block;
    line-height: 1.35;
}

.compact-card em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    margin-top: 4px;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 13px;
    font-weight: 900;
}

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

.feature-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.feature-row img {
    width: 180px;
    height: 104px;
    object-fit: cover;
    border-radius: 16px;
    transition: 0.3s ease;
}

.feature-row strong,
.feature-row em {
    display: block;
}

.feature-row strong {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-row em {
    color: var(--muted);
    line-height: 1.7;
    font-style: normal;
}

.feature-row b {
    color: #f59e0b;
}

.page-main {
    padding-top: 28px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.page-hero {
    padding: 34px;
    margin-bottom: 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(236, 72, 153, 0.15), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.9));
}

.page-hero p {
    max-width: 760px;
    font-size: 17px;
}

.inline-filter {
    max-width: 560px;
    margin-top: 22px;
    border-radius: 999px;
    padding: 14px 18px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    transition: 0.25s ease;
}

.category-cover {
    min-height: 190px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    transition: 0.35s ease;
}

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

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    color: #6d28d9;
    background: #f5f3ff;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 60px 150px 1fr 150px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    transition: 0.25s ease;
}

.rank-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
}

.rank-thumb img {
    width: 150px;
    height: 86px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-score {
    text-align: right;
}

.rank-score strong,
.rank-score span {
    display: block;
}

.rank-score strong {
    color: #f59e0b;
    font-size: 20px;
}

.rank-score span {
    color: var(--muted);
    margin-top: 6px;
}

.detail-main {
    max-width: 1180px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: center;
    border-radius: 30px;
    padding: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 22% 20%, rgba(236, 72, 153, 0.42), transparent 34%),
        linear-gradient(135deg, #111827, #312e81 52%, #701a75);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: clamp(36px, 5vw, 58px);
}

.detail-one-line {
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
    font-size: 18px;
}

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

.detail-stats span,
.detail-stats a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

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

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

.watch-section {
    margin-top: 30px;
    padding: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
    cursor: pointer;
}

.player-start span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 36px rgba(139, 92, 246, 0.36);
    font-size: 28px;
}

.player-start strong {
    font-size: 18px;
}

.player-start.is-hidden {
    display: none;
}

.detail-content {
    margin-top: 30px;
    padding: 30px;
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-content p {
    margin: 0 0 24px;
    color: #374151;
    line-height: 2;
    font-size: 17px;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding: 16px;
}

.prev-next a {
    padding: 14px 16px;
    border-radius: 16px;
    color: #6d28d9;
    background: #f5f3ff;
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    max-width: none;
    padding-top: 46px;
    padding-bottom: 28px;
    color: #fff;
    background: linear-gradient(90deg, #581c87, #1e3a8a, #312e81);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 0 22px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

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

.footer-bottom {
    max-width: 1240px;
    margin: 30px auto 0;
    padding: 22px 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

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

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

    .hero-content {
        padding-top: 120px;
    }

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

    .category-overview-card,
    .detail-hero,
    .rank-row,
    .footer-grid,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .rank-score {
        text-align: left;
    }

    .feature-row {
        grid-template-columns: 120px 1fr;
    }

    .feature-row b {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        height: 62px;
        padding: 0 14px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

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

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

    .home-search-panel,
    .content-section,
    .page-main {
        padding-left: 14px;
        padding-right: 14px;
    }

    .big-search,
    .hero-actions,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

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

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .detail-hero,
    .page-hero,
    .watch-section,
    .detail-content {
        padding: 20px;
    }

    .card-body {
        padding: 14px;
    }
}
