* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-400: #facc15;
    --red-500: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(124, 45, 18, 0.08);
    --shadow-md: 0 16px 36px rgba(124, 45, 18, 0.14);
    --shadow-lg: 0 24px 60px rgba(124, 45, 18, 0.20);
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--amber-500));
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.22);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-size: 26px;
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

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

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

.desktop-nav a,
.mobile-nav a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--orange-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    gap: 8px;
    flex-direction: column;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(100deg, #fbbf24 0%, #fb923c 50%, #facc15 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 86px 0 110px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
    align-items: center;
    gap: 56px;
}

.hero-slide.active {
    display: grid;
    animation: fadeLift 0.48s ease both;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.hero-pill,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 800;
}

.hero-pill {
    color: var(--white);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
}

.section-label {
    color: var(--orange-700);
    background: var(--orange-100);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: var(--amber-50);
    font-size: 20px;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.tag-row span,
.detail-meta span {
    color: var(--amber-700);
    background: var(--amber-100);
}

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

.primary-button,
.secondary-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--orange-600);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    color: var(--white);
    background: var(--amber-700);
}

.text-link {
    min-height: auto;
    color: var(--orange-700);
    background: var(--orange-100);
}

.hero-poster {
    position: relative;
    display: block;
    min-height: 430px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0) scale(1.025);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 65%);
}

.daily-badge {
    position: absolute;
    top: 18px;
    right: -8px;
    z-index: 2;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red-500);
    font-weight: 900;
    transform: rotate(10deg);
    box-shadow: var(--shadow-md);
}

.poster-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: grid;
    gap: 6px;
}

.poster-caption strong {
    font-size: 26px;
}

.poster-caption em {
    color: var(--amber-100);
    font-style: normal;
}

.hero-controls {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

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

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

.hero-dot.active {
    width: 34px;
    opacity: 1;
}

.hero-decor {
    position: absolute;
    z-index: 1;
    opacity: 0.11;
    pointer-events: none;
}

.decor-one {
    top: 44px;
    left: 6%;
    font-size: 70px;
}

.decor-two {
    top: 160px;
    right: 8%;
    font-size: 62px;
}

.decor-three {
    bottom: 60px;
    left: 22%;
    font-size: 82px;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    color: var(--amber-50);
}

.hero-wave svg {
    width: 100%;
    height: 86px;
    display: block;
}

.hero-wave path {
    fill: currentColor;
}

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

.amber-section {
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
}

.white-section {
    background: var(--white);
}

.ranking-section {
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500), var(--yellow-400));
    color: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-head h2,
.page-hero h1 {
    margin: 14px 0 12px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.ranking-section .section-head h2,
.ranking-section h2,
.ranking-section p {
    color: var(--white);
}

.section-head p,
.page-hero p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--gray-600);
    font-size: 18px;
}

.ranking-section .section-label {
    color: var(--orange-700);
    background: var(--white);
}

.quick-search {
    padding-top: 36px;
    padding-bottom: 36px;
    background: var(--amber-50);
}

.search-card,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-3xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

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

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(420px, 100%);
    padding: 13px 16px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--gray-900);
}

.wide-search {
    flex: 1 1 420px;
}

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

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

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

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--orange-100), var(--amber-100));
}

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

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

