:root {
    --cream-50: #fffef9;
    --cream-100: #fff9f0;
    --cream-200: #f5f1e8;
    --cream-300: #e8dcc8;
    --warm-100: #ffe4e1;
    --warm-300: #ffc4a8;
    --warm-400: #f4a460;
    --warm-500: #e89452;
    --soft-500: #8b8176;
    --soft-600: #756b62;
    --soft-700: #5d534b;
    --soft-800: #413a34;
    --soft-900: #26211d;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-soft-lg: 0 10px 40px -5px rgba(0, 0, 0, 0.10), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--cream-50) 0%, #ffffff 48%, var(--cream-50) 100%);
    color: var(--soft-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255, 254, 249, 0.96) 0%, rgba(255, 254, 249, 0.82) 100%);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 220, 200, 0.72);
    box-shadow: var(--shadow-soft);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cream-300), var(--warm-300));
    box-shadow: 0 12px 24px rgba(244, 164, 96, 0.26);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.1);
}

.brand-name {
    font-size: 22px;
    letter-spacing: 0.02em;
}

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

.nav-links a,
.mobile-panel a {
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--cream-100);
    color: var(--soft-700);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-top: 1px solid var(--cream-200);
}

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

.mobile-panel a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--soft-700);
}

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

main {
    padding-top: 72px;
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: var(--soft-900);
}

.hero-track,
.hero-slide,
.hero-slide::after {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide::after {
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.10) 100%);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-text {
    width: min(680px, 100%);
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--warm-400);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
    color: var(--warm-400);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.btn-warm {
    color: #ffffff;
    background: var(--warm-400);
    box-shadow: 0 12px 26px rgba(244, 164, 96, 0.26);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.section,
.detail-shell,
.category-hero,
.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 56px 0;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--warm-400);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section h2,
.category-hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--soft-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    font-weight: 800;
}

.section-header p,
.category-hero p,
.page-hero p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--soft-600);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 150px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--cream-300);
    border-radius: 13px;
    background: var(--cream-50);
    color: var(--soft-800);
    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, 0.16);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream-200), var(--cream-100));
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
    opacity: 0.85;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--warm-400);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.card-duration,
.rank-badge {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.70);
    font-size: 12px;
}

.rank-badge {
    top: 10px;
    bottom: auto;
    left: 10px;
    right: auto;
    background: var(--warm-400);
}

.card-body {
    padding: 16px;
}

.card-meta,
.card-tags,
.card-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.card-meta a {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--warm-500);
    background: var(--cream-200);
}

.movie-card h3 {
    margin: 0 0 9px;
    color: var(--soft-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--warm-400);
}

.movie-card p {
    min-height: 54px;
    margin: 0 0 12px;
    color: var(--soft-600);
    font-size: 14px;
    line-height: 1.7;
}

.card-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--soft-600);
    background: var(--cream-100);
    font-size: 12px;
}

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cream-200);
    color: var(--soft-500);
    font-size: 12px;
}

.card-horizontal {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 260px;
}

.card-horizontal .card-cover {
    aspect-ratio: auto;
    height: 100%;
}

.card-horizontal .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-horizontal p {
    min-height: 0;
}

.category-hero,
.page-hero {
    padding: 70px 0 30px;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 28px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, var(--cream-100));
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(244, 164, 96, 0.16);
}

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

.category-card p {
    position: relative;
    color: var(--soft-600);
    line-height: 1.7;
}

.detail-shell {
    padding: 42px 0 64px;
}

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

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

.detail-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
    align-items: end;
    margin-bottom: 28px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 20px;
    background: var(--cream-200);
    box-shadow: var(--shadow-soft-lg);
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-meta span,
.detail-meta a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--soft-700);
    background: var(--cream-200);
    font-size: 14px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-soft-lg);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    transition: opacity 0.28s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: var(--warm-400);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.content-card,
.side-card {
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--soft-900);
    font-size: 24px;
}

.content-card p {
    margin: 0 0 18px;
    color: var(--soft-700);
    line-height: 1.95;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags .pill {
    color: var(--soft-700);
    background: var(--cream-200);
}

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

.side-list a {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--cream-50);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.side-list a:hover {
    background: var(--cream-100);
    transform: translateX(4px);
}

.side-list img {
    width: 76px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
}

.side-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--soft-900);
    line-height: 1.35;
}

.side-list span {
    color: var(--soft-500);
    font-size: 13px;
}

.pagination-note {
    margin-top: 24px;
    color: var(--soft-500);
    text-align: center;
}

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

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

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 34px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--soft-900);
    font-size: 18px;
}

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

.site-footer a {
    display: block;
    margin: 7px 0;
}

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

.footer-slogan {
    color: var(--warm-500) !important;
    font-weight: 700;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid var(--cream-300);
    color: var(--soft-500);
    text-align: center;
    font-size: 14px;
}

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

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

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero {
        height: 590px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 88px;
    }

    .hero-control {
        display: none;
    }

    .section-header {
        display: block;
    }

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

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

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

    .detail-poster {
        width: 210px;
    }

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

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

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

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

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

    .card-body {
        padding: 15px;
    }
}
