* {
    box-sizing: border-box;
}

:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --amber: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    --shadow-soft: 0 8px 22px rgba(17, 24, 39, 0.06);
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 14px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

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

.brand-text strong {
    font-size: 20px;
    color: var(--gray-900);
}

.brand-text em {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--gray-700);
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--orange);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px 20px;
    border-top: 1px solid var(--gray-200);
    font-weight: 600;
}

.mobile-nav.is-open {
    display: flex;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    color: var(--white);
    background: var(--gray-900);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 72vh;
    align-items: flex-end;
    padding: 0 0 86px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    color: var(--white);
    border-radius: 999px;
    background: var(--orange);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(18px, 2.1vw, 23px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: var(--orange);
}

.primary-button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.secondary-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #d1d5db;
    font-size: 14px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--white);
}

.section {
    padding: 58px 0;
    background: var(--white);
}

.section.is-gray {
    background: var(--gray-50);
}

.section.is-warm {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--gray-600);
}

.more-link {
    color: var(--orange);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: #fed7aa;
    box-shadow: var(--shadow);
}

.movie-card-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-200);
}

.movie-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover img,
.rank-card:hover img,
.small-card:hover img {
    transform: scale(1.08);
}

.movie-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    color: var(--white);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-body {
    padding: 16px;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 50px;
    margin: 8px 0 8px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.rank-card:hover strong,
.small-card:hover strong {
    color: var(--orange);
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-card-tags span {
    padding: 2px 8px;
    color: var(--gray-600);
    border-radius: 999px;
    background: var(--gray-100);
    font-size: 12px;
}

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

.rank-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.rank-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    overflow: hidden;
    border-radius: 10px;
    background: var(--gray-200);
    transition: transform 0.5s ease;
}

.rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--white);
    border-radius: 999px;
    background: var(--orange);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.32);
}

.rank-info strong,
.rank-info em,
.small-card strong,
.small-card em {
    display: block;
}

.rank-info strong {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-info em,
.small-card em {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.feature-card {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08));
}

.feature-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 34px;
    color: var(--white);
}

.feature-copy span {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--orange);
    font-size: 14px;
    font-weight: 800;
}

.feature-copy h3 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
}

.feature-copy p {
    max-width: 720px;
    margin: 0 0 14px;
    color: #e5e7eb;
}

.page-hero {
    padding: 46px 0 32px;
    background: var(--white);
    box-shadow: 0 1px 10px rgba(15, 23, 42, 0.04);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--gray-600);
    font-size: 14px;
}

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

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

.category-card {
    display: block;
    padding: 26px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 190px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.empty-message {
    display: none;
    padding: 44px 24px;
    color: var(--gray-600);
    text-align: center;
    border-radius: 18px;
    background: var(--white);
}

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

.detail-main {
    padding: 34px 0 66px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 32px;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.play-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.38);
}

.play-icon::before {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--white);
    content: "";
}

.info-panel,
.related-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.info-panel h2,
.related-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.info-panel p {
    margin: 0;
    color: var(--gray-700);
}

.warm-panel {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.detail-title {
    margin: 18px 0 16px;
}

.detail-title h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

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

.badges span {
    padding: 5px 11px;
    color: var(--gray-700);
    border-radius: 999px;
    background: var(--gray-100);
    font-size: 14px;
}

.badges span:first-child {
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
}

.related-sticky {
    position: sticky;
    top: 104px;
}

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

.small-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.small-card:hover {
    background: var(--gray-50);
}

.small-card img {
    width: 112px;
    height: 72px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 10px;
    background: var(--gray-200);
    transition: transform 0.5s ease;
}

.small-card strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tag-row span {
    padding: 5px 12px;
    color: var(--gray-700);
    border-radius: 999px;
    background: var(--gray-100);
    font-size: 13px;
}

.site-footer {
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0 38px;
}

.brand-dark .brand-text strong {
    color: var(--white);
}

.brand-dark .brand-text em,
.footer-brand p {
    color: #9ca3af;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
}

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

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

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

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

.footer-bottom {
    padding: 22px 16px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #1f2937;
}

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

    .menu-button {
        display: block;
    }

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

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

    .related-sticky {
        position: static;
    }
}

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

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

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 72vh;
    }

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

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

    .hero-meta {
        gap: 8px;
    }

    .section {
        padding: 42px 0;
    }

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

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

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

    .movie-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .movie-card-cover {
        aspect-ratio: auto;
        height: 100%;
        min-height: 178px;
    }

    .movie-card h3 {
        min-height: auto;
    }

    .feature-copy {
        padding: 22px;
    }

    .small-card {
        grid-template-columns: 98px minmax(0, 1fr);
    }

    .small-card img {
        width: 98px;
        height: 68px;
    }
}
