:root {
    --bg: #fff7ed;
    --bg-soft: #fdf2f8;
    --surface: #ffffff;
    --surface-strong: #fffaf5;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3d6c6;
    --pink: #db2777;
    --pink-soft: #fce7f3;
    --orange: #f97316;
    --yellow: #facc15;
    --dark: #030712;
    --shadow: 0 24px 60px rgba(219, 39, 119, 0.12);
    --radius: 22px;
}

* {
    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(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(244, 114, 182, 0.22), transparent 34rem),
        radial-gradient(circle at 90% 4%, rgba(251, 146, 60, 0.22), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 44%, #fdf2f8 100%);
    min-height: 100vh;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 207, 232, 0.8);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(219, 39, 119, 0.28);
}

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

.nav-link {
    padding: 10px 14px;
    color: #4b5563;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink);
    background: var(--pink-soft);
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid #fbcfe8;
    background: white;
    border-radius: 999px;
    overflow: hidden;
    min-width: 250px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.header-search input,
.hero-search input,
.inline-filter input,
.search-panel input,
.search-panel select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.header-search input {
    width: 100%;
    padding: 10px 14px;
}

.header-search button,
.hero-search button,
.inline-filter button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    padding: 10px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--pink-soft);
    border-radius: 14px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--pink);
    border-radius: 2px;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: white;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease, transform 0.85s ease;
}

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

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 24%, rgba(236, 72, 153, 0.22), transparent 23rem),
        linear-gradient(180deg, transparent 52%, rgba(3, 7, 18, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-left: max(24px, calc((100vw - 1240px) / 2));
    padding: 86px 24px 146px 0;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

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

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

.hero-meta span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 16px 34px rgba(219, 39, 119, 0.32);
}

.ghost-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-4px);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 30px;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: white;
}

.hero-search {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 40px));
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.hero-search input {
    flex: 1;
    padding: 17px 22px;
    color: var(--text);
}

.hero-search button {
    padding-left: 24px;
    padding-right: 24px;
}

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.alt-section {
    max-width: 1280px;
}

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

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

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-head > a {
    flex: 0 0 auto;
    color: var(--pink);
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--pink-soft);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: #f9a8d4;
    box-shadow: var(--shadow);
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h3 a:hover {
    color: var(--pink);
}

.card-meta,
.card-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.card-desc {
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #9d174d;
}

.tag-row span {
    background: var(--pink-soft);
    border-color: #fbcfe8;
    font-size: 12px;
}

.compact-card .card-body h3 {
    font-size: 17px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.9));
    border: 1px solid rgba(251, 207, 232, 0.85);
    box-shadow: 0 16px 42px rgba(219, 39, 119, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 24px;
    font-weight: 900;
}

.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.tile-glow {
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.28), transparent 70%);
}

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

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px 72px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 207, 232, 0.84);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.rank-cover {
    display: block;
    width: 72px;
    height: 92px;
    overflow: hidden;
    border-radius: 14px;
    background: #fce7f3;
}

.rank-item h3 {
    margin: 0;
    font-size: 17px;
}

.rank-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.side-panel,
.side-card {
    border-radius: var(--radius);
    border: 1px solid rgba(251, 207, 232, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    padding: 24px;
}

.side-panel {
    position: sticky;
    top: 94px;
}

.side-panel h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

.side-panel a {
    display: block;
    padding: 13px 0;
    color: var(--pink);
    border-top: 1px solid #fce7f3;
    font-weight: 800;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 24px;
    border-radius: 0 0 38px 38px;
    color: white;
    background:
        radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.26), transparent 24rem),
        linear-gradient(135deg, #111827, #db2777 68%, #f97316);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.inline-filter,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.inline-filter input,
.search-panel input,
.search-panel select {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: white;
    color: var(--text);
    border: 1px solid #fbcfe8;
}

.inline-filter button {
    min-height: 48px;
    border-radius: 999px;
}

.search-input-large {
    min-width: min(620px, 100%);
}

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

.rank-extra-grid {
    margin-top: 36px;
}

.breadcrumb {
    max-width: 1240px;
    margin: 0 auto 20px;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

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

.detail-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 28px 80px rgba(3, 7, 18, 0.25);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #030712;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.2), rgba(3, 7, 18, 0.68));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 46px rgba(219, 39, 119, 0.42);
    font-size: 32px;
    padding-left: 5px;
}

.detail-article {
    margin-top: 26px;
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 207, 232, 0.9);
    box-shadow: var(--shadow);
}

.detail-article h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.lead-text {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    color: #9d174d;
    background: var(--pink-soft);
    border-color: #fbcfe8;
}

.detail-tags span {
    color: #c2410c;
    background: #ffedd5;
    border-color: #fed7aa;
}

.detail-article h2 {
    margin: 30px 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.detail-article p {
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.poster-xl {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
    box-shadow: var(--shadow);
}

.side-card p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #fce7f3;
}

.side-card strong {
    color: var(--muted);
}

.side-card span,
.side-card a {
    text-align: right;
    font-weight: 800;
}

.related-section {
    padding-bottom: 74px;
}

.site-footer {
    margin-top: 80px;
    background: #111827;
    color: white;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

    .detail-side,
    .side-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 66px;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid #fbcfe8;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-search {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        margin-left: 0;
        padding: 100px 24px 150px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .detail-article {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .page-hero,
    .detail-layout,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 15px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 36px;
    }

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

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
        min-height: 48px;
    }

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

    .rank-item {
        grid-template-columns: 38px 64px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 34px;
        height: 34px;
    }

    .rank-cover {
        width: 64px;
        height: 84px;
    }
}
