:root {
    --site-pink: #ec4899;
    --site-rose: #fb7185;
    --site-soft: #fff4e6;
    --site-card: rgba(255, 255, 255, 0.78);
    --site-text: #2f1f2f;
    --site-muted: #7a6574;
    --site-border: rgba(255, 183, 197, 0.45);
    --site-shadow: 0 24px 60px rgba(236, 72, 153, 0.16);
}

body {
    color: var(--site-text);
    overflow-x: hidden;
}

img {
    object-fit: cover;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 900;
    color: var(--site-pink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
    box-shadow: 0 12px 26px rgba(236, 72, 153, 0.32);
}

.brand-text {
    font-size: 25px;
    line-height: 1;
    background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    color: #6f5266;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

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

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 2px solid rgba(255, 183, 197, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--site-text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input,
.mobile-search input {
    width: 220px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.secondary-btn {
    color: var(--site-pink);
    background: rgba(255, 255, 255, 0.72);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: rgba(255, 255, 255, 0.65);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--site-pink);
}

.mobile-panel {
    padding: 8px 24px 22px;
    border-top: 1px solid var(--site-border);
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.mobile-nav .nav-link {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

.hero {
    position: relative;
    min-height: min(78vh, 720px);
    overflow: hidden;
    border-radius: 0 0 42px 42px;
}

.hero-slider {
    position: relative;
    min-height: min(78vh, 720px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 42px;
    padding: 64px max(24px, calc((100vw - 1280px) / 2 + 24px));
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) blur(1px);
    transform: scale(1.05);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(255, 244, 230, 0.95), rgba(255, 228, 233, 0.76), rgba(255, 255, 255, 0.32));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    z-index: -1;
    background: linear-gradient(0deg, rgba(255, 244, 230, 0.98), rgba(255, 244, 230, 0));
}

.hero-content {
    max-width: 760px;
    padding: 34px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--site-shadow);
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    color: #251525;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #5f4357;
    max-width: 720px;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #9f2e66;
    background: rgba(255, 228, 233, 0.92);
    font-size: 13px;
    font-weight: 800;
}

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

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    box-shadow: 0 30px 80px rgba(74, 33, 61, 0.28);
}

.hero-poster img {
    width: 100%;
    height: 100%;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 14px rgba(236, 72, 153, 0.22);
}

.hero-dots button.active {
    width: 34px;
    background: var(--site-pink);
}

.quick-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 22px 24px 6px;
    max-width: 1280px;
    margin: -64px auto 18px;
    position: relative;
    z-index: 6;
}

.quick-card {
    min-width: 210px;
    border-radius: 22px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-card img {
    width: 58px;
    height: 74px;
    border-radius: 16px;
}

.quick-card strong {
    display: block;
    color: #352033;
    font-size: 15px;
    margin-bottom: 4px;
}

.quick-card span {
    color: var(--site-muted);
    font-size: 13px;
}

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

.section-kicker {
    display: inline-block;
    color: var(--site-pink);
    font-weight: 900;
    margin-bottom: 6px;
}

.section-heading h2,
.archive-hero h1,
.detail-title h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
    color: #30192d;
}

.section-heading p,
.archive-hero p,
.detail-title p {
    color: var(--site-muted);
    line-height: 1.85;
    margin-top: 8px;
}

.section-more {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--site-pink);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--site-card);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 18px 42px rgba(236, 72, 153, 0.12);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(42, 19, 38, 0.86), rgba(42, 19, 38, 0));
}

.type-badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    background: rgba(236, 72, 153, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.type-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
}

.year-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff8eb8, #ec4899);
}

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

.movie-title {
    display: block;
    min-height: 48px;
    color: #2f1d2d;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-title:hover {
    color: var(--site-pink);
}

.movie-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    color: #725b6c;
    line-height: 1.65;
    margin: 8px 0 12px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #866a7b;
    font-size: 13px;
    margin-bottom: 12px;
}

.meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
}

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

.category-card {
    padding: 18px;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.category-card h2 {
    font-size: 22px;
    font-weight: 950;
    color: #321d30;
}

.category-card p {
    color: var(--site-muted);
    line-height: 1.75;
    margin-top: 8px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 72px 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.1);
}

.ranking-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
}

.ranking-item img {
    width: 90px;
    height: 116px;
    border-radius: 18px;
}

.ranking-item h2,
.ranking-item h3 {
    font-size: 22px;
    font-weight: 950;
    color: #2f1d2d;
}

.ranking-item p {
    color: var(--site-muted);
    line-height: 1.75;
    margin-top: 6px;
}

.heat-chip {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--site-pink);
    background: rgba(255, 228, 233, 0.95);
    font-weight: 900;
    white-space: nowrap;
}

.archive-hero,
.detail-hero {
    padding: 42px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--site-shadow);
}

.filter-panel {
    margin: 28px 0;
    padding: 18px;
    border-radius: 28px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.filter-search-wrap {
    position: relative;
}

.filter-search-wrap input {
    width: 100%;
    padding: 14px 48px 14px 18px;
}

.filter-search-wrap span {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--site-pink);
    font-size: 22px;
    font-weight: 900;
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-panel select {
    padding: 13px 16px;
}

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 28px;
    color: var(--site-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #895d75;
    font-weight: 800;
}

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

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

.detail-poster {
    width: 100%;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 60px rgba(74, 33, 61, 0.2);
}

.detail-title h1 {
    margin-bottom: 14px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #8a3364;
    background: rgba(255, 228, 233, 0.92);
    font-weight: 850;
}

.content-panel {
    margin-top: 34px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.1);
}

.content-panel h2 {
    font-size: 27px;
    line-height: 1.2;
    font-weight: 950;
    color: #321d30;
    margin-bottom: 14px;
}

.content-panel p {
    color: #604b5b;
    line-height: 2;
    margin-bottom: 14px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #120813;
    box-shadow: 0 28px 70px rgba(30, 11, 26, 0.34);
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #120813;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.22), rgba(12, 5, 15, 0.68));
}

.play-overlay[hidden] {
    display: none;
}

.play-circle {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 42px;
    text-indent: 5px;
    background: linear-gradient(135deg, var(--site-pink), var(--site-rose));
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.36);
}

.play-overlay strong {
    display: block;
    margin-top: 16px;
    font-size: 20px;
}

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

.compact-card .movie-card-body p,
.compact-card .tag-list,
.compact-card .meta-row {
    display: none;
}

.compact-card .movie-title {
    min-height: auto;
    font-size: 15px;
}

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

    .header-search {
        margin-left: auto;
    }

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

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

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

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 66px;
        padding: 12px 18px;
    }

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

    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero,
    .hero-slider {
        min-height: 760px;
        border-radius: 0 0 28px 28px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 36px 18px 92px;
        gap: 24px;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(34px, 11vw, 54px);
    }

    .hero-poster {
        max-width: 250px;
        margin: 0 auto;
    }

    .quick-strip {
        margin-top: -54px;
        padding-left: 18px;
    }

    .page-main {
        padding: 24px 18px 0;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-block;
        margin-top: 14px;
    }

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

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

    .ranking-item img {
        width: 72px;
        height: 96px;
    }

    .heat-chip {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .detail-poster {
        max-width: 260px;
        margin: 0 auto;
    }

    .content-panel {
        padding: 22px;
    }

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

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

    .quick-card {
        min-width: 185px;
    }
}
