:root {
    --red-900: #6b0010;
    --red-800: #8b0019;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --rose-600: #e11d48;
    --gold: #facc15;
    --ink: #1f1720;
    --muted: #6b5f65;
    --paper: #fff7f7;
    --card: #ffffff;
    --line: rgba(127, 29, 29, 0.14);
    --shadow: 0 18px 45px rgba(127, 29, 29, 0.16);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(254, 226, 226, 0.9), transparent 34rem),
        linear-gradient(180deg, #fffafa 0%, #fff7f7 46%, #ffffff 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--red-700), var(--red-800), var(--rose-600));
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.24);
}

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--red-700);
    background: #fff;
    box-shadow: inset 0 -8px 16px rgba(220, 38, 38, 0.12);
}

.brand-name {
    white-space: nowrap;
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search-panel input,
.filter-panel input {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 11px 16px;
    min-width: 190px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.hero-search-panel input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.mobile-search button,
.hero-search-panel button,
.primary-btn,
.ghost-btn,
.section-more {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.nav-search button,
.mobile-search button,
.hero-search-panel button,
.primary-btn {
    color: var(--red-800);
    background: linear-gradient(135deg, #fff, #ffe4e6);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.18);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.nav-search button:hover,
.mobile-search button:hover,
.hero-search-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 10px 18px 18px;
    background: var(--red-800);
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

main {
    min-height: 60vh;
}

.hero {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 22px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--red-900);
    box-shadow: 0 30px 70px rgba(127, 29, 29, 0.26);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(250, 204, 21, 0.25), transparent 18rem),
        linear-gradient(0deg, rgba(43, 0, 8, 0.88), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 40px;
    padding: 72px 76px 96px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--rose-600);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 900;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.archive-hero .eyebrow,
.ranking-hero .eyebrow {
    color: #ffe4e6;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.hero-tags,
.detail-meta,
.tag-row,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span,
.detail-hero .tag-row span {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    height: 470px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-controls {
    position: absolute;
    left: 76px;
    right: 76px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dots button.active {
    opacity: 1;
    background: #fff;
}

.hero-search-panel {
    margin: -36px auto 0;
    position: relative;
    z-index: 5;
    width: calc(100% - 64px);
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.98), rgba(136, 19, 55, 0.98));
    box-shadow: var(--shadow);
}

.hero-search-panel form {
    display: flex;
    gap: 10px;
}

.hero-search-panel input {
    flex: 1;
    min-width: 0;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.content-section {
    max-width: 1280px;
    margin: 44px auto 0;
    padding: 0 22px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-more {
    color: #fff;
    background: linear-gradient(135deg, var(--red-700), var(--rose-600));
}

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

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

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

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

.movie-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.poster-link img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--red-700);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 14px;
}

.card-meta {
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 900;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(225, 29, 72, 0.55);
}

.movie-card h3,
.rank-card h3 {
    margin: 7px 0 6px;
    line-height: 1.25;
    font-size: 17px;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.wide-links a:hover,
.category-tile a:hover h3 {
    color: var(--red-700);
}

.movie-card p,
.rank-card p,
.category-tile p,
.category-wide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    color: var(--red-700);
    background: #fff1f2;
}

.red-section {
    border-radius: 30px;
    padding-top: 36px;
    padding-bottom: 36px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.25), transparent 20rem),
        linear-gradient(135deg, var(--red-700), var(--red-900));
    box-shadow: var(--shadow);
}

.red-section .eyebrow,
.red-section h2,
.red-section .section-more {
    color: #fff;
}

.red-section .section-more {
    background: rgba(255, 255, 255, 0.16);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 46px 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 140px;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(127, 29, 29, 0.1);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-700), var(--rose-600));
    font-weight: 900;
}

.rank-poster img {
    height: 118px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-meta {
    color: var(--rose-600) !important;
    font-weight: 800;
}

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

.category-tile,
.category-wide-card,
.story-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.08);
}

.category-tile a {
    display: block;
    padding: 24px;
}

.category-icon,
.category-wide-card span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--red-700), var(--rose-600));
    font-weight: 900;
}

.category-tile h3,
.category-wide-card h2 {
    margin: 16px 0 8px;
}

.category-tile div,
.wide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-tile div a,
.wide-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--red-700);
    background: #fff1f2;
    font-size: 13px;
    font-weight: 800;
}

.archive-hero,
.detail-hero {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 60px 44px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at right top, rgba(250, 204, 21, 0.28), transparent 23rem),
        linear-gradient(135deg, var(--red-700), var(--red-900));
    box-shadow: var(--shadow);
}

.archive-hero h1,
.detail-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.archive-hero p:not(.eyebrow),
.detail-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(127, 29, 29, 0.08);
}

.filter-panel input {
    color: var(--ink);
    background: #fff7f7;
    border: 1px solid var(--line);
}

.filter-panel input::placeholder {
    color: #9f8c92;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips button {
    border: 0;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--red-700);
    background: #fff1f2;
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--red-700), var(--rose-600));
}

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

.category-wide-card {
    padding: 22px;
}

.wide-main {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.wide-main h2 {
    margin: 0 0 8px;
}

.breadcrumb {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--red-700);
}

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

.detail-poster img {
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.detail-meta {
    margin-top: 18px;
}

.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin: 18px 0 28px;
}

.player-section {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 22px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #120106;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(18, 1, 6, 0.72), rgba(18, 1, 6, 0.12));
    cursor: pointer;
}

.player-cover span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--red-700);
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.player-cover strong {
    font-size: 24px;
}

.player-box.is-playing .player-cover {
    display: none;
}

.detail-section {
    display: grid;
    gap: 18px;
}

.story-card {
    padding: 26px;
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.story-card h2:not(:first-child) {
    margin-top: 24px;
}

.story-card p {
    margin: 0;
    color: #4b4146;
    font-size: 17px;
}

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

.detail-nav a {
    padding: 16px 18px;
    border-radius: 18px;
    color: var(--red-700);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.07);
    font-weight: 800;
}

.site-footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(135deg, var(--red-900), #2a0208);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 22px;
}

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

.footer-inner p {
    max-width: 760px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.footer-links a {
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.copyright {
    margin-bottom: 0;
    font-size: 14px;
}

[data-card].hidden {
    display: none;
}

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

    .nav-search {
        margin-left: auto;
    }

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 54px 42px 90px;
    }

    .hero-poster img {
        height: 390px;
    }

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

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

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

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

    .brand-name {
        font-size: 18px;
    }

    .hero,
    .content-section,
    .player-section,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-stage,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        display: block;
        padding: 38px 24px 92px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-summary {
        font-size: 17px;
    }

    .hero-poster {
        width: 180px;
        margin-top: 28px;
    }

    .hero-poster img {
        height: 250px;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
        bottom: 26px;
    }

    .hero-search-panel {
        width: calc(100% - 32px);
    }

    .hero-search-panel form,
    .hero-actions,
    .detail-nav {
        flex-direction: column;
        display: flex;
        align-items: stretch;
    }

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 12px;
    }

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

    .category-grid,
    .category-wide-grid,
    .rank-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

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

    .archive-hero,
    .detail-hero {
        margin-left: 16px;
        margin-right: 16px;
        padding: 36px 24px;
    }

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

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

    .detail-poster img {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .nav-shell {
        padding: 0 14px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero h1,
    .archive-hero h1,
    .detail-hero h1 {
        font-size: 34px;
    }

    .movie-grid,
    .archive-grid,
    .featured-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 36px 76px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-poster img {
        height: 104px;
    }
}
