:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --pink: #ec4899;
    --green: #10b981;
    --orange: #f97316;
    --dark: #020617;
    --dark-2: #0f172a;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96));
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.35);
}

.brand-name {
    font-size: 22px;
}

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

.nav-link,
.nav-more > button {
    border: 0;
    color: #dbeafe;
    background: transparent;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-more:hover > button {
    color: #ffffff;
    background: rgba(148, 163, 184, 0.2);
}

.nav-more {
    position: relative;
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    padding: 10px;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-more:hover .nav-more-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-more-menu a {
    display: block;
    padding: 10px 12px;
    color: #e2e8f0;
    border-radius: 10px;
}

.nav-more-menu a:hover {
    background: rgba(6, 182, 212, 0.16);
}

.header-search {
    position: relative;
    width: min(280px, 24vw);
}

.header-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    padding: 10px 42px 10px 16px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    outline: none;
}

.header-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    color: #e2e8f0;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.18);
    cursor: pointer;
}

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

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

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

.mobile-panel a,
.mobile-search {
    display: flex;
    margin-top: 8px;
}

.mobile-panel a {
    padding: 11px 14px;
    border-radius: 12px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.1);
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px 0 0 12px;
    padding: 11px 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
}

.mobile-search button {
    border: 0;
    border-radius: 0 12px 12px 0;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: var(--dark);
    color: #ffffff;
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    background-position: center;
    background-size: cover;
    filter: saturate(1.08) brightness(0.55);
    transform: scale(1.04);
}

.hero-overlay {
    background:
        radial-gradient(circle at 18% 25%, rgba(6, 182, 212, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.25) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, transparent 34%);
}

.hero-content {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.48fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0 86px;
}

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

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

.hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.section-block {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.section-with-bg {
    width: 100%;
    padding-left: max(16px, calc((100% - 1280px) / 2));
    padding-right: max(16px, calc((100% - 1280px) / 2));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(226, 232, 240, 0.48));
}

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

.section-head h2,
.article-block h2,
.category-overview-card h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.section-head > a {
    color: var(--blue);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    background: var(--dark-2);
    box-shadow: var(--shadow);
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.9));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    display: block;
    margin-top: 94px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: #e2e8f0;
    font-size: 14px;
}

.category-card:hover img {
    transform: scale(1.08);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.play-chip {
    right: 10px;
    background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
    left: 10px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.movie-title {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    color: var(--ink);
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--blue);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 7px;
    color: #94a3b8;
}

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

.tag-row span {
    color: #0369a1;
    background: #e0f2fe;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card-compact .poster-link img {
    height: 100%;
    min-height: 160px;
    aspect-ratio: auto;
}

.movie-card-compact .movie-title {
    min-height: auto;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #020617, #0f172a 62%, #083344);
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 58px;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.slim-hero p,
.category-hero p,
.ranking-hero p {
    max-width: 780px;
    margin: 14px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.page-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.04;
}

.overview-grid {
    display: grid;
    gap: 20px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-cover {
    overflow: hidden;
    border-radius: 18px;
}

.category-cover img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.category-overview-card p {
    margin: 10px 0 14px;
    color: var(--muted);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--ink);
    outline: none;
    background: #f8fafc;
}

.filter-search input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.large-search input {
    font-size: 18px;
    padding: 17px 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    color: #0f172a;
    background: #e2e8f0;
    cursor: pointer;
    font-weight: 700;
}

.filter-row button.is-active,
.filter-row button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
    background: var(--panel);
}

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

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

.detail-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    background-position: center;
    background-size: cover;
    filter: blur(6px) saturate(1.12) brightness(0.54);
    transform: scale(1.06);
}

.detail-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.32)),
        radial-gradient(circle at 72% 24%, rgba(6, 182, 212, 0.25), transparent 30%);
}

.detail-inner {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #bae6fd;
    font-weight: 700;
}

.detail-copy h1 {
    margin: 16px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
    color: #ecfeff;
    background: rgba(6, 182, 212, 0.32);
}

.detail-copy .primary-button {
    margin-top: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-trigger {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-trigger span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.34);
    font-size: 34px;
}

.player-trigger strong {
    font-size: 20px;
}

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

.article-block {
    color: #334155;
    background: var(--panel);
    border-radius: 30px;
    padding: 42px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.article-block h2 {
    color: var(--ink);
}

.article-block p {
    margin: 12px 0 28px;
    font-size: 17px;
}

.site-footer {
    margin-top: 28px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #0f172a);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
    padding: 48px 0;
}

.footer-brand p {
    max-width: 470px;
    margin: 16px 0 0;
    color: #94a3b8;
}

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

.footer-links h2 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-poster,
    .detail-poster {
        max-width: 340px;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
    }

    .brand-name {
        font-size: 19px;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 58px;
        padding-bottom: 80px;
    }

    .hero-poster,
    .detail-poster {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

    .section-block,
    .page-hero,
    .detail-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1280px);
    }

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

    .section-with-bg {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

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

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

    .movie-card-compact {
        display: block;
    }

    .movie-card-compact .poster-link img {
        min-height: 0;
        aspect-ratio: 2 / 3;
    }

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

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-inner {
        padding: 48px 0;
    }

    .detail-meta span {
        font-size: 13px;
    }

    .article-block {
        padding: 26px;
        border-radius: 24px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }
}
