* {
    box-sizing: border-box;
}

:root {
    --coral-50: #fff3f1;
    --coral-100: #ffe4df;
    --coral-400: #ff7c64;
    --coral-500: #ff5533;
    --coral-600: #ed3010;
    --peach-50: #fff5f2;
    --peach-100: #ffe8e1;
    --peach-200: #ffd4c7;
    --peach-400: #ff9374;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
    --shadow-soft: 0 20px 45px rgba(237, 48, 16, 0.12);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--peach-50), #ffffff 42%, #ffffff);
    line-height: 1.6;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--peach-100);
}

body::-webkit-scrollbar-thumb {
    background: var(--coral-400);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

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

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

button,
input,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    padding-top: 64px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--sunrise);
    box-shadow: 0 10px 30px rgba(237, 48, 16, 0.22);
}

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

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

.logo-mark {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.logo-text {
    font-size: 20px;
    white-space: nowrap;
}

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

.nav-links a {
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--peach-100);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--peach-200);
    backdrop-filter: blur(12px);
}

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

.mobile-panel a {
    display: block;
    max-width: 1180px;
    margin: 0 auto;
    padding: 13px 22px;
    color: var(--gray-700);
    font-weight: 600;
}

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

.hero-carousel {
    position: relative;
    min-height: 680px;
    height: 72vh;
    overflow: hidden;
    background: #000000;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 70px;
    width: min(1180px, calc(100% - 40px));
    transform: translateX(-50%);
    color: #ffffff;
}

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

.hero-content h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 21px);
}

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

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

.btn-primary {
    color: #ffffff;
    background: var(--sunrise);
    box-shadow: 0 14px 30px rgba(255, 85, 51, 0.32);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-line:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

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

.btn-line {
    color: var(--coral-600);
    background: #ffffff;
    border: 1px solid var(--peach-200);
}

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

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

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

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

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

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

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

.section-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px;
}

.section-wrap.compact {
    padding-top: 28px;
}

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

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-title p,
.section-lead {
    margin: 6px 0 0;
    color: var(--gray-600);
}

.title-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--coral-500);
    box-shadow: 0 10px 20px rgba(255, 85, 51, 0.28);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(17, 24, 39, 0.16);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--peach-100);
}

.movie-thumb.tall {
    aspect-ratio: 3 / 4;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-thumb img,
.rank-item:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

.thumb-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.08), transparent);
}

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

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

.movie-info {
    padding: 18px;
}

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

.movie-info p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--coral-600);
    background: var(--coral-50);
    font-size: 12px;
    font-weight: 700;
}

.feature-panel {
    border-radius: 32px;
    padding: 34px;
    background: linear-gradient(135deg, var(--peach-100), var(--coral-100));
    box-shadow: var(--shadow-soft);
}

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

.category-card {
    min-height: 158px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(17, 24, 39, 0.15);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-900);
    font-size: 21px;
}

.category-card span {
    color: var(--gray-600);
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.14);
}

.rank-num {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--sunrise);
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: var(--peach-100);
}

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

.rank-main h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-main p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.rank-hot {
    color: var(--coral-600);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    padding: 62px 20px 44px;
    background: linear-gradient(135deg, var(--peach-100), #ffffff 50%, var(--coral-50));
    border-bottom: 1px solid var(--peach-200);
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

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

.breadcrumb a {
    color: var(--coral-600);
    font-weight: 700;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--gray-600);
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 170px));
    gap: 14px;
    margin: 28px 0 32px;
    padding: 18px;
    border: 1px solid var(--peach-200);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: var(--gray-700);
    background: var(--gray-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--coral-500);
    box-shadow: 0 0 0 3px rgba(255, 85, 51, 0.12);
}

.detail-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 20px 70px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 30px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.24s ease;
}

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

.play-ring {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sunrise);
    box-shadow: 0 16px 36px rgba(255, 85, 51, 0.4);
    font-size: 28px;
}

.play-label {
    font-size: 16px;
    font-weight: 800;
}

.detail-card {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

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

.detail-card dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.detail-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--gray-600);
    font-size: 14px;
}

.detail-card dt {
    color: var(--gray-900);
    font-weight: 800;
}

.article-block {
    margin-top: 28px;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-block p {
    margin: 0;
    color: var(--gray-700);
}

.article-block p + p {
    margin-top: 14px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card strong {
    display: block;
    padding: 14px 14px 4px;
}

.related-card span {
    display: block;
    padding: 0 14px 14px;
    color: var(--gray-600);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 20px;
    color: var(--gray-600);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

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

.site-footer {
    border-top: 1px solid var(--peach-200);
    background: linear-gradient(180deg, var(--peach-50), #ffffff);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 26px;
}

.footer-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--coral-600);
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p,
.footer-inner a {
    color: var(--gray-600);
    font-size: 14px;
}

.footer-inner a {
    display: block;
    margin-top: 8px;
}

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

.footer-inner h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.copyright {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    border-top: 1px solid var(--peach-200);
    color: var(--gray-600);
    text-align: center;
    font-size: 13px;
}

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

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

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

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

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

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

    .hero-carousel {
        min-height: 560px;
        height: 70vh;
    }

    .hero-content {
        bottom: 74px;
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        transform: none;
    }

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

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

    .hero-dots {
        bottom: 36px;
    }

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

    .movie-grid,
    .movie-grid.three,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 88px minmax(0, 1fr);
    }

    .rank-hot {
        display: none;
    }

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

    .feature-panel {
        padding: 24px;
        border-radius: 24px;
    }

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