:root {
    --red: #ef4444;
    --orange: #f97316;
    --pink: #ec4899;
    --rose: #fff1f2;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(255, 255, 255, 0.22);
    --shadow: 0 24px 60px rgba(127, 29, 29, 0.16);
}

* {
    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);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fef2f2 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(127, 29, 29, 0.12);
}

.nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
    box-shadow: 0 14px 26px rgba(239, 68, 68, 0.28);
    font-size: 16px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #374151;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--red);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #374151;
    background: #fff1f2;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #fee2e2;
    padding: 10px 16px 16px;
    background: #ffffff;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav a:hover {
    color: var(--red);
    background: #fff1f2;
}

.hero-carousel {
    position: relative;
    height: min(74vh, 650px);
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #7f1d1d;
}

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

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

.hero-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.62fr);
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    animation: fadeUp 0.7s ease both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-weight: 750;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero-copy h2 {
    font-size: clamp(36px, 5vw, 64px);
}

.hero-copy p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

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

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

.btn-primary {
    color: var(--red);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.btn-gradient {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.25);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid var(--line);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 48%);
}

.hero-controls {
    position: absolute;
    right: 5vw;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 12px;
}

.hero-control {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.section {
    padding: 76px 0 0;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #b91c1c;
    background: linear-gradient(90deg, #fee2e2, #ffedd5);
    font-weight: 800;
}

.section-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.05em;
    font-weight: 950;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 26px 58px rgba(127, 29, 29, 0.2);
}

.poster-link {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-link::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 48px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--red);
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.32);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.card-title a:hover {
    color: var(--red);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff1f2;
    color: #b91c1c;
    font-weight: 700;
}

.card-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    min-height: 178px;
    padding: 26px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #fb7185, #f97316, #ef4444);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f43f5e, #ec4899, #fb923c);
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 65px rgba(127, 29, 29, 0.24);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 950;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    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: 58px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(127, 29, 29, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(127, 29, 29, 0.16);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-size: 18px;
    font-weight: 950;
}

.rank-item img {
    width: 92px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    background: #fee2e2;
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.page-hero {
    padding: 92px 0;
    background-image: linear-gradient(110deg, rgba(127, 29, 29, 0.82), rgba(249, 115, 22, 0.68), rgba(236, 72, 153, 0.56));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -0.06em;
    font-weight: 950;
}

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

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(127, 29, 29, 0.1);
}

.search-input {
    flex: 1 1 280px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.filter-chip {
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    color: #b91c1c;
    background: #fff1f2;
    font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.detail-hero {
    padding: 54px 0 70px;
    background-image: linear-gradient(115deg, rgba(127, 29, 29, 0.92), rgba(249, 115, 22, 0.76), rgba(236, 72, 153, 0.62));
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
    background: rgba(255, 255, 255, 0.14);
}

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

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5.6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.detail-copy p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.85;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.25);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
    cursor: pointer;
}

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

.play-bubble {
    display: inline-grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    color: var(--red);
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    padding-left: 6px;
}

.content-panel {
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(127, 29, 29, 0.11);
}

.content-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 950;
}

.content-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.9;
}

.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 40;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-top:hover {
    transform: translateY(-3px);
}

.site-footer {
    margin-top: 86px;
    color: #ffffff;
    background: linear-gradient(90deg, #7f1d1d, #7c2d12, #831843);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
    padding: 48px 0;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 16px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid li {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px 0 28px;
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
}

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

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

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

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-carousel {
        min-height: 720px;
        height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 58px 0 110px;
    }

    .hero-poster {
        max-width: 300px;
        transform: none;
    }

    .section-head {
        display: block;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .logo {
        font-size: 21px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 39px;
    }

    .hero-copy p,
    .detail-copy p,
    .page-hero p {
        font-size: 16px;
    }

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

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

    .rank-item img {
        width: 82px;
    }

    .content-panel {
        padding: 22px;
    }
}
