* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --rose: #e11d48;
    --rose-dark: #be123c;
    --pink: #db2777;
    --amber: #f59e0b;
    --green: #10b981;
    --blue: #2563eb;
    --text: #111827;
    --muted: #6b7280;
    --line: #ffe4e6;
    --soft: #fff1f2;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

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(--text);
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 48%, #fffbeb 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon,
.footer-brand span {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #fb7185, #ec4899);
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.24);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    color: var(--rose);
    font-size: 22px;
    font-weight: 900;
}

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

main {
    padding-top: 72px;
}

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

.hero {
    min-height: 600px;
    transition: background-image 0.6s ease;
}

.hero-layer,
.detail-cover-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(236, 72, 153, 0.9) 48%, rgba(245, 158, 11, 0.88));
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(0deg, #fff1f2, rgba(255, 241, 242, 0));
}

.hero-inner,
.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 46px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    margin: 0 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 em {
    color: #fde68a;
    font-style: normal;
}

.hero-desc,
.page-hero p,
.detail-one-line {
    max-width: 740px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

.primary-btn,
.glass-btn,
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 52px;
    padding: 0 28px;
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.primary-btn:hover,
.small-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.18);
}

.glass-btn {
    min-height: 52px;
    padding: 0 26px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-panel {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.06));
}

.hero-panel div {
    padding: 22px;
    color: #ffffff;
}

.hero-panel strong {
    font-size: 22px;
}

.hero-panel p {
    margin: 8px 0 0;
    line-height: 1.7;
    color: rgba(255,255,255,0.86);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.52);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.search-band {
    position: relative;
    z-index: 4;
    width: min(980px, calc(100% - 32px));
    margin: -42px auto 0;
}

.inner-search {
    margin-top: -34px;
}

.search-box {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
    border: 1px solid #ffe4e6;
}

.search-box label {
    display: block;
    margin-bottom: 10px;
    color: var(--rose);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 54px;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    padding: 0 18px;
    outline: none;
    font-size: 16px;
    background: #fffafa;
}

.search-box input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.content-section,
.category-preview,
.detail-body,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.soft-green,
.soft-rose {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
}

.soft-green {
    background: linear-gradient(135deg, #ecfdf5, #ffffff 48%, #eff6ff);
}

.soft-rose {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

.section-title {
    justify-content: flex-start;
}

.section-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.2);
}

.section-title h2,
.preview-head h2,
.story-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.section-title p,
.preview-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fda4af;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

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

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

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

.type-badge,
.rank-badge,
.poster-meta {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.type-badge {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.poster-meta {
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08) 55%, rgba(15, 23, 42, 0));
    opacity: 0.85;
}

.play-mark {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.92);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    background: rgba(255,255,255,0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 18px;
}

.card-meta {
    margin: 0 0 8px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
}

.card-body h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--rose);
}

.card-desc {
    min-height: 52px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.rank-num {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rank-cover img {
    width: 96px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: #fff1f2;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

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

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 800;
}

.small-btn {
    min-height: 40px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    white-space: nowrap;
}

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

.category-card a {
    position: relative;
    min-height: 210px;
    display: flex;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.category-bg,
.category-overlay {
    position: absolute;
    inset: 0;
}

.category-bg {
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transition: transform 0.35s ease;
}

.category-card:hover .category-bg {
    transform: scale(1.08);
}

.category-overlay {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.78), rgba(219, 39, 119, 0.82));
}

.category-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #ffffff;
}

.category-content strong {
    font-size: 22px;
}

.category-content em {
    margin-top: 10px;
    font-style: normal;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

.category-content b {
    margin-top: 16px;
    font-size: 14px;
}

.cta-section {
    width: min(860px, calc(100% - 32px));
    margin: 72px auto;
    padding: 64px 24px;
    text-align: center;
    border-radius: 36px;
    background: linear-gradient(135deg, #ffe4e6, #fce7f3, #fef3c7);
    box-shadow: var(--shadow);
}

.cta-section h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
}

.cta-section p {
    margin: 16px 0 28px;
    color: var(--muted);
    font-size: 18px;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(236, 72, 153, 0.92), rgba(245, 158, 11, 0.9));
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 64px);
}

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

.quick-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--rose);
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    font-weight: 800;
}

.sticky-search {
    position: sticky;
    top: 84px;
}

.detail-hero {
    min-height: 640px;
}

.detail-cover-layer {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(225, 29, 72, 0.78), rgba(236, 72, 153, 0.38));
    backdrop-filter: blur(4px);
}

.detail-inner {
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 640px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
    background: rgba(255,255,255,0.18);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.24);
    font-weight: 800;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.24);
}

.player-section {
    padding-bottom: 28px;
}

.player {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.42), rgba(3, 7, 18, 0.82));
    cursor: pointer;
}

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

.player-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose);
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 22px 46px rgba(0,0,0,0.28);
}

.player-cover strong {
    max-width: min(720px, calc(100% - 40px));
    font-size: clamp(24px, 5vw, 44px);
    text-align: center;
}

.player-cover em {
    font-style: normal;
    font-weight: 900;
    color: #fde68a;
}

.player-status {
    position: absolute;
    left: 20px;
    bottom: 16px;
    z-index: 3;
    margin: 0;
    color: #ffffff;
    font-weight: 800;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 28px;
}

.story-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #fce7f3;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.story-card p {
    margin: 16px 0 0;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fce7f3;
}

.empty-state.show {
    display: block;
}

.site-footer {
    margin-top: 64px;
    background: linear-gradient(135deg, #fff1f2, #fdf2f8, #fffbeb);
    border-top: 1px solid #ffe4e6;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
}

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

.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 10px 0;
    color: #4b5563;
    font-weight: 700;
}

.footer-grid a:hover {
    color: var(--rose);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid #ffe4e6;
    color: var(--muted);
    text-align: center;
}

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

@media (max-width: 1100px) {
    .card-grid,
    .small-grid,
    .featured-grid {
        grid-template-columns: repeat(3, 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-flex;
        align-items: center;
        justify-content: center;
    }

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

    .mobile-nav .nav-link {
        padding: 12px 14px;
        border-radius: 16px;
        background: #fff7f7;
    }

    .hero-inner,
    .detail-inner {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    .hero-panel,
    .detail-poster {
        display: none;
    }

    .card-grid,
    .small-grid,
    .featured-grid,
    .category-grid,
    .detail-body,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 72px minmax(0, 1fr);
    }

    .rank-cover img {
        width: 72px;
    }

    .rank-row .small-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .brand-text em {
        display: none;
    }

    .hero,
    .detail-hero {
        min-height: 520px;
    }

    .hero-inner,
    .detail-inner {
        min-height: 520px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .glass-btn {
        width: 100%;
    }

    .card-grid,
    .small-grid,
    .featured-grid,
    .category-grid,
    .detail-body,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-num {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 13px;
    }

    .rank-info p,
    .rank-meta {
        display: none;
    }
}
