:root {
    --pink: #ec4899;
    --red: #ef4444;
    --orange: #f97316;
    --rose-soft: #fff1f2;
    --pink-soft: #fdf2f8;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(236, 72, 153, 0.15);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 60px rgba(190, 24, 93, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 45%, #ffffff 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.94), rgba(255, 247, 237, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(244, 114, 182, 0.08);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--red), var(--orange));
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.25);
}

.brand-text,
.footer-brand {
    font-size: 21px;
    background: linear-gradient(90deg, var(--pink), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--red);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.12);
}

.menu-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    place-items: center;
    gap: 4px;
    padding: 10px;
}

.menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12);
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(236, 72, 153, 0.52), transparent 30%),
        linear-gradient(105deg, rgba(17, 24, 39, 0.92) 0%, rgba(136, 19, 55, 0.72) 48%, rgba(251, 146, 60, 0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    align-items: center;
    gap: 46px;
    padding: 64px 0 86px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow,
.page-hero span,
.detail-heading .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 800;
    font-size: 13px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.12;
}

.hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.category-chip-row a {
    padding: 7px 11px;
    border-radius: 999px;
    color: #9f1239;
    background: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.tag-row span {
    color: #be185d;
    background: #fdf2f8;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--red), var(--orange));
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.35);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-card-large:hover,
.rank-item:hover {
    transform: translateY(-4px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster span,
.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

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

.quick-search {
    position: relative;
    z-index: 10;
    margin-top: -34px;
}

.filter-panel {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #fbcfe8;
}

.search-box span {
    color: var(--pink);
    font-size: 22px;
    font-weight: 900;
}

.search-box input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
}

.filter-panel select {
    width: auto;
    min-width: 170px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #fbcfe8;
    cursor: pointer;
}

.section-block {
    padding: 58px 0;
}

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

.section-head.no-margin {
    margin-bottom: 16px;
}

.section-head h2,
.content-card h2,
.side-panel h2 {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--pink);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(251, 207, 232, 0.72);
    box-shadow: 0 12px 36px rgba(190, 24, 93, 0.09);
    transition: all 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.movie-card.compact .poster-link {
    aspect-ratio: 16 / 11;
}

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

.movie-card:hover img,
.rank-item:hover img {
    transform: scale(1.07);
}

.poster-link::after,
.rank-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.6));
    opacity: 0.75;
}

.play-dot {
    z-index: 2;
    width: 46px;
    height: 46px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    z-index: 3;
    left: 12px;
    top: 12px;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--red));
}

.card-body {
    padding: 16px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2,
.rank-item h2 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-item h2 a:hover {
    color: var(--pink);
}

.movie-card p,
.rank-item p,
.content-card p,
.page-hero p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 12px;
    font-size: 14px;
}

.soft-section,
.category-section {
    background: linear-gradient(90deg, rgba(253, 242, 248, 0.86), rgba(255, 247, 237, 0.86));
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
}

.side-panel,
.content-card,
.player-shell {
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(190, 24, 93, 0.1);
}

.side-panel {
    padding: 20px;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(251, 207, 232, 0.72);
    transition: all 0.25s ease;
}

.rank-cover {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
}

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

.rank-cover strong {
    position: absolute;
    z-index: 3;
    left: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-info {
    min-width: 0;
}

.rank-info p {
    margin: 0 0 12px;
}

.small-list .rank-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 8px;
}

.small-list .rank-info p,
.small-list .tag-row,
.compact-list .tag-row {
    display: none;
}

.small-list .rank-item h2 {
    font-size: 14px;
    margin-bottom: 0;
}

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

.category-tile,
.category-card-large {
    min-height: 150px;
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 207, 232, 0.78);
    box-shadow: 0 14px 36px rgba(244, 63, 94, 0.09);
    transition: all 0.25s ease;
}

.category-tile strong,
.category-card-main span {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--rose);
    font-weight: 900;
}

.category-tile span,
.category-card-main strong {
    color: var(--muted);
    line-height: 1.7;
}

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

.category-card-large {
    min-height: 220px;
}

.category-card-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.category-card-links a {
    padding: 10px 12px;
    overflow: hidden;
    border-radius: 14px;
    color: #be185d;
    background: #fdf2f8;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #fff7ed);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(236, 72, 153, 0.24), transparent 26%),
        radial-gradient(circle at 90% 40%, rgba(249, 115, 22, 0.22), transparent 28%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding: 74px 0;
    text-align: center;
}

.page-hero span {
    color: #be185d;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(244, 114, 182, 0.22);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
}

.simple-actions {
    justify-content: center;
}

.simple-actions .ghost-btn {
    color: var(--red);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(244, 114, 182, 0.2);
}

.category-chip-row {
    justify-content: center;
    margin-top: 22px;
}

.category-chip-row a {
    color: #be185d;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.1);
}

.detail-hero {
    min-height: 440px;
    background: #111827;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.42), transparent 32%),
        linear-gradient(105deg, rgba(15, 23, 42, 0.92), rgba(136, 19, 55, 0.76), rgba(249, 115, 22, 0.52));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 58px 0;
    color: #ffffff;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

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

.detail-heading .breadcrumb a:hover {
    color: #ffffff;
}

.detail-heading h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-heading p {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    padding: 42px 0 70px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-shell {
    padding: 14px;
    background: #111827;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
    display: block;
    cursor: pointer;
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-mask span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    font-size: 28px;
}

.player-mask strong {
    font-size: 18px;
}

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

.content-card {
    padding: 26px;
}

.content-card p {
    margin: 14px 0 0;
    font-size: 16px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #fff7fb;
}

.meta-list strong {
    color: #be185d;
}

.meta-list span,
.meta-list a {
    color: var(--muted);
    text-align: right;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #6b7280;
}

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

.footer-bottom {
    padding: 18px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(251, 207, 232, 0.58);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-content,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

    .detail-side {
        display: none;
    }
}

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

    .menu-button {
        display: grid;
    }

    .mobile-nav.open {
        display: flex;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 46px 0 76px;
    }

    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel select {
        width: 100%;
    }

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

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

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

    .detail-hero-inner {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 18px;
    }

    .meta-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .movie-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .simple-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

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

    .detail-cover {
        width: 160px;
    }
}
