:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #db2777;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --card: #ffffff;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #fff7f9 38%, #f9fafb 100%);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark,
.footer-brand span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 25px rgba(225, 29, 72, 0.25);
}

.brand-name {
    font-size: 22px;
    background: linear-gradient(135deg, var(--rose-dark), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--rose);
}

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

.nav-search input,
.page-search input {
    min-width: 250px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 10px 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.page-search input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.nav-search button,
.page-search button {
    border: 0;
    border-radius: 14px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    cursor: pointer;
    font-weight: 750;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff1f2;
    color: var(--rose-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 14px;
    flex-wrap: wrap;
    font-weight: 700;
}

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

main {
    min-height: 60vh;
}

.hero {
    max-width: 1280px;
    margin: 26px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    gap: 24px;
}

.hero-stage {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 1s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(225, 29, 72, 0.45), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 46%, rgba(15, 23, 42, 0.15) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.85), transparent 45%);
}

.hero-content {
    position: absolute;
    left: clamp(26px, 6vw, 74px);
    bottom: clamp(28px, 7vw, 82px);
    width: min(690px, calc(100% - 54px));
    color: #fff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p,
.lead-text {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-actions,
.hero-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.hero-mini-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 30px rgba(225, 29, 72, 0.3);
}

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

.ghost-btn.light {
    color: var(--rose-dark);
    border-color: rgba(225, 29, 72, 0.22);
    background: #fff;
}

.primary-btn:hover,
.ghost-btn:hover,
.hero-mini-actions a:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.hero-rail {
    padding: 24px;
    border: 1px solid rgba(244, 63, 94, 0.14);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 242, 0.92)),
        radial-gradient(circle at 100% 0%, rgba(219, 39, 119, 0.18), transparent 35%);
    box-shadow: var(--shadow);
}

.hero-rail .section-kicker,
.section-head .section-kicker,
.page-hero .section-kicker,
.detail-intro .section-kicker {
    color: var(--rose-dark);
    background: #fff1f2;
}

.hero-rail h2,
.section-head h2,
.category-card h2,
.page-hero h1,
.detail-intro h1 {
    margin: 12px 0 10px;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.hero-rail h2,
.page-hero h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.hero-rail p {
    color: #4b5563;
}

.hero-mini-actions a {
    color: var(--rose-dark);
    background: #fff;
    border: 1px solid rgba(225, 29, 72, 0.18);
}

.mini-grid,
.side-grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.content-section,
.split-section,
.category-overview-grid,
.detail-layout,
.breadcrumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

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

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 40px);
}

.section-head a {
    color: var(--rose-dark);
    font-weight: 800;
}

.compact-head {
    align-items: center;
    margin-bottom: 16px;
}

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

.category-card {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
    color: var(--rose-dark);
    font-weight: 850;
}

.category-card h2 {
    font-size: 24px;
}

.category-card p,
.lead-text {
    color: #6b7280;
    margin: 0;
}

.category-samples {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
    font-size: 14px;
}

.category-samples a {
    color: #4b5563;
}

.category-samples a:hover {
    color: var(--rose);
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.96);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #4c0519);
}

.poster-frame img,
.detail-poster img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card-link:hover .play-mark {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    font-size: 12px;
    font-weight: 900;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    flex: 1;
}

.movie-card-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body strong:hover {
    color: var(--rose);
}

.movie-eyebrow,
.tag-line {
    color: #6b7280;
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
}

.compact .movie-card-body strong {
    font-size: 15px;
}

.compact .movie-card-body {
    padding: 12px;
}

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

.rank-panel {
    border-radius: 28px;
    padding: 22px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
}

.rank-panel .section-kicker {
    color: #fecdd3;
    background: rgba(225, 29, 72, 0.24);
}

.rank-panel .section-head a,
.rank-panel .rank-meta {
    color: #fecdd3;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-row-link {
    display: grid;
    grid-template-columns: 44px 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row-link:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(3px);
}

