:root {
    --sunrise-gradient: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
    --peach-50: #fff5f2;
    --peach-100: #ffe8e1;
    --peach-200: #ffd4c7;
    --peach-400: #ff9374;
    --coral-50: #fff3f1;
    --coral-100: #ffe4df;
    --coral-400: #ff7c64;
    --coral-500: #ff5533;
    --coral-600: #e94121;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #374151;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --line: rgba(255, 169, 145, 0.42);
    --shadow: 0 18px 45px rgba(255, 85, 51, 0.16);
    --soft-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: var(--sunrise-gradient);
    box-shadow: 0 12px 32px rgba(255, 85, 51, 0.25);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--coral-500);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(255, 85, 51, 0.22);
}

.logo-text {
    color: #ffffff;
    font-size: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.nav-links a:hover {
    color: #fff6f2;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
}

.mobile-menu a {
    display: block;
    padding: 12px 14px;
    color: var(--ink-700);
    border-radius: 12px;
    font-weight: 700;
}

.mobile-menu a:hover {
    color: var(--coral-500);
    background: var(--peach-50);
}

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

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 70vh;
    margin-top: 64px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    background:
        radial-gradient(circle at 75% 28%, rgba(255, 147, 116, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
    gap: 44px;
    align-items: center;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    color: #fff2ed;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 20px 0 16px;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 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: var(--sunrise-gradient);
    box-shadow: 0 12px 30px rgba(255, 85, 51, 0.34);
}

.btn-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
}

.hero-feature-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-card-info {
    padding: 16px 4px 4px;
}

.hero-card-info h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
}

.hero-card-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-size: 26px;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.38);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 28px;
    left: 50%;
    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.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.section-soft {
    width: min(1280px, calc(100% - 32px));
    margin: 56px auto 0;
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--peach-100), var(--coral-100));
    box-shadow: var(--shadow);
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--ink-500);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(255, 85, 51, 0.34);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

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

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.055);
}

.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;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--coral-500);
    font-size: 13px;
    font-weight: 800;
}

.card-body h3,
.rank-info h3 {
    margin: 9px 0 8px;
    color: var(--ink-900);
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
    color: var(--coral-500);
}

.card-body p,
.rank-info p {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.7;
    font-size: 14px;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--coral-600);
    background: var(--coral-50);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-compact .card-body h3 {
    font-size: 16px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-tile {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
    display: block;
    color: var(--ink-900);
    font-size: 20px;
}

.category-tile span {
    display: block;
    margin-top: 8px;
    color: var(--ink-500);
    line-height: 1.7;
    font-size: 14px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: var(--peach-100);
}

.rank-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
}

.page-hero {
    margin-top: 64px;
    padding: 72px 0 40px;
    background:
        radial-gradient(circle at 84% 16%, rgba(255, 124, 100, 0.25), transparent 30%),
        linear-gradient(135deg, var(--peach-50), #ffffff 62%);
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.page-hero h1 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
    gap: 14px;
    margin: 22px 0 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--peach-200);
    border-radius: 14px;
    color: var(--ink-800);
    background: #ffffff;
    outline: none;
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--coral-400);
    box-shadow: 0 0 0 4px rgba(255, 124, 100, 0.15);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
    gap: 32px;
    align-items: start;
}

.detail-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-panel h2 {
    margin: 0 0 16px;
    color: var(--ink-900);
    font-size: 26px;
}

.detail-panel p {
    color: var(--ink-600);
    line-height: 1.9;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 88px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: var(--peach-100);
    box-shadow: var(--shadow);
}

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

.info-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink-500);
}

.info-list strong {
    color: var(--ink-900);
}

.player-panel {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 28px;
    background: #0b0d12;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.72));
}

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

.play-button {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--sunrise-gradient);
    box-shadow: 0 16px 42px rgba(255, 85, 51, 0.36);
    font-size: 34px;
    cursor: pointer;
}

.player-title {
    margin: 14px 2px 2px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.search-empty {
    display: none;
    padding: 24px;
    border: 1px dashed var(--peach-200);
    border-radius: 20px;
    color: var(--ink-500);
    background: #ffffff;
    text-align: center;
}

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

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

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
}

.footer-logo .logo-text {
    color: var(--coral-500);
    text-shadow: none;
}

.footer-brand p,
.footer-column p,
.footer-column a {
    color: var(--ink-500);
    line-height: 1.75;
    font-size: 14px;
}

.footer-column h2 {
    margin: 0 0 12px;
    color: var(--ink-900);
    font-size: 17px;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li + li {
    margin-top: 8px;
}

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

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

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

    .hero-content,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-feature-card {
        max-width: 360px;
    }

    .detail-side {
        position: static;
    }

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

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        width: min(100% - 24px, 1280px);
        padding: 52px 0 74px;
    }

    .hero-control {
        top: auto;
        bottom: 22px;
        width: 42px;
        height: 42px;
        font-size: 22px;
        transform: none;
    }

    .hero-prev {
        left: 18px;
    }

    .hero-next {
        right: 18px;
    }

    .hero-dots {
        bottom: 34px;
    }

    .section,
    .section-soft,
    .page-hero-inner {
        width: min(100% - 24px, 1280px);
    }

    .section-soft {
        padding: 22px;
        border-radius: 24px;
    }

    .section-heading {
        display: block;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

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

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

    .detail-panel {
        padding: 18px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
