* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #64748b;
    --sky: #38bdf8;
    --blue: #2563eb;
    --orange: #fb923c;
    --yellow: #facc15;
    --radius: 18px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(14, 165, 233, 0.24), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(37, 99, 235, 0.22), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, #bae6fd, #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.nav-drop > button {
    color: #cbd5e1;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 24px 0 20px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-drop:hover > button {
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.8);
}

.nav-drop {
    position: relative;
}

.nav-drop-panel {
    position: absolute;
    right: 0;
    top: 62px;
    width: 260px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-drop:hover .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-panel a,
.mobile-link {
    color: #cbd5e1;
    padding: 9px 10px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-drop-panel a:hover,
.mobile-link:hover,
.mobile-link.is-active {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.76);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--line);
}

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

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

.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-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 44%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: max(16px, calc((100vw - 1180px) / 2));
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.22);
    border: 1px solid rgba(125, 211, 252, 0.34);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
}

.hero-title {
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 660px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(148, 163, 184, 0.28);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: max(16px, calc((100vw - 1180px) / 2));
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

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

.hero-arrows button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.55);
    cursor: pointer;
}

.hero-search {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: -30px auto 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search input {
    width: 100%;
    min-height: 52px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 18px;
    outline: none;
}

.hero-search input:focus {
    border-color: rgba(56, 189, 248, 0.66);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.section {
    padding: 72px 0 0;
}

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

.section-kicker {
    color: var(--sky);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

.section h2,
.page-title h1 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

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

.link-more {
    color: #7dd3fc;
    font-weight: 700;
}

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

.movie-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px 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(56, 189, 248, 0.42);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(2, 6, 23, 0.72));
}

.duration {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    color: #fff;
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    font-size: 12px;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: rgba(14, 165, 233, 0.88);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: all 0.2s ease;
}

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

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: #7dd3fc;
}

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

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--soft);
    font-size: 12px;
}

.meta-line span {
    padding: 3px 8px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
}

.scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.scroller .movie-card {
    flex: 0 0 310px;
}

.feature-panel {
    padding: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.82));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.card-wide {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.card-wide .poster {
    aspect-ratio: auto;
    min-height: 190px;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.2), transparent 60%),
        rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.42);
}

.category-card strong {
    display: block;
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-card p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.category-card span {
    color: #7dd3fc;
    font-weight: 700;
}

.page-title {
    padding: 64px 0 24px;
}

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

.breadcrumb a {
    color: #7dd3fc;
}

.tools-bar {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin: 28px 0;
    padding: 14px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.search-box,
.select-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
}

.search-box input,
.select-box select {
    width: 100%;
    color: #e2e8f0;
    background: transparent;
    border: 0;
    outline: none;
}

.select-box select option {
    color: #0f172a;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: auto 132px 1fr;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-card:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.38);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #020617;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-radius: 15px;
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #0f172a;
}

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

.rank-info a {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.rank-info a:hover {
    color: #7dd3fc;
}

.rank-info p {
    display: -webkit-box;
    margin: 8px 0 10px;
    color: var(--muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--soft);
    font-size: 13px;
}

.detail-wrap {
    padding: 34px 0 80px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.22));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-frame.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
}

.player-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.42);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.player-button:hover {
    transform: scale(1.06);
}

.player-note {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    color: #e2e8f0;
    text-align: center;
    font-size: 14px;
    opacity: 0.86;
}

.detail-panel {
    margin-top: 28px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.detail-title {
    margin: 12px 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
}

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

.detail-meta span {
    padding: 6px 12px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.article-box {
    display: grid;
    gap: 22px;
}

.text-block {
    padding: 24px;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
}

.text-block h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
}

.text-block p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.side-box {
    padding: 20px;
    background: rgba(2, 6, 23, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
}

.side-box h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 20px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
}

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

.side-link strong {
    display: -webkit-box;
    color: #e2e8f0;
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-link span {
    color: var(--soft);
    font-size: 12px;
}

.site-footer {
    margin-top: 88px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.96));
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
}

.footer-inner p {
    color: var(--muted);
    max-width: 520px;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: #fff;
}

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

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

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: var(--soft);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
}

.is-hidden {
    display: none !important;
}

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

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

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

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

    .content-grid,
    .feature-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        min-height: 66px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-panel.is-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        bottom: 96px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-search,
    .tools-bar {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 52px;
    }

    .section-header {
        display: block;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .rank-card {
        grid-template-columns: auto 96px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-index {
        width: 38px;
        height: 38px;
    }

    .rank-info a {
        font-size: 16px;
    }

    .detail-panel {
        padding: 18px;
    }

    .text-block {
        padding: 18px;
    }

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

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

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

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

    .rank-card {
        grid-template-columns: 78px 1fr;
    }

    .rank-index {
        position: absolute;
        margin: -12px 0 0 -12px;
    }

    .rank-poster {
        grid-column: 1;
    }

    .rank-info {
        grid-column: 2;
    }
}
