:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-400: #f59e0b;
    --amber-500: #f97316;
    --amber-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-500: #eab308;
    --red-500: #ef4444;
    --purple-500: #8b5cf6;
    --blue-500: #3b82f6;
    --green-500: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.22);
    --radius-lg: 18px;
    --radius-xl: 28px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf0 100%);
    line-height: 1.6;
}

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

img,
video {
    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: 80;
    background: linear-gradient(90deg, #d97706, #f97316 48%, #eab308);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.topbar {
    width: min(var(--container), calc(100% - 24px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand {
    font-size: 24px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--white);
    font-size: 28px;
    background: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 auto;
}

.nav-links a,
.nav-dropdown > button {
    color: rgba(255, 255, 255, 0.92);
    border: 0;
    background: transparent;
    padding: 8px 0;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active,
.nav-dropdown > button:hover {
    color: #fff7d6;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 220px;
    padding: 10px;
    border-radius: 16px;
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--gray-700);
}

.dropdown-menu a:hover {
    background: var(--amber-50);
    color: var(--amber-600);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 310px;
    max-width: 32vw;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 4px;
}

.top-search input,
.panel-search input,
.hero-search input,
.filter-row input,
.filter-row select {
    border: 0;
    outline: none;
    color: var(--gray-900);
    background: var(--white);
}

.top-search input {
    width: 100%;
    min-width: 0;
    border-radius: 999px;
    padding: 10px 86px 10px 16px;
}

.top-search button,
.panel-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
    padding: 9px 15px;
    cursor: pointer;
    font-weight: 700;
}

.top-search button {
    position: absolute;
    right: 7px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: var(--white);
    background: #16120f;
}

.hero-track,
.hero-slide {
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.5), transparent 34%),
        linear-gradient(135deg, #7c2d12, #111827 70%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(1px) saturate(1.2);
    transform: scale(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.08)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    align-items: center;
    gap: 58px;
    padding: 72px 0 96px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.eyebrow.dark {
    color: var(--amber-600);
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-desc,
.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2vw, 23px);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.tag-list span,
.chip {
    background: var(--amber-50);
    color: var(--amber-600);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.32);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(234, 88, 12, 0.4);
}

.btn.ghost {
    color: var(--amber-600);
    background: var(--white);
    border-color: rgba(249, 115, 22, 0.2);
}

.btn.ghost.light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn.small {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 14px;
}

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(17, 24, 39, 0.9));
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster span {
    position: absolute;
    inset: auto 22px 22px auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--red-500));
    box-shadow: var(--shadow-md);
    font-weight: 900;
}

.hero-poster.slim img {
    height: 380px;
}

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

.hero-dots button {
    width: 44px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--white);
}

.quick-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.4fr);
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(14px);
}

.overlap-panel {
    margin-top: -62px;
}

.quick-panel > div {
    padding: 8px 14px;
}

.stat-number {
    display: block;
    color: var(--amber-600);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.panel-search,
.hero-search {
    display: flex;
    gap: 10px;
}

.panel-search input,
.hero-search input {
    width: 100%;
    min-width: 0;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.section-block {
    margin-top: 72px;
}

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

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

.compact-title h2 {
    font-size: 26px;
}

.more-link {
    color: var(--amber-600);
    font-weight: 800;
}

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

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

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

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

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

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5.35;
    background: linear-gradient(135deg, #fed7aa, #fdba74 40%, #111827);
}

.poster img,
.thumb img,
.ranking-cover img,
.category-covers img,
.category-overview-cover img,
.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.poster-link:hover img,
.movie-card:hover .poster img {
    transform: scale(1.07);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(234, 88, 12, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: all 0.22s ease;
}

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

.card-body {
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-meta span,
.detail-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--gray-100);
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--amber-600);
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.heat {
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    height: 132px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #9a3412);
}

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

.category-card p,
.category-overview-body p,
.info-card p {
    color: var(--gray-500);
    margin: 0 0 12px;
}

.category-card span {
    color: var(--amber-600);
    font-weight: 800;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
    gap: 28px;
    align-items: start;
}

.hot-scroll-card,
.rank-panel,
.filter-panel,
.detail-card,
.sticky-panel,
.info-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.hot-scroll-card,
.rank-panel {
    padding: 24px;
}

.hot-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    scroll-snap-type: x mandatory;
}

.compact-card {
    scroll-snap-align: start;
}

.compact-card .card-body {
    padding: 13px;
}

.compact-card h3 {
    font-size: 16px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--gray-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: var(--amber-50);
    transform: translateX(4px);
}

.thumb {
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #fed7aa, #111827);
}

.rank-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--amber-600);
    font-size: 13px;
    font-weight: 900;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(115deg, #92400e, #f97316 48%, #eab308);
}

.compact-hero {
    padding: 78px 0;
}

.category-hero,
.ranking-hero {
    padding: 74px 0;
}

