:root {
    --site-amber: #d97706;
    --site-orange: #ea580c;
    --site-amber-soft: #fffbeb;
    --site-orange-soft: #fff7ed;
    --site-gray-50: #f9fafb;
    --site-gray-100: #f3f4f6;
    --site-gray-200: #e5e7eb;
    --site-gray-500: #6b7280;
    --site-gray-700: #374151;
    --site-gray-800: #1f2937;
    --site-gray-900: #111827;
    --site-shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
    --site-radius: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--site-gray-800);
    background: linear-gradient(135deg, #ffffff 0%, var(--site-gray-50) 42%, var(--site-orange-soft) 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(14px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.42rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, var(--site-orange));
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
    transition: transform 0.25s ease;
}

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

.logo-text,
.gradient-text {
    background: linear-gradient(90deg, var(--site-amber), var(--site-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--site-gray-700);
    font-weight: 650;
    position: relative;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--site-amber);
    transition: width 0.25s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--site-amber);
}

.desktop-nav a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 12px 0 18px;
    border-top: 1px solid var(--site-gray-200);
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
}

.mobile-nav a:hover {
    background: var(--site-amber-soft);
}

.hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 48%, #fffbeb 100%);
}

.hero-blob {
    position: absolute;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    filter: blur(28px);
    mix-blend-mode: multiply;
    opacity: 0.32;
    animation: blob 10s infinite;
}

.hero-blob.one {
    top: 72px;
    left: 5%;
    background: #fbbf24;
}

.hero-blob.two {
    top: 165px;
    right: 8%;
    background: #fb923c;
    animation-delay: 2s;
}

.hero-blob.three {
    left: 48%;
    bottom: -90px;
    background: #fde68a;
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(24px, -32px) scale(1.08);
    }
    66% {
        transform: translate(-24px, 20px) scale(0.94);
    }
}

.hero-slider {
    position: relative;
    z-index: 2;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none;
    width: 100%;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: 48px;
    align-items: center;
    padding: 58px 0 54px;
}

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

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.12);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.45rem, 5.4vw, 4.55rem);
    line-height: 1.06;
    font-weight: 900;
    color: var(--site-gray-900);
    letter-spacing: -0.045em;
}

.hero-lead {
    margin: 0 0 28px;
    color: var(--site-gray-500);
    font-size: 1.12rem;
    line-height: 1.9;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 251, 235, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.28);
    font-size: 0.88rem;
    font-weight: 700;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-amber), var(--site-orange));
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.btn-secondary {
    color: var(--site-amber);
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.24);
}

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

.hero-media {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--site-shadow);
    aspect-ratio: 3 / 4;
}

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

.hero-slide.active .hero-poster img {
    transform: scale(1.035);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.48));
}

.hero-card-title {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
    font-weight: 850;
    font-size: 1.08rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--site-amber);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    cursor: pointer;
}

.hero-control.prev {
    left: 16px;
}

.hero-control.next {
    right: 16px;
}

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

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

.hero-dot.active {
    width: 28px;
    background: var(--site-amber);
}

.section {
    padding: 64px 0;
}

.section.white {
    background: #ffffff;
}

.section.soft {
    background: linear-gradient(135deg, var(--site-gray-50), var(--site-gray-100));
}

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

.section-head.center {
    display: block;
    text-align: center;
}

.section-title {
    margin: 0 0 10px;
    color: var(--site-gray-800);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 0;
    color: var(--site-gray-500);
    font-size: 1rem;
    line-height: 1.75;
}

.search-panel {
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 46px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(12px);
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--site-gray-200);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
    color: var(--site-gray-800);
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

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

.filter-button {
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    padding: 8px 14px;
    color: #92400e;
    background: #ffffff;
    font-weight: 750;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-amber), var(--site-orange));
    transform: translateY(-1px);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    right: -52px;
    top: -52px;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.16));
}

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

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    color: var(--site-gray-800);
    font-size: 1.28rem;
    font-weight: 850;
}

.category-card p {
    position: relative;
    margin: 0 0 20px;
    color: var(--site-gray-500);
    line-height: 1.72;
}

