:root {
    --bg: #fff8ed;
    --bg-soft: #fff3d8;
    --card: #ffffff;
    --card-strong: #fffaf1;
    --text: #241b12;
    --muted: #75624c;
    --line: rgba(146, 92, 34, 0.16);
    --amber: #f59e0b;
    --orange: #ea580c;
    --gold: #facc15;
    --red: #dc2626;
    --shadow: 0 20px 60px rgba(146, 64, 14, 0.16);
    --shadow-soft: 0 14px 34px rgba(146, 64, 14, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.24), transparent 32rem),
        radial-gradient(circle at top right, rgba(234, 88, 12, 0.18), transparent 30rem),
        linear-gradient(135deg, #fff8ed 0%, #fff1d2 48%, #fff7e8 100%);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 228px;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--amber), var(--orange));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.logo-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #b45309, #ea580c, #d97706);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-text span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b3b2a;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.main-content {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 44px 44px;
    background: #261307;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.hero-slide {
    display: none;
    min-height: 620px;
    position: relative;
    isolation: isolate;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
    transform: scale(1.02);
}

.hero-mask {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(38, 19, 7, 0.94), rgba(72, 31, 8, 0.74) 42%, rgba(72, 31, 8, 0.18)),
        linear-gradient(0deg, rgba(38, 19, 7, 0.88), transparent 44%);
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: 8%;
    bottom: -130px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.34), transparent 68%);
    filter: blur(8px);
}

.hero-inner {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 42px;
    padding: 76px 0 92px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff6da;
    background: rgba(245, 158, 11, 0.24);
    border: 1px solid rgba(250, 204, 21, 0.38);
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: #f8e8cb;
    font-size: 19px;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff8e5;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-soft {
    color: #fff9e8;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-card-body {
    padding: 18px;
}

.hero-card-body strong {
    display: block;
    font-size: 18px;
}

.hero-card-body span {
    display: block;
    margin-top: 6px;
    color: #f7dba7;
    font-size: 14px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
}

.section {
    padding: 74px 0;
}

.section-tight {
    padding: 46px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
}

.category-grid,
.stats-grid,
.movie-grid,
.related-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.category-card,
.stat-card,
.info-card,
.search-panel,
.content-card,
.rank-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 128px;
    height: 128px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.34), rgba(234, 88, 12, 0.16));
}

.category-card strong {
    display: block;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-size: 21px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-samples {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-samples span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 4px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fff0c2;
    font-size: 12px;
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(146, 92, 34, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #4a2307, #f59e0b);
}

.poster-wrap.wide {
    aspect-ratio: 16 / 9;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease, filter 0.42s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 56%);
}

.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 15px;
}

.card-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.38;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fff1c8;
    font-size: 12px;
    font-weight: 700;
}

.feature-strip {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.feature-box {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(234, 88, 12, 0.88), rgba(250, 204, 21, 0.72));
    color: #ffffff;
    box-shadow: var(--shadow);
}

.feature-box-inner {
    padding: 34px;
}

.feature-box h2,
.feature-box h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.feature-box p {
    margin: 0;
    color: #fff5d6;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(146, 92, 34, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

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

.rank-thumb {
    width: 82px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-desc {
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.heat {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
    font-size: 13px;
}

.page-hero {
    padding: 72px 0 46px;
}

.page-hero-box {
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 38px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.38), transparent 24rem),
        linear-gradient(135deg, #7c2d12, #ea580c, #f59e0b);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #fff6dd;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fff2cb;
    font-size: 14px;
}

.breadcrumb a {
    font-weight: 800;
}

.search-panel {
    padding: 20px;
    margin-bottom: 28px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 160px 160px;
    gap: 14px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid rgba(146, 92, 34, 0.18);
    border-radius: 14px;
    outline: none;
}

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

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
    gap: 26px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #160d07;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    background: #080403;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
    cursor: pointer;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
        radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 26rem);
    cursor: pointer;
    z-index: 3;
}

.play-cover.hidden {
    display: none;
}

.play-orb {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), var(--amber), var(--orange));
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.44);
    font-size: 34px;
    padding-left: 5px;
}

.player-titlebar {
    padding: 18px 20px;
    color: #fff6dd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.player-titlebar strong {
    font-size: 19px;
}

.detail-aside,
.content-card {
    padding: 22px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(146, 92, 34, 0.12);
}

.meta-list span {
    color: var(--muted);
}

.meta-list strong {
    text-align: right;
}

.content-card {
    margin-top: 26px;
}

.content-card h2,
.content-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.content-card p {
    margin: 0 0 16px;
    color: #4b3b2a;
    font-size: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-cloud span,
.tag-cloud a {
    padding: 7px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fff1c8;
    font-weight: 800;
    font-size: 13px;
}

.site-footer {
    margin-top: 74px;
    color: #ffeac2;
    background: linear-gradient(135deg, #451a03, #78350f, #92400e);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.7fr);
    gap: 28px;
    padding: 42px 0;
}

.footer-inner h3,
.footer-inner h4 {
    margin: 0 0 12px;
    color: #ffdd8a;
}

.footer-inner p,
.footer-inner a {
    color: #ffeac2;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 234, 194, 0.18);
    color: #fbd38d;
    text-align: center;
    font-size: 13px;
}

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

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

    .hero-inner,
    .detail-layout,
    .feature-strip {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 360px;
    }
}

@media (max-width: 820px) {
    .navbar {
        min-height: 70px;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        width: 100%;
    }

    .hero-slide,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 54px 0 84px;
    }

    .hero-card {
        display: none;
    }

    .section-head {
        display: block;
    }

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

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

    .rank-item {
        grid-template-columns: 38px 68px minmax(0, 1fr);
    }

    .rank-item .heat {
        grid-column: 3;
        justify-self: start;
    }

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

@media (max-width: 540px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text span {
        display: none;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

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

    .hero-actions,
    .hero-meta {
        gap: 10px;
    }

    .category-grid,
    .movie-grid,
    .related-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-box {
        padding: 26px;
    }

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