:root {
    --color-pink: #ec4899;
    --color-pink-dark: #db2777;
    --color-orange: #fb923c;
    --color-yellow: #facc15;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --color-card: #ffffff;
    --shadow-soft: 0 18px 45px rgba(236, 72, 153, 0.14);
    --shadow-card: 0 12px 30px rgba(31, 41, 55, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: linear-gradient(180deg, #fff7ed 0%, #fdf2f8 48%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(244, 114, 182, 0.22);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.10);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-pink-dark);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.30);
}

.brand-text {
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

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

.nav-link:hover {
    color: var(--color-pink);
}

.header-search,
.mobile-search,
.hero-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-field input,
.filter-field select {
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search input {
    width: 190px;
    padding: 10px 15px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button,
.filter-submit,
.filter-reset,
.button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.header-search button,
.mobile-search button,
.search-page-form button,
.filter-submit {
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
}

input:focus,
select:focus {
    border-color: var(--color-pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.16);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(253, 242, 248, 0.9);
}

.menu-button span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: #374151;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(244, 114, 182, 0.20);
}

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

.mobile-nav-link {
    padding: 12px 14px;
    font-weight: 700;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
}

.hero-section,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #f472b6 0%, #fb923c 52%, #fde047 100%);
}

.hero-section {
    padding: 72px 0 86px;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.95) 1px, transparent 0);
    background-size: 34px 34px;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 34px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 8px 24px rgba(123, 63, 0, 0.22);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    margin: 0 0 24px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.75;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #78350f;
    background: rgba(254, 240, 138, 0.92);
}

.section-kicker {
    color: var(--color-pink-dark);
    background: #fce7f3;
}

.hero-search {
    width: min(100%, 560px);
    padding: 8px;
    margin: 26px 0 18px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
}

.hero-search button {
    padding: 14px 22px;
    color: #7c2d12;
    background: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    box-shadow: 0 15px 30px rgba(219, 39, 119, 0.28);
}

.button.secondary {
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.88);
}

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

.hero-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(67, 56, 202, 0.20);
    isolation: isolate;
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:nth-child(2) {
    margin-top: 28px;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 34px 70px rgba(131, 24, 67, 0.32);
}

.hero-card-image,
.poster-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.hero-card-image img,
.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-card:hover img,
.movie-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.poster-wrap.poster-fallback::before,
.hero-card-image.poster-fallback::before,
.detail-poster.poster-fallback::before {
    content: attr(data-fallback-title);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #9d174d;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

.hero-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.76));
}

.hero-card-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 24px;
}

.hero-card-content strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.18;
}

.hero-card-content small,
.hero-meta {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
}

.hero-tag,
.category-pill,
.rank-badge,
.video-source-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    font-weight: 900;
}

.hero-tag {
    padding: 6px 12px;
    color: #713f12;
    background: #facc15;
}

.content-section {
    padding: 66px 0;
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.section-more {
    flex: 0 0 auto;
    color: var(--color-pink-dark);
    font-weight: 900;
}

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

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

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

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

.movie-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid rgba(244, 114, 182, 0.14);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card .poster-wrap {
    aspect-ratio: 1 / 1;
    height: auto;
}

.movie-card-rank .movie-card-link {
    flex-direction: row;
}

.movie-card-rank .poster-wrap {
    flex: 0 0 42%;
    aspect-ratio: 4 / 5;
}

.category-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    color: #fff;
    background: var(--color-pink);
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.28);
}

.movie-card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.movie-card-body strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-desc,
.movie-tags {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

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

.ranking-band,
.categories-band {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.74), rgba(252, 231, 243, 0.74));
}

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

