:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --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: 0 18px 55px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 30px rgba(217, 119, 6, 0.14);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(253, 230, 138, 0.75);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
}

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

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

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

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.25);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

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

.logo-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-600);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--gray-700);
    background: var(--amber-50);
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--amber-100);
    background: var(--white);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav .nav-link {
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.is-active {
    background: var(--amber-50);
}

.main {
    min-height: 60vh;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100) 0%, var(--orange-50) 48%, #fff7d6 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    width: 360px;
    height: 360px;
    content: "";
    border-radius: 999px;
    filter: blur(26px);
    opacity: 0.38;
    animation: floatBlob 12s ease-in-out infinite;
}

.hero::before {
    top: 66px;
    left: 6vw;
    background: var(--amber-500);
}

.hero::after {
    right: 7vw;
    bottom: -96px;
    background: var(--orange-500);
    animation-delay: 2.4s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    gap: 48px;
    min-height: 560px;
    padding: 56px 0;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 13px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.14);
}

.hero-title {
    margin: 0 0 22px;
    color: var(--gray-900);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.gradient-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600), #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    max-width: 690px;
    margin: 0 0 28px;
    color: var(--gray-600);
    font-size: 19px;
}

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: var(--soft-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 42px rgba(234, 88, 12, 0.25);
}

.btn-secondary {
    color: var(--amber-700);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--white);
}

.hero-search {
    display: flex;
    gap: 10px;
    max-width: 570px;
    margin-top: 26px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: var(--gray-800);
    background: transparent;
}

.hero-search button {
    min-width: 102px;
    border: 0;
    cursor: pointer;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-links a,
.tag-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    color: #92400e;
    font-size: 13px;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 22px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    backdrop-filter: blur(18px);
}

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

.hero-slide-poster {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-50));
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.16);
}

.hero-slide-poster img,
.poster-wrap img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-body h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

.hero-slide-body p {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: rgba(217, 119, 6, 0.36);
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.96), rgba(255, 247, 237, 0.96));
}

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

.section-title {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--gray-600);
    font-size: 16px;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    transform: translateY(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 52px rgba(17, 24, 39, 0.13);
    transform: translateY(-7px);
}

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

.poster-wrap img {
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(0, 0, 0, 0.38);
    opacity: 1;
}

.play-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding-left: 3px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.badge,
.region-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 850;
    border-radius: 999px;
}

.badge {
    right: 10px;
    background: var(--amber-500);
}

.region-badge {
    left: 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 10px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.movie-card-body {
    display: grid;
    gap: 6px;
    padding: 13px;
}

.movie-card-title {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    transition: color 0.2s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-card-meta,
.movie-card-genre {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-card {
    position: relative;
    min-height: 150px;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white), var(--amber-50));
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
    position: absolute;
    right: -36px;
    bottom: -52px;
    width: 140px;
    height: 140px;
    content: "";
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.22));
    border-radius: 999px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(217, 119, 6, 0.14);
}

.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--gray-600);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 28px 0 34px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    outline: 0;
    background: var(--gray-50);
    border-radius: 12px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.empty-state {
    margin: 32px 0 0;
    padding: 24px;
    color: var(--gray-600);
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--amber-200);
    border-radius: var(--radius-lg);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.page-hero h1,
.detail-title {
    max-width: 920px;
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-hero p,
.detail-lead {
    max-width: 850px;
    margin: 18px 0 0;
    color: var(--gray-600);
    font-size: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--white);
    font-weight: 950;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 16px;
}

.rank-thumb {
    width: 72px;
    height: 96px;
    overflow: hidden;
    background: var(--amber-100);
    border-radius: 12px;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 4px;
    color: var(--gray-900);
    font-size: 18px;
}

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

.rank-meta {
    color: var(--amber-700);
    font-weight: 850;
    white-space: nowrap;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
    border: 10px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
}

.player-section {
    padding: 64px 0 34px;
    background: linear-gradient(180deg, var(--gray-900), #27170a);
}

.player-section .section-title,
.player-section .section-subtitle {
    color: var(--white);
}

.player-section .section-subtitle {
    opacity: 0.78;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

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

.video-play-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-play-button span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 6px;
    color: var(--white);
    font-size: 34px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 999px;
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.35);
}

.video-frame.is-playing .video-play-button,
.video-frame.is-loading .video-play-button {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.content-article {
    max-width: 920px;
    margin: 0 auto;
    padding: 58px 0 10px;
}

.content-article h2 {
    margin: 34px 0 12px;
    color: var(--gray-900);
    font-size: 28px;
    font-weight: 900;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

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

.site-footer {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
    border-top: 1px solid var(--amber-200);
}

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

.footer-title {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 900;
}

.footer-text,
.footer-link,
.footer-copy {
    color: var(--gray-600);
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-link:hover {
    color: var(--amber-600);
}

.footer-bottom {
    padding: 20px 0 32px;
    border-top: 1px solid var(--amber-200);
    text-align: center;
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(28px, -18px, 0) scale(1.08);
    }
}

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

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

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 360px;
    }
}

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

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

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 46px 0;
    }

    .hero-search {
        border-radius: 20px;
        flex-direction: column;
    }

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

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-slide-poster {
        min-height: 178px;
    }

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

    .section {
        padding: 48px 0;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 58px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .rank-thumb {
        width: 58px;
        height: 78px;
    }

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

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

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

@media (max-width: 480px) {
    .header-inner,
    .container {
        width: min(100% - 22px, 1180px);
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-slide-poster {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

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

    .video-play-button span {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }
}
