:root {
    --fog-50: #f8f9fa;
    --fog-100: #f1f3f5;
    --fog-200: #e9ecef;
    --fog-300: #dee2e6;
    --fog-400: #adb5bd;
    --fog-500: #868e96;
    --fog-600: #495057;
    --fog-700: #343a40;
    --fog-900: #212529;
    --steel-50: #f0f4f8;
    --steel-100: #d9e2ec;
    --steel-400: #829ab1;
    --steel-600: #486581;
    --steel-700: #334e68;
    --steel-800: #243b53;
    --accent-400: #fb923c;
    --shadow-sm: 0 10px 25px rgba(33, 37, 41, 0.08);
    --shadow-md: 0 18px 45px rgba(33, 37, 41, 0.13);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--fog-900);
    background: var(--fog-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fog-200);
    box-shadow: 0 4px 24px rgba(33, 37, 41, 0.06);
}

.nav-bar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fog-900);
    font-weight: 650;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand {
    font-size: 24px;
}

.footer-brand {
    color: var(--fog-100);
    font-size: 24px;
    margin-bottom: 14px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--steel-600), var(--steel-800));
    font-size: 13px;
    box-shadow: 0 10px 22px rgba(72, 101, 129, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--fog-700);
    font-weight: 550;
}

.nav-link,
.nav-dropdown > button {
    color: var(--fog-700);
    border: 0;
    background: transparent;
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    color: var(--steel-600);
}

.nav-dropdown {
    position: relative;
}

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

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fog-700);
}

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

.nav-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    height: 42px;
    border: 1px solid var(--fog-300);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--fog-900);
    background: #ffffff;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 260px;
}

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

.nav-search button,
.mobile-search button {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--steel-600);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--fog-100);
    cursor: pointer;
}

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

.mobile-menu {
    border-top: 1px solid var(--fog-200);
    background: #ffffff;
}

.mobile-menu-inner {
    padding: 16px 0 20px;
}

.mobile-menu nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.mobile-menu nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fog-700);
}

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

.hero-section {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--fog-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s 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-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(33, 37, 41, 0.25), rgba(33, 37, 41, 0.92)),
        linear-gradient(90deg, rgba(33, 37, 41, 0.82), rgba(33, 37, 41, 0.18));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 92px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--accent-400);
    font-weight: 650;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-main h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 820px;
    font-size: clamp(42px, 7vw, 82px);
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--fog-200);
    font-size: clamp(18px, 2.1vw, 24px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-weight: 650;
    cursor: pointer;
    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 34px rgba(72, 101, 129, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.hero-tags a,
.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--fog-100);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 14px;
}

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

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

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

.section-block {
    padding: 78px 0;
}

.white-section {
    background: #ffffff;
}

.section-head {
    max-width: 760px;
    margin-bottom: 32px;
}

.section-head h2,
.detail-article h2 {
    margin: 0 0 10px;
    color: var(--fog-900);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-head p,
.detail-article p,
.category-card p,
.page-hero p {
    margin: 0;
    color: var(--fog-600);
}

.split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
}

.center-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.more-link {
    color: var(--steel-600);
    font-weight: 650;
    white-space: nowrap;
}

.more-link:hover {
    color: var(--steel-800);
}

.light-head h2,
.light-head p,
.more-link.light {
    color: #ffffff;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(72, 101, 129, 0.26);
    box-shadow: var(--shadow-md);
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--fog-200);
}

.movie-thumb img,
.large-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-thumb img,
.movie-card:hover .large-thumb img {
    transform: scale(1.06);
}

.movie-info {
    padding: 18px;
}

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

.movie-meta span:first-child {
    color: var(--steel-600);
    font-weight: 650;
    background: var(--steel-50);
    padding: 4px 8px;
    border-radius: 8px;
}

.movie-info h3 {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 8px;
    color: var(--fog-900);
    font-size: 18px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-info h3 a:hover {
    color: var(--steel-600);
}

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

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

.movie-card-horizontal .movie-thumb {
    height: 100%;
    aspect-ratio: auto;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--fog-600);
    background: var(--fog-100);
    font-size: 12px;
}

