:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(59, 130, 246, 0.28);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --deep-blue: #1e3a8a;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.2), transparent 26rem),
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.18), transparent 28rem),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #06152f 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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: 50;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(30, 58, 138, 0.9), rgba(2, 6, 23, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #03111f;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.34);
}

.brand-name {
    font-size: 1.28rem;
    background: linear-gradient(90deg, var(--cyan), #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link,
.mobile-link {
    color: var(--soft);
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-menu {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
    display: grid;
    gap: 14px;
}

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.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-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.08);
    opacity: 0.42;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.66), rgba(15, 23, 42, 0.22)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.66) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 110px;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-copy h1 {
    margin: 16px 0 0;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(1.42rem, 3vw, 2.55rem);
    line-height: 1.18;
    color: #f8fafc;
}

.hero-copy p {
    max-width: 640px;
    color: #cbd5e1;
    font-size: 1.08rem;
    margin: 18px 0 0;
}

.hero-tags,
.tag-line,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-line span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.08);
    color: #67e8f9;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.84rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #03111f;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 18px 38px rgba(34, 211, 238, 0.25);
}

.btn.ghost {
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(10px);
}

.btn.ghost:hover {
    border-color: rgba(34, 211, 238, 0.55);
}

.hero-poster {
    align-self: center;
    border: 1px solid rgba(34, 211, 238, 0.26);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
    border-radius: 30px;
    padding: 14px;
    backdrop-filter: blur(14px);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.hero-poster span {
    display: block;
    text-align: center;
    color: var(--cyan);
    font-weight: 800;
    padding: 14px 0 4px;
}

.hero-tools {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 3;
}

.hero-tools-inner {
    display: grid;
    grid-template-columns: minmax(260px, 390px) 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 14px;
}

.hero-search {
    display: flex;
    gap: 8px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--text);
    background: rgba(2, 6, 23, 0.58);
    border-radius: 16px;
    outline: none;
    min-height: 46px;
    padding: 0 14px;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.hero-search button {
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    min-height: 46px;
    color: #03111f;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    cursor: pointer;
}

.hero-categories,
.hero-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-categories a {
    color: var(--soft);
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.38);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.hero-categories a:hover {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.45);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.46);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--cyan);
}

.content-section,
.page-main {
    padding-top: 76px;
}

.page-main {
    padding-bottom: 30px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-panel h2,
.info-card h2 {
    margin: 8px 0 0;
    color: #f8fafc;
    line-height: 1.15;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.footer-grid p,
.category-tile p,
.category-overview-card p,
.movie-info p,
.article-panel p {
    color: var(--muted);
}

.section-link,
.text-link {
    color: var(--cyan);
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.62);
    border-radius: 24px;
    padding: 14px;
    backdrop-filter: blur(10px);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

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

.movie-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.56));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.54);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.35);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.75);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.08;
    object-fit: cover;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: brightness(0.82);
}

.year-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 900;
}

.year-badge {
    right: 12px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(191, 219, 254, 0.18);
}

.rank-badge {
    left: 12px;
    color: #03111f;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
}

.play-hover {
    position: absolute;
    inset: auto 14px 14px auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #03111f;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
    transform: translateY(0);
}

.movie-info {
    padding: 16px;
}

.meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #93c5fd;
    font-size: 0.84rem;
    font-weight: 700;
}

.movie-info h3 {
    margin: 8px 0 8px;
    color: #f8fafc;
    line-height: 1.25;
    font-size: 1.05rem;
}

.movie-info h3 a:hover {
    color: var(--cyan);
}

.movie-info p {
    margin: 0 0 12px;
    font-size: 0.92rem;
}

.tag-line span {
    font-size: 0.74rem;
    padding: 3px 8px;
}

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

.category-tile,
.category-overview-card,
.page-hero,
.detail-hero,
.article-panel,
.info-card,
.player-panel {
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.66);
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.category-tile {
    min-height: 170px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.12);
}

.category-tile span {
    display: block;
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.category-tile:hover {
    border-color: rgba(34, 211, 238, 0.54);
    transform: translateY(-4px);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-grid .movie-card,
.related-grid .movie-card,
.movie-card.compact {
    display: grid;
    grid-template-columns: 112px 1fr;
    min-height: 168px;
}

.rank-grid.wide .movie-card {
    grid-template-columns: 132px 1fr;
}

.rank-grid .poster-link img,
.related-grid .poster-link img,
.movie-card.compact .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

.empty-state {
    display: none;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.36);
    border-radius: 22px;
    padding: 32px;
    margin-top: 20px;
}

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

.page-hero,
.detail-hero {
    margin-top: 34px;
    padding: clamp(28px, 5vw, 54px);
}

.small-hero,
.category-hero,
.rank-hero {
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 24rem),
        rgba(15, 23, 42, 0.66);
}

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

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 18px;
    align-items: center;
}

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

.category-cover-stack img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.category-number {
    color: var(--cyan);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 6px 0 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: center;
    gap: 40px;
}

.detail-copy .lead {
    color: #dbeafe;
    font-size: 1.08rem;
    max-width: 780px;
}

.detail-meta {
    margin-top: 22px;
}

.detail-meta span {
    border: 1px solid rgba(147, 197, 253, 0.24);
    background: rgba(59, 130, 246, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
}

.detail-poster {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.32);
    box-shadow: var(--shadow);
}

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

.detail-poster span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #03111f;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
}

.player-section {
    padding-top: 34px;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
    color: var(--text);
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52) saturate(1.1);
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.72));
}

.player-start-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #03111f;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    font-size: 2rem;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.38);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding-top: 34px;
}

.article-panel,
.info-card {
    padding: clamp(22px, 4vw, 34px);
}

.article-panel h2:not(:first-child) {
    margin-top: 30px;
}

.article-panel p {
    font-size: 1.02rem;
}

.detail-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.info-card dl {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px 14px;
    margin: 18px 0 0;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    color: #e0f2fe;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, #020617, #06152f, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #f8fafc;
}

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

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

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--muted);
    text-align: center;
    padding: 18px;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 250px;
        gap: 28px;
    }

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

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

    .category-overview,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding-bottom: 210px;
    }

    .hero-poster {
        display: none;
    }

    .hero-tools-inner,
    .filter-bar,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-categories {
        max-height: 84px;
        overflow: auto;
    }

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

    .rank-grid .movie-card,
    .related-grid .movie-card,
    .movie-card.compact,
    .rank-grid.wide .movie-card {
        grid-template-columns: 105px 1fr;
    }

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

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

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

    .brand-name {
        font-size: 1.06rem;
    }

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

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .hero-copy h2 {
        font-size: 1.42rem;
    }

    .hero-tools {
        bottom: 16px;
    }

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

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 12px;
    }

    .page-hero,
    .detail-hero,
    .article-panel,
    .info-card {
        border-radius: 22px;
    }

    .player-start-icon {
        width: 68px;
        height: 68px;
        font-size: 1.55rem;
    }
}
