:root {
    --peach-50: #fff5f2;
    --peach-100: #ffe8e1;
    --peach-200: #ffd4c7;
    --peach-400: #ff9374;
    --coral-500: #ff5533;
    --coral-600: #e94522;
    --ink-900: #111827;
    --ink-700: #374151;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --line: #f3d8d0;
    --sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
    --shadow: 0 22px 70px rgba(232, 91, 58, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink-900);
    background: linear-gradient(180deg, var(--peach-50), #ffffff 30%, var(--peach-50));
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--sunrise);
    box-shadow: 0 10px 28px rgba(255, 85, 51, 0.22);
}

.nav-shell {
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #ffffff;
    font-weight: 600;
}

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

.nav-links a:hover,
.nav-links a.is-active {
    color: #fff2ed;
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--peach-200);
    padding: 10px 20px 16px;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: var(--ink-700);
    font-weight: 600;
}

.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: var(--coral-500);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #111111;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2 + 20px));
    right: 24px;
    bottom: 54px;
    z-index: 3;
    max-width: 760px;
    color: #ffffff;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--coral-500);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(255, 85, 51, 0.32);
}

.hero h1,
.hero h2 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--sunrise);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(255, 85, 51, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 42px rgba(255, 85, 51, 0.32);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
}

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

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

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

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

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

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

.search-band {
    position: relative;
    z-index: 5;
    max-width: 1080px;
    margin: -38px auto 36px;
    padding: 18px;
    border: 1px solid rgba(255, 212, 199, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
}

.search-form input,
.search-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink-700);
    background: #ffffff;
    outline: none;
    font-size: 15px;
}

.search-form input:focus,
.search-form select:focus {
    border-color: var(--peach-400);
    box-shadow: 0 0 0 4px rgba(255, 147, 116, 0.14);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 36px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-desc {
    margin: 10px 0 0;
    max-width: 680px;
    color: var(--ink-600);
    line-height: 1.7;
}

.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));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 212, 199, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 34px rgba(232, 91, 58, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: var(--peach-400);
    box-shadow: 0 20px 45px rgba(232, 91, 58, 0.18);
    transform: translateY(-5px);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--peach-100), #ffffff);
}

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

.movie-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.9);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 85, 51, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--coral-500);
}

.movie-info p {
    margin: 0 0 13px;
    min-height: 44px;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.58;
}

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

.movie-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--peach-100);
}

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

.category-card {
    min-height: 164px;
    padding: 22px;
    border: 1px solid rgba(255, 212, 199, 0.74);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, var(--peach-50));
    box-shadow: 0 12px 34px rgba(232, 91, 58, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(232, 91, 58, 0.16);
}

.category-card strong {
    display: block;
    margin-bottom: 9px;
    font-size: 20px;
}

.category-card span {
    display: block;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.65;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 13px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 212, 199, 0.78);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-row:hover {
    border-color: var(--peach-400);
    transform: translateX(4px);
}

.rank-row img {
    width: 66px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    margin-bottom: 7px;
    font-size: 16px;
}

.rank-text em {
    color: var(--ink-500);
    font-style: normal;
    font-size: 13px;
    line-height: 1.5;
}

.page-hero {
    padding: 74px 0 34px;
    background: linear-gradient(135deg, var(--peach-50), #ffffff 55%, var(--peach-100));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--ink-600);
    line-height: 1.8;
    font-size: 17px;
}

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

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

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.88fr);
    gap: 28px;
    align-items: start;
    padding-top: 36px;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(255, 212, 199, 0.76);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-wrap.is-playing .player-layer {
    opacity: 0;
    visibility: hidden;
}

.player-button {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--sunrise);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(255, 85, 51, 0.34);
}

.player-caption {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-600);
}

.detail-card {
    padding: 24px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span,
.tag-list span {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--coral-600);
    background: var(--peach-100);
    font-weight: 700;
    font-size: 13px;
}

.prose h2 {
    margin: 26px 0 12px;
    font-size: 24px;
}

.prose p {
    color: var(--ink-700);
    line-height: 1.9;
    font-size: 16px;
}

.side-card {
    padding: 18px;
}

.side-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 16px;
}

.side-card h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

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

.pagination-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
}

.pagination-links a {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink-700);
    font-weight: 700;
}

.pagination-links a:hover {
    border-color: var(--peach-400);
    color: var(--coral-500);
}

.no-results {
    display: none;
    padding: 28px;
    border: 1px dashed var(--peach-400);
    border-radius: 22px;
    color: var(--ink-600);
    background: #ffffff;
    text-align: center;
}

.site-footer {
    margin-top: 54px;
    padding: 42px 20px 26px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: var(--coral-500);
}

.site-footer p,
.site-footer a {
    display: block;
    color: var(--ink-600);
    line-height: 1.8;
}

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

.site-footer h3 {
    margin: 0 0 12px;
}

.copyright {
    max-width: 1180px;
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-500);
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
    }

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

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

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

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

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

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

@media (max-width: 640px) {
    .nav-shell {
        height: 60px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        min-height: 68vh;
    }

    .hero-content {
        left: 18px;
        bottom: 48px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band {
        margin: -22px 14px 22px;
    }

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

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

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .movie-info p {
        min-height: 0;
        font-size: 13px;
    }

    .player-caption,
    .pagination-links {
        flex-direction: column;
        align-items: stretch;
    }
}