.movie-card-large {
    position: relative;
    min-height: 420px;
    background: var(--fog-900);
}

.movie-card-large .large-thumb {
    position: absolute;
    inset: 0;
}

.movie-card-large .large-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(33, 37, 41, 0.08), rgba(33, 37, 41, 0.9));
}

.movie-card-large .large-thumb span {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.movie-card-large .movie-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    color: #ffffff;
    padding: 24px;
}

.movie-card-large .movie-info h3,
.movie-card-large .movie-info p {
    color: #ffffff;
}

.horizontal-list {
    display: grid;
    gap: 18px;
}

.rank-section {
    background: var(--fog-900);
}

.rank-list,
.rank-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

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

.rank-list li a,
.rank-page-list li a {
    display: grid;
    grid-template-columns: 54px 62px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-page-list li a {
    background: #ffffff;
    color: var(--fog-900);
    border: 1px solid var(--fog-200);
    box-shadow: var(--shadow-sm);
}

.rank-list li a:hover,
.rank-page-list li a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-page-list li a:hover {
    background: var(--steel-50);
}

.rank-num {
    color: var(--accent-400);
    font-weight: 750;
    font-size: 22px;
}

.rank-list img,
.rank-page-list img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    font-weight: 650;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-year {
    color: var(--fog-400);
    font-size: 14px;
}

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

.category-tile,
.category-card {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--steel-600), var(--steel-800));
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-tile span {
    font-size: 21px;
    font-weight: 700;
}

.category-tile small {
    margin-top: 8px;
    color: var(--steel-100);
    line-height: 1.5;
}

.page-hero {
    padding: 96px 0 82px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 10%, rgba(251, 146, 60, 0.24), transparent 34%),
        linear-gradient(135deg, var(--fog-900), var(--steel-800));
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 68px);
}

.page-hero p {
    max-width: 740px;
    margin-top: 18px;
    color: var(--fog-200);
    font-size: 18px;
}

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

.category-card {
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-card p {
    color: var(--steel-100);
}

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: #ffffff;
    font-weight: 650;
}

.mini-links {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.mini-links a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--fog-100);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 18px;
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid var(--fog-200);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--fog-700);
    font-weight: 650;
}

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

.hidden-by-filter {
    display: none !important;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 26px 0 0;
    color: var(--fog-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--steel-600);
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    padding: 42px 0 46px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    background: var(--fog-200);
}

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

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

.detail-one-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: var(--fog-600);
    font-size: 20px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--fog-700);
    box-shadow: var(--shadow-sm);
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    padding: 8px 0 52px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.detail-article article {
    max-width: 920px;
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--fog-200);
    box-shadow: var(--shadow-sm);
}

.detail-article p + h2 {
    margin-top: 34px;
}

.related-section {
    padding-top: 54px;
}

.hero-search {
    max-width: 720px;
    margin-top: 28px;
}

.hero-search input {
    flex: 1;
    height: 52px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 46px;
    padding: 58px 0 40px;
}

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

.footer-grid h3 {
    margin: 0 0 16px;
    color: var(--fog-100);
}

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

.footer-links a:hover {
    color: var(--steel-400);
}

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

.footer-bottom p {
    margin: 0;
}

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

    .mobile-toggle {
        display: block;
    }

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

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

@media (max-width: 820px) {
    .hero-section {
        height: 70vh;
        min-height: 520px;
    }

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

    .movie-grid-three,
    .movie-grid-four,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .movie-card-horizontal .movie-thumb {
        aspect-ratio: 4 / 3;
    }

    .split-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-panel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container-custom {
        width: min(100% - 22px, 1180px);
    }

    .nav-bar {
        height: 66px;
    }

    .brand {
        font-size: 20px;
    }

    .hero-section {
        min-height: 540px;
    }

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

    .hero-actions,
    .page-actions {
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .movie-grid-three,
    .movie-grid-four,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-list li a,
    .rank-page-list li a {
        grid-template-columns: 42px 58px 1fr;
    }

    .rank-year {
        display: none;
    }

    .section-block {
        padding: 52px 0;
    }

    .page-hero {
        padding: 74px 0 62px;
    }

    .detail-article article {
        padding: 24px;
    }
}
