
:root {
    --color-bg: #f8fafc;
    --color-panel: #ffffff;
    --color-text: #111827;
    --color-muted: #64748b;
    --color-slate: #0f172a;
    --color-slate-soft: #1e293b;
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-yellow: #facc15;
    --gradient-hot: linear-gradient(135deg, #f97316, #ec4899);
    --gradient-cool: linear-gradient(135deg, #0f172a, #1e293b 60%, #111827);
    --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    color: #fff;
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 22px;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--gradient-hot);
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.logo-text {
    font-size: 24px;
    background: linear-gradient(90deg, #fb923c, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #dbeafe;
}

.desktop-nav a,
.nav-dropdown > a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active,
.nav-dropdown:hover > a {
    color: #fb923c;
}

.nav-dropdown {
    position: relative;
    padding: 20px 0;
}

.dropdown-panel {
    position: absolute;
    top: 60px;
    left: 0;
    display: grid;
    width: 220px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: #1e293b;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
}

.dropdown-panel a:hover,
.mobile-nav a:hover {
    background: rgba(148, 163, 184, 0.14);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.8);
}

.header-search input {
    width: 220px;
    padding: 8px 12px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.header-search input::placeholder {
    color: #cbd5e1;
}

.header-search button,
.large-search button,
.filter-toolbar button,
.btn-primary {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--gradient-hot);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 15px;
}

.header-search button:hover,
.large-search button:hover,
.filter-toolbar button:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.28);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.16);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #1e293b;
}

.mobile-nav.is-open {
    display: grid;
}

.mobile-nav-title {
    padding: 10px 12px 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(660px, 100%);
}

.hero-labels,
.hero-meta,
.hero-actions,
.hero-tags,
.card-meta,
.card-foot,
.tag-row,
.breadcrumb,
.nav-neighbor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-gradient,
.rating-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.pill-gradient {
    color: #fff;
    background: var(--gradient-hot);
}

.rating-pill {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero p,
.page-hero p,
.detail-copy p {
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: 20px;
}

.hero-meta {
    margin-bottom: 18px;
    color: #f8fafc;
}

.hero-meta span,
.hero-tags span,
.tag-row span {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
}

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

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 46px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dot.is-active {
    width: 68px;
    background: #f97316;
}

.stats-strip {
    background: #fff;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.18);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 0;
    text-align: center;
}

.stats-grid strong {
    display: block;
    color: #ea580c;
    font-size: 36px;
    line-height: 1;
}

.stats-grid span {
    color: var(--color-muted);
}

.section {
    padding: 72px 0;
}

.soft-bg {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8 52%, #f8fafc);
}

.dark-section {
    color: #fff;
    background: var(--gradient-cool);
}

.dark-section .section-heading p,
.dark-section .card-body p,
.dark-section .card-meta,
.dark-section .card-foot {
    color: #cbd5e1;
}

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

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #f97316;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.prose-card h2,
.watch-panel h2,
.detail-side h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 10px 0 0;
    max-width: 680px;
    color: var(--color-muted);
}

.section-link {
    color: #ea580c;
    font-weight: 800;
}

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

.category-card,
.category-summary {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #0f172a;
    box-shadow: var(--shadow-card);
}

.category-card {
    min-height: 220px;
    padding: 22px;
    color: #fff;
}

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

.category-card:hover img,
.movie-card:hover img,
.category-summary:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.92));
}

.category-card strong,
.category-card em,
.category-card small {
    position: relative;
    z-index: 1;
    display: block;
}

.category-card strong {
    margin-top: 90px;
    font-size: 24px;
}

.category-card em {
    font-style: normal;
    color: #fed7aa;
    font-weight: 800;
}

.category-card small {
    margin-top: 8px;
    color: #e2e8f0;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.poster-frame {
    background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.5), transparent 28%), linear-gradient(135deg, #0f172a, #1e293b);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.play-float,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

.play-float {
    right: 14px;
    bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--gradient-hot);
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.3);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 40px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 18px;
}

.card-meta,
.card-foot {
    color: var(--color-muted);
    font-size: 13px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h3 a:hover {
    color: #ea580c;
}

.card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
}

