:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --panel-deep: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --weak: #64748b;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #2563eb;
    --shadow: 0 22px 60px rgba(8, 145, 178, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.14), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.logo-text {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search {
    display: flex;
    width: min(300px, 32vw);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.48);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--text);
    background: transparent;
}

.header-search button {
    border: 0;
    padding: 0 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.75);
}

.mobile-menu {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-menu a {
    display: block;
    padding: 11px 4px;
    color: #cbd5e1;
    font-weight: 800;
}

.mobile-menu .header-search {
    width: 100%;
    margin-top: 8px;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    margin-top: 68px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.08) contrast(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.45) 52%, rgba(2, 6, 23, 0.16)),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.2) 62%, rgba(2, 6, 23, 0.46));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 72px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cyan);
    font-weight: 900;
}

.hero-kicker::before {
    content: "▶";
    color: var(--cyan);
}

.hero-title {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 52px rgba(0, 0, 0, 0.58);
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.22);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.22);
}

.btn-ghost {
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow);
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(8, 145, 178, 0.82);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.72);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--cyan);
}

.section {
    padding: 54px 0;
}

.section-tight {
    padding: 34px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
}

.more-link {
    color: var(--cyan);
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.012);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 28px 70px rgba(8, 145, 178, 0.22);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.28), rgba(37, 99, 235, 0.18)),
        #0f172a;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 58%);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(10px);
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.card-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.32;
    transition: color 0.2s ease;
}

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

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card {
    min-height: 175px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(34, 211, 238, 0.17);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.15), transparent 14rem),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.45);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 128px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.38);
}

.rank-num {
    font-size: 1.4rem;
    font-weight: 950;
    color: var(--cyan);
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
}

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

.rank-title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 900;
}

.rank-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    margin-top: 68px;
    padding: 72px 0 34px;
    background:
        linear-gradient(180deg, rgba(8, 145, 178, 0.13), transparent),
        radial-gradient(circle at 80% 15%, rgba(37, 99, 235, 0.18), transparent 28rem);
}

.page-hero h1 {
    max-width: 940px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.5fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.44);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 340px;
    gap: 26px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.player-card {
    overflow: hidden;
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18)),
        #020617;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.play-button {
    position: relative;
    z-index: 3;
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
    box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
    box-shadow: 0 24px 58px rgba(34, 211, 238, 0.36);
}

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

.player-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--muted);
}

.detail-card {
    padding: 24px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 22px;
}

.info-item {
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.36);
}

.info-label {
    display: block;
    color: var(--weak);
    font-size: 0.82rem;
}

.info-value {
    display: block;
    margin-top: 2px;
    color: #e2e8f0;
    font-weight: 800;
}

.prose-block h2 {
    margin: 26px 0 10px;
    font-size: 1.45rem;
}

.prose-block p {
    margin: 0 0 14px;
    color: #cbd5e1;
}

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

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

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

.side-link {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-link:hover {
    background: rgba(34, 211, 238, 0.08);
}

.side-link img {
    width: 90px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    background: #0f172a;
}

.side-link strong {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.side-link span {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-result {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.search-result img {
    width: 180px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

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

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.84);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 0.8fr);
    gap: 28px;
    padding: 42px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 12px;
}

.footer-inner p,
.footer-inner a {
    color: var(--muted);
}

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

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

img.image-missing {
    opacity: 0;
}

@media (max-width: 980px) {
    .nav-links,
    .header-inner > .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.open {
        display: block;
    }

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

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

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

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

@media (max-width: 640px) {
    .hero-slider {
        min-height: 74vh;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-nav {
        display: none;
    }

    .card-grid,
    .category-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 112px 1fr;
        gap: 12px;
    }

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

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

    .search-result {
        grid-template-columns: 1fr;
    }

    .search-result img {
        width: 100%;
    }
}
