:root {
    --fog-50: #f8fafc;
    --fog-100: #f1f5f9;
    --fog-200: #e2e8f0;
    --fog-300: #cbd5e1;
    --fog-400: #94a3b8;
    --fog-500: #64748b;
    --fog-600: #475569;
    --fog-700: #334155;
    --fog-800: #1e293b;
    --fog-900: #0f172a;
    --steel-50: #eef6ff;
    --steel-100: #d8ebff;
    --steel-500: #3b82b6;
    --steel-600: #256d96;
    --steel-700: #1f5b7e;
    --steel-800: #183f5c;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --white: #ffffff;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--fog-50), #ffffff 24rem);
    color: var(--fog-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--fog-200);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.nav-shell {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fog-900);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--steel-600), var(--steel-800));
    border-radius: 50%;
    font-size: 0.78rem;
    box-shadow: 0 12px 26px rgba(37, 109, 150, 0.25);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--fog-700);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--steel-700);
    background: var(--steel-50);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 184px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--fog-200);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    color: var(--fog-700);
    border-radius: 12px;
    font-size: 0.95rem;
}

.dropdown-panel a:hover {
    background: var(--fog-100);
    color: var(--steel-700);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 318px;
    margin-left: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.category-filter input {
    width: 100%;
    border: 1px solid var(--fog-300);
    background: #ffffff;
    color: var(--fog-900);
    border-radius: 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    height: 40px;
    padding: 0 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.category-filter input:focus {
    border-color: var(--steel-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 182, 0.14);
}

.top-search button,
.mobile-search button,
.search-panel button {
    height: 40px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    color: #ffffff;
    background: var(--steel-600);
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: var(--fog-100);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--fog-700);
    border-radius: 999px;
}

.mobile-nav {
    padding: 0 16px 18px;
    border-top: 1px solid var(--fog-200);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 10px;
    color: var(--fog-700);
    border-radius: 12px;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--fog-100);
    color: var(--steel-700);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 14px 0 8px;
}

.mobile-search input {
    height: 42px;
    padding: 0 12px;
}

.hero {
    position: relative;
    height: min(780px, calc(100vh - 40px));
    min-height: 560px;
    overflow: hidden;
    background: var(--fog-900);
    color: #ffffff;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.02);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 182, 0.34), transparent 36%), linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.24) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 88px;
}

.hero-copy {
    width: min(760px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--accent-400);
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-400);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.9);
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.4rem, 5vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    width: min(720px, 100%);
    margin: 0 0 28px;
    color: var(--fog-200);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

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

.hero-meta span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--steel-600), var(--steel-800));
    box-shadow: 0 16px 28px rgba(37, 109, 150, 0.32);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

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

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

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff, var(--fog-50));
}

.section-dark {
    background: var(--fog-900);
    color: #ffffff;
}

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

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    color: var(--fog-900);
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.section-dark .section-head h2 {
    color: #ffffff;
}

.section-head p,
.page-title p {
    margin: 10px 0 0;
    max-width: 680px;
    color: var(--fog-600);
}

.section-dark .section-head p {
    color: var(--fog-300);
}

.view-more {
    color: var(--steel-700);
    font-weight: 800;
    white-space: nowrap;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--fog-200);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 109, 150, 0.24);
    box-shadow: var(--shadow-card);
}

.section-dark .movie-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.poster {
    position: relative;
    display: block;
    height: 292px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--fog-200), var(--fog-300));
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.48), transparent 48%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

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

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

.card-info {
    padding: 18px;
}

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--fog-500);
    font-size: 0.82rem;
}

.meta-line a {
    color: var(--steel-700);
    background: var(--steel-50);
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 800;
}

.card-info h2 {
    margin: 0 0 8px;
    color: var(--fog-900);
    font-size: 1.05rem;
    line-height: 1.35;
}

.section-dark .card-info h2,
.section-dark .card-info h2 a {
    color: #ffffff;
}

.card-info h2 a:hover {
    color: var(--steel-700);
}

