:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --accent-500: #d97706;
    --accent-600: #b45309;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    --soft-shadow: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
    --deep-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--secondary-900);
    background: var(--secondary-50);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--secondary-200), var(--primary-100));
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--secondary-200);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--secondary-900);
    letter-spacing: .02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    box-shadow: 0 10px 25px rgba(2, 132, 199, .25);
}

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

.nav-link,
.mobile-link {
    color: var(--secondary-700);
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}

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

.header-search,
.mobile-search,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--secondary-300);
    border-radius: 12px;
    background: #fff;
    color: var(--secondary-900);
    outline: none;
    transition: border .2s ease, box-shadow .2s ease;
}

.header-search input,
.mobile-search input {
    width: 180px;
    padding: 10px 12px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .16);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    background: var(--primary-600);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--secondary-800);
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--secondary-200);
}

.mobile-panel.open {
    display: block;
    animation: slideDown .35s ease;
}

.mobile-panel-inner {
    display: grid;
    gap: 14px;
    padding: 18px 0;
}

.hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    color: #fff;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .48), rgba(0, 0, 0, .08));
}

.hero-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding-bottom: 66px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-weight: 800;
    font-size: 14px;
}

.hero .eyebrow,
.detail-hero .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
}

.hero h1,
.hero h2,
.page-heading h1,
.detail-copy h1 {
    margin: 0;
    letter-spacing: -.04em;
}

.hero h1 {
    max-width: 980px;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.05;
}

.hero h2 {
    margin-top: 16px;
    font-size: clamp(24px, 3.6vw, 44px);
}

.hero p,
.detail-copy p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

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

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

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

.btn-primary {
    color: #fff;
    background: var(--primary-600);
    box-shadow: 0 14px 30px rgba(2, 132, 199, .24);
}

.btn-primary:hover {
    background: var(--primary-700);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .48);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, .72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
}

.hero-dot.active {
    width: 30px;
    background: #fff;
}

.page-stack {
    display: grid;
    gap: 64px;
    padding: 64px 0 0;
}

.section-block,
.category-overview-card,
.filter-panel,
.detail-article,
.player-section {
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.section-block {
    padding: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
}

.section-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
}

.section-title p {
    margin: 6px 0 0;
    color: var(--secondary-600);
}

.section-more {
    margin-left: auto;
    color: var(--primary-600);
    font-weight: 800;
}

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

.movie-card {
    display: grid;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--secondary-200);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.movie-card:hover {
    border-color: var(--primary-200, #bae6fd);
    transform: translateY(-5px);
    box-shadow: var(--deep-shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--secondary-100);
}

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

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

.poster-badge,
.rank-number,
.side-rank {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}

.poster-badge {
    right: 10px;
    top: 10px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, .62);
}

.rank-number {
    left: 10px;
    top: 10px;
    min-width: 30px;
    padding: 5px 8px;
    background: var(--accent-500);
    text-align: center;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 132, 199, .9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.8);
    transition: opacity .25s ease, transform .25s ease;
}

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

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 0 14px 16px;
}

.movie-card strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: var(--secondary-900);
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card em,
.side-item em {
    color: var(--secondary-500);
    font-style: normal;
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: var(--secondary-600);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    color: var(--primary-700);
    background: var(--primary-50);
}

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

.category-tile,
.category-overview-head {
    display: grid;
    gap: 8px;
    border: 1px solid var(--secondary-200);
    border-radius: 18px;
    padding: 18px;
    background: linear-gradient(135deg, #fff, var(--primary-50));
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-tile:hover,
.category-overview-head:hover {
    border-color: var(--primary-500);
    transform: translateY(-3px);
    box-shadow: var(--soft-shadow);
}

.category-tile strong,
.category-overview-head strong {
    font-size: 18px;
}

.category-tile span,
.category-overview-head span {
    color: var(--secondary-600);
    line-height: 1.6;
}

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

.side-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--secondary-200);
    border-radius: 18px;
    padding: 10px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease;
}

.side-item:hover {
    border-color: var(--primary-500);
    transform: translateX(4px);
}

.side-item img {
    width: 96px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.side-item span {
    display: grid;
    gap: 6px;
}

.side-item strong {
    font-size: 16px;
}

.side-item small {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.side-rank {
    left: 14px;
    top: 14px;
    padding: 4px 7px;
    background: var(--accent-500);
}

.page-shell {
    padding: 48px 0 0;
}

.page-heading {
    margin-bottom: 28px;
    border-radius: 28px;
    padding: 32px;
    color: var(--secondary-900);
    background: linear-gradient(135deg, #fff, var(--primary-50));
    box-shadow: var(--soft-shadow);
}

.page-heading h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.page-heading p {
    max-width: 820px;
    color: var(--secondary-600);
    font-size: 18px;
    line-height: 1.8;
}

.category-overview-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

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

.category-samples a {
    overflow: hidden;
    color: var(--secondary-700);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-samples a:hover {
    color: var(--primary-600);
}

.filter-panel {
    margin-bottom: 24px;
    padding: 16px;
}

.filter-panel input {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
}

.filter-panel select {
    padding: 12px 14px;
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    border-radius: 18px;
    padding: 24px;
    color: var(--secondary-600);
    text-align: center;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.empty-state.show {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--detail-bg) center / cover no-repeat, #000;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 56px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 36px;
    align-items: end;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 4px solid rgba(255, 255, 255, .32);
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--deep-shadow);
}

.detail-copy h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
}

.detail-content {
    display: grid;
    gap: 28px;
    padding: 36px 0 0;
}

.player-section,
.detail-article {
    padding: 24px;
}

.player-section h2,
.detail-article h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--deep-shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .08));
    cursor: pointer;
    transition: opacity .25s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    padding-left: 5px;
    background: rgba(2, 132, 199, .94);
    box-shadow: 0 18px 40px rgba(2, 132, 199, .35);
    font-size: 34px;
}

.player-card.is-playing .player-overlay {
    pointer-events: none;
    opacity: 0;
}

.detail-article p {
    margin: 0 0 22px;
    color: var(--secondary-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    margin-top: 10px;
}

.related-block {
    margin-top: 0;
}

.site-footer {
    margin-top: 72px;
    color: #fff;
    background: var(--secondary-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.site-footer p {
    max-width: 460px;
    color: var(--secondary-300);
    line-height: 1.7;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid var(--secondary-800);
    padding: 18px 0;
    color: var(--secondary-300);
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

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

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

@media (max-width: 820px) {
    .hero {
        height: 620px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-block {
        padding: 20px;
    }

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

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

    .filter-panel {
        display: grid;
    }

    .filter-panel input,
    .filter-panel select {
        width: 100%;
    }

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

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

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

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

    .header-inner {
        min-height: 64px;
    }

    .brand {
        font-size: 15px;
    }

    .brand-icon {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .hero {
        height: 660px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-card strong {
        font-size: 15px;
    }

    .side-item {
        grid-template-columns: 86px 1fr;
    }

    .side-item img {
        width: 86px;
        height: 66px;
    }

    .page-heading {
        padding: 24px;
    }

    .player-overlay span {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }
}
