:root {
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 20px 50px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 52%, #f3f4f6 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
    font-size: 16px;
}

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

.brand-text strong,
.footer-brand strong {
    font-size: 22px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.02em;
}

.brand-text em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search {
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--orange);
    padding: 10px 16px;
    cursor: pointer;
}

.menu-button {
    display: none;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    gap: 14px;
    flex-direction: column;
}

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

.mobile-search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.hero-section {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12)), var(--cover);
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    color: #ffffff;
    padding: 80px 0;
}

.hero-copy {
    width: min(660px, 100%);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(234, 88, 12, 0.92);
    backdrop-filter: blur(10px);
    font-weight: 700;
    font-size: 14px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2.2vw, 21px);
}

.hero-actions,
.section-head,
.meta-row,
.detail-tags,
.filter-chips,
.pagination-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--orange-dark);
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.36);
}

.secondary-button,
.filter-chip {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.secondary-button:hover,
.filter-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.hero-meta span,
.meta-row span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 650;
}

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

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

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.section-block {
    padding: 68px 24px;
}

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

.section-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-head {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon,
.page-kicker .icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.18);
}

.section-title h2,
.page-title h1,
.detail-main h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title p,
.page-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.movie-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 20px;
    scroll-snap-type: x mandatory;
}

.movie-row .movie-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

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

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

.movie-card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #e5e7eb;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-frame {
    transform: scale(1.03);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    transition: opacity 0.25s ease;
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.6);
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge,
.rank-badge,
.score-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.movie-info {
    display: block;
    padding: 16px;
}

.movie-info strong {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong {
    color: var(--orange);
}

.movie-info em {
    display: -webkit-box;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info .meta-row {
    justify-content: space-between;
    margin-top: 12px;
}

.movie-info .meta-row span {
    color: #9a3412;
    background: #fff7ed;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    border-radius: 22px;
    padding: 26px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    box-shadow: var(--shadow);
}

.category-tile:nth-child(3n + 2) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #059669, #84cc16);
}

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    padding: 76px 24px;
}

.page-hero.blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero.dark {
    background: linear-gradient(135deg, #111827, #374151);
}

.page-title {
    width: min(980px, 100%);
    margin: 0 auto;
}

.page-title p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.filter-panel {
    margin: -36px auto 36px;
    width: min(1280px, calc(100% - 48px));
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 16px;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: #111827;
    background: #f9fafb;
    outline: 0;
}

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

.filter-chips {
    margin-top: 16px;
}

.filter-chips .filter-chip {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

.empty-state {
    display: none;
    padding: 52px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 82px 140px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-size: 22px;
    font-weight: 850;
}

.rank-cover {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background-color: #e5e7eb;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
}

.rank-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    color: #9a3412;
    background: #fff7ed;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    margin-bottom: 24px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 30px;
}

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

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)), var(--cover);
    background-size: cover;
    background-position: center;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-cover-content {
    text-align: center;
    padding: 20px;
}

.player-play-button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.2s ease;
}

.player-play-button:hover {
    transform: scale(1.08);
}

.player-cover h2 {
    margin: 16px 0 0;
    font-size: clamp(24px, 4vw, 42px);
}

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: none;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    background: rgba(17, 24, 39, 0.86);
    border-radius: 18px;
    padding: 18px 22px;
}

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

.detail-card,
.sidebar-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.detail-main {
    display: grid;
    gap: 24px;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-meta span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 14px;
    font-weight: 700;
}

.detail-copy h2 {
    margin: 24px 0 10px;
    font-size: 22px;
}

.detail-copy p {
    margin: 0;
    color: #374151;
}

.highlight-copy {
    color: var(--orange) !important;
    font-weight: 700;
}

.sidebar-card {
    position: sticky;
    top: 96px;
}

.sidebar-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.mini-movie {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-movie:hover {
    background: #fff7ed;
    transform: translateX(2px);
}

.mini-poster {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background-color: #e5e7eb;
    background-image: var(--cover);
    background-size: cover;
    background-position: center;
}

.mini-movie strong {
    display: -webkit-box;
    color: #111827;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-movie em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    padding: 52px 24px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 680px;
}

.footer-brand p,
.copyright {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 26px 0;
}

.footer-links a {
    color: #4b5563;
}

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

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

    .sidebar-card {
        position: static;
    }
}

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

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

    .header-inner {
        height: 66px;
        padding: 0 18px;
    }

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

    .hero-content {
        width: min(100% - 36px, 760px);
        padding-top: 76px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 54px 96px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .brand-text em {
        display: none;
    }

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

    .primary-button,
    .secondary-button {
        width: 100%;
    }

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

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

    .detail-card,
    .sidebar-card,
    .filter-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .rank-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rank-cover,
    .rank-score {
        grid-column: 2 / -1;
    }
}
