* {
    box-sizing: border-box;
}

:root {
    --peach-50: #fff5f0;
    --peach-100: #ffe9dd;
    --peach-200: #ffd3bb;
    --peach-400: #ffa777;
    --peach-500: #ff9155;
    --peach-600: #ff7b44;
    --coral-50: #fff0ee;
    --coral-400: #ff7b6d;
    --coral-500: #ff6450;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(255, 145, 85, 0.18);
    --shadow: 0 18px 45px rgba(255, 145, 85, 0.16);
    --shadow-strong: 0 24px 80px rgba(31, 41, 55, 0.24);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Lexend", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 5%, rgba(255, 145, 85, 0.12), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(255, 100, 80, 0.12), transparent 30%),
        linear-gradient(180deg, var(--peach-50), #ffffff 28%, #fffaf7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(255, 145, 85, 0.08);
}

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

.brand,
.inline-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-400), var(--coral-500));
    box-shadow: 0 12px 24px rgba(255, 100, 80, 0.24);
}

.brand-text,
.gradient-text {
    background: linear-gradient(90deg, var(--peach-600), var(--coral-500), var(--peach-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    color: #4b5563;
    font-weight: 650;
    padding: 10px 4px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--peach-600);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.nav-search input,
.large-search input,
.filter-controls input,
.filter-controls select {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
}

.nav-search input {
    width: 190px;
    padding: 8px 10px;
}

.nav-search button,
.large-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(90deg, var(--peach-500), var(--coral-500));
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--peach-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: var(--peach-600);
}

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

.section {
    padding: 56px 0;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    animation: fadeIn 0.6s ease both;
}

.hero-kicker,
.hero-tags,
.detail-tags,
.tag-row,
.detail-meta,
.hero-actions,
.page-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-kicker span,
.hero-kicker em,
.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.hero-kicker span {
    padding: 7px 14px;
    background: var(--peach-500);
    color: #ffffff;
    font-style: normal;
    font-weight: 700;
}

.hero-kicker em {
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-style: normal;
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags span {
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.section-link,
.full-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    padding: 13px 24px;
    background: linear-gradient(90deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 16px 32px rgba(255, 100, 80, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    padding: 12px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.ghost-btn.light {
    color: var(--peach-600);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.hero-actions > span {
    color: rgba(255, 255, 255, 0.74);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--peach-500);
}

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

.section-title {
    display: block;
    text-align: center;
    max-width: 780px;
}

.section-title span,
.eyebrow {
    color: var(--peach-600);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title h2,
.section-heading-row h2,
.page-hero h1,
.detail-info h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-title p,
.page-hero p {
    color: var(--muted);
    line-height: 1.8;
}

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

.intro-card,
.category-tile,
.filter-card,
.movie-card,
.rank-panel,
.article-block,
.ranking-feature,
.player-wrap,
.detail-poster {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.intro-card,
.category-tile {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.intro-card:hover,
.category-tile:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(255, 145, 85, 0.22);
}

.intro-card span,
.tile-index {
    color: var(--peach-600);
    font-weight: 900;
}

.intro-card strong,
.tile-title {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    font-weight: 900;
}

.intro-card p,
.category-tile p,
.movie-card p,
.article-block p,
.ranking-feature p {
    color: var(--muted);
    line-height: 1.75;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-badge,
.poster-type {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
}

.poster-badge {
    left: 12px;
}

.poster-type {
    right: 12px;
}

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

.movie-title {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title:hover {
    color: var(--peach-600);
}

.meta-row {
    color: #8b5e50;
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    color: var(--peach-600);
    font-size: 12px;
    font-weight: 800;
    background: var(--peach-100);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.rank-panel-head span {
    color: var(--peach-600);
    font-weight: 900;
}

.rank-panel-head h2 {
    margin: 6px 0 18px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 245, 240, 0.9), rgba(255, 255, 255, 0.9));
}

.rank-number {
    color: var(--coral-500);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.rank-heat {
    color: var(--muted);
    font-size: 12px;
}

.full-btn {
    width: 100%;
    margin-top: 18px;
}

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

.category-tile strong {
    display: block;
    margin-top: 14px;
    color: var(--peach-600);
    font-size: 14px;
}

.page-hero {
    padding: 72px 0 32px;
}

.page-hero h1 {
    max-width: 860px;
}

.page-hero p {
    max-width: 740px;
    font-size: 18px;
}

.category-page-hero,
.rankings-hero,
.search-hero {
    padding-top: 86px;
}

.filter-card {
    margin-bottom: 24px;
    padding: 22px;
}

.filter-head {
    margin-bottom: 16px;
}

.filter-head h2 {
    margin: 0 0 6px;
}

.filter-head p {
    margin: 0;
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
}

.filter-controls input,
.filter-controls select,
.large-search input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.large-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 680px;
    margin-top: 28px;
}

.ranking-feature {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 26px;
    padding: 24px;
    align-items: center;
}

.ranking-cover {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 38px;
    padding: 58px 0 32px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    padding: 10px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--peach-600);
    font-weight: 800;
}

.detail-info h1 {
    margin-top: 18px;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 20px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c3f2e;
    font-weight: 800;
    background: rgba(255, 233, 221, 0.9);
}

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

.player-section {
    padding-top: 36px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-strong);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 18px 42px rgba(255, 100, 80, 0.35);
    font-size: 34px;
}

.play-overlay strong {
    font-size: 20px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.article-block {
    padding: 26px;
}

.article-block h2 {
    margin-top: 0;
}

.site-footer {
    margin-top: 42px;
    padding: 42px 0 22px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-brand p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 12px 16px;
}

.footer-links a {
    color: #4b5563;
    font-weight: 750;
}

.footer-links a:hover {
    color: var(--peach-600);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .split-section,
    .detail-hero,
    .detail-content,
    .ranking-feature {
        grid-template-columns: 1fr;
    }

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

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

    .rank-panel {
        position: static;
    }

    .detail-poster {
        max-width: 360px;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .nav-panel {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 12px 0 6px;
    }

    .nav-panel.open {
        display: flex;
        animation: fadeIn 0.24s ease both;
    }

    .nav-links {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .nav-link {
        padding: 10px 0;
    }

    .nav-search {
        border-radius: 18px;
    }

    .nav-search input {
        width: 100%;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 42px 0;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .intro-grid,
    .movie-grid,
    .footer-inner,
    .filter-controls,
    .large-search {
        grid-template-columns: 1fr;
    }

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

    .section-heading-row,
    .section-title {
        align-items: flex-start;
        text-align: left;
        flex-direction: column;
    }

    .detail-hero {
        gap: 24px;
        padding-top: 36px;
    }

    .rank-item {
        grid-template-columns: 34px 1fr;
    }

    .rank-heat {
        grid-column: 2;
    }
}