.movie-category,
.movie-score {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.movie-category {
    top: 12px;
    left: 12px;
    color: var(--orange-700);
    background: rgba(255, 255, 255, 0.92);
}

.movie-score {
    right: 12px;
    bottom: 12px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.62);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    margin: 0 0 8px;
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.ranking-body h2 a:hover,
.category-title:hover,
.category-overview-title:hover {
    color: var(--orange-600);
}

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

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

.category-panel,
.category-overview-card,
.side-panel,
.detail-article,
.player-card {
    border-radius: var(--radius-3xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-panel,
.category-overview-card {
    padding: 24px;
}

.category-title,
.category-overview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-title strong {
    color: var(--orange-700);
    font-size: 14px;
}

.category-panel p,
.category-overview-card p {
    margin: 0 0 18px;
    color: var(--gray-600);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: var(--amber-50);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    background: var(--orange-100);
}

.mini-card img {
    width: 64px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
}

.mini-card span {
    display: grid;
    gap: 4px;
}

.mini-card strong {
    line-height: 1.25;
}

.mini-card em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    gap: 36px;
    align-items: start;
}

.split-layout h2 {
    margin: 16px 0;
    font-size: clamp(30px, 4vw, 46px);
}

.split-layout p {
    margin: 0 0 22px;
    color: var(--amber-50);
    font-size: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 68px 1fr 54px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
}

.rank-row img {
    width: 68px;
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-num,
.rank-score {
    font-weight: 950;
    color: var(--orange-600);
}

.rank-main {
    display: grid;
    gap: 4px;
}

.rank-main strong {
    font-size: 17px;
}

.rank-main em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    padding: 72px 0;
    color: var(--gray-900);
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.35), transparent 36%), linear-gradient(180deg, var(--amber-100), var(--orange-50));
}

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

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

.toolbar {
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sticky-toolbar {
    position: sticky;
    top: 88px;
    z-index: 20;
}

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

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
}

[data-card].is-hidden {
    display: none;
}

.ranking-card {
    display: grid;
    grid-template-columns: 130px 1fr 110px;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-3xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.ranking-cover {
    position: relative;
    display: block;
}

.ranking-cover img {
    width: 130px;
    height: 170px;
    border-radius: 22px;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--white);
    background: var(--orange-600);
    font-weight: 900;
}

.ranking-body h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.ranking-body p {
    margin: 0 0 10px;
    color: var(--gray-600);
}

.ranking-heat {
    text-align: right;
}

.ranking-heat strong {
    display: block;
    color: var(--orange-600);
    font-size: 30px;
}

.ranking-heat span {
    color: var(--gray-500);
    font-size: 13px;
}

.detail-main {
    background: var(--amber-50);
}

.detail-hero {
    padding: 64px 0;
    color: var(--white);
    background: linear-gradient(110deg, var(--amber-600), var(--orange-600), var(--amber-500));
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster-wrap {
    padding: 12px;
    border-radius: var(--radius-3xl);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}

.detail-poster {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
}

.detail-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-lead {
    max-width: 820px;
    margin: 0 0 20px;
    color: var(--amber-50);
    font-size: 20px;
}

.detail-copy .breadcrumb {
    color: var(--amber-100);
}

.player-section {
    background: var(--gray-900);
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--orange-600);
    background: var(--white);
    font-size: 38px;
    box-shadow: var(--shadow-lg);
    transform: translateX(3px);
}

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

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.side-panel {
    padding: 28px;
}

.detail-article h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    color: var(--gray-700);
    font-size: 17px;
}

.detail-tags {
    margin-top: 10px;
}

.side-panel dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.side-panel dt {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 800;
}

.side-panel dd {
    margin: -8px 0 0;
    color: var(--gray-900);
    font-weight: 800;
}

.related-grid .movie-card {
    background: var(--white);
}

.compact-card .movie-desc {
    min-height: auto;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(135deg, #78350f, #9a3412, #78350f);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 20px;
}

.footer-brand span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--white);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    color: var(--amber-100);
}

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

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--amber-100);
    font-size: 14px;
}

@keyframes fadeLift {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1040px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-inner {
        padding: 58px 0 86px;
    }

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

    .hero-poster {
        min-height: 320px;
    }

    .hero-poster img {
        height: 320px;
    }

    .search-card,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

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

    .ranking-card {
        grid-template-columns: 100px 1fr;
    }

    .ranking-cover img {
        width: 100px;
        height: 136px;
    }

    .ranking-heat {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        height: 66px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

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

    .brand-text em {
        display: none;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p,
    .detail-lead {
        font-size: 17px;
    }

    .section-pad {
        padding: 48px 0;
    }

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

    .rank-row {
        grid-template-columns: 42px 56px 1fr;
    }

    .rank-row img {
        width: 56px;
        height: 70px;
    }

    .rank-score {
        display: none;
    }

    .detail-poster {
        height: 360px;
    }

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