:root {
    --bg: #fff7ed;
    --paper: #ffffff;
    --paper-soft: #fffaf2;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f5d7ad;
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --red: #b91c1c;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.16);
    --shadow-soft: 0 12px 28px rgba(146, 64, 14, 0.1);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffdf8 38%, #ffffff 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, 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: 50;
    background: rgba(255, 247, 237, 0.94);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 10px 25px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 22px;
    color: #33210c;
    white-space: nowrap;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #5f3a0a;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 265px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #4b2b05;
    background: transparent;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.primary-btn,
.filter-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 9px 18px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
}

.primary-btn:hover,
.filter-panel button:hover,
.header-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.32);
}

.ghost-btn {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-weight: 800;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(217, 119, 6, 0.12);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
}

.mobile-search button {
    padding: 8px 16px;
}

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.62), transparent 28%), linear-gradient(135deg, #7c2d12 0%, #b45309 46%, #ea580c 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 430px);
    align-items: center;
    gap: 52px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 90px 24px 110px;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.14;
    filter: blur(10px) saturate(1.2);
    transform: scale(1.06);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow {
    color: #fed7aa;
}

.hero-content h1 {
    margin: 0;
    color: #fffaf1;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 14px 40px rgba(67, 20, 7, 0.42);
}

.hero-content h2 {
    margin: 20px 0 14px;
    color: #fffbeb;
    font-size: clamp(26px, 3vw, 44px);
}

.hero-content p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 251, 235, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    color: #92400e;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(67, 20, 7, 0.45);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 6;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px;
}

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

.section-heading.inside {
    margin-bottom: 20px;
}

.section-heading h2,
.detail-content h2 {
    margin: 0;
    color: #23170a;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--amber-dark);
    font-weight: 900;
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.48);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    min-width: 42px;
    padding: 6px 9px;
    color: #ffffff;
    background: rgba(180, 83, 9, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

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

.movie-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3,
.rank-item h3 {
    margin: 8px 0;
    color: #241303;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
    color: var(--amber-dark);
}

.movie-card p,
.rank-item p,
.category-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.category-strip {
    padding-bottom: 30px;
}

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

.home-category,
.category-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.home-category {
    position: relative;
    min-height: 154px;
}

.home-category img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.home-category::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 20%, rgba(67, 20, 7, 0.82));
}

.home-category span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.category-card a {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
}

.category-card a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 12%, rgba(67, 20, 7, 0.8));
}

.category-card span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    padding: 18px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 15px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(253, 186, 116, 0.6), transparent 28%), linear-gradient(135deg, #7c2d12, #d97706 58%, #ea580c);
}

.compact-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 78px max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.page-hero h1 {
    max-width: 830px;
    margin: 0 0 16px;
    color: #fffaf1;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 251, 235, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 200px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: block;
    margin-bottom: 7px;
    color: #7c3d07;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    color: #3f2506;
    background: #fffaf2;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: 0;
    padding: 0 13px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.filter-panel button {
    min-height: 46px;
    padding: 0 22px;
}

.filter-static {
    display: flex;
    align-items: center;
    min-height: 46px;
    color: #7c3d07;
    font-weight: 800;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #8a5b18;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--amber-dark);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.62fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px 54px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #120a04;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 8, 3, 0.18), rgba(15, 8, 3, 0.64));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.38);
    font-size: 32px;
}

.play-layer span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.watch-info {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.watch-info h1 {
    margin: 0 0 18px;
    color: #221204;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.lead-text {
    margin: 0 0 20px;
    color: #5f3a0a;
    font-size: 17px;
    line-height: 1.8;
}

.large-tags {
    margin-bottom: 22px;
}

.detail-meta {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-meta div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #ffedd5;
}

.detail-meta dt {
    color: #9a5b0a;
    font-weight: 900;
}

.detail-meta dd {
    margin: 0;
    color: #3f2506;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

.detail-content article {
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.detail-content p {
    margin: 16px 0 0;
    color: #5f3a0a;
    font-size: 16px;
    line-height: 1.95;
}

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

.site-footer {
    margin-top: 50px;
    color: #fef3c7;
    background: linear-gradient(135deg, #431407, #7c2d12 60%, #9a3412);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
}

.footer-grid p {
    max-width: 560px;
    color: rgba(254, 243, 199, 0.82);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 20px;
}

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

.footer-links a {
    padding: 8px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 26px;
    color: rgba(254, 243, 199, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.filter-hidden {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

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

    .hero-slider {
        min-height: 860px;
    }

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

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

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

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

@media (max-width: 720px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero-slide {
        gap: 28px;
        padding: 66px 18px 100px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p,
    .page-hero p {
        font-size: 16px;
    }

    .content-section,
    .compact-hero,
    .watch-layout,
    .detail-content,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 44px 70px minmax(0, 1fr);
        padding: 11px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
    }

    .watch-info,
    .detail-content article {
        padding: 22px;
    }
}

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

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

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }
}
