:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #ec4899;
    --soft-rose: #fff1f2;
    --soft-pink: #fdf2f8;
    --text: #111827;
    --muted: #6b7280;
    --line: #f1f5f9;
    --card: #ffffff;
    --shadow: 0 22px 55px rgba(225, 29, 72, 0.12);
    --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    color-scheme: light;
}

* {
    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;
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 42%, #fff1f2 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #e11d48, #ec4899);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.logo-text {
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.primary-nav a {
    position: relative;
    padding: 22px 0;
    transition: color 0.2s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 16px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--rose);
    transition: width 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--rose);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    color: var(--rose-dark);
}

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

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

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

.page-main {
    min-height: 65vh;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 12%, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(115deg, #fff1f2 0%, #fdf2f8 48%, #ffe4e6 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: radial-gradient(circle at 2px 2px, rgba(244, 63, 94, 0.25) 1px, transparent 0);
    background-size: 36px 36px;
}

.hero-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 620px;
    padding: 78px 22px 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: 44px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.10);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.gradient-text {
    display: block;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--rose), var(--pink), #be123c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin: 24px 0 0;
    max-width: 720px;
    color: #4b5563;
    font-size: 19px;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.26);
}

.btn-ghost {
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(225, 29, 72, 0.28);
}

.hero-search {
    margin-top: 30px;
    display: flex;
    max-width: 620px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.hero-search input,
.search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.hero-search input {
    padding: 0 16px;
}

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

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
}

.hero-slide-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 30px;
    z-index: 2;
    color: #ffffff;
}

.hero-slide-content h2 {
    margin: 10px 0 10px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

.slide-tag {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 750;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    padding: 0;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 58px 22px;
}

.section-compact {
    padding-top: 34px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 720px;
}

.text-link {
    color: var(--rose-dark);
    font-weight: 800;
}

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

.category-card {
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f8fafc;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.70));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.92);
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.26);
}

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

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

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

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

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

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: #6b7280;
    background: #f8fafc;
}

.tag-pill {
    color: var(--rose-dark);
    background: #fff1f2;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.rank-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.page-hero {
    background: linear-gradient(115deg, var(--rose), var(--pink));
    color: #ffffff;
}

.page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 22px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.12;
}

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

.filter-panel {
    margin-bottom: 26px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 190px));
    gap: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    width: 100%;
    border: 1px solid #ffe4e6;
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
    color: #374151;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

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

.breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 22px 0;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 22px 58px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.88fr);
    gap: 28px;
    align-items: start;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button-core {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    font-size: 28px;
}

.player-overlay strong {
    font-size: 18px;
    letter-spacing: 0.04em;
}

.detail-panel,
.side-panel {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-panel {
    margin-top: 24px;
    padding: 30px;
}

.detail-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.lead {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 18px;
}

.content-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.content-block h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.content-block p {
    margin: 0;
    color: #4b5563;
}

.side-panel {
    padding: 20px;
}

.side-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #f8fafc;
}

.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-title {
    margin: 22px 0 12px;
    font-size: 20px;
}

.related-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7f9;
    transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
    transform: translateX(3px);
    background: #fff1f2;
}

.related-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.25;
}

.related-item span {
    color: #6b7280;
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid #ffe4e6;
    background: linear-gradient(180deg, #ffffff, #fff1f2);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #6b7280;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

@media (max-width: 1060px) {
    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-slider {
        min-height: 460px;
    }

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

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

    .side-panel {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .side-title {
        margin-top: 0;
    }
}

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-inner {
        padding-top: 50px;
    }

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

    .hero-search input {
        min-height: 44px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .header-inner {
        min-height: 62px;
        padding: 0 16px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero-inner,
    .section,
    .page-hero-inner,
    .detail-wrap,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-slider {
        min-height: 410px;
        border-radius: 26px;
    }

    .hero-slide-content {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .hero-slide-content h2 {
        font-size: 25px;
    }

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

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

    .detail-panel {
        padding: 22px;
    }

    .side-panel {
        display: block;
    }

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