:root {
    --coral-500: #ff5533;
    --coral-600: #ed3010;
    --coral-700: #c5270d;
    --peach-50: #fff5f2;
    --peach-100: #ffe8e1;
    --peach-200: #ffd4c7;
    --peach-400: #ff9374;
    --ink-900: #15151f;
    --ink-700: #303244;
    --ink-500: #6a6d7e;
    --line: rgba(21, 21, 31, 0.1);
    --shadow: 0 24px 60px rgba(237, 48, 16, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* {
    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 34%, #ffffff);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 212, 199, 0.75);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--coral-600);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd4c7, #ff9374 45%, #ff5533);
    box-shadow: 0 12px 28px rgba(237, 48, 16, 0.25);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    color: var(--ink-700);
}

.nav-menu a {
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--coral-600);
    border-color: var(--coral-500);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--peach-100);
    border-radius: 14px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--coral-600);
    border-radius: 999px;
}

.hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    min-height: 560px;
    box-shadow: var(--shadow);
    background: #111118;
}

.hero-track,
.hero-slide {
    min-height: inherit;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.14fr) minmax(260px, 0.64fr);
    gap: 46px;
    align-items: center;
    padding: 72px;
    position: relative;
    isolation: isolate;
}

.hero-slide::before,
.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(90deg, rgba(14, 14, 22, 0.92), rgba(255, 85, 51, 0.52), rgba(255, 212, 199, 0.18)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.06);
}

.hero-slide::after,
.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.16), transparent 30%), linear-gradient(135deg, rgba(255, 212, 199, 0.2), transparent 55%);
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.56s ease both;
}

.hero-kicker,
.page-hero p,
.section-heading p {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--coral-500);
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-desc {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 232, 225, 0.92);
    color: var(--coral-600);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    box-shadow: 0 18px 36px rgba(237, 48, 16, 0.25);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
}

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

.hero-poster {
    width: min(330px, 100%);
    justify-self: end;
    border-radius: 30px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4.25;
    object-fit: cover;
}

.hero-control-bar {
    position: absolute;
    left: 72px;
    right: 72px;
    bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-dots,
.hero-arrows {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.hero-dot,
.hero-prev,
.hero-next {
    border: 0;
    cursor: pointer;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.hero-prev,
.hero-next {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
}

.filter-panel,
.section-wrap,
.category-overview-block,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
}

.filter-shell {
    display: grid;
    grid-template-columns: 1fr 190px 170px;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: 0 14px 42px rgba(237, 48, 16, 0.1);
}

.filter-shell input,
.filter-shell select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 147, 116, 0.34);
    border-radius: 16px;
    color: var(--ink-700);
    background: #ffffff;
    outline: none;
    padding: 0 16px;
}

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

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

.section-heading.compact {
    display: block;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.05em;
}

.section-heading a {
    color: var(--coral-600);
    font-weight: 800;
}

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

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

.category-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, var(--peach-50));
    border: 1px solid rgba(255, 212, 199, 0.72);
    box-shadow: 0 14px 38px rgba(237, 48, 16, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(237, 48, 16, 0.16);
}

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

.category-card strong {
    margin: 18px 0 8px;
    color: var(--ink-900);
    font-size: 20px;
    line-height: 1.35;
}

.category-card em {
    color: var(--ink-500);
    font-style: normal;
    line-height: 1.6;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 38px rgba(21, 21, 31, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--peach-100), var(--peach-400));
}

.movie-cover img {
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 12px;
    font-weight: 900;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

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

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: var(--ink-500);
    line-height: 1.65;
}

.movie-desc {
    min-height: 52px;
    font-size: 14px;
}

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

.tag-row span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.hot-panel {
    position: sticky;
    top: 100px;
    padding: 22px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(21, 21, 31, 0.09);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 84px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(255, 212, 199, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item img {
    width: 58px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--peach-100), var(--peach-400));
}

.rank-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--coral-500);
    font-weight: 900;
}

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

.rank-copy strong,
.rank-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    margin-top: 6px;
    color: var(--ink-500);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    min-height: 360px;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 58px;
    border-radius: 34px;
    color: #ffffff;
    background: #15151f;
    box-shadow: var(--shadow);
}

.page-hero.soft {
    color: var(--ink-900);
    background: linear-gradient(135deg, #ffffff, var(--peach-50));
}

.page-hero.soft::before,
.page-hero.soft::after {
    display: none;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.page-hero span {
    max-width: 760px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero.soft span {
    color: var(--ink-500);
}

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

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

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 48px;
    border-radius: 34px;
    color: #ffffff;
    background: #15151f;
    box-shadow: var(--shadow);
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    border: 7px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-lead {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.86);
}

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

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050506;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
}

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

.play-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(255, 85, 51, 0.24), rgba(0, 0, 0, 0.68));
}

.play-trigger.is-hidden {
    display: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    box-shadow: 0 18px 42px rgba(237, 48, 16, 0.38);
    font-size: 34px;
    padding-left: 6px;
}

.play-trigger strong {
    font-size: 20px;
    letter-spacing: 0.06em;
}

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

.text-card {
    padding: 28px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 38px rgba(21, 21, 31, 0.08);
}

.text-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.text-card p {
    margin: 0;
    color: var(--ink-700);
    line-height: 2;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px 18px;
    margin: 0;
}

.meta-card dt {
    color: var(--ink-500);
    font-weight: 800;
}

.meta-card dd {
    margin: 0;
    color: var(--ink-900);
}

.site-footer {
    margin-top: 58px;
    padding: 44px 0;
    background: var(--ink-900);
    color: rgba(255, 255, 255, 0.76);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
}

.footer-links a:hover {
    color: #ffffff;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .nav-menu {
        gap: 12px;
        font-size: 14px;
    }

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

    .hero-poster {
        justify-self: start;
        width: 260px;
    }

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

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

    .hot-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-wrap {
        min-height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid rgba(255, 212, 199, 0.82);
        box-shadow: 0 20px 60px rgba(21, 21, 31, 0.18);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .hero,
    .page-hero,
    .detail-hero {
        border-radius: 24px;
        min-height: auto;
    }

    .hero-slide,
    .page-hero,
    .detail-hero {
        padding: 34px 22px;
    }

    .hero-content h1,
    .hero-content h2,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-control-bar {
        left: 22px;
        right: 22px;
        bottom: 20px;
    }

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

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 12px;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .movie-grid.dense,
    .full-list,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 100%);
    }

    .footer-links {
        justify-content: flex-start;
    }
}
