:root {
    --cream-50: #fffaf4;
    --cream-100: #f8efe5;
    --cream-200: #eee5db;
    --frosting-50: #fef8f3;
    --frosting-100: #fdf0e6;
    --frosting-500: #f06c25;
    --frosting-600: #d95a1b;
    --frosting-700: #b64a16;
    --dawn-500: #f97316;
    --ink-900: #171717;
    --ink-700: #3f3f46;
    --ink-500: #71717a;
    --line: #f0e4d8;
    --shadow: 0 20px 45px rgba(64, 32, 12, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink-900);
    background: linear-gradient(180deg, var(--cream-50) 0%, #ffffff 38%, rgba(253, 240, 230, 0.45) 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    padding-top: 76px;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(238, 229, 219, 0.72);
    box-shadow: 0 12px 35px rgba(64, 32, 12, 0.06);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 14px 28px rgba(240, 108, 37, 0.24);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--frosting-600), var(--dawn-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    color: var(--ink-500);
    font-size: 12px;
    margin-top: 4px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink-700);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--frosting-700);
    background: var(--frosting-100);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    width: min(290px, 32vw);
}

.search-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 44px 0 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--frosting-500);
    box-shadow: 0 0 0 4px rgba(240, 108, 37, 0.12);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--frosting-600);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(420px, 92vw);
    max-height: 420px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    display: none;
}

.search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--frosting-50);
}

.search-result-poster {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--frosting-100), var(--cream-200));
}

.search-result-title {
    display: block;
    font-weight: 800;
    margin-bottom: 5px;
}

.search-result-meta {
    color: var(--ink-500);
    font-size: 13px;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--frosting-100);
    color: var(--frosting-700);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: 55;
    padding: 18px 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel .nav-links {
    flex-direction: column;
    align-items: stretch;
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-50), #ffffff 45%, var(--frosting-100));
}

.hero-shell {
    position: relative;
    min-height: calc(100vh - 76px);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.32), transparent 32%),
        linear-gradient(90deg, rgba(20, 14, 10, 0.82), rgba(24, 18, 14, 0.42) 48%, rgba(255, 250, 244, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.68fr);
    gap: 42px;
    align-items: center;
    color: #ffffff;
    padding: 64px 0;
}

.hero-copy {
    width: min(720px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 22px 0 14px;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-movie {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 900;
}

.hero-desc {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.78;
}

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

.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--frosting-100);
    color: var(--frosting-700);
    font-size: 13px;
    font-weight: 700;
}

.hero .tag {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    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(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 16px 30px rgba(240, 108, 37, 0.28);
}

.btn-soft {
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.btn-ghost {
    color: var(--frosting-700);
    background: var(--frosting-100);
}

.hero-card {
    position: relative;
    align-self: center;
    border-radius: 32px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.hero-poster {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--cream-100), var(--frosting-100));
}

.hero-card-title {
    margin: 16px 4px 6px;
    font-size: 21px;
    font-weight: 900;
}

.hero-card-meta {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.section {
    padding: 58px 0;
}

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

.section-kicker {
    display: inline-flex;
    width: 5px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--frosting-500), var(--dawn-500));
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.14;
    font-weight: 900;
}

.section-desc {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--ink-500);
    line-height: 1.8;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--frosting-700);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(238, 229, 219, 0.74);
    box-shadow: 0 14px 32px rgba(64, 32, 12, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 108, 37, 0.34);
    box-shadow: 0 22px 46px rgba(64, 32, 12, 0.14);
}

.movie-poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--cream-100), var(--frosting-100));
}

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

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

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(240, 108, 37, 0.92);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--ink-500);
    font-size: 13px;
}

.movie-desc {
    min-height: 44px;
    margin: 12px 0 0;
    color: var(--ink-700);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.featured-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
}

.featured-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--cream-100), var(--frosting-100));
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    margin: 12px 0 10px;
    font-size: 26px;
    line-height: 1.2;
}

.featured-content p {
    margin: 0;
    color: var(--ink-700);
    line-height: 1.75;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 28px;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.22), transparent 34%),
        linear-gradient(135deg, #ffffff, var(--frosting-50));
    border: 1px solid var(--line);
    box-shadow: 0 16px 38px rgba(64, 32, 12, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(64, 32, 12, 0.06);
}

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
}

.rank-cover {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cream-100), var(--frosting-100));
}

.rank-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--ink-700);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    padding: 70px 0 40px;
    background:
        radial-gradient(circle at 14% 12%, rgba(240, 108, 37, 0.18), transparent 28%),
        linear-gradient(135deg, var(--cream-50), #ffffff 60%, var(--frosting-50));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--ink-700);
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--frosting-700);
    font-weight: 800;
}

.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-700);
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: start;
}

.detail-poster {
    border-radius: 32px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--cream-100), var(--frosting-100));
}

.detail-info {
    padding: 26px;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-lead {
    margin: 0;
    color: var(--ink-700);
    font-size: 18px;
    line-height: 1.8;
}

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

.meta-box {
    padding: 14px;
    border-radius: 18px;
    background: var(--frosting-50);
    border: 1px solid var(--line);
}

.meta-label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-500);
    font-size: 12px;
}

.meta-value {
    font-weight: 900;
}

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

.player-card {
    overflow: hidden;
    border-radius: 32px;
    background: #121212;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.28);
}

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

.play-circle {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--frosting-500), var(--dawn-500));
    box-shadow: 0 20px 42px rgba(240, 108, 37, 0.36);
    font-size: 34px;
}

.article-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(64, 32, 12, 0.07);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.article-card p {
    margin: 0;
    color: var(--ink-700);
    font-size: 17px;
    line-height: 1.9;
}

.article-card p + p {
    margin-top: 16px;
}

.site-footer {
    padding: 42px 0;
    color: var(--ink-500);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}

.footer-title {
    margin: 0 0 8px;
    color: var(--ink-900);
    font-weight: 900;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    color: var(--ink-700);
    background: var(--frosting-50);
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

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

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

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

    .hero-card {
        display: none;
    }
}

@media (max-width: 820px) {
    .site-main {
        padding-top: 70px;
    }

    .header-inner {
        height: 70px;
    }

    .nav-links.desktop-nav,
    .header-actions .search-box {
        display: none;
    }

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

    .mobile-panel {
        inset: 70px 0 auto 0;
    }

    .mobile-search {
        display: block;
        width: 100%;
        margin-bottom: 14px;
    }

    .hero,
    .hero-shell,
    .hero-content {
        min-height: 650px;
    }

    .hero-content {
        padding: 46px 0 82px;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .rank-list,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .featured-card img {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

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

    .rank-item {
        grid-template-columns: 48px 76px 1fr;
    }

    .rank-cover {
        width: 76px;
        height: 98px;
    }
}

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

    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-movie {
        font-size: 30px;
    }

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

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