.category-hero-inner,
.ranking-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 68px);
}

.filter-panel {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding: 22px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 16px;
}

.filter-row label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-weight: 800;
}

.filter-row input,
.filter-row select {
    width: 100%;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.filter-count {
    margin: 14px 0 0;
    color: var(--gray-500);
}

.category-overview-list {
    display: grid;
    gap: 24px;
    margin-top: 52px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-overview-cover {
    height: 220px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #fed7aa, #431407);
}

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.category-overview-body ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    padding: 0;
    margin: 16px 0 18px;
    list-style: none;
}

.category-overview-body li a,
.sitemap-movie-list li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--gray-700);
}

.category-overview-body span,
.sitemap-movie-list span {
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 110px 58px minmax(0, 1fr) 160px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.ranking-row.gold {
    background: linear-gradient(90deg, #fff7ed, #ffffff);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.18);
}

.ranking-cover {
    width: 110px;
    height: 82px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #111827);
}

.ranking-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--gray-900);
    font-size: 22px;
    font-weight: 900;
}

.ranking-row.gold .ranking-number {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

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

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

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

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #050505;
    box-shadow: var(--shadow-xl);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    border: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.66));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--amber-500), var(--red-500));
    box-shadow: var(--shadow-xl);
    font-size: 28px;
}

.player-card.is-playing .player-overlay,
.player-card.is-ready .player-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    display: none;
}

.player-message.active {
    display: block;
}

.detail-card {
    margin-top: 24px;
    padding: 26px;
}

.detail-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-heading h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-card .tag-list {
    margin-top: 12px;
    margin-bottom: 22px;
}

.summary-box {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--gray-200);
}

.summary-box h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.summary-box p {
    margin: 0;
    color: var(--gray-700);
    white-space: pre-line;
}

.highlight-summary {
    padding: 20px;
    border: 0;
    border-radius: 18px;
    background: var(--amber-50);
}

.review-box {
    padding: 20px;
    border-radius: 18px;
    background: #fff7f0;
}

.prev-next {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.prev-next a {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 700;
}

.prev-next a:hover {
    color: var(--white);
    background: var(--amber-600);
}

.detail-sidebar {
    min-width: 0;
}

.sticky-panel {
    position: sticky;
    top: 94px;
    padding: 20px;
}

.side-poster {
    display: block;
    height: 360px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #fed7aa, #111827);
    margin-bottom: 20px;
}

.sticky-panel h2 {
    margin: 0 0 16px;
}

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

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    padding: 26px;
}

.info-card h2 {
    margin: 0 0 12px;
}

.sitemap-grid {
    display: grid;
    gap: 26px;
    margin-top: 48px;
}

.index-block {
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.index-block h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    font-size: 26px;
}

.index-block h2 span {
    color: var(--amber-600);
    font-size: 15px;
}

.sitemap-movie-list {
    columns: 3 260px;
    column-gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-movie-list li {
    break-inside: avoid;
    padding: 7px 0;
    border-bottom: 1px dashed var(--gray-200);
}

.site-footer {
    margin-top: 80px;
    color: var(--white);
    background: linear-gradient(90deg, #78350f, #c2410c 52%, #a16207);
}

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

.footer-brand {
    font-size: 22px;
    margin-bottom: 14px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer li {
    margin-bottom: 9px;
}

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

.footer-bottom {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

img.is-missing {
    opacity: 0;
}

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

[data-search-results]:empty::before {
    content: "请输入关键词，或直接浏览下方推荐结果。";
    display: block;
    color: var(--gray-500);
}

@media (max-width: 1100px) {
    .hero-content,
    .detail-layout,
    .two-columns,
    .ranking-hero-inner,
    .category-hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 30px;
    }

    .hero-poster {
        max-width: 360px;
        transform: none;
    }

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

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

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

@media (max-width: 820px) {
    .topbar {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links,
    .top-search {
        display: none;
        width: 100%;
        max-width: none;
    }

    .nav-links.open,
    .top-search.open {
        display: grid;
    }

    .nav-links {
        gap: 8px;
        padding: 8px 0;
    }

    .nav-dropdown {
        display: none;
    }

    .hero-carousel,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 54px 0 110px;
        grid-template-columns: 1fr;
    }

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

    .quick-panel,
    .filter-row,
    .category-overview-card,
    .ranking-row {
        grid-template-columns: 1fr;
    }

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

    .category-overview-body ul {
        grid-template-columns: 1fr;
    }

    .ranking-score {
        text-align: left;
    }

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

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

    .hero-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .movie-grid,
    .featured-grid,
    .all-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hot-scroll {
        grid-auto-columns: 82vw;
    }

    .detail-card,
    .filter-panel,
    .hot-scroll-card,
    .rank-panel,
    .sticky-panel,
    .info-card {
        border-radius: 18px;
        padding: 18px;
    }

    .side-poster {
        height: 300px;
    }
}