.rank-number {
    font-size: 22px;
    color: #fb7185;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    width: 64px;
    height: 86px;
    border-radius: 14px;
    overflow: hidden;
    background: #1f2937;
}

.rank-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.rank-copy span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.rank-meta {
    font-size: 13px;
    white-space: nowrap;
}

.page-hero {
    max-width: 1280px;
    margin: 26px auto 0;
    padding: 74px 24px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(244, 63, 94, 0.55), transparent 32%),
        linear-gradient(135deg, #111827 0%, #4c0519 58%, #831843 100%);
    box-shadow: var(--shadow);
}

.simple-hero,
.category-hero,
.rank-hero,
.search-hero {
    width: calc(100% - 48px);
}

.category-overview-grid {
    display: grid;
    gap: 28px;
}

.category-block {
    border-radius: 28px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.96);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.ranking-page {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.big-rank .rank-row-link {
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(229, 231, 235, 0.9);
}

.big-rank .rank-copy span {
    color: #6b7280;
}

.big-rank .rank-meta {
    color: var(--rose-dark);
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

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

.page-search {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    max-width: 720px;
}

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

.empty-state {
    display: none;
    padding: 18px 20px;
    border-radius: 16px;
    color: #9f1239;
    background: #fff1f2;
    font-weight: 750;
}

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

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--rose-dark);
    font-weight: 750;
}

.detail-layout {
    padding-top: 18px;
}

.detail-hero-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    padding: 28px;
    border-radius: 34px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.95);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #111827, #4c0519);
}

.detail-intro h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-intro p {
    color: #4b5563;
    font-size: 18px;
}

.detail-meta,
.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span,
.tag-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 14px;
}

.tag-pills span {
    color: #9f1239;
    background: #fff1f2;
}

.player-section,
.detail-copy {
    margin-top: 28px;
    padding: 26px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at 50% 42%, rgba(225, 29, 72, 0.38), transparent 28%),
        rgba(2, 6, 23, 0.42);
    cursor: pointer;
    font-weight: 900;
    font-size: 20px;
}

.player-overlay.is-hidden {
    display: none;
}

.overlay-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 35px rgba(225, 29, 72, 0.38);
}

.detail-copy h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-copy p {
    color: #374151;
    font-size: 17px;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    margin-top: 70px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
    gap: 36px;
}

.footer-brand {
    color: #fff;
    font-size: 20px;
}

.footer-grid p {
    max-width: 520px;
    color: #9ca3af;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #9ca3af;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    color: #9ca3af;
}

@media (max-width: 1120px) {
    .hero,
    .split-section,
    .ranking-page {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 520px;
    }

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

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

    .sticky-panel {
        position: static;
    }
}

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

    .nav-toggle {
        display: inline-flex;
    }

    .hero-stage {
        min-height: 470px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

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

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

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

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

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

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

@media (max-width: 620px) {
    .nav-shell,
    .content-section,
    .split-section,
    .category-overview-grid,
    .detail-layout,
    .breadcrumbs {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding: 0 16px;
    }

    .hero-stage,
    .hero-rail,
    .page-hero,
    .detail-hero-card,
    .player-section,
    .detail-copy,
    .category-block {
        border-radius: 22px;
    }

    .simple-hero,
    .category-hero,
    .rank-hero,
    .search-hero {
        width: calc(100% - 32px);
    }

    .page-hero {
        padding: 48px 18px;
    }

    .hero-stage {
        min-height: 430px;
    }

    .hero-content {
        left: 20px;
        bottom: 24px;
        width: calc(100% - 40px);
    }

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

    .hero-dots {
        left: 20px;
        right: auto;
        bottom: 16px;
    }

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

    .rank-row-link {
        grid-template-columns: 34px 54px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .page-search {
        flex-direction: column;
    }

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

@media (max-width: 420px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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