:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 65px rgba(2, 6, 23, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    line-height: 1.6;
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.2);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    box-shadow: 0 10px 28px rgba(20, 184, 166, 0.35);
    font-size: 14px;
}

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

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

.nav-link,
.mobile-link {
    color: var(--slate-200);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--teal-400);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--slate-200);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 4px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-image,
.hero-image img,
.detail-backdrop,
.detail-backdrop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image img,
.detail-backdrop img {
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.54) 48%, rgba(2, 6, 23, 0.14));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    width: min(var(--container), calc(100% - 32px));
    color: var(--white);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal-400);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--slate-200);
    font-size: clamp(17px, 2.2vw, 24px);
}

.hero-tags,
.tag-row,
.tag-cloud,
.detail-meta,
.meta-row,
.card-meta,
.filter-row,
.hero-actions,
.intro-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span,
.detail-meta span,
.meta-row span,
.card-meta span {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 14px;
    color: var(--white);
    background: rgba(20, 184, 166, 0.78);
    backdrop-filter: blur(8px);
}

.hero-actions {
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.32);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.section-head a:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.5);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--teal-400);
}

.intro-strip {
    width: min(var(--container), calc(100% - 32px));
    margin: -34px auto 38px;
    position: relative;
    z-index: 3;
    justify-content: center;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.intro-strip a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--slate-800);
    background: var(--slate-100);
    font-weight: 800;
}

main {
    min-height: 60vh;
}

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

.compact-section {
    margin-bottom: 44px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--slate-900);
}

.section-head p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--slate-600);
}

.section-head a {
    flex-shrink: 0;
    color: var(--teal-600);
    background: #ccfbf1;
}

.movie-grid,
.large-grid,
.list-grid,
.category-grid,
.copy-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

.poster-card,
.large-card,
.list-card,
.category-card,
.copy-card,
.rank-item,
.search-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.poster-card,
.large-card,
.list-card,
.rank-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover,
.large-card:hover,
.list-card:hover,
.rank-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.poster-link,
.large-poster,
.list-poster,
.rank-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-200);
}

.poster-link {
    aspect-ratio: 3 / 4;
}

.large-poster {
    height: 420px;
}

.list-poster {
    width: 180px;
    min-height: 100%;
    flex: 0 0 180px;
}

.poster-link img,
.large-poster img,
.list-poster img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover img,
.large-card:hover img,
.list-card:hover img,
.rank-item:hover img {
    transform: scale(1.08);
}

.poster-shade,
.large-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.large-shade {
    opacity: 1;
}

.poster-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(20, 184, 166, 0.9);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 14px 34px rgba(20, 184, 166, 0.35);
}

.play-badge.big {
    width: 68px;
    height: 68px;
    font-size: 24px;
}

.poster-card:hover .play-badge,
.large-card:hover .play-badge,
.list-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body,
.list-body,
.rank-body {
    padding: 16px;
}

.card-body h3,
.list-body h3,
.rank-body h2 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h3 a:hover,
.list-body h3 a:hover,
.rank-body h2 a:hover {
    color: var(--teal-600);
}

.card-body p,
.list-body p,
.rank-body p {
    margin: 0 0 12px;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.meta-row {
    color: var(--slate-500);
    font-size: 13px;
}

.card-meta {
    justify-content: space-between;
}

.tag-row span,
.tag-cloud span,
.detail-meta span,
.meta-row span {
    padding: 6px 10px;
    color: var(--slate-700);
    background: var(--slate-100);
}

.large-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    display: grid;
    gap: 8px;
    color: var(--white);
}

.large-content strong {
    font-size: 24px;
    line-height: 1.2;
}

.large-content em {
    color: var(--slate-200);
    font-style: normal;
    font-size: 14px;
}

.list-card {
    display: flex;
}

.page-hero,
.detail-hero {
    position: relative;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.35), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
    overflow: hidden;
}

.page-hero {
    margin-bottom: 52px;
    padding: 92px 0;
}

.page-hero > div {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--slate-200);
    font-size: 20px;
}

.small-hero {
    padding: 76px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 26px;
}

.search-panel h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.search-panel p {
    margin: 0;
    color: var(--slate-600);
}

