* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --amber: #f59e0b;
    --orange: #f97316;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 46%, #ffedd5 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: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: rotate(10deg) scale(1.04);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #d97706, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.nav-link {
    color: #4b5563;
    font-weight: 650;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: #d97706;
}

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

.header-search input,
.mobile-search input,
.large-search input,
.inline-filter input {
    width: 230px;
    height: 38px;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 0 16px;
    background: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.large-search input {
    width: min(620px, 100%);
    height: 52px;
    font-size: 17px;
}

.inline-filter input {
    width: min(420px, 100%);
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.inline-filter input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.large-search button,
.inline-filter button {
    height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.large-search button {
    height: 52px;
    padding: 0 28px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: #ffedd5;
    color: #9a3412;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid #fed7aa;
    background: #ffffff;
}

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.06;
    font-weight: 900;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #f3f4f6;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-cloud span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.85);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.primary-button {
    min-height: 46px;
    border-radius: 999px;
    padding: 0 26px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    filter: saturate(1.12);
}

.ghost-button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    padding: 0 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.52);
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

.content-section,
.page-main {
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    padding: 56px 22px;
}

.page-main {
    padding: 34px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more,
.text-link {
    color: #d97706;
}

.section-more span {
    font-size: 24px;
}

.horizontal-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x mandatory;
}

.rail-card {
    scroll-snap-align: start;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffbeb, #ffedd5);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.06));
    transition: opacity 0.3s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    opacity: 0;
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-card-body strong {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body em {
    min-height: 44px;
    color: #6b7280;
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
}

.movie-meta span {
    color: #92400e;
    background: #fffbeb;
}

.soft-panel,
.panel-card,
.category-overview-card,
.article-section {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.soft-panel {
    padding: 42px;
}

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

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 132px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #ffedd5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.16);
}

.category-tile strong {
    color: #9a3412;
    font-size: 20px;
}

.category-tile span {
    color: #6b7280;
    line-height: 1.65;
}

.two-column-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 24px;
}

.panel-card {
    min-width: 0;
    padding: 28px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 36px rgba(124, 45, 18, 0.13);
}

.ranking-number {
    color: #f97316;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-item img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffedd5;
}

.ranking-info {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.ranking-info strong {
    font-size: 17px;
}

.ranking-info em,
.ranking-info span {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

.large-list {
    gap: 18px;
}

.large-list .ranking-item {
    grid-template-columns: 68px 96px 1fr;
}

.large-list .ranking-item img {
    width: 96px;
    height: 128px;
}

.page-hero {
    margin: 0 22px 16px;
    padding: 52px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 34%), linear-gradient(135deg, #92400e, #ea580c 54%, #f59e0b);
    box-shadow: var(--shadow);
}

.small-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.small-hero p {
    max-width: 820px;
    margin: 0 0 24px;
    color: #fff7ed;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    overflow: hidden;
    background: #ffedd5;
}

.category-cover-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-card div {
    padding: 24px;
}

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

.category-overview-card p {
    color: #6b7280;
    line-height: 1.7;
}

.search-heading {
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 18px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 22px 24px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #d97706;
    font-weight: 700;
}

.detail-main {
    max-width: 1200px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    margin: 0 22px 24px;
    padding: 32px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #ffedd5;
}

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

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.detail-info h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.lead-text {
    max-width: 760px;
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.tag-cloud {
    margin-bottom: 28px;
}

.tag-cloud span {
    color: #92400e;
    background: #fffbeb;
}

.player-section {
    padding-top: 28px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.video-element {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.player-button {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.38);
}

.article-section {
    padding: 34px;
}

.article-section h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-section h2 + p {
    margin-top: 0;
}

.article-section p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
}

.site-footer {
    margin-top: 54px;
    border-top: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: #6b7280;
}

.footer-brand p {
    max-width: 420px;
    line-height: 1.75;
}

.brand.compact .brand-mark {
    width: 38px;
    height: 38px;
}

.footer-column h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 22px 32px;
    font-size: 14px;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .two-column-section,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        height: auto;
        max-height: 620px;
    }
}

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

    .header-inner {
        padding: 12px 16px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-slider {
        height: 76vh;
        min-height: 560px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-control {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .content-section {
        padding: 38px 16px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .soft-panel,
    .panel-card,
    .article-section {
        padding: 22px;
    }

    .page-hero,
    .detail-hero,
    .breadcrumb {
        margin-left: 16px;
        margin-right: 16px;
    }

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

    .detail-hero {
        padding: 20px;
    }

    .poster-frame {
        height: 220px;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .mini-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-rail {
        grid-auto-columns: minmax(240px, 82vw);
    }

    .poster-frame {
        height: 300px;
    }

    .large-search,
    .inline-filter,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .large-search input,
    .inline-filter input,
    .mobile-search input {
        width: 100%;
    }

    .large-search button,
    .inline-filter button,
    .mobile-search button {
        width: 100%;
    }

    .ranking-item,
    .large-list .ranking-item {
        grid-template-columns: 44px 76px 1fr;
    }

    .large-list .ranking-item img {
        width: 76px;
        height: 102px;
    }
}
