:root {
    --blue-950: #0b1d4d;
    --blue-900: #102a67;
    --blue-800: #174496;
    --blue-600: #2563eb;
    --cyan-400: #22d3ee;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: #f1f5f9;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.header-inner {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-name {
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.nav-link {
    padding: 8px 0;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #bfdbfe;
    opacity: 1;
}

.nav-link.soft {
    opacity: 0.78;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 20px;
}

.mobile-nav {
    display: none;
    padding: 8px 18px 18px;
    background: rgba(15, 23, 42, 0.28);
}

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

.mobile-nav-link {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.home-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1d4d 0%, #1d4ed8 48%, #22d3ee 100%);
    color: #ffffff;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.32;
}

.hero-glow-a {
    left: -120px;
    top: 80px;
    background: #60a5fa;
}

.hero-glow-b {
    right: 4%;
    bottom: -130px;
    background: #67e8f9;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 600px;
    margin: 0 auto;
    padding: 64px 22px;
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    align-items: center;
    gap: 44px;
}

.hero-main h1,
.page-hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bfdbfe;
}

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

.hero-search {
    margin-top: 28px;
    display: flex;
    max-width: 560px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.hero-search button,
.primary-btn,
.ghost-btn,
.filter-panel button,
.small-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-btn,
.small-play {
    padding: 13px 22px;
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover,
.hero-search button:hover,
.small-play:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.ghost-btn {
    padding: 12px 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

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

.hero-actions-main {
    margin-top: 20px;
}

.hero-carousel {
    position: relative;
    min-height: 440px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.36);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    gap: 22px;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-copy {
    align-self: center;
    min-width: 0;
}

.hero-copy h2 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.14;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster {
    min-height: 360px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-dots {
    position: absolute;
    left: 28px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

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

.section-block {
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 22px;
}

.white-block {
    background: #ffffff;
}

.soft-block {
    background: #f8fafc;
}

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

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.section-head a,
.text-link {
    color: #2563eb;
    font-weight: 800;
}

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

.hot-card {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    min-height: 150px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.hot-cover {
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
}

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

.hot-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.hot-content strong {
    font-size: 18px;
    line-height: 1.35;
}

.hot-content em,
.hot-content small {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.hot-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-size: 12px;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
}

.movie-year,
.rank-no {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.rank-no {
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    background: #ef4444;
}

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

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    margin-bottom: 8px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-title:hover {
    color: #2563eb;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    color: #64748b;
    font-size: 12px;
}

.movie-meta span {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.category-tile,
.category-card {
    display: block;
    padding: 22px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(37, 99, 235, 0.28);
}

.category-tile strong {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

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

.category-card {
    padding: 0;
    overflow: hidden;
    color: var(--text);
    background: #ffffff;
}

.category-card-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 180px;
    overflow: hidden;
}

.category-card-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    padding: 24px;
}

.category-card-body h2 {
    margin: 0 0 10px;
}

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

.ranking-preview {
    max-width: none;
    padding-left: max(22px, calc((100vw - 1280px) / 2 + 22px));
    padding-right: max(22px, calc((100vw - 1280px) / 2 + 22px));
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #0f766e);
}

.dark-head .section-kicker,
.dark-head a {
    color: #bfdbfe;
}

.ranking-list-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8, #0891b2);
}

.compact-hero {
    padding: 76px 22px;
}

.compact-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.compact-hero h1 {
    max-width: 820px;
    font-size: clamp(36px, 5vw, 58px);
}

.filter-panel {
    max-width: 1280px;
    margin: -28px auto 0;
    padding: 18px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px 140px;
    gap: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-panel button {
    color: #ffffff;
    background: #0f172a;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(8px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.88));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 540px;
    margin: 0 auto;
    padding: 58px 22px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #bfdbfe;
    font-size: 14px;
}

.detail-info h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 840px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-info .primary-btn {
    margin-top: 22px;
}

.player-section {
    padding: 42px 22px;
    background: #020617;
}

.player-shell {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

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

.player-cover {
    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(37, 99, 235, 0.38), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

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

.play-circle {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 34px;
    background: rgba(37, 99, 235, 0.88);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.42);
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 38px);
}

.player-cover em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

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

.article-panel,
.side-panel {
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-panel p {
    color: #334155;
    line-height: 1.9;
    font-size: 16px;
}

.side-panel dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.side-panel dt {
    color: #64748b;
}

.side-panel dd {
    margin: 0;
    font-weight: 700;
}

.page-neighbor {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.page-neighbor a {
    padding: 12px;
    border-radius: 12px;
    color: #2563eb;
    background: #eff6ff;
    font-weight: 700;
}

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

.ranking-page {
    background: transparent;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 76px 86px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #ffffff;
}

.ranking-number {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 20px;
    font-weight: 900;
}

.ranking-thumb {
    overflow: hidden;
    border-radius: 12px;
}

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

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-content p {
    margin: 0 0 10px;
    color: #64748b;
    line-height: 1.65;
}

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

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 22px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.footer-grid p,
.footer-grid li {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: #93c5fd;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

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

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

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

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

    .hero-poster {
        min-height: 260px;
    }

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

    .featured-strip,
    .ranking-list-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .menu-toggle {
        display: block;
    }

    .brand-name {
        max-width: 62vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-inner {
        min-height: auto;
        padding: 46px 18px;
    }

    .hero-search,
    .hero-actions {
        border-radius: 24px;
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-slide {
        padding: 20px;
    }

    .movie-grid,
    .home-grid,
    .related-grid,
    .featured-strip,
    .ranking-list-preview,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr;
        margin-left: 18px;
        margin-right: 18px;
    }

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

    .detail-poster {
        width: 220px;
    }

    .ranking-item {
        grid-template-columns: 54px 70px minmax(0, 1fr);
    }

    .ranking-item .small-play {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

@media (max-width: 560px) {
    .home-hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-main h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-carousel {
        min-height: 660px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .home-grid,
    .related-grid,
    .featured-strip,
    .ranking-list-preview,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hot-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .section-block,
    .compact-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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