:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf0;
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(148, 91, 22, 0.16);
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --amber: #f59e0b;
    --gold: #fbbf24;
    --dark: #111827;
    --radius-lg: 28px;
    --radius: 18px;
    --shadow: 0 22px 70px rgba(154, 52, 18, 0.16);
    --shadow-soft: 0 14px 36px rgba(120, 53, 15, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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: rgba(255, 247, 237, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--amber));
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}

.brand-name {
    font-size: 1.2rem;
}

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

.nav-link {
    padding: 10px 16px;
    color: #4b5563;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: rgba(251, 191, 36, 0.18);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(234, 88, 12, 0.1);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--primary-dark);
    border-radius: 999px;
}

.nav-quick {
    width: min(1180px, calc(100% - 32px));
    margin: -6px auto 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-quick::-webkit-scrollbar {
    display: none;
}

.nav-chip,
.hero-links a {
    white-space: nowrap;
    color: #92400e;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.92rem;
}

.hero-carousel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #9a3412 0%, #ea580c 48%, #f59e0b 100%);
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 720px;
    display: grid;
    align-content: center;
    padding: 62px 0 120px;
}

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.34;
}

.hero-glow-one {
    top: 8%;
    left: 6%;
    background: rgba(255, 255, 255, 0.3);
}

.hero-glow-two {
    right: -90px;
    bottom: 4%;
    background: rgba(251, 191, 36, 0.42);
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 42px;
    align-items: center;
    animation: fadeIn 0.6s ease;
}

.hero-slide.active {
    display: grid;
}

.hero-image {
    position: relative;
    min-height: 470px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 32px 90px rgba(67, 20, 7, 0.35);
    transform: perspective(1100px) rotateY(-6deg) rotateX(2deg);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.58));
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(251, 146, 60, 0.55));
}

.hero-copy {
    color: #ffffff;
    text-shadow: 0 12px 36px rgba(67, 20, 7, 0.3);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #92400e;
    background: rgba(255, 247, 237, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 16px 0;
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-copy h2 {
    font-size: clamp(2rem, 5vw, 4.6rem);
}

.hero-copy p {
    max-width: 630px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 850;
    transition: 0.25s ease;
}

.primary-btn {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(67, 20, 7, 0.22);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: #fffbeb;
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.12);
}

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

.ghost-btn.light {
    color: var(--primary-dark);
    border-color: rgba(234, 88, 12, 0.25);
    background: rgba(255, 255, 255, 0.78);
}

.hero-search-card {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    display: grid;
    grid-template-columns: minmax(260px, 480px) 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
}

.search-mini,
.search-panel {
    display: flex;
    gap: 10px;
}

.search-mini input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid rgba(234, 88, 12, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    padding: 13px 18px;
    color: var(--text);
    outline: none;
}

.search-mini button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--amber));
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 850;
    cursor: pointer;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-controls {
    position: absolute;
    right: 0;
    top: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px !important;
    height: 9px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.45) !important;
}

.hero-dot.active {
    width: 24px !important;
    border-radius: 999px;
    background: #ffffff !important;
}

.feature-strip,
.content-section,
.page-hero,
.breadcrumb,
.detail-page > .content-section {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.feature-item {
    padding: 24px;
    border-radius: 24px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.feature-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-dark);
}

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

.page-section {
    padding-top: 42px;
}

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

.section-heading h2,
.page-hero h1,
.story-card h2 {
    margin: 8px 0 0;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.text-link {
    color: var(--primary-dark);
    font-weight: 850;
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.category-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
}

.category-media img {
    width: 100%;
    height: 100%;
    min-height: 86px;
    object-fit: cover;
}

.category-body h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.category-body p {
    margin: 0 0 12px;
    color: var(--muted);
}

.category-sample {
    min-height: 3em;
    font-size: 0.92rem;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fdba74);
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 3.1em;
    color: #111827;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body p {
    display: -webkit-box;
    min-height: 3.15em;
    margin: 10px 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 750;
}

.movie-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffedd5;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    color: #92400e;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.hero-tags span,
.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 32px;
}

.rank-panel,
.ranking-list {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: 0.25s ease;
}

.rank-row:hover {
    background: #fff7ed;
}

.rank-num {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 950;
    text-align: center;
}

.rank-thumb {
    overflow: hidden;
    width: 56px;
    height: 72px;
    border-radius: 14px;
    background: #ffedd5;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rank-info strong {
    font-weight: 900;
}

.rank-info em {
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
}

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

.page-hero {
    margin-top: 36px;
    padding: 58px;
    color: #ffffff;
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28rem),
        linear-gradient(135deg, #9a3412, #ea580c 52%, #f59e0b);
    box-shadow: var(--shadow);
}

.page-hero .section-kicker {
    color: #92400e;
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.page-search {
    max-width: 520px;
    margin-top: 26px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.8fr));
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.empty-result {
    padding: 40px;
    color: var(--muted);
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 30px;
    color: #92400e;
    font-weight: 760;
}

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

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
    gap: 26px;
    align-items: stretch;
}

.player-widget {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 34px;
    background: #09090b;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.24);
}

.movie-video {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    background: #09090b;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    color: #ffffff;
    border: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.62)),
        rgba(17, 24, 39, 0.15);
    cursor: pointer;
}

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

.play-circle {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    font-size: 2.4rem;
}

.detail-info-card {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 18px;
    align-content: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.detail-info-card img {
    width: 168px;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 22px;
    background: #ffedd5;
}

.detail-info-card h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-info-card p {
    color: var(--muted);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.story-card h2 {
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.story-card p {
    color: #374151;
    margin: 0 0 1em;
}

.site-footer {
    margin-top: 90px;
    color: #d1d5db;
    background: #111827;
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 36px;
}

.footer-brand {
    color: #fbbf24;
    font-size: 1.4rem;
}

.footer-shell p {
    max-width: 600px;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 8px 12px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

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

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

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-soft);
    }

    .site-nav.open {
        display: flex;
    }

    .hero-carousel,
    .hero-shell {
        min-height: 760px;
    }

    .hero-shell {
        padding-top: 34px;
        padding-bottom: 168px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image,
    .hero-image img {
        min-height: 300px;
    }

    .hero-image {
        transform: none;
    }

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

    .hero-controls {
        top: auto;
        bottom: 110px;
        left: 0;
        right: auto;
    }

    .feature-strip,
    .category-grid,
    .movie-grid,
    .ranking-list,
    .footer-shell,
    .footer-bottom,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        margin-top: -32px;
    }

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

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

    .player-widget,
    .movie-video {
        min-height: 320px;
    }

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

    .detail-info-card img {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-copy h2 {
        font-size: 2rem;
    }

    .search-mini {
        flex-direction: column;
    }

    .search-mini button {
        min-height: 46px;
    }

    .movie-grid {
        gap: 16px;
    }
}