.card-info p {
    margin: 0;
    color: var(--fog-600);
    font-size: 0.93rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-dark .card-info p,
.section-dark .meta-line {
    color: var(--fog-300);
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.horizontal-poster {
    height: 100%;
    min-height: 176px;
}

.horizontal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    color: var(--steel-700);
    background: var(--steel-50);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-500), #ef4444);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

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

.category-tile {
    position: relative;
    min-height: 132px;
    padding: 22px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--steel-600), var(--fog-900));
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.category-tile::before {
    content: "";
    position: absolute;
    width: 132px;
    height: 132px;
    right: -44px;
    top: -44px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.category-tile h2 {
    position: relative;
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.category-tile p {
    position: relative;
    margin: 0;
    color: var(--fog-200);
    font-size: 0.9rem;
}

.page-hero {
    padding: 68px 0 42px;
    background: radial-gradient(circle at 16% 0%, rgba(59, 130, 182, 0.16), transparent 32%), linear-gradient(180deg, #ffffff, var(--fog-50));
    border-bottom: 1px solid var(--fog-200);
}

.page-title {
    max-width: 820px;
}

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

.breadcrumb a {
    color: var(--steel-700);
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--fog-900);
    box-shadow: var(--shadow-soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    opacity: 0.52;
    transition: transform 0.45s ease;
}

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

.category-card-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.18));
}

.category-card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px;
    color: #ffffff;
}

.category-card-content h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
}

.category-card-content p {
    margin: 0 0 18px;
    color: var(--fog-200);
}

.category-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.search-panel,
.category-filter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 26px;
    max-width: 720px;
}

.search-panel input,
.category-filter input {
    height: 50px;
    padding: 0 16px;
}

.search-panel button {
    height: 50px;
    padding: 0 22px;
}

.empty-state {
    display: none;
    padding: 28px;
    color: var(--fog-600);
    background: #ffffff;
    border: 1px solid var(--fog-200);
    border-radius: 22px;
    text-align: center;
}

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

.detail-hero {
    color: #ffffff;
    background: var(--fog-900);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: end;
    min-height: 460px;
    padding: 74px 0 56px;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-copy p {
    margin: 0 0 22px;
    color: var(--fog-200);
    font-size: 1.1rem;
}

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

.detail-meta span {
    padding: 6px 11px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

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

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--steel-600), var(--steel-800));
    border-radius: 50%;
    font-size: 1.7rem;
    box-shadow: 0 22px 42px rgba(37, 109, 150, 0.38);
    transform: translateZ(0);
}

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

.content-card {
    background: #ffffff;
    border: 1px solid var(--fog-200);
    border-radius: 26px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.content-card + .content-card {
    margin-top: 22px;
}

.content-card h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    color: var(--fog-900);
    font-size: 1.45rem;
    line-height: 1.2;
}

.content-card p {
    margin: 0;
    color: var(--fog-700);
    font-size: 1.02rem;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--fog-200);
    border-radius: 26px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

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

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

.side-item img {
    width: 76px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--fog-200);
}

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

.side-item span {
    display: block;
    margin-top: 4px;
    color: var(--fog-500);
    font-size: 0.86rem;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.prev-next a {
    flex: 1;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--fog-200);
    border-radius: 18px;
    color: var(--fog-700);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.prev-next a:last-child {
    text-align: right;
}

.site-footer {
    margin-top: 80px;
    color: var(--fog-300);
    background: var(--fog-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding: 54px 0;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-brand p {
    max-width: 480px;
    margin: 0;
    color: var(--fog-400);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--fog-500);
    text-align: center;
}

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

    .nav-toggle {
        display: block;
    }

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

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

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

    .detail-cover {
        max-width: 360px;
    }
}

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

    .nav-shell {
        height: 64px;
    }

    .brand {
        font-size: 1.1rem;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero {
        min-height: 520px;
        height: 72vh;
    }

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

    .hero-actions,
    .section-head,
    .prev-next {
        flex-direction: column;
        align-items: stretch;
    }

    .grid-4,
    .grid-3,
    .category-strip,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .poster {
        height: 260px;
    }

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

    .horizontal-poster {
        height: 240px;
    }

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

    .detail-hero-inner {
        min-height: auto;
        padding: 48px 0;
    }

    .content-card {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
