* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #292524;
    background: #fafaf9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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;
    color: #ffffff;
    background: linear-gradient(90deg, #78350f 0%, #9a3412 52%, #78350f 100%);
    box-shadow: 0 14px 30px rgba(68, 64, 60, 0.22);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #78350f;
    background: #f59e0b;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.36);
}

.brand-text {
    font-size: 1.18rem;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-panel > a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-panel > a:hover {
    color: #fde68a;
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.nav-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 9px 12px 9px 16px;
}

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

.nav-search button {
    border: 0;
    color: #78350f;
    background: #fbbf24;
    padding: 9px 16px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #ffffff;
}

.hero-carousel {
    position: relative;
    background: #1c1917;
}

.hero-stage {
    position: relative;
    height: 560px;
    overflow: hidden;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: absolute;
    left: max(28px, calc((100% - 1280px) / 2 + 24px));
    right: 28px;
    bottom: 72px;
    max-width: 760px;
    color: #ffffff;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 10px 0 14px;
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

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

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

.primary-button {
    color: #ffffff;
    background: #d97706;
    box-shadow: 0 16px 35px rgba(217, 119, 6, 0.35);
}

.primary-button:hover {
    background: #b45309;
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.52);
    border-radius: 999px;
    cursor: pointer;
    font-size: 2rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.74);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

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

.search-banner,
.filter-panel,
.page-hero,
.story-card,
.player-section,
.category-overview-card a {
    border: 1px solid rgba(231, 229, 228, 0.88);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(68, 64, 60, 0.08);
}

.search-banner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 24px;
    margin: 34px 0 18px;
    padding: 28px;
}

.search-banner h2,
.page-hero h1,
.section-heading h2,
.filter-panel h2,
.story-card h2,
.player-title-row h2 {
    margin: 6px 0 8px;
    color: #292524;
    line-height: 1.18;
}

.search-banner p,
.page-hero p,
.filter-panel p,
.story-card p {
    margin: 0;
    color: #78716c;
}

.large-search {
    display: flex;
    overflow: hidden;
    border: 2px solid #f59e0b;
    border-radius: 999px;
    background: #fff7ed;
}

.large-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 16px 18px;
}

.large-search button {
    border: 0;
    color: #ffffff;
    background: #d97706;
    padding: 0 24px;
    cursor: pointer;
    font-weight: 800;
}

.content-section {
    padding: 44px 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(68, 64, 60, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(68, 64, 60, 0.18);
}

.poster-link,
.poster-frame {
    position: relative;
    display: block;
}

.poster-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e7e5e4;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #d97706;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    font-size: 2rem;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    color: #292524;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #b45309;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: #78716c;
    font-size: 0.86rem;
}

.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
}

.movie-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d6d3d1;
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    margin: 0 0 14px;
    color: #57534e;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.warm-section {
    margin: 0 -16px;
    padding: 44px 16px;
    background: linear-gradient(90deg, #fff7ed, #fef3c7);
    border-radius: 24px;
}

.movie-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-snap-type: x mandatory;
}

.rail-card {
    width: 330px;
    flex: 0 0 330px;
    scroll-snap-align: start;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    padding: 44px 0;
}

.rank-panel,
.category-panel {
    padding: 26px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(68, 64, 60, 0.08);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 82px 1fr 18px;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: #d97706;
    border-radius: 999px;
    font-weight: 900;
}

.rank-item img {
    width: 82px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    background: #e7e5e4;
}

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

.rank-content strong {
    color: #292524;
}

.rank-content em {
    color: #78716c;
    font-size: 0.82rem;
    font-style: normal;
}

.rank-arrow {
    color: #d97706;
    font-size: 1.6rem;
}

.text-link {
    display: inline-flex;
    margin-top: 16px;
    color: #b45309;
    font-weight: 800;
}

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

.category-card,
.category-overview-card a {
    display: block;
    padding: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.16);
}

.category-card span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 6px;
    color: #9a3412;
    font-weight: 900;
}

.category-card strong,
.category-overview-card p {
    color: #78716c;
    font-size: 0.92rem;
    font-weight: 600;
}

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

