:root {
    --cream-50: #fefdfb;
    --warm-50: #faf5f0;
    --warm-100: #f5ebe0;
    --warm-200: #e8d4be;
    --warm-300: #d9b896;
    --warm-500: #be8350;
    --warm-700: #8b583a;
    --warm-800: #714834;
    --warm-900: #5d3d2d;
    --tea-50: #fdf8f3;
    --tea-100: #fbeee0;
    --tea-400: #eca368;
    --tea-600: #d9703c;
    --tea-700: #b45833;
    --ink: #271a14;
    --shadow: 0 24px 55px rgba(93, 61, 45, 0.12);
    --soft-shadow: 0 14px 35px rgba(93, 61, 45, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--warm-900);
    background: linear-gradient(180deg, var(--cream-50), #ffffff 45%, var(--warm-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img, video {
    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(245, 235, 224, 0.95);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--warm-800);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-600, #a86d44));
    box-shadow: 0 10px 24px rgba(217, 112, 60, 0.28);
}

.brand-name {
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 22px;
    letter-spacing: 0.04em;
}

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

.nav-link {
    color: var(--warm-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--tea-600);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--tea-50);
}

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

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

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

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--warm-700);
    background: var(--warm-50);
}

.hero-shell {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36) 52%, rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 52%);
}

.hero-content {
    position: relative;
    max-width: 1280px;
    height: 70vh;
    margin: 0 auto;
    padding: 0 22px 86px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.hero-kicker, .kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--tea-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta, .detail-meta, .meta-row, .tag-row, .detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-meta span, .detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.primary-button, .secondary-button, .section-more, .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    min-width: 132px;
    padding: 13px 24px;
    color: #fff;
    background: var(--tea-600);
    box-shadow: 0 14px 34px rgba(217, 112, 60, 0.28);
}

.primary-button:hover, .section-more:hover, .text-button:hover {
    transform: translateY(-2px);
    background: var(--tea-700);
    color: #fff;
}

.secondary-button {
    padding: 12px 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(217, 112, 60, 0.92);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
    width: 28px;
    background: var(--tea-400);
}

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

.search-section {
    padding-top: 32px;
    padding-bottom: 22px;
}

.search-panel {
    padding: 20px;
    border: 1px solid var(--warm-100);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--soft-shadow);
}

.site-search-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    outline: none;
    color: var(--warm-900);
    background: #fff;
}

.site-search-input:focus {
    border-color: var(--tea-400);
    box-shadow: 0 0 0 4px rgba(236, 163, 104, 0.18);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-button {
    padding: 8px 14px;
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    color: var(--warm-700);
    background: #fff;
}

.filter-button.active, .filter-button:hover {
    color: #fff;
    border-color: var(--tea-600);
    background: var(--tea-600);
}

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

.section-heading h2 {
    margin: 0;
    color: var(--warm-900);
    font-size: clamp(26px, 3vw, 38px);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

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

.section-more, .text-button {
    padding: 10px 16px;
    color: var(--tea-600);
    background: var(--tea-50);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 235, 224, 0.95);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--warm-100), var(--tea-50));
}

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

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-800));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.movie-info {
    padding: 16px;
}

.meta-row {
    margin-bottom: 10px;
    color: var(--warm-500);
    font-size: 12px;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: var(--warm-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-info p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--warm-700);
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row span, .detail-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--tea-700);
    font-size: 12px;
    background: var(--tea-50);
}

.compact-card .movie-info p {
    min-height: auto;
}

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

.category-card {
    padding: 22px;
    border: 1px solid var(--warm-100);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-800));
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--warm-900);
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--warm-700);
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    align-items: start;
}

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

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

.side-panel {
    position: sticky;
    top: 90px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(180deg, var(--warm-900), var(--warm-800));
    box-shadow: var(--shadow);
}

.side-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.side-panel a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 22px;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: radial-gradient(circle at 18% 20%, rgba(236, 163, 104, 0.55), transparent 28%), linear-gradient(135deg, var(--warm-900), var(--warm-800));
}

.small-hero {
    min-height: 270px;
}

.ranking-hero {
    background: radial-gradient(circle at 80% 20%, rgba(236, 163, 104, 0.55), transparent 30%), linear-gradient(135deg, #2b1b14, var(--warm-900));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--warm-100);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1 / 1.25;
    object-fit: cover;
    border-radius: 14px;
    background: var(--warm-100);
}

.category-overview-card h2 {
    margin: 0 0 10px;
    color: var(--warm-900);
    font-size: 24px;
}

.category-overview-card p {
    color: var(--warm-700);
    line-height: 1.75;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) brightness(0.45);
    transform: scale(1.1);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.36)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.detail-wrap {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 22px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: var(--tea-400);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.detail-info p {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
}

.detail-tags {
    margin-top: 16px;
}

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

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: #fff;
    background: #000;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.player-cover.is-hidden {
    display: none;
}

.big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 32px;
    background: rgba(217, 112, 60, 0.92);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
}

.player-text {
    padding: 22px 26px 28px;
}

.player-text h2 {
    margin: 0 0 8px;
    color: var(--warm-900);
    font-size: 26px;
}

.player-text p {
    margin: 0;
    color: var(--warm-700);
    line-height: 1.75;
}

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

.story-card {
    padding: 28px;
    border: 1px solid var(--warm-100);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.story-card h2 {
    margin: 0 0 12px;
    color: var(--warm-900);
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: var(--warm-700);
    line-height: 1.95;
}

.site-footer {
    margin-top: 40px;
    padding: 56px 22px 26px;
    color: var(--warm-200);
    background: var(--warm-900);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    line-height: 1.85;
}

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

.footer-links a:hover {
    color: var(--tea-400);
}

.footer-bottom {
    max-width: 1280px;
    margin: 36px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.56);
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 22px;
    border-radius: 18px;
    color: var(--warm-700);
    background: var(--warm-50);
    text-align: center;
}

.empty-state.show {
    display: block;
}

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

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

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero-arrow {
        display: none;
    }

    .hero-content {
        padding-bottom: 72px;
    }

    .movie-grid, .rank-grid, .rank-list, .category-grid, .category-overview-grid, .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .detail-poster {
        max-width: 220px;
    }

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

@media (max-width: 560px) {
    .header-inner, .content-section, .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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

    .movie-grid, .rank-grid, .rank-list, .category-grid, .category-overview-grid, .article-grid {
        grid-template-columns: 1fr;
    }

    .player-text h2 {
        font-size: 22px;
    }
}
