:root {
    --rain-950: #0f1720;
    --rain-900: #1f2933;
    --rain-800: #212529;
    --rain-700: #343a40;
    --rain-600: #495057;
    --rain-500: #6c757d;
    --rain-400: #adb5bd;
    --rain-300: #ced4da;
    --rain-200: #dee2e6;
    --rain-100: #e9ecef;
    --rain-50: #f8f9fa;
    --mist-900: #102a43;
    --mist-800: #243b53;
    --mist-700: #334e68;
    --mist-600: #486581;
    --mist-500: #627d98;
    --mist-300: #bcccdc;
    --mist-100: #f0f4f8;
    --paper: #ffffff;
    --glow: rgba(72, 101, 129, 0.26);
    --shadow: 0 20px 50px rgba(15, 23, 32, 0.14);
    --soft-shadow: 0 12px 30px rgba(15, 23, 32, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--rain-800);
    background:
        radial-gradient(circle at top left, rgba(188, 204, 220, 0.34), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #f8f9fa 44%, #eef2f6 100%);
    min-height: 100vh;
}

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: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--rain-200);
    box-shadow: 0 8px 30px rgba(15, 23, 32, 0.06);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    box-shadow: 0 12px 28px var(--glow);
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-name {
    color: var(--rain-800);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--rain-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--rain-700);
    font-size: 15px;
    font-weight: 650;
    transition: color 180ms ease, transform 180ms ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--rain-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--rain-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--rain-200);
    background: rgba(255, 255, 255, 0.98);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 22px;
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--rain-700);
    background: var(--rain-50);
    font-weight: 700;
}

.mobile-link.is-active {
    color: var(--mist-700);
    background: var(--mist-100);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--rain-950);
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 680ms ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.08);
    transform: scale(1.05);
    opacity: 0.54;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 32, 0.92) 0%, rgba(15, 23, 32, 0.74) 44%, rgba(15, 23, 32, 0.36) 100%),
        radial-gradient(circle at 18% 20%, rgba(188, 204, 220, 0.22), transparent 28rem);
}

.hero-inner {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 54px;
    padding: 72px 0 86px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mist-300);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero-summary,
.page-hero p,
.detail-one-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.82;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--mist-800);
    background: rgba(240, 244, 248, 0.92);
    border: 1px solid rgba(222, 226, 230, 0.7);
    font-size: 12px;
    font-weight: 750;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    box-shadow: 0 14px 30px rgba(72, 101, 129, 0.36);
}

.button-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.button-text {
    color: var(--mist-300);
    padding-inline: 8px;
}

.hero-poster {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 240ms ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.72);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
    transition: width 200ms ease, background 200ms ease;
}

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

main {
    position: relative;
}

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

.section-soft {
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(240, 244, 248, 0.86)),
        radial-gradient(circle at 80% 0%, rgba(188, 204, 220, 0.34), transparent 28rem);
}

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

.section-head.compact {
    margin-bottom: 20px;
}

.section-head h2,
.content-panel h2,
.category-card h2,
.category-card h3 {
    margin: 8px 0 0;
    color: var(--rain-800);
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--rain-600);
    line-height: 1.75;
}

.section-link {
    flex: 0 0 auto;
    color: var(--mist-700);
    font-weight: 850;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--mist-100);
}

.search-strip {
    padding-top: 44px;
    padding-bottom: 20px;
}

.filter-panel {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--rain-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
}

.filter-row {
    margin-bottom: 28px;
    align-items: center;
}

.search-input,
.filter-select {
    min-height: 48px;
    border: 1px solid var(--rain-200);
    border-radius: 16px;
    outline: none;
    color: var(--rain-800);
    background: #ffffff;
}

.search-input {
    width: 100%;
    padding: 0 18px;
}

.filter-select {
    padding: 0 42px 0 16px;
}

.search-input:focus,
.filter-select:focus {
    border-color: var(--mist-600);
    box-shadow: 0 0 0 4px rgba(72, 101, 129, 0.12);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(222, 226, 230, 0.86);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(72, 101, 129, 0.34);
    box-shadow: 0 22px 44px rgba(15, 23, 32, 0.14);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--rain-100);
}

