:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-50: #fefce8;
    --yellow-500: #eab308;
    --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;
    --black: #000000;
    --shadow-sm: 0 4px 14px rgba(146, 64, 14, 0.08);
    --shadow-md: 0 12px 30px rgba(146, 64, 14, 0.14);
    --shadow-lg: 0 24px 70px rgba(146, 64, 14, 0.22);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-50), var(--yellow-50), var(--orange-50));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-800);
    font-weight: 800;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 10px 26px rgba(234, 88, 12, 0.26);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 21px;
    letter-spacing: 0.03em;
}

.logo-subtitle {
    margin-top: 4px;
    color: var(--amber-600);
    font-size: 12px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--amber-700);
    font-weight: 700;
    white-space: nowrap;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange-600);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    padding: 6px;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-form input {
    width: 100%;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    outline: 0;
    color: var(--gray-800);
    background: transparent;
}

.search-form button,
.search-panel button {
    border: 0;
    cursor: pointer;
}

.search-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-600));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--amber-800);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

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

.mobile-panel .nav-links,
.mobile-panel .search-form {
    width: 100%;
}

.mobile-panel .nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: var(--amber-900);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1.1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 11, 0, 0.86), rgba(120, 53, 15, 0.55), rgba(0, 0, 0, 0.14)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 80px 0 88px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(249, 115, 22, 0.95);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
    box-shadow: 0 18px 30px rgba(234, 88, 12, 0.28);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--orange-700), var(--amber-700));
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.button-light {
    color: var(--orange-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.84), rgba(254, 243, 199, 0.84));
}

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

.section-title {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

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

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

.movie-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    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-lg);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.poster-wrap.portrait {
    aspect-ratio: 3 / 4;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.02) 58%);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-500);
    font-size: 13px;
    font-weight: 800;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.card-title {
    margin: 0;
    color: var(--gray-800);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 800;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: var(--orange-600);
}

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

.card-meta {
    margin-top: auto;
    color: var(--gray-500);
    font-size: 13px;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -65px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.2;
}

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

.page-hero {
    padding: 72px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--amber-700), var(--orange-600), var(--yellow-500));
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--amber-100);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select,
.search-panel input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--amber-200);
    border-radius: 14px;
    outline: 0;
    color: var(--gray-800);
    background: var(--white);
}

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 18px;
    overflow: hidden;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
    font-weight: 900;
}

.rank-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 15px;
    background: var(--amber-100);
}

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

.rank-body h2,
.rank-body h3 {
    margin: 0 0 8px;
    color: var(--gray-800);
    font-size: 21px;
    line-height: 1.3;
}

.rank-body p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.detail-hero {
    padding: 60px 0 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(120, 53, 15, 0.94), rgba(194, 65, 12, 0.78)),
        linear-gradient(135deg, var(--amber-900), var(--orange-700));
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #080808;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.54));
}

.player-start.hidden {
    display: none;
}

.player-start span {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 38px;
    background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.detail-copy {
    padding: 28px 0 50px;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-copy .summary {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--amber-100);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
}

.content-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card + .content-card {
    margin-top: 24px;
}

.content-card h2 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span,
.tag-list a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--orange-100);
    font-size: 14px;
    font-weight: 800;
}

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

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

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

.related-item img {
    width: 96px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--amber-100);
}

.related-item strong {
    display: block;
    color: var(--gray-800);
    line-height: 1.3;
}

.related-item span {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-900, #7c2d12), var(--amber-800));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-inner p {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--amber-200);
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--amber-100);
}

.footer-links h2,
.footer-links h3 {
    margin: 0 0 6px;
    color: var(--amber-200);
    font-size: 18px;
}

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

.footer-bottom {
    padding: 18px 0 24px;
    border-top: 1px solid rgba(253, 230, 138, 0.24);
    color: var(--amber-200);
    font-size: 14px;
}

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

    .rank-list,
    .content-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 840px) {
    .header-inner {
        min-height: 66px;
    }

    .site-header .header-inner > .nav-links,
    .site-header .header-inner > .search-form {
        display: none;
    }

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

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

    .mobile-panel .nav-links {
        display: flex;
    }

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

    .hero-control {
        display: none;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .filter-panel,
    .search-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

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

    .logo-name {
        font-size: 18px;
    }

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

    .hero-content {
        padding-bottom: 76px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

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

    .rank-poster {
        aspect-ratio: 16 / 9;
    }

    .content-card {
        padding: 22px;
    }

    .related-item {
        grid-template-columns: 82px 1fr;
    }

    .related-item img {
        width: 82px;
        height: 58px;
    }
}
