:root {
    --cream-50: #fffef9;
    --cream-100: #fff9f0;
    --cream-200: #f5f1e8;
    --cream-300: #e8dcc8;
    --warm-100: #ffe4e1;
    --warm-300: #f1bf83;
    --warm-400: #f4a460;
    --warm-500: #e89452;
    --soft-500: #ada5a0;
    --soft-600: #a09894;
    --soft-700: #928884;
    --soft-900: #887e7a;
    --ink: #392f2a;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
    --shadow-lg: 0 18px 55px -18px rgba(79, 50, 30, .35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream-50);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
    background: linear-gradient(180deg, rgba(255, 254, 249, .96), rgba(255, 254, 249, .58), rgba(255, 254, 249, 0));
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.nav-bar {
    min-height: 72px;
    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(--soft-900);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--cream-300), var(--warm-400));
    box-shadow: var(--shadow-soft);
}

.brand-text {
    font-size: 20px;
    letter-spacing: .02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--soft-700);
    font-weight: 600;
}

.nav-links a {
    padding: 8px 0;
    transition: color .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--warm-400);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--cream-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: var(--soft-700);
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--ink);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .8s ease, visibility .8s ease, transform 1.2s ease;
    background-position: center;
    background-size: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(244, 164, 96, .45), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .54), rgba(0, 0, 0, .18)),
        linear-gradient(0deg, rgba(0, 0, 0, .52), transparent 45%);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr);
    align-items: end;
    gap: 42px;
    padding-top: 110px;
    padding-bottom: 72px;
}

.hero-copy {
    color: var(--white);
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    font-size: 14px;
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: .96;
    letter-spacing: -.05em;
}

.hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(244, 164, 96, .13);
    color: var(--warm-500);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, .16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--warm-400);
    box-shadow: 0 15px 32px rgba(244, 164, 96, .28);
}

.btn-primary:hover {
    background: var(--warm-500);
}

.btn-light {
    color: var(--warm-500);
    background: rgba(255, 255, 255, .92);
}

.hero-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
    padding: 18px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.hero-panel strong {
    display: block;
    margin-top: 16px;
    font-size: 20px;
}

.hero-panel em {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-style: normal;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    font-size: 24px;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, .32);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, .52);
    transition: width .25s ease, background .25s ease;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--white);
}

.main-section {
    padding: 72px 0;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    color: var(--soft-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.section-heading p,
.page-title p {
    margin: 10px 0 0;
    color: var(--soft-600);
    line-height: 1.75;
}

.section-more {
    color: var(--warm-500);
    font-weight: 800;
    white-space: nowrap;
}

.quick-search {
    margin-top: -34px;
    position: relative;
    z-index: 7;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--cream-300);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--soft-900);
    background: var(--cream-50);
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--warm-400);
    box-shadow: 0 0 0 4px rgba(244, 164, 96, .16);
}

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

.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--white), var(--cream-100));
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.category-card strong {
    color: var(--soft-900);
    font-size: 20px;
}

.category-card span {
    color: var(--soft-600);
    line-height: 1.7;
    margin-top: 8px;
}

.category-card em {
    color: var(--warm-500);
    font-style: normal;
    font-weight: 800;
    margin-top: 18px;
}

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.poster-link {
    display: block;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--cream-200);
}

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

.movie-card:hover .poster-wrap img,
.small-card:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .52), transparent 58%);
    opacity: 0;
    transition: opacity .25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-chip {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 14px);
    opacity: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--warm-500);
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    font-weight: 800;
    transition: opacity .25s ease, transform .25s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, 0);
}

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

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    color: var(--soft-900);
    font-weight: 800;
    line-height: 1.45;
}

.movie-title:hover {
    color: var(--warm-500);
}

.movie-meta {
    margin: 8px 0 0;
    color: var(--soft-500);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0 0;
    color: var(--soft-600);
    font-size: 13px;
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}

.movie-card-wide .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

.ranking-layout,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--warm-400), var(--warm-300));
    font-weight: 900;
}

.rank-item img {
    width: 92px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item strong {
    color: var(--soft-900);
    font-size: 16px;
}

.rank-item p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 7px 0 0;
    color: var(--soft-600);
    font-size: 13px;
    line-height: 1.6;
}

.sidebar-panel {
    position: sticky;
    top: 96px;
    border-radius: 24px;
    background: var(--white);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.sidebar-panel h3 {
    margin: 0 0 18px;
    color: var(--soft-900);
    font-size: 20px;
}

.small-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    transition: background .25s ease;
}

.small-card:hover {
    background: var(--cream-100);
}

.small-card img {
    width: 88px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform .3s ease;
}

.small-card strong,
.related-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--soft-900);
    line-height: 1.4;
}

.small-card em,
.related-card em {
    display: block;
    margin-top: 5px;
    color: var(--soft-500);
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    padding: 132px 0 56px;
    background: linear-gradient(135deg, var(--cream-100), var(--cream-50) 58%, var(--warm-100));
}

.page-title {
    max-width: 820px;
}

.filter-toolbar {
    margin-bottom: 28px;
}

.filter-toolbar .search-panel {
    grid-template-columns: minmax(0, 1fr) 210px 170px;
    box-shadow: var(--shadow-soft);
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    border-radius: 24px;
    background: var(--white);
    color: var(--soft-600);
    box-shadow: var(--shadow-soft);
}

.video-stage {
    border-radius: 28px;
    overflow: hidden;
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .22));
    transition: opacity .25s ease, visibility .25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    font-weight: 900;
}

.player-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--warm-500);
    background: rgba(255, 255, 255, .95);
    font-size: 22px;
}

.player-message {
    display: none;
    padding: 12px 16px;
    color: var(--white);
    background: rgba(232, 84, 66, .8);
    font-size: 14px;
}

.player-message.is-visible {
    display: block;
}

.detail-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.breadcrumb a:hover {
    color: var(--warm-500);
}

.detail-title {
    margin: 0;
    color: var(--soft-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: var(--soft-600);
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--cream-100);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.detail-section {
    margin-top: 26px;
}

.detail-section h2 {
    margin: 0 0 12px;
    color: var(--soft-900);
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: var(--soft-600);
    line-height: 1.9;
}

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

.related-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: var(--cream-50);
    transition: background .25s ease;
}

.related-card:hover {
    background: var(--cream-100);
}

.related-card img {
    width: 104px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform .3s ease;
}

.site-footer {
    margin-top: 72px;
    padding: 54px 0 0;
    background: linear-gradient(180deg, var(--cream-100), var(--cream-200));
    border-top: 1px solid var(--cream-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    color: var(--soft-900);
    margin: 0 0 14px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--soft-600);
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin-top: 7px;
    transition: color .25s ease;
}

.site-footer a:hover {
    color: var(--warm-500);
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px 32px;
    border-top: 1px solid var(--cream-300);
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
}

.sitemap-list {
    column-count: 4;
    column-gap: 24px;
}

.sitemap-list a {
    display: block;
    break-inside: avoid;
    padding: 8px 0;
    color: var(--soft-700);
}

.sitemap-list a:hover {
    color: var(--warm-500);
}

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

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

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

    .sidebar-panel {
        position: static;
    }
}

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

    .nav-bar {
        min-height: 64px;
    }

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

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

    .nav-links {
        position: absolute;
        top: 64px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .96);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-links a {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--cream-100);
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 96px;
        padding-bottom: 74px;
    }

    .hero-panel {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

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

    .rank-item {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .rank-item img {
        width: 74px;
        height: 56px;
    }

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

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

    .sitemap-list {
        column-count: 1;
    }
}
