* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #3f2207;
    background: linear-gradient(135deg, #fff8e7 0%, #fff2d0 38%, #ffe4b5 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.14);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(16px);
}

.site-nav {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.25);
    font-size: 17px;
}

.brand-name,
.footer-brand {
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    color: #92400e;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    transform: translateY(-1px);
}

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

.nav-search input,
.mobile-search input,
.search-panel input,
.search-panel select {
    width: 190px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    color: #78350f;
    background: rgba(255, 255, 255, 0.78);
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.nav-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.hero-search button,
.play-cover {
    border: 0;
    cursor: pointer;
}

.nav-search button,
.mobile-search button,
.hero-search button,
.primary-button {
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.18);
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-search button,
.mobile-search button {
    min-height: 40px;
    padding: 0 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
}

.secondary-button {
    color: #78350f;
    border: 1px solid rgba(217, 119, 6, 0.24);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.18);
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #92400e;
    border-radius: 10px;
}

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

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

.mobile-search {
    margin: 6px 0 14px;
}

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

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-shell,
.hero-inner,
.section-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    isolation: isolate;
    background: #1c1208;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(0deg, #fff8e7 0%, rgba(255, 248, 231, 0) 100%);
    z-index: 4;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-inner {
    position: relative;
    z-index: 6;
    min-height: 620px;
    display: grid;
    align-items: center;
    padding: 92px 0 120px;
}

.hero-copy {
    max-width: 760px;
    animation: fadeUp 0.8s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.36);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero h1 span {
    color: #fcd34d;
}

.hero-description {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.91);
    font-size: clamp(17px, 2.3vw, 22px);
    line-height: 1.7;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

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

.hero-search {
    display: flex;
    width: min(100%, 560px);
    margin-top: 28px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    min-height: 42px;
    padding: 0 24px;
}

.hero-film-strip {
    position: relative;
    z-index: 6;
    width: min(1200px, calc(100% - 32px));
    margin: -88px auto 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.hero-mini-card {
    overflow: hidden;
    min-height: 138px;
    padding: 16px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-mini-card:hover,
.hero-mini-card.active {
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.84), rgba(234, 88, 12, 0.84));
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.hero-mini-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.5;
}

.section {
    padding: 74px 0;
}

.section.compact {
    padding: 40px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #78350f;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(28px, 3.8vw, 42px);
}

.section-heading p,
.page-title p,
.detail-title p,
.category-copy {
    margin: 8px 0 0;
    color: #92400e;
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 14px 36px rgba(120, 53, 15, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.34);
    box-shadow: 0 24px 54px rgba(120, 53, 15, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #3f2207;
}

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

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

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

.movie-year,
.movie-type {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-year {
    left: 12px;
}

.movie-type {
    right: 12px;
}

.movie-card-body {
    padding: 18px;
}

.movie-meta {
    margin: 0 0 8px;
    color: #d97706;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    color: #78350f;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #d97706;
}

.movie-line {
    min-height: 52px;
    margin: 10px 0 14px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.65;
}

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

.movie-tags span,
.detail-tags span,
.info-pill,
.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.74);
    font-size: 12px;
    font-weight: 800;
}

.category-strip,
.filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 32px;
}

.category-pill {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.category-pill:hover,
.category-pill.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    transform: translateY(-2px);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 30px;
    background: #3f2207;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(120, 53, 15, 0.14);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16));
}

.category-card h2,
.category-card p,
.category-card span {
    position: relative;
    z-index: 2;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.category-card span {
    display: inline-flex;
    width: max-content;
    margin-top: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.86);
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    box-shadow: 0 20px 42px rgba(120, 53, 15, 0.12);
}

.rank-number {
    font-size: 26px;
    font-weight: 900;
    color: #d97706;
    text-align: center;
}

.rank-item img {
    width: 86px;
    height: 58px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: #78350f;
    font-size: 16px;
}

.rank-copy em {
    margin-top: 6px;
    color: #92400e;
    font-style: normal;
    font-size: 13px;
}

.feature-panel,
.search-panel,
.detail-panel,
.breadcrumb,
.empty-state {
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
}

.feature-panel {
    padding: 28px;
}

.feature-panel h3 {
    margin: 0 0 14px;
    color: #78350f;
    font-size: 26px;
}

.feature-panel p {
    color: #92400e;
    line-height: 1.75;
}

.page-hero {
    padding: 62px 0 30px;
}

.page-title {
    max-width: 840px;
}

.page-title h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.search-panel {
    padding: 22px;
    margin: 26px 0 30px;
    display: grid;
    grid-template-columns: 1fr 200px 200px;
    gap: 14px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    border-radius: 18px;
}

.empty-state {
    display: none;
    padding: 30px;
    color: #92400e;
    text-align: center;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 22px;
    padding: 14px 18px;
    color: #92400e;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #d97706;
}

.detail-hero {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 34px;
    align-items: stretch;
    margin-bottom: 34px;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 480px;
    background: #3f2207;
    box-shadow: 0 26px 60px rgba(120, 53, 15, 0.18);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.detail-title {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.08);
}

.detail-title h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.player-section {
    margin: 34px 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.22), rgba(0, 0, 0, 0.36));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    font-size: 30px;
}

.play-cover strong {
    display: block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

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

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: start;
}

.detail-panel {
    padding: 30px;
}

.detail-panel h2 {
    margin: 0 0 16px;
    color: #78350f;
    font-size: 28px;
}

.detail-panel p {
    color: #78350f;
    line-height: 1.9;
    font-size: 16px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.related-card img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-card strong,
.related-card span {
    display: block;
    padding: 0 14px;
}

.related-card strong {
    padding-top: 12px;
    color: #78350f;
}

.related-card span {
    padding-top: 6px;
    padding-bottom: 14px;
    color: #92400e;
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    color: #92400e;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.52), #ffedd5);
    border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1fr;
    gap: 28px;
}

.footer-inner p {
    max-width: 520px;
    line-height: 1.75;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links a:hover {
    color: #d97706;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(217, 119, 6, 0.12);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .site-nav {
        justify-content: space-between;
    }

    .menu-button {
        display: block;
    }

    .hero-film-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .detail-cover,
    .detail-cover img {
        min-height: 380px;
    }
}

@media (max-width: 760px) {
    .site-nav,
    .page-shell,
    .hero-inner,
    .section-inner,
    .footer-inner,
    .footer-bottom,
    .hero-film-strip,
    .mobile-panel {
        width: min(100% - 24px, 1200px);
    }

    .brand,
    .footer-brand {
        font-size: 21px;
    }

    .hero,
    .hero-inner {
        min-height: 590px;
    }

    .hero-inner {
        padding: 70px 0 108px;
    }

    .hero-actions,
    .detail-actions,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .hero-search button {
        width: 100%;
    }

    .hero-film-strip {
        grid-template-columns: 1fr;
        margin-top: -70px;
    }

    .movie-grid,
    .category-overview-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 48px 76px 1fr;
    }

    .rank-item img {
        width: 76px;
        height: 56px;
    }

    .detail-title,
    .detail-panel,
    .feature-panel {
        padding: 22px;
    }

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