.category-link {
    position: relative;
    color: var(--site-amber);
    font-weight: 850;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.84);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.15);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--site-gray-900);
}

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

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

.card-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}

.movie-card:hover .card-mask {
    background: rgba(0, 0, 0, 0.38);
}

.play-badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.94);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.7);
}

.card-badge.left {
    left: 10px;
}

.card-badge.right {
    right: 10px;
    background: rgba(245, 158, 11, 0.95);
}

.card-body {
    padding: 13px;
}

.card-body h3 {
    margin: 0 0 7px;
    color: var(--site-gray-800);
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 850;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.movie-card:hover .card-body h3 {
    color: var(--site-amber);
}

.card-body p {
    margin: 0;
    color: var(--site-gray-500);
    font-size: 0.78rem;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.13);
}

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

.rank-thumb {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    background: var(--site-gray-900);
}

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

.rank-meta h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 850;
    color: var(--site-gray-800);
}

.rank-meta p {
    margin: 0;
    color: var(--site-gray-500);
    font-size: 0.86rem;
    line-height: 1.5;
}

.page-hero {
    padding: 58px 0;
    color: #ffffff;
    background: linear-gradient(90deg, var(--site-amber), var(--site-orange));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    opacity: 0.92;
    font-size: 1.06rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--site-gray-500);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--site-amber);
    font-weight: 750;
}

.detail-wrap {
    padding: 34px 0 64px;
    background: var(--site-gray-50);
}

.detail-card,
.related-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.85);
}

.detail-body {
    padding: 28px;
}

.detail-body h1 {
    margin: 0 0 18px;
    color: var(--site-gray-800);
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    line-height: 1.18;
    font-weight: 900;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--site-gray-700);
    background: var(--site-gray-50);
    border: 1px solid var(--site-gray-200);
    font-size: 0.9rem;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    margin: 0 0 14px;
    color: var(--site-gray-800);
    font-size: 1.35rem;
    font-weight: 880;
}

.lead-box {
    margin: 0 0 18px;
    padding: 16px 18px;
    color: #92400e;
    background: var(--site-amber-soft);
    border-left: 4px solid var(--site-amber);
    border-radius: 12px;
    line-height: 1.82;
}

.content-text {
    margin: 0;
    color: var(--site-gray-700);
    line-height: 1.92;
}

.review-box {
    margin: 0;
    padding: 18px;
    color: var(--site-gray-700);
    background: var(--site-gray-50);
    border-radius: 14px;
    line-height: 1.88;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.54));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-button {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    font-size: 2rem;
    transform: scale(1);
    transition: transform 0.25s ease;
}

.player-overlay:hover .player-button {
    transform: scale(1.08);
}

.related-card {
    margin-top: 28px;
    padding: 26px;
}

.related-card h2 {
    margin: 0 0 22px;
    font-size: 1.6rem;
    font-weight: 900;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--site-gray-500);
    background: #ffffff;
    border: 1px dashed var(--site-gray-200);
    border-radius: 20px;
}

.empty-state.show {
    display: block;
}

.site-footer {
    background: linear-gradient(135deg, var(--site-amber-soft), var(--site-orange-soft));
    border-top: 1px solid rgba(245, 158, 11, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding: 44px 0 30px;
}

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

.footer-text,
.footer-list a {
    color: var(--site-gray-500);
    font-size: 0.92rem;
    line-height: 1.75;
}

.footer-list {
    display: grid;
    gap: 10px;
}

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

.copyright {
    padding: 20px 0 26px;
    text-align: center;
    color: var(--site-gray-500);
    font-size: 0.88rem;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

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

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

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

    .nav-toggle {
        display: block;
    }

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

    .hero-slide,
    .hero-slide.active {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-media {
        max-width: 290px;
        margin: 0 auto;
    }

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

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

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

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

    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 1.18rem;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .hero {
        min-height: auto;
    }

    .hero-slider {
        min-height: auto;
    }

    .hero-slide {
        padding: 38px 0 64px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

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

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

    .card-body {
        padding: 10px;
    }

    .detail-body,
    .related-card {
        padding: 18px;
    }

    .player-button {
        width: 68px;
        height: 68px;
    }

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