:root {
    --bg: #fffaf0;
    --bg-strong: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(245, 158, 11, .22);
    --amber: #d97706;
    --amber-light: #f59e0b;
    --orange: #ea580c;
    --shadow: 0 22px 60px rgba(146, 64, 14, .12);
    --soft-shadow: 0 12px 30px rgba(146, 64, 14, .1);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 44%, #fff7ed 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255, 251, 235, .9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .02em;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    border-radius: 50%;
    box-shadow: 0 12px 25px rgba(217, 119, 6, .3);
    font-size: 14px;
}

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

.nav-link,
.mobile-link {
    color: #4b5563;
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--amber);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #92400e;
    border-radius: 10px;
}

.mobile-nav {
    display: none;
    padding: 10px 22px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
}

.mobile-link.is-active,
.mobile-link:hover {
    background: #ffedd5;
}

main {
    padding-top: 68px;
}

.hero-carousel {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: .75;
}

.orb-one {
    width: 320px;
    height: 320px;
    top: 8%;
    left: -100px;
    background: rgba(245, 158, 11, .18);
}

.orb-two {
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: 6%;
    background: rgba(234, 88, 12, .14);
}

.hero-frame {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .7fr);
    gap: 46px;
}

.hero-slide.is-active {
    display: grid;
    animation: riseIn .45s ease both;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber);
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #b45309, #ea580c, #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 660px;
    margin: 24px 0 0;
    color: #4b5563;
    font-size: clamp(18px, 2vw, 24px);
}

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

.tag-row span {
    display: inline-flex;
    padding: 5px 10px;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags {
    margin-top: 20px;
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-light), var(--orange));
    box-shadow: 0 14px 28px rgba(234, 88, 12, .25);
}

.ghost-btn {
    color: var(--amber);
    background: rgba(255, 255, 255, .82);
    border: 2px solid rgba(245, 158, 11, .45);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(146, 64, 14, .16);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(146, 64, 14, .28);
    background: #fef3c7;
    aspect-ratio: 3 / 4;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .38));
}

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

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

.hero-control-row {
    margin-top: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #92400e;
    background: rgba(255, 255, 255, .9);
    font-size: 28px;
    line-height: 1;
    box-shadow: var(--soft-shadow);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: #fcd34d;
    opacity: .55;
}

.hero-dot.is-active {
    width: 30px;
    opacity: 1;
    background: var(--orange);
}

.section-shell {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 74px 0;
}

.compact-shell {
    padding: 68px 0;
}

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

.section-heading h2,
.story-card h2,
.ranking-banner h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #111827;
}

.section-heading p,
.category-card p,
.category-overview-card p,
.ranking-banner p {
    color: var(--muted);
    margin: 10px 0 0;
}

.center-heading {
    justify-content: center;
    text-align: center;
}

.text-link {
    color: var(--amber);
    background: #fff7ed;
    border: 1px solid var(--line);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.compact-grid,
.listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--soft-shadow);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, .4);
}

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

.compact-card .movie-cover {
    aspect-ratio: 3 / 4;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .42));
}

.play-mark {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(245, 158, 11, .94);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    box-shadow: 0 10px 20px rgba(146, 64, 14, .25);
}

.movie-body {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--amber);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.movie-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
}

.compact-card .movie-body h3 {
    font-size: 17px;
}

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

.category-band {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.category-card,
.category-overview-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, .18);
    box-shadow: var(--soft-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

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

.category-card span,
.category-overview-head span {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-overview-head b {
    color: var(--amber);
}

.mini-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    padding: 6px 10px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 52%, #fef3c7 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 72px 0 54px;
}

.page-hero h1 {
    font-size: clamp(40px, 5vw, 68px);
}

.page-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: #4b5563;
    font-size: 19px;
}

.filter-shell {
    padding-top: 34px;
}

.tool-panel {
    position: sticky;
    top: 82px;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    box-shadow: var(--soft-shadow);
}

.wide-panel {
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
}

.search-panel {
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
}

.tool-panel input,
.tool-panel select {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
    color: #374151;
    background: #fff;
}

.tool-panel input:focus,
.tool-panel select:focus {
    border-color: var(--amber-light);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pill-link {
    padding: 8px 13px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 900;
}

.pill-link:hover,
.pill-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-light), var(--orange));
}

.detail-hero {
    position: relative;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-inner {
    position: relative;
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 38px 0 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 30px;
}

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

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 25px 70px rgba(146, 64, 14, .28);
}

.detail-copy h1 {
    font-size: clamp(34px, 4.8vw, 68px);
}

.detail-one-line {
    max-width: 740px;
    margin: 22px 0;
    color: #4b5563;
    font-size: 20px;
}

.player-card,
.story-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .64));
    cursor: pointer;
    text-align: center;
}

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

.play-large {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
    font-size: 30px;
}

.video-cover b {
    max-width: min(90%, 760px);
    font-size: clamp(20px, 3vw, 34px);
    line-height: 1.25;
}

.story-card {
    margin-top: 28px;
    padding: 30px;
}

.story-card h2 + p {
    margin-top: 12px;
}

.story-card p {
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 18px;
}

.related-section {
    margin-top: 38px;
}

.ranking-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    padding: 28px;
    border-radius: 28px;
    color: #111827;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
}

.site-footer {
    margin-top: 30px;
    color: #fff;
    background: linear-gradient(135deg, #78350f, #9a3412);
}

.footer-inner {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.footer-brand {
    font-size: 24px;
    background: linear-gradient(90deg, #fde68a, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-inner p {
    color: #ffedd5;
    max-width: 560px;
    margin: 12px 0 0;
}

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

.footer-links a {
    color: #ffedd5;
    font-weight: 800;
}

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

.copyright {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #fed7aa;
    border-top: 1px solid rgba(255, 237, 213, .2);
    font-size: 14px;
}

.is-hidden-card {
    display: none !important;
}

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

@media (max-width: 1024px) {
    .featured-grid,
    .compact-grid,
    .listing-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 48px 0 34px;
    }

    .hero-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-carousel {
        min-height: auto;
    }

    .hero-frame,
    .section-shell,
    .page-hero-inner,
    .detail-inner,
    .footer-inner,
    .copyright {
        width: min(100% - 32px, 1180px);
    }

    .hero-slide {
        gap: 28px;
        padding: 42px 0 30px;
    }

    .hero-actions,
    .section-heading,
    .ranking-banner,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading,
    .ranking-banner,
    .footer-inner {
        display: flex;
    }

    .featured-grid,
    .compact-grid,
    .listing-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .tool-panel,
    .wide-panel,
    .search-panel {
        position: static;
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        max-width: 260px;
    }

    .story-card {
        padding: 22px;
    }
}
