:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --brand: #f97316;
    --brand-strong: #ea580c;
    --brand-soft: #ffedd5;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b 52%, #0f172a);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

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

.nav-link,
.nav-dropdown-button {
    border: 0;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown-button:hover {
    color: #fdba74;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 210px;
    padding: 12px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-panel a {
    padding: 9px 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.nav-dropdown-panel a:hover {
    background: rgba(249, 115, 22, 0.16);
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    width: 310px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-search input,
.filter-select {
    width: 100%;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
}

.header-search input {
    padding: 10px 12px;
    color: #ffffff;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.secondary-button,
.player-button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #fb923c);
    color: #ffffff;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-search button {
    margin-right: 5px;
    padding: 7px 12px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.player-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 10px;
}

.mobile-panel {
    display: none;
    background: #111827;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel-inner {
    padding: 0 0 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

.mobile-search input {
    padding: 12px 14px;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-search button {
    padding: 0 16px;
}

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

.mobile-nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: rgba(249, 115, 22, 0.18);
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.32)), var(--hero-bg);
    background-size: cover;
    background-position: center;
}

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

.hero-layout {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 390px;
    align-items: center;
    gap: 56px;
    padding: 64px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fed7aa;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    font-size: clamp(34px, 6vw, 62px);
}

.hero-copy p {
    max-width: 680px;
    margin: 20px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span,
.tag-row span,
.detail-tags span,
.category-chip-row a,
.footer-links a,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-search {
    display: flex;
    max-width: 540px;
    margin-top: 30px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.hero-search input {
    padding: 0 16px;
    color: #ffffff;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

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

.hero-poster {
    position: relative;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.hero-poster-card {
    position: absolute;
    left: -28px;
    bottom: 32px;
    width: 230px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.hero-poster-card strong {
    display: block;
    font-size: 18px;
}

.hero-poster-card small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.68);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 22px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dot.is-active {
    width: 30px;
    opacity: 1;
    background: #f97316;
}

.section {
    padding: 70px 0;
}

.section.alt {
    background: #ffffff;
}

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

.section-kicker {
    color: var(--brand-strong);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.section-header p,
.page-hero p,
.search-title p {
    max-width: 720px;
    color: var(--muted);
}

.view-more {
    color: var(--brand-strong);
    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));
}

.movie-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(249, 115, 22, 0.42);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #334155);
    aspect-ratio: 3 / 4;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.movie-card:hover .poster-frame img,
.mini-card:hover img {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.95);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 38px;
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--brand-strong);
}

.movie-card p {
    margin: 0;
    min-height: 74px;
    color: var(--muted);
    font-size: 14px;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    padding: 5px 8px;
    background: var(--brand-soft);
    color: #9a3412;
    font-size: 12px;
}

.category-strip {
    background: var(--dark);
    color: #ffffff;
}

.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip-row a,
.filter-chip {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.category-chip-row a:hover,
.filter-chip:hover,
.filter-chip.is-active {
    background: var(--brand);
    color: #ffffff;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b, #0f172a 62%, #f97316);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

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

.category-card span {
    margin-top: 18px;
    color: #fed7aa;
    font-weight: 800;
}

.page-hero {
    padding: 64px 0;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.38), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    align-items: center;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-search,
.filter-select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.filter-search input {
    height: 46px;
}

.filter-status {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 24px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
}

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

.detail-hero {
    padding: 56px 0;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78)), var(--detail-bg);
    background-size: cover;
    background-position: center;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.detail-cover {
    padding: 10px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
}

.detail-title h1 {
    color: #ffffff;
}

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

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.player-section {
    padding: 56px 0 30px;
    background: #0f172a;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-button {
    min-width: 170px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    font-size: 18px;
}

.player-button span {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    padding: 48px 0 70px;
}

.article-panel,
.side-panel {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.article-panel p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.mini-card img {
    grid-row: 1 / 3;
    width: 72px;
    height: 94px;
    object-fit: cover;
    border-radius: 12px;
    background: #1e293b;
}

.mini-card span {
    font-weight: 800;
}

.mini-card small {
    color: var(--muted);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 52px 92px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 900;
}

.ranking-row img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 14px;
    background: #1e293b;
}

.ranking-row h3 {
    margin: 0 0 6px;
}

.ranking-row p {
    margin: 0;
    color: var(--muted);
}

.ranking-row .primary-button {
    min-height: 42px;
    padding: 0 16px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a {
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(249, 115, 22, 0.28);
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.search-title {
    margin-bottom: 28px;
}

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

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

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

    .hero-poster {
        max-width: 380px;
    }

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

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

    .hero-carousel,
    .hero-layout {
        min-height: 760px;
    }

    .hero-layout {
        gap: 32px;
        padding: 44px 0 90px;
    }

    .hero-poster-card {
        left: 14px;
        right: 14px;
        width: auto;
        bottom: 18px;
    }

    .section {
        padding: 48px 0;
    }

    .section-header {
        display: block;
    }

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

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

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

    .ranking-row {
        grid-template-columns: 42px 76px 1fr;
    }

    .ranking-row .primary-button {
        grid-column: 2 / 4;
    }

    .ranking-row img {
        width: 76px;
        height: 102px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 18px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .hero-search {
        display: grid;
        gap: 8px;
    }

    .hero-search input {
        min-height: 46px;
    }

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

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