:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(96, 165, 250, 0.18);
    --line-soft: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --blue: #38bdf8;
    --blue-2: #2563eb;
    --cyan: #67e8f9;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.72);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 8%, rgba(56, 189, 248, 0.16), transparent 32rem),
        radial-gradient(circle at 85% 12%, rgba(37, 99, 235, 0.14), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.9));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 42px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    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-text,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(90deg, #60a5fa, #67e8f9, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--muted-2);
    border-radius: 12px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

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

.hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    padding-top: 72px;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.26) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.35) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 5;
    min-height: calc(86vh - 72px);
    display: flex;
    align-items: flex-end;
    padding: 0 0 76px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--muted-2);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-meta,
.detail-meta,
.movie-meta,
.rank-topline,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.movie-meta span,
.rank-topline span,
.tag-row span {
    color: var(--muted-2);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
}

.hero-meta span,
.detail-meta span {
    padding: 8px 14px;
}

.movie-meta span,
.rank-topline span,
.tag-row span {
    padding: 4px 9px;
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
}

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

.hero-dots {
    position: absolute;
    z-index: 8;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 76px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

main {
    position: relative;
}

.section {
    padding: 72px 0;
}

.section.compact-section {
    padding-top: 28px;
}

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

.section-heading h2,
.page-title h1,
.detail-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: none;
    color: #bfdbfe;
    font-weight: 700;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.22);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.88));
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

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

.movie-card h3,
.rank-info h3 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.38;
}

.movie-card p,
.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(8, 47, 73, 0.72)),
        rgba(15, 23, 42, 0.84);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(103, 232, 249, 0.45);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.65;
}

.category-card strong {
    color: #67e8f9;
    font-size: 30px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}

.rank-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
}

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

.rank-number {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 50%;
    font-weight: 900;
}

.tool-panel {
    margin-bottom: 26px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}

.search-box,
.sort-box {
    display: grid;
    gap: 8px;
    color: var(--muted-2);
    font-size: 14px;
}

.search-box input,
.sort-box select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    outline: none;
}

.search-box input:focus,
.sort-box select:focus {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.page-shell {
    padding-top: 118px;
    min-height: 72vh;
}

.page-title {
    margin-bottom: 28px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #bfdbfe;
}

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

.player-panel,
.info-panel,
.text-panel {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.player-panel {
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video,
.player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-poster {
    z-index: 2;
    border: 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.22));
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 52px rgba(56, 189, 248, 0.5);
    font-size: 32px;
}

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

.detail-copy {
    padding: 24px;
}

.detail-title {
    margin-bottom: 16px;
}

.info-panel {
    padding: 22px;
}

.info-poster {
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.info-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.tag-cloud span {
    padding: 7px 10px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 999px;
    font-size: 13px;
}

.text-panel {
    margin-top: 24px;
    padding: 26px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-panel p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.85;
}

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

.site-footer {
    margin-top: 72px;
    padding: 44px 0;
    background: rgba(2, 6, 23, 0.82);
    border-top: 1px solid var(--line-soft);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid p {
    max-width: 580px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    color: var(--muted-2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.empty-state {
    display: none;
    padding: 28px;
    color: var(--muted-2);
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
}

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

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

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

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

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid var(--line-soft);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        min-height: calc(78vh - 72px);
        padding-bottom: 54px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 28px;
    }

    .section-heading,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

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

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

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

    .rank-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .detail-copy,
    .info-panel,
    .text-panel {
        padding: 18px;
    }
}
