:root {
    --site-blue: #2563eb;
    --site-blue-dark: #1e40af;
    --site-teal: #0f766e;
    --site-green: #059669;
    --site-orange: #f97316;
    --site-red: #ef4444;
    --site-bg: #f8fafc;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
    --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 55px rgba(37, 99, 235, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-teal));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
}

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

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

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

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--site-blue);
    background: #eff6ff;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--site-blue);
}

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

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

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

.hero-shell {
    position: relative;
    min-height: 660px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8 42%, #0f172a);
    color: #ffffff;
    overflow: hidden;
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.15) contrast(1.06);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 28%, rgba(20, 184, 166, 0.35), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(37, 99, 235, 0.78), rgba(15, 23, 42, 0.66));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.52fr);
    align-items: center;
    gap: 48px;
    padding: 86px 0 100px;
}

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #dbeafe;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.hero-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.16;
    color: #bfdbfe;
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--site-blue-dark);
    font-size: 12px;
    font-weight: 800;
}

.hero-tags .tag-pill {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

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

.hero-focus {
    display: grid;
    gap: 10px;
    max-width: 680px;
    margin-top: 28px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
}

.hero-focus > span {
    color: #bfdbfe;
    font-weight: 900;
}

.hero-focus-link {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-focus-link:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-focus-link strong {
    color: #ffffff;
}

.hero-focus-link span {
    color: #dbeafe;
    font-size: 14px;
}

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

.hero-stat-card {
    display: grid;
    align-content: center;
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.hero-stat-card span {
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    font-weight: 950;
}

.hero-stat-card em {
    margin-top: 10px;
    color: #bfdbfe;
    font-style: normal;
    font-weight: 700;
}

.btn-primary,
.btn-ghost,
.btn-soft,
.section-link,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary,
.btn-ghost,
.btn-soft {
    min-height: 48px;
    padding: 0 22px;
}

.btn-primary {
    background: #ffffff;
    color: var(--site-blue);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

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

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

.btn-soft {
    background: rgba(37, 99, 235, 0.22);
    color: #dbeafe;
    border: 1px solid rgba(191, 219, 254, 0.32);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(360px, 100%);
    justify-self: end;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

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

.hero-arrow {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.36);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

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

.page-wrap {
    padding: 48px 0 72px;
}

.section-block {
    padding: 64px 0;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--site-muted);
    font-size: 17px;
}

.section-link,
.card-link {
    padding: 10px 16px;
    color: var(--site-blue);
    background: #eff6ff;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    padding: 24px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #0f766e, #059669);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-tile:nth-child(4n) {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

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

.category-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    right: -30px;
    top: -30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-title,
.category-desc,
.category-sample {
    position: relative;
    z-index: 1;
    display: block;
}

.category-title {
    font-size: 24px;
    font-weight: 900;
}

.category-desc {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.82);
}

.category-sample {
    margin-top: 18px;
    font-weight: 800;
    color: #ffffff;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: var(--shadow-hover);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

.poster-frame img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.66), transparent);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 12px;
    font-weight: 900;
}

.movie-card-body {
    padding: 16px;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--site-blue);
}

.movie-card p {
    margin: 0 0 12px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 16px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.search-wrap input,
.filter-selects select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    outline: none;
}

.search-wrap input {
    padding: 0 16px;
}

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

.filter-selects select {
    padding: 0 14px;
}

.search-wrap input:focus,
.filter-selects select:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.42), transparent 28%), linear-gradient(135deg, #2563eb, #0f766e);
    padding: 62px 0;
}

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

.page-title h1,
.page-title p {
    color: #ffffff;
}

.page-title p {
    color: #dbeafe;
    max-width: 780px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 86px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rank-num {
    color: var(--site-orange);
    font-size: 28px;
    font-weight: 950;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

.rank-thumb img {
    width: 86px;
    height: 112px;
    object-fit: cover;
}

.rank-main h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-main p {
    margin: 0;
    color: #64748b;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #64748b;
    font-weight: 700;
}

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

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

.detail-main,
.detail-side,
.content-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-main {
    overflow: hidden;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #020617;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.34), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--site-blue);
    font-size: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.detail-body,
.side-body,
.content-card {
    padding: 24px;
}

.detail-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.detail-one-line {
    color: #475569;
    font-size: 18px;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.meta-strip span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
}

.article-copy h2,
.detail-side h2,
.content-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 24px;
}

.article-copy p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

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

.recommend-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.recommend-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.recommend-item:hover {
    background: #eff6ff;
    transform: translateX(2px);
}

.recommend-item img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

.recommend-item strong {
    display: block;
    color: #0f172a;
    line-height: 1.3;
}

.recommend-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 46px 0;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.55fr 0.85fr;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    margin: 12px 0 0;
    max-width: 520px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a {
    color: #dbeafe;
    font-weight: 700;
}

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

.footer-links.compact {
    align-content: start;
}

.is-filtered-out {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 22px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    box-shadow: var(--shadow-card);
}

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

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

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

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

    .hero-poster {
        justify-self: start;
        width: min(300px, 100%);
    }

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

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

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

    .hero-shell,
    .hero-slide,
    .hero-inner {
        min-height: 720px;
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 120px;
    }

    .hero-poster {
        display: none;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn-primary,
    .btn-ghost,
    .btn-soft {
        width: 100%;
    }

    .section-head,
    .rank-row,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .rank-thumb {
        display: none;
    }

    .rank-row .card-link {
        grid-column: 1 / -1;
    }

    .detail-body,
    .side-body,
    .content-card {
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
}