.search-box {
    display: grid;
    gap: 12px;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 2px solid var(--slate-200);
    border-radius: 999px;
    color: var(--slate-900);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-row button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--slate-700);
    background: var(--slate-100);
    cursor: pointer;
    font-weight: 800;
}

.filter-row button.is-active,
.filter-row button:hover {
    color: var(--white);
    background: var(--teal-500);
}

.category-card a {
    display: grid;
    gap: 16px;
    min-height: 230px;
    padding: 24px;
    background: linear-gradient(135deg, var(--white), #ecfeff);
}

.category-card strong {
    color: var(--slate-900);
    font-size: 24px;
}

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

.category-card div {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--teal-600);
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 74px 120px 1fr;
    align-items: stretch;
    min-height: 156px;
}

.rank-num {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-600);
    font-size: 28px;
    font-weight: 900;
    background: #f0fdfa;
}

.rank-thumb {
    height: 156px;
}

.detail-hero {
    min-height: 560px;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
}

.detail-backdrop {
    opacity: 0.45;
    filter: blur(2px);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 42px;
    padding: 60px 0;
}

.detail-poster {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: var(--slate-800);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--slate-300);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--teal-400);
}

.detail-info p {
    max-width: 800px;
    margin: 22px 0;
    color: var(--slate-200);
    font-size: 20px;
}

.detail-info .primary-button {
    margin-top: 28px;
}

.detail-meta {
    margin-top: 20px;
}

.detail-meta span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
}

.detail-section {
    margin-top: -82px;
    position: relative;
    z-index: 4;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--slate-950);
    box-shadow: var(--shadow-strong);
}

.player-shell video,
.player-cover,
.player-cover img,
.player-vignette {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-shell video {
    object-fit: contain;
    z-index: 1;
    background: var(--slate-950);
}

.player-cover {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: var(--slate-950);
}

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

.player-cover img {
    object-fit: cover;
    opacity: 0.65;
}

.player-vignette {
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.2), rgba(2, 6, 23, 0.76));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
    transform: translate(-50%, -50%);
    font-size: 30px;
    box-shadow: 0 22px 48px rgba(20, 184, 166, 0.42);
}

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

.copy-card {
    padding: 28px;
}

.copy-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.25;
}

.copy-card p {
    margin: 0;
    color: var(--slate-700);
}

.tag-cloud {
    margin-top: 22px;
}

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

.footer-wrap {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-grid p {
    margin: 14px 0 0;
    color: var(--slate-400);
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    color: var(--slate-400);
    text-align: center;
    font-size: 14px;
}

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

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

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

    .detail-wrap {
        grid-template-columns: 240px 1fr;
    }
}

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

    .menu-button {
        display: block;
    }

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

    .hero {
        min-height: 590px;
    }

    .hero-content {
        bottom: 66px;
    }

    .hero-arrow {
        display: none;
    }

    .section-head,
    .search-panel {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .movie-grid,
    .six-grid,
    .large-grid,
    .category-grid,
    .list-grid,
    .copy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-card {
        display: grid;
    }

    .list-poster {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
        flex-basis: auto;
    }

    .detail-wrap {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .detail-poster {
        width: min(260px, 68vw);
    }

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

    .rank-item {
        grid-template-columns: 58px 96px 1fr;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        min-height: 64px;
    }

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

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

    .hero {
        min-height: 560px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-summary,
    .detail-info p,
    .page-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .content-section {
        margin-bottom: 42px;
    }

    .movie-grid,
    .six-grid,
    .large-grid,
    .category-grid,
    .list-grid,
    .copy-grid {
        grid-template-columns: 1fr;
    }

    .large-poster {
        height: 360px;
    }

    .intro-strip {
        margin-top: -22px;
        justify-content: flex-start;
    }

    .page-hero {
        padding: 64px 0;
    }

    .detail-hero,
    .detail-wrap {
        min-height: auto;
    }

    .detail-wrap {
        padding: 48px 0 128px;
    }

    .detail-section {
        margin-top: -72px;
    }

    .player-shell {
        border-radius: 16px;
    }

    .player-button {
        width: 68px;
        height: 68px;
    }

    .rank-item {
        grid-template-columns: 50px 84px 1fr;
        min-height: 130px;
    }

    .rank-thumb {
        height: 130px;
    }

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