.category-tile {
    display: grid;
    gap: 8px;
    min-height: 120px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile small {
    color: var(--color-pink-dark);
    font-weight: 800;
}

.page-hero {
    padding: 64px 0;
}

.small-hero h1,
.category-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 26px;
    border: 1px solid rgba(244, 114, 182, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

.filter-field {
    display: grid;
    gap: 7px;
}

.filter-field label {
    color: #831843;
    font-size: 13px;
    font-weight: 900;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 12px 14px;
}

.filter-reset {
    padding: 12px 16px;
    color: #831843;
    background: #fce7f3;
}

.filter-count {
    grid-column: 1 / -1;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

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

.category-overview-card a {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.category-thumb-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    height: 92px;
    margin-bottom: 22px;
}

.category-thumb-strip img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    background: #fce7f3;
}

.category-index {
    color: var(--color-pink);
    font-size: 13px;
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 30px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--color-muted);
    line-height: 1.7;
}

.category-overview-card strong {
    color: var(--color-pink-dark);
}

.table-wrap {
    overflow-x: auto;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.ranking-table th,
.ranking-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    white-space: nowrap;
}

.ranking-table th {
    color: #831843;
    background: #fce7f3;
    font-size: 13px;
}

.ranking-table a {
    color: var(--color-pink-dark);
    font-weight: 900;
}

.rank-number {
    color: var(--color-orange);
    font-weight: 900;
}

.search-page-form {
    width: min(100%, 680px);
    padding: 8px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.search-summary {
    margin-bottom: 22px;
    padding: 16px 18px;
    color: #831843;
    font-weight: 900;
    border-radius: 18px;
    background: #fce7f3;
}

.detail-hero {
    padding: 44px 0 66px;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.28);
}

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

.detail-meta-list span,
.tag-row span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 22px;
}

.player-shell,
.detail-article,
.detail-aside,
.narrow-content {
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.player-shell {
    overflow: hidden;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.player-title-row h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.video-source-label {
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
}

.video-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.site-video {
    width: 100%;
    height: 100%;
    background: #111827;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    color: #fff;
    text-align: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(17, 24, 39, 0.72));
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    color: #831843;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
    font-size: 28px;
}

.play-overlay small {
    color: rgba(255, 255, 255, 0.82);
}

.player-status {
    margin: 0;
    padding: 16px 24px;
    color: var(--color-muted);
    background: #fff7ed;
}

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

.detail-article,
.detail-aside,
.narrow-content {
    padding: 28px;
}

.detail-article h2,
.detail-aside h2,
.narrow-content h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.detail-article p,
.narrow-content p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.detail-aside dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-aside dt {
    color: #831843;
    font-weight: 900;
}

.detail-aside dd {
    margin: -8px 0 6px;
    color: #4b5563;
    line-height: 1.6;
}

.prev-next-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
}

.prev-next-row a {
    flex: 1;
    padding: 15px 18px;
    color: #831843;
    font-weight: 900;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.site-footer {
    color: #4b5563;
    background: #fff;
    border-top: 1px solid rgba(244, 114, 182, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 30px;
    padding: 42px 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 900;
    color: #831843;
}

.site-footer p {
    line-height: 1.75;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #6b7280;
    font-weight: 700;
}

.footer-bottom {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #f3f4f6;
}

.is-filtered-out {
    display: none !important;
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

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

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

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

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

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

    .hero-section,
    .page-hero,
    .detail-hero {
        padding: 42px 0;
    }

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

    .hero-card {
        min-height: 310px;
        border-radius: 22px;
    }

    .hero-card:nth-child(2) {
        margin-top: 0;
    }

    .hero-card-content {
        padding: 16px;
    }

    .hero-card-content strong {
        font-size: 19px;
    }

    .section-heading,
    .player-title-row,
    .prev-next-row {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-card-rank .movie-card-link {
        flex-direction: column;
    }

    .movie-card-rank .poster-wrap {
        flex: none;
        aspect-ratio: 1 / 1;
    }

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

    .category-thumb-strip {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }

    .category-thumb-strip img:nth-child(n+4) {
        display: none;
    }

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

    .hero-search button,
    .search-page-form button {
        width: 100%;
    }
}

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

    .header-inner {
        min-height: 64px;
    }

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