.tag-row {
    margin-bottom: 12px;
}

.tag-row span {
    background: #f1f5f9;
    color: #475569;
}

.card-foot {
    justify-content: space-between;
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.rank-list,
.search-panel,
.prose-card,
.watch-panel,
.detail-side,
.filter-toolbar {
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.rank-list {
    overflow: hidden;
}

.rank-row {
    display: grid;
    grid-template-columns: 56px 1fr 80px 90px;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.rank-row:hover {
    background: #fff7ed;
}

.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: var(--gradient-hot);
    font-weight: 900;
}

.rank-title {
    font-weight: 800;
}

.rank-score {
    color: #ca8a04;
    font-weight: 900;
}

.rank-views {
    color: var(--color-muted);
    text-align: right;
}

.search-panel,
.prose-card,
.watch-panel,
.detail-side {
    padding: 28px;
}

.large-search {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.large-search input,
.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    background: #f8fafc;
}

.large-search button,
.filter-toolbar button {
    padding: 13px 18px;
}

.page-hero {
    padding: 90px 0;
    color: #fff;
    background: var(--gradient-cool);
}

.slim-hero,
.category-hero,
.ranking-hero,
.search-hero {
    position: relative;
    overflow: hidden;
}

.slim-hero::after,
.category-hero::after,
.ranking-hero::after,
.search-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.42), transparent 68%);
}

.breadcrumb {
    margin-bottom: 14px;
    color: #cbd5e1;
}

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

.category-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-summary {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 18px;
    background: #fff;
}

.category-summary-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

.category-summary-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-summary h2 {
    margin: 4px 0 8px;
}

.category-summary p {
    color: var(--color-muted);
}

.category-summary span {
    color: #ea580c;
    font-weight: 900;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 150px 160px 110px;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
}

.filter-toolbar label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.result-count {
    margin: 0 0 18px;
    color: #475569;
    font-weight: 900;
}

.empty-results {
    padding: 42px;
    border-radius: var(--radius-xl);
    background: #fff;
    text-align: center;
    color: var(--color-muted);
    box-shadow: var(--shadow-card);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background: #020617;
}

.detail-bg,
.detail-bg img,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.08);
    opacity: 0.55;
}

.detail-shade {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.25));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 46px;
    align-items: center;
    min-height: 620px;
    padding: 54px 0;
}

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

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.detail-meta-grid span {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

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

.video-player {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.34);
}

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

.center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--gradient-hot);
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.36);
}

.center-play span {
    margin-left: 4px;
    font-size: 34px;
}

.video-player.is-playing .center-play {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 16px;
    max-width: calc(100% - 36px);
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 13px;
}

.source-line {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 14px;
}

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

.detail-side dl div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-side dt {
    color: var(--color-muted);
    font-weight: 900;
}

.detail-side dd {
    margin: 0;
}

.detail-side a {
    color: #ea580c;
    font-weight: 800;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.prose-card p {
    color: #475569;
}

.nav-neighbor {
    justify-content: space-between;
}

.nav-neighbor a {
    padding: 14px 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-card);
    font-weight: 800;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 26px;
    align-items: start;
}

.sitemap-grid ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-left: 20px;
}

.sitemap-grid a:hover {
    color: #ea580c;
}

.sitemap-movies {
    max-height: 760px;
    overflow: auto;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
    color: #94a3b8;
}

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

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

    .rank-layout,
    .detail-layout,
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-menu-button {
        display: flex;
    }

    .hero {
        height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.92));
    }

    .stats-grid,
    .category-grid,
    .movie-grid,
    .category-summary-grid,
    .detail-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .detail-poster {
        width: min(280px, 78vw);
    }

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

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

    .logo-text {
        font-size: 20px;
    }

    .hero,
    .detail-hero,
    .detail-hero-inner {
        min-height: 560px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

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

    .section {
        padding: 48px 0;
    }

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

    .stats-grid,
    .category-grid,
    .movie-grid,
    .category-summary-grid,
    .filter-toolbar,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 44px 1fr 64px;
    }

    .rank-views {
        display: none;
    }
}
