:root {
    --fog-950: #07111f;
    --fog-900: #0f172a;
    --fog-800: #1f2937;
    --fog-700: #334155;
    --fog-600: #475569;
    --mist-50: #f8fafc;
    --mist-100: #f1f5f9;
    --mist-200: #e2e8f0;
    --mist-300: #cbd5e1;
    --mist-600: #64748b;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --amber-400: #fbbf24;
    --rose-500: #f43f5e;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.16);
    --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.24);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--fog-800);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--mist-50) 42%, #edf7fb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.72);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.nav-shell {
    max-width: 1180px;
    margin: 0 auto;
    height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fog-900);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), #2563eb 55%, #7c3aed);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

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

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--fog-600);
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--white);
    background: var(--cyan-500);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    color: var(--fog-700);
    background: var(--mist-100);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 74vh;
    overflow: hidden;
    background: var(--fog-900);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--fog-900), #0e7490);
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.72) 38%, rgba(7, 17, 31, 0.28) 100%),
        linear-gradient(0deg, rgba(7, 17, 31, 0.9) 0%, rgba(7, 17, 31, 0.1) 45%, rgba(7, 17, 31, 0.28) 100%);
}

.hero-inner {
    position: relative;
    max-width: 1180px;
    min-height: 74vh;
    margin: 0 auto;
    padding: 86px 20px 70px;
    display: flex;
    align-items: flex-end;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.92);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.22);
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: #dbeafe;
    font-size: clamp(1rem, 2.1vw, 1.22rem);
    line-height: 1.8;
}

.hero-meta {
    margin: 22px 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #e0f2fe;
    font-weight: 700;
}

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

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.28);
}

.btn-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(10px);
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(6, 182, 212, 0.82);
    transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-arrow.next {
    right: 22px;
    transform: translateY(-50%);
}

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

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

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

.page-section,
.content-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--fog-900);
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p,
.page-title p,
.detail-title p,
.category-intro p {
    margin: 8px 0 0;
    color: var(--mist-600);
    line-height: 1.8;
}

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

.movie-card {
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dff7ff, #e7e5ff);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, filter 0.36s ease;
}

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

.poster-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.poster-type {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.9);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: var(--fog-900);
    font-size: 1.03rem;
    line-height: 1.35;
}

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

.movie-info p {
    margin: 0;
    min-height: 3.15em;
    color: var(--fog-600);
    font-size: 0.92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--mist-600);
    font-size: 0.82rem;
    font-weight: 700;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--mist-100);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 22px;
    border-radius: 22px;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.32), transparent 34%),
        linear-gradient(135deg, #0891b2, #1d4ed8 52%, #6d28d9);
    box-shadow: var(--shadow-medium);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 1.28rem;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    font-size: 0.92rem;
}

.category-card span {
    position: absolute;
    right: -20px;
    bottom: -28px;
    color: rgba(255, 255, 255, 0.16);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
}

.filter-panel {
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 180px 160px 160px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mist-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--fog-800);
    background: var(--white);
    outline: none;
}

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

.empty-state {
    display: none;
    padding: 24px;
    border-radius: 18px;
    color: var(--fog-600);
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.rank-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #dff7ff, #e7e5ff);
}

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

.rank-info h3 {
    margin: 2px 0 8px;
    color: var(--fog-900);
    font-size: 1.08rem;
}

.rank-info p {
    margin: 0;
    color: var(--fog-600);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    padding: 62px 20px 34px;
    background:
        radial-gradient(circle at 16% 20%, rgba(34, 211, 238, 0.22), transparent 25rem),
        linear-gradient(135deg, var(--fog-900), #0e7490 52%, #312e81);
    color: var(--white);
}

.page-title {
    max-width: 1180px;
    margin: 0 auto;
}

.page-title h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #dbeafe;
    font-weight: 700;
}

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

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

.detail-card,
.side-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.detail-title {
    padding: 24px 24px 10px;
}

.detail-title h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.detail-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--fog-700);
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--mist-100);
}

.player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--fog-950);
    overflow: hidden;
}

.player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 0;
    border: 0;
    color: var(--white);
    background: var(--fog-950);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(7, 17, 31, 0.92), rgba(7, 17, 31, 0.18)),
        radial-gradient(circle at center, rgba(6, 182, 212, 0.32), transparent 16rem);
}

.player-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: var(--white);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--cyan-500), #2563eb);
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
    transform: translate(-50%, -50%);
}

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

.detail-body {
    padding: 24px;
}

.detail-body h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--fog-900);
    font-size: 1.35rem;
}

.detail-body p {
    margin: 0 0 22px;
    color: var(--fog-700);
    line-height: 1.95;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.side-card {
    padding: 18px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-link {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--mist-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
    background: #e0f7fe;
    transform: translateX(3px);
}

.side-link img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #dff7ff, #e7e5ff);
}

.side-link strong {
    display: block;
    color: var(--fog-900);
    line-height: 1.35;
}

.side-link span {
    display: block;
    margin-top: 5px;
    color: var(--mist-600);
    font-size: 0.82rem;
}

.category-intro {
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-intro h2 {
    margin: 0;
    color: var(--fog-900);
}

.site-footer {
    margin-top: 50px;
    color: #dbeafe;
    background: var(--fog-900);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer-inner p,
.footer-inner a {
    color: #bfdbfe;
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 16px 20px;
    color: #93c5fd;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

    .rank-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
    }

    .hero,
    .hero-inner {
        min-height: 76vh;
    }

    .hero-inner {
        padding: 78px 18px 70px;
    }

    .hero-arrow {
        display: none;
    }

    .page-section,
    .content-wrap {
        padding: 42px 16px;
    }

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

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

    .movie-info {
        padding: 13px;
    }

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

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

    .rank-item {
        grid-template-columns: 86px 1fr;
    }
}

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

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