.latest-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(68, 64, 60, 0.08);
}

.latest-row img {
    width: 190px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e7e5e4;
    border-radius: 12px;
}

.latest-row strong,
.latest-row em {
    display: block;
}

.latest-row strong {
    margin-bottom: 6px;
    color: #292524;
    font-size: 1.08rem;
}

.latest-row em {
    color: #78716c;
    font-style: normal;
}

.page-hero {
    margin: 34px 0;
    padding: 34px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.inline-actions {
    margin-top: 24px;
}

.inline-actions .ghost-button {
    color: #9a3412;
    border-color: #fed7aa;
    background: #ffffff;
}

.category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    color: #ffffff;
    background: #d97706;
    border-radius: 999px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 22px;
    padding: 24px;
    margin-bottom: 26px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.7fr);
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid #e7e5e4;
    outline: 0;
    background: #fafaf9;
    border-radius: 999px;
    padding: 12px 14px;
}

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

.movie-card.is-hidden {
    display: none;
}

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

.detail-page {
    background: #fafaf9;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #1c1917;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px);
    transform: scale(1.08);
    opacity: 0.58;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.95), rgba(28, 25, 23, 0.56));
}

.detail-inner {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 54px;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #44403c;
}

.detail-copy h1 {
    margin: 8px 0 18px;
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.08;
}

.detail-line {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.15rem;
}

.detail-copy .detail-meta {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
}

.detail-tags {
    margin-top: 18px;
}

.detail-shell {
    margin-top: -42px;
    position: relative;
    z-index: 2;
}

.player-section {
    overflow: hidden;
    padding: 18px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 18px;
}

.movie-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.2), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 6px;
    color: #ffffff;
    background: #d97706;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(217, 119, 6, 0.4);
    font-size: 2rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-cover:hover .play-button {
    transform: scale(1.08);
    background: #b45309;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4px 2px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0 8px;
}

.story-card {
    padding: 26px;
}

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

.movie-card-compact .movie-card-body p {
    min-height: auto;
}

.site-footer {
    margin-top: 70px;
    color: #d6d3d1;
    background: linear-gradient(180deg, #292524, #1c1917);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr;
    gap: 34px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 32px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.footer-column h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

.footer-column p {
    margin: 0;
    color: #a8a29e;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 8px;
}

.footer-column a {
    color: #d6d3d1;
}

.footer-column a:hover {
    color: #fbbf24;
}

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

    .split-section,
    .filter-panel,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 820px) {
    .mobile-toggle {
        display: block;
    }

    .nav-panel {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 18px;
        background: rgba(120, 53, 15, 0.97);
        backdrop-filter: blur(14px);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-panel > a {
        padding: 12px;
        border-radius: 10px;
    }

    .nav-panel > a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    .nav-search {
        margin-top: 8px;
    }

    .nav-search input {
        width: 100%;
    }

    .hero-stage {
        height: 520px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 78px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-prev {
        left: 12px;
    }

    .hero-next {
        right: 12px;
    }

    .search-banner,
    .latest-row,
    .player-title-row {
        grid-template-columns: 1fr;
    }

    .search-banner {
        display: grid;
    }

    .latest-row img {
        width: 100%;
    }

    .movie-grid,
    .related-grid,
    .category-overview-grid,
    .rank-list-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-inner {
        padding-top: 22px;
    }
}

@media (max-width: 560px) {
    .page-shell,
    .top-nav,
    .detail-inner,
    .footer-inner {
        width: min(100% - 22px, 1280px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-stage {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 0.98rem;
    }

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

    .rail-card {
        width: 270px;
        flex-basis: 270px;
    }

    .rank-item {
        grid-template-columns: 28px 72px 1fr;
    }

    .rank-arrow {
        display: none;
    }

    .page-hero,
    .search-banner,
    .filter-panel,
    .story-card,
    .rank-panel,
    .category-panel {
        padding: 20px;
    }

    .detail-hero {
        min-height: 600px;
    }

    .play-button {
        width: 68px;
        height: 68px;
        font-size: 1.65rem;
    }
}
