:root {
    --amber-50: #fff8e7;
    --amber-100: #ffedc2;
    --amber-400: #f5a524;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --rose-500: #f43f5e;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --text-main: #1f2937;
    --text-soft: #64748b;
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 60px rgba(100, 64, 13, 0.16);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 42%, #fffbeb 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(245, 158, 11, 0.96));
    box-shadow: 0 18px 40px rgba(146, 64, 14, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--amber-600);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 14px 34px rgba(15, 23, 42, 0.18);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 22%, rgba(245, 158, 11, 0.35), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.64) 45%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 640px;
    margin: 0 auto;
    padding: 92px 24px 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.64fr);
    align-items: center;
    gap: 48px;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--amber-100);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.9);
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.18);
}

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

.primary-button,
.ghost-button,
.search-inline button,
.search-large button,
.rank-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-button,
.search-inline button,
.search-large button,
.rank-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.primary-button:hover,
.ghost-button:hover,
.search-inline button:hover,
.search-large button:hover,
.rank-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 380px);
    justify-self: center;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) scale(1.03);
}

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

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.94);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.24s ease, transform 0.24s ease;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.68);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow--left {
    left: 24px;
}

.hero-arrow--right {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.search-band,
.section-block,
.page-hero,
.detail-main,
.breadcrumb,
.detail-hero,
.player-section,
.detail-text {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.search-band {
    margin-top: -52px;
    position: relative;
    z-index: 6;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.detail-text h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 3.5vw, 46px);
    letter-spacing: -0.04em;
}

.search-band p,
.section-heading p,
.page-hero p,
.detail-one-line,
.detail-text p {
    color: var(--text-soft);
    line-height: 1.85;
}

.search-inline,
.search-large {
    display: flex;
    gap: 12px;
}

.search-inline input,
.search-large input,
.filter-toolbar input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    background: #ffffff;
    outline: none;
    transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.search-inline input:focus,
.search-large input:focus,
.filter-toolbar input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.quick-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--amber-600);
    font-weight: 800;
    background: rgba(245, 158, 11, 0.12);
}

.section-block {
    padding: 78px 24px 0;
}

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

.section-heading p {
    max-width: 540px;
    margin: 0;
}

.section-kicker {
    color: var(--amber-600);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 16px 44px rgba(100, 64, 13, 0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 24px 70px rgba(100, 64, 13, 0.18);
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.movie-card__poster img,
.category-tile img,
.rank-thumb img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__poster img,
.category-tile:hover img,
.rank-thumb:hover img {
    transform: scale(1.07);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.94);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--amber-500));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.movie-card__body {
    padding: 16px 16px 18px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-600);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card .tag-row {
    margin-top: 14px;
    gap: 6px;
}

.movie-card .tag-row span {
    min-height: 24px;
    padding: 4px 8px;
    color: var(--amber-600);
    font-size: 11px;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: none;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 78px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 34px rgba(100, 64, 13, 0.09);
}

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

.rank-thumb {
    width: 78px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-800);
}

.rank-copy h3 {
    margin: 0 0 6px;
    color: var(--slate-900);
    font-size: 18px;
}

.rank-copy p {
    margin: 0 0 6px;
    color: var(--text-soft);
    line-height: 1.6;
}

.rank-copy span {
    color: var(--amber-600);
    font-size: 13px;
    font-weight: 800;
}

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

.category-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.category-tile {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.18));
}

.category-tile__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 24px;
    color: #ffffff;
}

.category-tile__content strong {
    display: block;
    margin-bottom: 10px;
    font-size: 26px;
}

.category-tile__content small {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
}

.page-main {
    padding-bottom: 86px;
}

.page-hero {
    margin-top: 34px;
    padding: 64px 32px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, var(--slate-900), var(--amber-600));
    box-shadow: var(--shadow);
}

.small-hero,
.category-hero {
    min-height: 300px;
}

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

.filter-toolbar {
    margin-bottom: 26px;
}

.breadcrumb {
    padding: 28px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-soft);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-600);
    font-weight: 800;
}

.detail-main {
    padding-bottom: 90px;
}

.detail-hero {
    padding: 34px 24px 0;
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 3 / 4;
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

.detail-copy {
    padding: 34px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.34), transparent 36%),
        linear-gradient(135deg, var(--slate-900), #291407 78%);
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
}

.meta-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.meta-list dt {
    color: var(--amber-100);
    font-size: 12px;
    font-weight: 900;
}

.meta-list dd {
    margin: 6px 0 0;
    color: #ffffff;
    font-weight: 800;
}

.tag-row--detail span {
    background: rgba(245, 158, 11, 0.92);
}

.player-section {
    padding: 72px 24px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.22));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    font-size: 36px;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.4);
}

.play-layer strong {
    font-size: 22px;
}

.detail-text {
    padding: 52px 24px 0;
}

.detail-text p {
    margin: 12px 0 28px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 36px rgba(100, 64, 13, 0.08);
}

.related-section {
    padding-top: 40px;
}

.site-footer {
    margin-top: 86px;
    color: rgba(255, 255, 255, 0.74);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 42px;
}

.footer-brand h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-brand p {
    max-width: 600px;
    line-height: 1.8;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

[data-search-hidden="true"] {
    display: none;
}

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

    .menu-button {
        display: block;
    }

    .hero-content,
    .search-band,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(70vw, 320px);
        justify-self: start;
    }

    .section-heading {
        display: block;
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 20px;
    }

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

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

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

    .hero-arrow {
        display: none;
    }

    .search-band,
    .page-hero,
    .detail-copy {
        border-radius: 22px;
    }

    .search-inline,
    .search-large {
        flex-direction: column;
    }

    .section-block,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-text,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-card__body {
        padding: 12px;
    }

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

    .rank-item {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .rank-link {
        grid-column: 1 / -1;
    }

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