:root {
    --color-orange: #f97316;
    --color-red: #ef4444;
    --color-pink: #ec4899;
    --color-blue: #2563eb;
    --color-cyan: #06b6d4;
    --color-teal: #0d9488;
    --color-slate: #0f172a;
    --color-text: #111827;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-bg: #f8fafc;
    --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 16px 38px rgba(15, 23, 42, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 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(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red), var(--color-pink));
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.28);
}

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

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text {
    font-size: 1.28rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.global-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: min(310px, 32vw);
}

.global-search-form input {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 74px 10px 16px;
    color: #ffffff;
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.global-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.global-search-form button {
    position: absolute;
    right: 4px;
    border: 0;
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--color-red);
    font-weight: 800;
    cursor: pointer;
    background: #ffffff;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-panel {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.mobile-panel a {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.mobile-search {
    width: 100%;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 1.2s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.32), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.22));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 6px 14px;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.hero-copy h1 {
    margin: 0 0 18px;
    max-width: 780px;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.18rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-button:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 440px;
    box-shadow: var(--shadow-card);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

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

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

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

.content-section {
    padding: 72px 0;
}

.tinted-section {
    padding: 72px 0;
}

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

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.section-more,
.text-link {
    color: var(--color-red);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

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

.movie-card:hover .card-poster img {
    transform: scale(1.08);
}

.year-badge,
.play-badge {
    position: absolute;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
}

.year-badge {
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    opacity: 0;
    color: var(--color-orange);
    background: #ffffff;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.card-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1f5f9;
}

.card-body h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    min-height: 3.1em;
    overflow: hidden;
    font-size: 1.12rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-body h3 a:hover {
    color: var(--color-red);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.3em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.94rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 800;
    background: #ffedd5;
}

.movie-card.detailed {
    border: 2px solid transparent;
}

.movie-card.detailed:hover {
    border-color: var(--color-orange);
}

.movie-card.featured .card-poster {
    aspect-ratio: 16 / 10;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.article-card,
.detail-side-card,
.player-card,
.category-overview-card {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.panel-title h2 {
    margin: 0;
}

.compact-list,
.ranking-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: auto 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 10px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.compact-card img {
    width: 88px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.rank-num {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
}

.compact-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.compact-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-info em {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-chip {
    display: grid;
    gap: 6px;
    border-radius: 999px;
    padding: 16px 20px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-chip:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
    transform: translateY(-4px);
}

.category-chip span {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.category-chip:hover span {
    color: rgba(255, 255, 255, 0.78);
}

.page-intro {
    padding: 74px 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red), var(--color-pink));
}

.page-intro.blue {
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan), var(--color-teal));
}

.page-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-intro p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

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

.category-overview-card {
    padding: 26px;
}

.category-main-link {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
}

.category-main-link span {
    font-size: 1.35rem;
    font-weight: 900;
}

.category-main-link strong {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

.category-overview-card p {
    color: var(--color-muted);
}

.category-overview-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    padding-left: 20px;
}

.category-overview-card li a:hover {
    color: var(--color-red);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 12px 13px;
    color: var(--color-text);
    outline: none;
    background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-panel button,
.search-page-form button {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

.filter-count,
.search-status {
    margin: 0 0 22px;
    color: var(--color-muted);
}

.detail-hero {
    position: relative;
    min-height: 430px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.54));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 34px 0 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 62px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

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

.detail-copy h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-copy p {
    max-width: 820px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.12rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    margin-top: -54px;
    position: relative;
    z-index: 2;
}

.player-card {
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.big-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.52));
}

.big-play-button span {
    display: inline-grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.35);
}

.big-play-button strong {
    border-radius: 999px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.35);
}

.player-card.is-playing .big-play-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--color-muted);
}

.player-caption strong {
    color: var(--color-text);
}

.detail-side-card {
    overflow: hidden;
}

.detail-side-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #111827;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px;
}

.detail-side-card dl div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
}

.detail-side-card dt {
    color: var(--color-muted);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
}

.detail-side-card a {
    color: var(--color-red);
    font-weight: 900;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    padding: 42px 0 72px;
}

.article-card {
    padding: 28px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.article-card h2:not(:first-child) {
    margin-top: 28px;
}

.article-card p {
    margin: 0;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.9;
}

.related-mini .compact-card {
    grid-template-columns: 82px minmax(0, 1fr);
}

.related-mini .rank-num {
    display: none;
}

.search-workspace {
    min-height: 520px;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.2rem;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding: 20px 0;
    color: #94a3b8;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .global-search-form {
        width: min(260px, 30vw);
    }

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

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

    .hero-poster,
    .ranking-panel {
        display: none;
    }

    .detail-side-card {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-inner > .global-search-form {
        display: none;
    }

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

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        display: flex;
        align-items: center;
        min-height: 560px;
    }

    .movie-grid.two-cols,
    .movie-grid.three-cols,
    .movie-grid.four-cols,
    .category-chip-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .hero-slider,
    .hero-content {
        min-height: 620px;
        height: 620px;
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-intro h1 {
        letter-spacing: -0.03em;
    }

    .hero-actions,
    .player-caption,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid.two-cols,
    .movie-grid.three-cols,
    .movie-grid.four-cols,
    .category-chip-grid,
    .category-overview-grid,
    .footer-grid,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: auto 76px minmax(0, 1fr);
    }

    .compact-card img {
        width: 76px;
        height: 52px;
    }

}
