:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fee2e2;
    --rose: #f43f5e;
    --orange: #f97316;
    --amber: #f59e0b;
    --teal: #14b8a6;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(244, 63, 94, 0.16);
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 44%, #fffbeb 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 247, 237, 0.86);
    border-bottom: 1px solid rgba(254, 226, 226, 0.9);
}

.navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.32);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.22s ease;
}

.nav-links a:hover,
.mobile-panel a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    box-shadow: var(--shadow-soft);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    display: none;
    min-height: 640px;
    position: relative;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.68) 48%, rgba(244, 63, 94, 0.20) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.15);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 220px;
    z-index: -1;
    background: linear-gradient(0deg, rgba(255, 247, 237, 1), rgba(255, 247, 237, 0));
}

.hero-inner {
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.08fr 0.72fr;
    gap: 46px;
    align-items: center;
    padding: 84px 0 118px;
}

.hero-copy {
    max-width: 720px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff7ed;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.section-kicker {
    color: #be123c;
    background: #ffe4e6;
}

.hero-title {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.hero-title span {
    display: block;
    color: #fed7aa;
}

.hero-desc {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(244, 63, 94, 0.34);
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.btn.light {
    color: #be123c;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hero-card {
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
    transform: rotate(1deg);
}

.hero-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-card-body {
    padding: 22px;
}

.hero-card-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.hero-card-meta {
    color: rgba(255, 255, 255, 0.78);
}

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

.hero-dot {
    width: 46px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.22s ease;
}

.hero-dot.is-active {
    width: 70px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.section {
    padding: 64px 0;
}

.section.compact {
    padding: 42px 0;
}

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

.section-title {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.section-desc {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 740px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(254, 226, 226, 0.88);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(251, 113, 133, 0.42);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fda4af, #fdba74);
    aspect-ratio: 2 / 3;
}

.poster-link.wide {
    aspect-ratio: 16 / 10;
}

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

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

.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.badge.bottom {
    top: auto;
    bottom: 12px;
}

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

.movie-title {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.movie-line {
    margin: 10px 0 14px;
    min-height: 46px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-pill,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(254, 226, 226, 0.9);
    box-shadow: var(--shadow-soft);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(249, 115, 22, 0.16));
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card p {
    color: var(--muted);
    line-height: 1.75;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(254, 226, 226, 0.9);
    box-shadow: var(--shadow-soft);
}

.rank-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
}

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

.rank-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 950;
}

.rank-title {
    margin: 10px 0 8px;
    font-size: 19px;
    font-weight: 950;
}

.rank-text {
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(254, 226, 226, 0.9);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #fecdd3;
    background: #fff7ed;
    color: #111827;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.page-hero {
    padding: 74px 0 58px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffedd5;
}

.page-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.page-desc {
    max-width: 760px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.detail-wrap {
    padding: 50px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-panel,
.content-panel {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(254, 226, 226, 0.92);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #111827;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.58), rgba(244, 63, 94, 0.30));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-badge {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 24px 50px rgba(244, 63, 94, 0.36);
    font-size: 34px;
    transform: translateX(3px);
}

.player-info {
    padding: 24px;
}

.player-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.detail-panel {
    padding: 22px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fda4af, #fdba74);
}

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

.detail-meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.detail-meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffe4e6;
}

.detail-meta-list span:first-child {
    color: var(--muted);
}

.detail-meta-list span:last-child {
    font-weight: 850;
    text-align: right;
}

.content-panel {
    padding: 28px;
    margin-top: 26px;
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.content-panel p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
}

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

.footer {
    padding: 42px 0;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(254, 226, 226, 0.9);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer a {
    color: #be123c;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(254, 226, 226, 0.9);
}

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

@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .hero-card {
        max-width: 460px;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-slider,
    .hero-slide,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 64px 0 110px;
    }

    .hero-card img {
        height: 300px;
    }

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

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

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

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

    .detail-panel {
        order: -1;
    }
}
