* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #f8fafc;
    background: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(31, 41, 55, 0.94);
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(14px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    font-size: 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #d1d5db;
    font-size: 15px;
    font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #f59e0b;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(290px, 24vw);
    padding: 4px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.74);
}

.header-search input {
    width: 100%;
    min-width: 0;
    color: #f9fafb;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px 8px 14px;
}

.header-search button,
.hero-search button,
.primary-btn,
.secondary-btn,
.rank-link,
.search-panel button,
.player-overlay {
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.header-search button {
    padding: 8px 14px;
    white-space: nowrap;
}

.header-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.rank-link:hover,
.search-panel button:hover,
.player-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #f9fafb;
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.88);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: #d1d5db;
    font-weight: 650;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.main-shell {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.23), transparent 34%), radial-gradient(circle at 80% 20%, rgba(234, 88, 12, 0.21), transparent 30%), linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.9));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.75s ease, transform 5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 42px;
    align-items: center;
    min-height: 680px;
    padding: 58px 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    padding: 9px 14px;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    backdrop-filter: blur(10px);
    font-weight: 750;
}

.hero h1 {
    margin: 22px 0 18px;
    max-width: 820px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 18px;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
}

.secondary-btn {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(31, 41, 55, 0.74);
    box-shadow: none;
}

.hero-search {
    display: flex;
    width: min(640px, 100%);
    padding: 6px;
    border: 1px solid rgba(75, 85, 99, 0.75);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    color: #f9fafb;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 13px 18px;
}

.hero-search button {
    padding: 12px 20px;
}

.hero-panel {
    position: relative;
    min-height: 460px;
    border: 1px solid rgba(75, 85, 99, 0.58);
    border-radius: 28px;
    background: rgba(17, 24, 39, 0.72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.hero-feature {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.hero-feature img {
    height: 315px;
    object-fit: cover;
}

.hero-feature-body {
    padding: 24px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.74), #111827);
}

.hero-feature-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
}

.hero-feature-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 16px;
    color: #cbd5e1;
    font-size: 15px;
}

.hero-dots {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

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

.hero-dot.is-active {
    width: 28px;
    background: #f59e0b;
}

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

.section-block.soft-bg {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(31, 41, 55, 0.72));
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 800;
}

.section-heading h2,
.page-head h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-head p {
    max-width: 700px;
    margin: 9px 0 0;
    color: #9ca3af;
}

.section-link {
    flex: 0 0 auto;
    color: #f59e0b;
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.8);
    border-radius: 18px;
    background: rgba(31, 41, 55, 0.64);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.68);
    background: rgba(31, 41, 55, 0.92);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.poster-wrap,
.wide-cover,
.rank-thumb,
.detail-cover {
    position: relative;
    overflow: hidden;
    display: block;
    background: #111827;
}

.poster-wrap {
    aspect-ratio: 2 / 3;
}

.poster-wrap img,
.wide-cover img,
.rank-thumb img,
.detail-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.94);
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.3);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 750;
}

.movie-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
}

.movie-card h3,
.ranking-row h3,
.detail-recommend h3 {
    margin: 9px 0 7px;
    color: #fff;
    font-size: 17px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.ranking-row h3 a:hover {
    color: #f59e0b;
}

.movie-card p,
.ranking-row p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 190px;
}

.wide-cover {
    min-height: 190px;
}

.wide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 18px 18px 0;
}

.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.chip {
    display: inline-flex;
    color: #d1d5db;
    padding: 5px 10px;
    border: 1px solid rgba(75, 85, 99, 0.8);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    border-radius: 22px;
    background: radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.2), transparent 34%), linear-gradient(145deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.92));
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.72);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.category-card span {
    color: #f59e0b;
    font-weight: 800;
}

.page-head {
    padding: 58px 0 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: #9ca3af;
    font-size: 14px;
}

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.72);
    margin-bottom: 28px;
}

.search-panel input {
    width: 100%;
    color: #fff;
    border: 1px solid rgba(75, 85, 99, 0.85);
    border-radius: 999px;
    outline: 0;
    background: rgba(31, 41, 55, 0.72);
    padding: 13px 18px;
}

.search-panel button {
    padding: 12px 22px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 120px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(55, 65, 81, 0.8);
    border-radius: 18px;
    background: rgba(31, 41, 55, 0.62);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.68);
    background: rgba(31, 41, 55, 0.9);
}

.rank-num {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 900;
}

.rank-thumb {
    width: 120px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.rank-content h3 {
    margin-top: 0;
}

.rank-link {
    padding: 10px 16px;
    white-space: nowrap;
}

.detail-hero {
    padding: 38px 0 60px;
    background: radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.18), transparent 38%), linear-gradient(180deg, #111827, #0f172a);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 330px) 1fr;
    gap: 32px;
    align-items: start;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    border: 1px solid rgba(75, 85, 99, 0.72);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-title p {
    max-width: 820px;
    color: #cbd5e1;
    font-size: 18px;
}

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

.fact {
    padding: 14px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    border-radius: 16px;
    background: rgba(31, 41, 55, 0.62);
}

.fact b {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 4px;
}

.fact span {
    color: #fff;
    font-weight: 800;
}

.player-section {
    padding: 56px 0;
}

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.76);
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    background: #020617;
    cursor: pointer;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    width: 96px;
    height: 96px;
    margin: auto;
    place-items: center;
    font-size: 34px;
    z-index: 4;
}

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

.player-caption {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(31, 41, 55, 0.92);
    background: rgba(15, 23, 42, 0.95);
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.player-caption p {
    margin: 0;
    color: #cbd5e1;
}

.article-panel {
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(75, 85, 99, 0.7);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.72);
}

.article-panel h2 {
    margin: 0;
    font-size: 28px;
}

.article-panel p {
    margin: 0;
    color: #d1d5db;
}

.detail-recommend {
    padding: 56px 0;
}

.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.92);
    background: #111827;
    margin-top: 48px;
}

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

.footer-logo {
    font-size: 20px;
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.site-footer a {
    display: block;
    color: #9ca3af;
    margin: 7px 0;
}

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

.site-footer p {
    color: #9ca3af;
    margin: 0;
}

.footer-bottom {
    padding: 18px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
}

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 34px;
    }

    .hero-panel {
        min-height: 420px;
    }

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

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

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

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

    .site-logo {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        gap: 24px;
        padding: 36px 0 46px;
    }

    .hero h1 {
        font-size: clamp(36px, 13vw, 58px);
    }

    .hero p {
        font-size: 16px;
    }

    .hero-search,
    .search-panel {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-panel {
        min-height: 500px;
    }

    .hero-feature img {
        height: 310px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 12px;
    }

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

    .movie-card-wide {
        grid-template-columns: 118px 1fr;
        min-height: 160px;
    }

    .wide-cover {
        min-height: 160px;
    }

    .wide-body {
        padding: 12px 12px 12px 0;
    }

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

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

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

    .ranking-row {
        grid-template-columns: 48px 86px 1fr;
    }

    .rank-link {
        grid-column: 3;
        width: fit-content;
    }

    .rank-thumb {
        width: 86px;
        aspect-ratio: 2 / 3;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

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