:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-900: #7c2d12;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 10px 35px rgba(124, 45, 18, 0.12);
    --shadow-card: 0 12px 28px rgba(17, 24, 39, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 42%, var(--orange-50) 100%);
    font-family: -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: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

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

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

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

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--orange-600), var(--amber-600));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

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

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

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

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input {
    width: 210px;
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.clear-filter,
.primary-btn,
.ghost-btn,
.more-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--orange-600);
    background: rgba(249, 115, 22, 0.1);
    cursor: pointer;
}

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

.mobile-link {
    display: block;
    padding: 12px 4px;
    color: var(--gray-700);
    font-weight: 750;
    border-bottom: 1px solid rgba(249, 115, 22, 0.08);
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--orange-600);
}

.hero-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 54px 0 42px;
    background:
        radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.34), transparent 28%),
        radial-gradient(circle at 82% 4%, rgba(249, 115, 22, 0.24), transparent 32%),
        linear-gradient(135deg, var(--amber-50), var(--orange-100));
}

.hero-bg-orb {
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.55;
}

.orb-one {
    left: -120px;
    bottom: -160px;
    background: rgba(251, 191, 36, 0.34);
}

.orb-two {
    right: -140px;
    top: 80px;
    background: rgba(249, 115, 22, 0.28);
}

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

.hero-slide {
    min-height: 560px;
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 54px;
}

.hero-slide.active {
    display: grid;
    animation: fadeIn 0.5s ease both;
}

.hero-copy {
    padding: 24px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: var(--orange-700);
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.12;
}

.hero-copy p {
    max-width: 690px;
    margin: 0;
    color: var(--gray-700);
    font-size: 18px;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    color: var(--orange-700);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
}

.ghost-btn {
    color: var(--orange-700);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 34px 72px rgba(124, 45, 18, 0.28);
    transform: rotate(2deg);
}

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

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

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

.hero-score {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-500), var(--amber-500));
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--orange-700);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: -8px;
}

.hero-next {
    right: -8px;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

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

.intro-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 34px;
    padding-bottom: 28px;
}

.intro-strip a {
    display: grid;
    gap: 5px;
    min-height: 112px;
    padding: 22px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intro-strip a:hover,
.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.intro-strip strong {
    color: var(--gray-900);
    font-size: 20px;
}

.intro-strip span {
    color: var(--gray-500);
}

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

.section-head h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.04em;
}

.more-link {
    display: inline-flex;
    align-items: center;
    color: var(--orange-700);
    background: rgba(249, 115, 22, 0.09);
    padding: 10px 16px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 18px;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(124, 45, 18, 0.82));
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 850;
}

.category-tile small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.84);
}

.warm-section {
    width: min(1240px, calc(100% - 32px));
    padding: 48px 30px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(255, 237, 213, 0.86));
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.movie-grid {
    display: grid;
    gap: 18px;
}

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

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

.movie-card {
    overflow: hidden;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.card-hot,
.rank-mark {
    position: absolute;
    z-index: 2;
    color: var(--white);
    font-weight: 850;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.card-hot {
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, var(--orange-500));
    font-size: 12px;
}

.rank-mark {
    top: 10px;
    left: 10px;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-600), var(--amber-500));
}

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.card-meta {
    margin: 5px 0 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.card-desc {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--gray-700);
    font-size: 14px;
}

.card-desc.compact {
    min-height: 42px;
    font-size: 13px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.22), transparent 28%),
        linear-gradient(135deg, var(--amber-50), var(--orange-100));
    box-shadow: var(--shadow-soft);
}

.compact-hero {
    padding: 52px;
}

.page-hero p {
    max-width: 760px;
    color: var(--gray-700);
    font-size: 17px;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.filter-search {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.filter-search input {
    flex: 1;
    width: auto;
}

.clear-filter {
    padding: 10px 16px;
    color: var(--orange-700);
    background: rgba(249, 115, 22, 0.1);
}

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

.filter-row label {
    display: grid;
    gap: 6px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 750;
}

.filter-select {
    width: 100%;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
}

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

.category-overview-card {
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.category-overview-head h2 {
    margin: 0 0 6px;
    color: var(--gray-900);
}

.category-overview-head p {
    margin: 0;
    color: var(--gray-500);
}

.mini-grid .movie-card:nth-child(n + 7) {
    display: none;
}

.no-result {
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.9);
}

.detail-layout {
    padding-top: 34px;
}

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

.breadcrumb a {
    color: var(--orange-700);
    font-weight: 750;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--gray-900), #3b1f0f);
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.28);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gray-900);
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
    cursor: pointer;
}

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

.play-circle {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.32);
}

.player-trigger strong {
    font-size: 20px;
}

.detail-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    margin-top: 28px;
}

.detail-poster {
    align-self: start;
    display: grid;
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

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

.primary-btn.full {
    width: 100%;
}

.detail-content {
    padding: 30px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 750;
}

.lead-text {
    margin: 18px 0;
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 650;
}

.detail-content h2 {
    margin: 28px 0 10px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-content p {
    color: var(--gray-700);
}

.site-footer {
    margin-top: 46px;
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--orange-900), #451a03);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 0;
}

.footer-brand {
    max-width: 460px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 850;
}

.footer-brand p {
    margin: 0;
    color: var(--amber-100);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 14px;
}

.footer-links a {
    color: var(--amber-100);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: var(--amber-200);
    border-top: 1px solid rgba(253, 230, 138, 0.18);
}

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

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .header-inner {
        min-height: 68px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 28px;
    }

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

    .hero-dots {
        position: static;
        margin-top: 18px;
    }

    .hero-arrow {
        top: 62%;
    }

    .intro-strip,
    .filter-row,
    .detail-main,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .intro-strip,
    .footer-inner {
        display: grid;
    }

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

    .compact-hero {
        padding: 34px 24px;
    }

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

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 19px;
    }

    .brand-icon,
    .footer-logo-icon {
        width: 40px;
        height: 40px;
    }

    .hero-shell {
        padding-top: 28px;
    }

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

    .hero-copy h2 {
        font-size: 26px;
    }

    .hero-copy p,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

    .hero-actions,
    .filter-search,
    .category-overview-head,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid.four-col,
    .movie-grid.six-col {
        grid-template-columns: 1fr;
    }

    .warm-section {
        width: min(1180px, calc(100% - 32px));
        padding: 34px 18px;
    }

    .detail-content {
        padding: 22px;
    }
}