.poster-image {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 300ms ease;
}

.movie-card:hover .poster-image {
    transform: scale(1.05);
}

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 32, 0.78));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: #ffffff;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.72);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 850;
}

.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mist-600), var(--rain-950));
    box-shadow: 0 10px 26px rgba(15, 23, 32, 0.24);
    font-weight: 900;
}

.card-body {
    padding: 18px 18px 20px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rain-500);
    font-size: 12px;
    font-weight: 750;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--rain-300);
}

.card-title {
    margin: 8px 0 8px;
    color: var(--rain-800);
    font-size: 19px;
    line-height: 1.32;
    font-weight: 850;
}

.card-title a:hover {
    color: var(--mist-700);
}

.card-desc {
    margin: 0 0 14px;
    min-height: 48px;
    color: var(--rain-600);
    font-size: 14px;
    line-height: 1.72;
}

.card-tags .tag {
    color: var(--rain-600);
    background: var(--rain-50);
}

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

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

.category-card {
    padding: 26px;
    border: 1px solid var(--rain-200);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.category-main-link {
    display: block;
}

.category-kicker {
    color: var(--mist-700);
    font-size: 13px;
    font-weight: 900;
}

.category-card p {
    margin: 12px 0 0;
    color: var(--rain-600);
    line-height: 1.76;
}

.category-samples {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.category-samples a {
    color: var(--rain-700);
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--rain-50);
    font-size: 14px;
    transition: color 180ms ease, background 180ms ease;
}

.category-samples a:hover {
    color: var(--mist-700);
    background: var(--mist-100);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 12%, rgba(188, 204, 220, 0.28), transparent 28rem),
        linear-gradient(135deg, var(--rain-950), var(--mist-800));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0 76px;
}

.page-hero h1 {
    max-width: 820px;
}

.page-hero p {
    max-width: 760px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: var(--rain-950);
}

.detail-backdrop,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) saturate(1.08);
    transform: scale(1.05);
    opacity: 0.5;
}

.detail-mask {
    background:
        linear-gradient(90deg, rgba(15, 23, 32, 0.94), rgba(15, 23, 32, 0.7), rgba(15, 23, 32, 0.38)),
        linear-gradient(180deg, rgba(15, 23, 32, 0.2), rgba(15, 23, 32, 0.92));
}

.detail-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 82px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 46px;
}

.detail-cover {
    width: 100%;
    border-radius: var(--radius-xl);
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-copy {
    max-width: 780px;
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 68px);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

.detail-section {
    padding-bottom: 30px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-player,
.play-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-player {
    background: #000000;
}

.play-overlay {
    z-index: 3;
    border: 0;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: #000000;
    transition: opacity 240ms ease, visibility 240ms ease;
}

.play-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    filter: saturate(1.05);
}

.play-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04), rgba(15, 23, 32, 0.62));
}

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

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: var(--mist-800);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 56px rgba(15, 23, 32, 0.3);
    font-size: 34px;
    font-weight: 900;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 28px;
}

.content-panel {
    padding: 30px;
    border: 1px solid var(--rain-200);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.content-panel p {
    color: var(--rain-600);
    line-height: 1.9;
    font-size: 16px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 28px;
    border: 1px dashed var(--rain-300);
    border-radius: var(--radius-lg);
    color: var(--rain-600);
    text-align: center;
    background: rgba(255, 255, 255, 0.76);
}

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

.site-footer {
    margin-top: 60px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rain-950), var(--mist-800));
}

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

.brand-footer .brand-name,
.brand-footer .brand-subtitle {
    color: #ffffff;
}

.footer-brand p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-links h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

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

.footer-link-grid a {
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-link-grid a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

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

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

    .hero-poster {
        display: none;
    }

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

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

    .detail-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
    }

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

    .brand-subtitle {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-inner {
        padding-top: 44px;
        padding-bottom: 76px;
    }

    .hero-summary,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 48px 0;
    }

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

    .filter-panel,
    .filter-row {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .movie-grid,
    .category-grid,
    .overview-grid,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        gap: 18px;
    }

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

    .detail-cover {
        width: min(240px, 72vw);
    }

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

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

    .page-hero-inner,
    .detail-inner {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
