@font-face {
    font-family: "SystemFallback";
    src: local("Microsoft YaHei"), local("PingFang SC"), local("Noto Sans CJK SC"), local("Arial");
}

:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --blue-soft: #eff6ff;
    --orange: #f97316;
    --gold: #eab308;
    --green: #22c55e;
    --red: #ef4444;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --page: #f9fafb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-family: SystemFallback, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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(15, 23, 42, 0.78);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--blue);
    font-size: 22px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.site-header.is-scrolled .brand-mark {
    background: var(--blue);
    color: #ffffff;
}

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

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

.desktop-nav a,
.mobile-panel nav a {
    opacity: 0.88;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
    color: #60a5fa;
    opacity: 1;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.search-tools select,
.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled .header-search input,
.filter-panel input,
.search-tools select,
.filter-panel select,
.big-search input {
    background: #ffffff;
    color: var(--ink);
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus,
.search-tools select:focus,
.filter-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    background: var(--blue);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
}

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

.hero-slider {
    position: relative;
    height: min(640px, calc(100vh - 68px));
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(120deg, #172554, #1e40af, #111827);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide > img,
.category-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.08));
}

.hero-content,
.page-hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 7px 14px;
    background: var(--blue);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

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

.btn-light:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-wrap,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.section-wrap + .section-wrap {
    padding-top: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading a {
    margin-left: auto;
    color: var(--blue);
    font-weight: 800;
}

.section-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    font-weight: 900;
}

.section-icon.orange {
    color: var(--orange);
}

.section-icon.blue {
    color: var(--blue);
}

.section-icon.gold {
    color: var(--gold);
}

.section-icon.green {
    color: var(--green);
}

.section-icon.red {
    color: var(--red);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbeafe;
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(37, 99, 235, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.32;
    font-weight: 900;
}

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

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.65;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--blue-soft);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .movie-poster {
    aspect-ratio: auto;
    height: 100%;
    min-height: 210px;
}

.blue-panel {
    border-radius: 28px;
    padding: 34px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    box-shadow: var(--shadow);
}

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

.category-tile {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    overflow: hidden;
    border-radius: 16px;
    background: #dbeafe;
}

.category-cover-grid img,
.category-art img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.category-tile strong {
    font-size: 18px;
    font-weight: 900;
}

.category-tile small {
    color: var(--blue);
    font-weight: 800;
}

.ranking-panel {
    border-radius: 28px;
    padding: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 64px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    border-color: var(--blue);
    transform: translateX(3px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #fee2e2;
    color: var(--red);
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

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

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

.page-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: linear-gradient(120deg, #172554, #1d4ed8);
}

.simple-hero {
    width: min(1180px, calc(100% - 32px));
    min-height: auto;
    margin: 36px auto 0;
    border-radius: 30px;
    padding: 66px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.simple-hero h1,
.simple-hero p {
    position: relative;
    z-index: 1;
}

.category-hero {
    height: 420px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    overflow: hidden;
    border-radius: 18px;
    background: #dbeafe;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.7;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mini-links a {
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.text-link {
    color: var(--blue);
    font-weight: 900;
}

.filter-panel,
.search-tools {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
}

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

.search-hero {
    text-align: left;
}

.big-search {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(760px, 100%);
    gap: 10px;
}

.big-search input {
    flex: 1;
    padding: 14px 16px;
}

.big-search button {
    padding-inline: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 800;
}

.detail-wrap {
    padding-top: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.player-card,
.detail-article,
.side-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: rgba(2, 6, 23, 0.12);
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.play-mark {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin-bottom: 82px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.42);
    font-size: 34px;
}

.player-cover strong {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    max-width: calc(100% - 48px);
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.15;
    text-align: left;
}

.detail-article {
    padding: 28px;
}

.detail-article h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
}

.detail-article .lead {
    margin: 0 0 20px;
    color: #374151;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    padding: 12px;
    background: #f8fafc;
    color: #374151;
}

.detail-meta-grid b {
    color: var(--muted);
    font-size: 12px;
}

.detail-article h2,
.side-card h2 {
    margin: 26px 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.detail-article p {
    color: #374151;
    line-height: 1.9;
}

.side-card {
    padding: 18px;
}

.poster-side img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 14px;
}

.poster-side .btn {
    width: 100%;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    display: grid;
    gap: 4px;
    border-radius: 14px;
    padding: 11px 12px;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.side-links a:hover {
    background: var(--blue-soft);
}

.side-links span {
    font-weight: 900;
}

.side-links small {
    color: var(--muted);
}

.site-footer {
    margin-top: 36px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

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

.footer-inner p {
    width: 100%;
    margin: 0;
    color: #94a3b8;
}

[hidden] {
    display: none !important;
}

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

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
    }

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

    .hero-slider {
        min-height: 560px;
    }

    .hero-content h1,
    .hero-content h2,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-arrow {
        display: none;
    }

    .section-wrap,
    .detail-wrap {
        width: min(100% - 24px, 1180px);
        padding: 36px 0;
    }

    .movie-grid,
    .compact-grid,
    .two-col-grid,
    .category-movie-grid,
    .category-grid,
    .rank-list,
    .large-rank-list,
    .category-overview-grid,
    .detail-side,
    .filter-panel,
    .search-tools {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .simple-hero {
        width: min(100% - 24px, 1180px);
        padding: 42px 24px;
    }

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

    .rank-row {
        grid-template-columns: 36px 56px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

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

    .footer-inner,
    .footer-links {
        display: grid;
        margin-left: 0;
    }
}
