
:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --orange: #f97316;
    --purple: #8b5cf6;
    --blue: #38bdf8;
    --green: #10b981;
    --yellow: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3d6e6;
    --shadow: 0 20px 50px rgba(236, 72, 153, 0.14);
    --shadow-strong: 0 28px 70px rgba(31, 41, 55, 0.22);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.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);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.32);
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

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

.desktop-nav a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover {
    color: var(--pink);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.08);
}

.header-search input {
    width: 190px;
    border: none;
    outline: none;
    padding: 8px 10px 8px 14px;
    border-radius: 999px;
    color: var(--text);
}

.header-search button,
.primary-button,
.secondary-button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
    box-shadow: 0 12px 22px rgba(236, 72, 153, 0.22);
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.28);
}

.secondary-button {
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.86);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--pink-dark);
    font-size: 1.6rem;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

.mobile-nav a {
    padding: 10px 0;
    font-weight: 700;
}

.mobile-nav input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.26), transparent 32%),
        radial-gradient(circle at 80% 25%, rgba(249, 115, 22, 0.22), transparent 30%),
        linear-gradient(135deg, #fff1f2, #fff7ed 55%, #fdf2f8);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.28));
    backdrop-filter: blur(1px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.13;
    filter: blur(2px) saturate(1.1);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 58px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--pink-dark);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(236, 72, 153, 0.16);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.1);
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    background: linear-gradient(90deg, var(--pink-dark), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 2.6vw, 2.5rem);
    color: #374151;
}

.hero p {
    margin: 0 0 28px;
    max-width: 680px;
    font-size: 1.12rem;
    line-height: 1.9;
    color: #4b5563;
}

.hero-actions,
.hero-tags,
.filter-row,
.meta-row,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
    color: #374151;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(236, 72, 153, 0.12);
}

.pill.pink {
    color: #fff;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.hero-poster-card {
    position: relative;
    min-height: 470px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(1.5deg);
    background: linear-gradient(135deg, #fce7f3, #fed7aa);
}

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

.hero-poster-card:hover img {
    transform: scale(1.06);
}

.hero-poster-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.82));
    backdrop-filter: blur(8px);
}

.hero-poster-info strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-controls button,
.hero-dot {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    color: var(--pink-dark);
    background: #fff;
    font-weight: 900;
}

.hero-dots {
    display: flex;
    gap: 7px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: #f9a8d4;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange));
}

.page-section {
    padding: 68px 0;
}

.page-section.tight {
    padding: 42px 0;
}

.panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(236, 72, 153, 0.12);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.panel.blue {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(236, 254, 255, 0.86));
}

.panel.purple {
    background: linear-gradient(135deg, rgba(245, 243, 255, 0.9), rgba(253, 242, 248, 0.86));
}

.panel.green {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(240, 253, 250, 0.86));
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.section-heading > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.2);
    font-size: 1.5rem;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.feature-grid,
.video-grid,
.category-grid,
.info-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.video-card,
.feature-card,
.category-card,
.info-card,
.compact-card,
.rank-row {
    position: relative;
}

.video-card > a,
.category-card,
.info-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.video-card > a:hover,
.category-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(236, 72, 153, 0.18);
}

.poster-shell {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
}

.poster-shell::after {
    content: "";
    position: absolute;
    inset: auto 16px 16px 16px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
    z-index: 2;
}

.poster-shell.is-missing::after {
    content: attr(data-title);
}

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

.video-card:hover .poster-shell img,
.feature-card:hover .poster-shell img {
    transform: scale(1.08);
}

.card-poster {
    aspect-ratio: 16 / 10;
}

.poster-large {
    height: 390px;
    border-radius: 24px;
}

.compact-poster {
    width: 126px;
    min-width: 126px;
    height: 82px;
    border-radius: 14px;
}

.rank-poster {
    width: 112px;
    min-width: 112px;
    height: 74px;
    border-radius: 14px;
}

.region-tag,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #374151;
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    right: auto;
    color: #fff;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
}

.card-body {
    padding: 18px;
}

.card-body h3,
.compact-card h3,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p,
.compact-card p,
.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    color: var(--muted);
    font-size: 0.88rem;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.feature-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow-strong);
    background: #111827;
    min-height: 390px;
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.06), rgba(17, 24, 39, 0.82));
}

.feature-content {
    position: absolute;
    inset: auto 0 0;
    padding: 26px;
    color: #fff;
}

.feature-content h3 {
    margin: 14px 0 10px;
    font-size: 1.5rem;
}

.feature-content p {
    color: #f3f4f6;
    line-height: 1.7;
}

.compact-card a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(236, 72, 153, 0.14);
}

.category-card,
.info-card {
    padding: 24px;
}

.category-card .category-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-size: 2rem;
}

.category-card h3,
.info-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.category-card p,
.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.stat-line {
    margin-top: 16px;
    font-weight: 900;
    color: var(--pink-dark);
}

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

.rank-row a {
    display: grid;
    grid-template-columns: 44px 112px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-row a:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.14);
}

.rank-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--orange));
}

.score {
    color: var(--orange);
    font-size: 1.25rem;
}

.catalog-toolbar,
.search-hero {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    border: 1px solid rgba(236, 72, 153, 0.12);
}

.catalog-toolbar input,
.catalog-toolbar select,
.search-hero input,
.search-hero select {
    min-height: 46px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #fff;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.search-hero input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.filter-row input {
    flex: 1 1 260px;
}

.filter-row select {
    flex: 0 0 150px;
}

.count-text {
    color: var(--muted);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.review-card,
.sidebar-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-stage {
    position: relative;
    background: #050505;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: none;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.56));
    font-size: 1.15rem;
    font-weight: 900;
}

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

.play-circle {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.32);
    font-size: 2rem;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.74);
    font-size: 0.88rem;
    backdrop-filter: blur(8px);
}

.detail-card,
.review-card,
.sidebar-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 9px 14px;
    border-radius: 999px;
    background: #fdf2f8;
    color: #374151;
    font-weight: 800;
}

.content-block {
    margin-top: 24px;
}

.content-block h2,
.review-card h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.content-block p,
.review-card p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    white-space: pre-line;
}

.tag-list a,
.tag-list span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 0.9rem;
}

.breadcrumb {
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--pink-dark);
}

.pagination-note {
    margin-top: 26px;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    margin-top: 60px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 48px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin: 10px 0;
    color: #d1d5db;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: #f9a8d4;
}

.copyright {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 0.92rem;
}

.empty-state {
    padding: 64px 24px;
    text-align: center;
    color: var(--muted);
}

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

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

    .header-search {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 70px 0 100px;
    }

    .hero-poster-card {
        max-width: 520px;
        min-height: 360px;
        transform: none;
    }

    .hero-poster-card img {
        height: 360px;
    }

    .feature-grid,
    .video-grid,
    .category-grid,
    .info-grid,
    .footer-grid,
    .detail-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .nav-shell {
        height: 62px;
    }

    .logo-text {
        font-size: 1.18rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 54px 0 92px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .hero-poster-card,
    .hero-poster-card img {
        min-height: 310px;
        height: 310px;
    }

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

    .panel {
        padding: 20px;
        border-radius: 22px;
    }

    .feature-grid,
    .video-grid,
    .category-grid,
    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row .score {
        display: none;
    }

    .rank-poster {
        width: 92px;
        min-width: 92px;
        height: 62px;
    }

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

    .filter-row select,
    .filter-row input {
        width: 100%;
        flex: 1 1 auto;
    }
}
