:root {
    --page-bg: #fff7fb;
    --card-bg: rgba(255, 255, 255, 0.88);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --line-soft: rgba(244, 114, 182, 0.18);
    --brand: #ec4899;
    --brand-dark: #e11d48;
    --brand-soft: #ffe4ef;
    --shadow-soft: 0 18px 50px rgba(190, 24, 93, 0.12);
    --shadow-card: 0 14px 36px rgba(31, 41, 55, 0.10);
    --radius-large: 30px;
    --radius-card: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.16), transparent 30rem),
        linear-gradient(180deg, #fff7fb 0%, #ffffff 38%, #fff7fb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 114, 182, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899, #fb7185);
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.logo-text strong {
    display: block;
    color: var(--brand-dark);
    font-size: 23px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.logo-text span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

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

.main-nav a,
.mobile-menu a {
    color: #374151;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a {
    padding: 10px 14px;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.header-search {
    position: relative;
    width: 230px;
}

.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 48px 0 18px;
    color: #374151;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.26);
    border-radius: 999px;
    outline: none;
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.08);
}

.header-search input:focus {
    border-color: var(--brand);
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #fb7185);
    border: 0;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    color: var(--brand-dark);
    background: #fff0f6;
    border: 0;
    border-radius: 14px;
    font-size: 22px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(244, 114, 182, 0.16);
    background: #ffffff;
}

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

.mobile-menu-inner {
    display: grid;
    gap: 12px;
    padding: 16px 0 20px;
}

.mobile-menu a {
    padding: 12px 16px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background: linear-gradient(135deg, #fff1f7, #fff7ed);
}

.hero-slides {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
    transform: scale(1.015);
}

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

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 247, 251, 0.98) 0%, rgba(255, 247, 251, 0.88) 42%, rgba(255, 247, 251, 0.38) 100%),
        radial-gradient(circle at 72% 28%, rgba(236, 72, 153, 0.30), transparent 30rem);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    gap: 54px;
    align-items: center;
    padding: 88px 0 78px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(244, 114, 182, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.10);
}

.hero-title {
    margin: 22px 0 18px;
    color: #111827;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-title span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, #ec4899, #fb7185, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-summary {
    max-width: 730px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #be185d;
    background: #ffe4ef;
    border: 1px solid rgba(244, 114, 182, 0.24);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

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

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #fb7185);
    box-shadow: 0 18px 30px rgba(236, 72, 153, 0.28);
}

.btn-secondary {
    color: #be185d;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(244, 114, 182, 0.30);
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.70);
    border-radius: 38px;
    background: linear-gradient(135deg, #fce7f3, #fff7ed);
    box-shadow: 0 34px 80px rgba(190, 24, 93, 0.22);
    transform: rotate(2deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.hero-mini-card {
    position: absolute;
    left: -34px;
    bottom: 38px;
    width: min(260px, 72%);
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.94), rgba(225, 29, 72, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(190, 24, 93, 0.28);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.hero-mini-card span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    background: rgba(190, 24, 93, 0.22);
    border: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, #ec4899, #fb7185);
    border-radius: 999px;
}

.section {
    padding: 74px 0;
}

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

.section-title {
    margin: 10px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.34);
    box-shadow: 0 24px 60px rgba(190, 24, 93, 0.16);
}

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

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

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

.poster-badge,
.poster-type,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.88);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-type {
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    color: #be185d;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: rgba(236, 72, 153, 0.88);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-card-body {
    padding: 16px 16px 18px;
}

.card-meta {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--brand-dark);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-card,
.page-link-card {
    display: block;
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.page-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(190, 24, 93, 0.14);
}

.category-card strong,
.page-link-card strong {
    display: block;
    color: #111827;
    font-size: 20px;
    margin-bottom: 8px;
}

.category-card span,
.page-link-card span {
    color: var(--text-muted);
    line-height: 1.7;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 64px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.rank-num {
    color: transparent;
    background: linear-gradient(135deg, #ec4899, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 32px;
    font-weight: 950;
    text-align: center;
}

.rank-poster {
    overflow: hidden;
    border-radius: 14px;
    background: #fce7f3;
}

.rank-poster img {
    width: 74px;
    aspect-ratio: 2 / 2.85;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

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

.rank-score {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #fb7185);
    border-radius: 999px;
    font-weight: 950;
}

.page-hero {
    padding: 62px 0 34px;
}

.page-hero-card {
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 28rem),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 114, 182, 0.20);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 10px 0 14px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    color: #374151;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.26);
    border-radius: 15px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand);
}

.empty-message {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 24px;
}

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

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    color: #be185d;
    background: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.26);
    border-radius: 999px;
    font-weight: 850;
}

.pagination .current {
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #fb7185);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 64px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 247, 251, 0.98), rgba(255, 247, 251, 0.86), rgba(255, 247, 251, 0.50)),
        radial-gradient(circle at 75% 30%, rgba(236, 72, 153, 0.22), transparent 28rem);
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fff7ed);
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    box-shadow: 0 34px 80px rgba(190, 24, 93, 0.22);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 2.85;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0 16px;
    color: #111827;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-lead {
    max-width: 800px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.player-section {
    padding: 66px 0 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    background: #111827;
    border: 10px solid rgba(255, 255, 255, 0.74);
    border-radius: 32px;
    box-shadow: 0 34px 80px rgba(17, 24, 39, 0.22);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.40), rgba(190, 24, 93, 0.44));
    border: 0;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #fb7185);
    border-radius: 50%;
    font-size: 34px;
    box-shadow: 0 22px 42px rgba(236, 72, 153, 0.34);
}

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

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

.story-card,
.side-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(244, 114, 182, 0.16);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.story-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
}

.story-card p,
.side-card p {
    color: #4b5563;
    line-height: 1.9;
}

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

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #4b5563;
    border-bottom: 1px solid rgba(244, 114, 182, 0.12);
    padding-bottom: 10px;
}

.detail-list strong {
    color: #111827;
}

.site-footer {
    margin-top: 70px;
    padding: 44px 0;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.84);
    border-top: 1px solid rgba(244, 114, 182, 0.16);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

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

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

@media (max-width: 1024px) {
    .main-nav,
    .header-search {
        display: none;
    }

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

    .hero-content,
    .detail-layout,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster-wrap {
        max-width: 420px;
    }

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

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

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel,
    .hero-slides {
        min-height: 760px;
    }

    .hero-content {
        gap: 28px;
        padding: 54px 0 84px;
    }

    .hero-mini-card {
        left: 14px;
        bottom: 18px;
    }

    .section {
        padding: 50px 0;
    }

    .section-head,
    .footer-inner {
        display: grid;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .ranking-item {
        grid-template-columns: 44px 62px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        width: fit-content;
        min-width: 58px;
    }

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

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

    .story-card,
    .side-card {
        padding: 22px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .all-page-grid {
        grid-template-columns: 1fr;
    }

    .logo-text span {
        display: none;
    }
}
