:root {
    --site-pink: #ff3366;
    --site-pink-soft: #ff6b8e;
    --site-pink-light: #fff1f3;
    --site-gold: #facd15;
    --site-cyan: #2dd4bf;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-border: rgba(255, 51, 102, 0.16);
    --site-card: rgba(255, 255, 255, 0.92);
    --site-shadow: 0 18px 45px rgba(255, 51, 102, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--site-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 107, 142, 0.25), transparent 30rem),
        radial-gradient(circle at 90% 18%, rgba(250, 204, 21, 0.18), transparent 28rem),
        linear-gradient(180deg, #fff1f3 0%, #fff7fb 45%, #ffffff 100%);
}

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

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

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 51, 102, 0.1);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.site-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
    box-shadow: 0 14px 30px rgba(255, 51, 102, 0.32);
}

.site-logo-text {
    font-size: 20px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff3366, #ff6b8e);
    box-shadow: 0 12px 28px rgba(255, 51, 102, 0.26);
}

.mobile-menu-button {
    display: none;
    width: 46px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f3;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #ff3366;
}

.hero {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto 48px;
    border-radius: 36px;
    overflow: hidden;
    min-height: 560px;
    box-shadow: 0 30px 80px rgba(255, 51, 102, 0.22);
    background: #111827;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.62) 45%, rgba(17, 24, 39, 0.08) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.45), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    padding: 78px 56px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff3366;
    background: rgba(255, 241, 243, 0.96);
    border: 1px solid rgba(255, 51, 102, 0.14);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 900;
}

.hero h1,
.hero h2 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

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

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

.hero-tags span,
.tag-list span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ff3366;
    background: #fff1f3;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.secondary-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: all 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #ff3366, #ff6b8e, #ffa3b5);
    box-shadow: 0 14px 32px rgba(255, 51, 102, 0.34);
}

.secondary-button,
.section-link {
    color: #ff3366;
    background: #ffffff;
    border: 1px solid rgba(255, 51, 102, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

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

.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto;
    padding: 52px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 51, 102, 0.12), rgba(255, 255, 255, 0.92)),
        #ffffff;
    box-shadow: var(--site-shadow);
}

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

.page-hero p {
    margin: 0;
    max-width: 860px;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.8;
}

.section-block {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 58px;
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.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 var(--site-border);
    box-shadow: 0 12px 34px rgba(255, 51, 102, 0.11);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(255, 51, 102, 0.2);
}

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

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

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

.movie-score {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 32px;
    padding: 0 10px;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3366, #facd15);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-row span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 999px;
    background: #ff6b8e;
    vertical-align: middle;
}

.movie-card h2,
.rank-card h2 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h2 a:hover,
.rank-card h2 a:hover {
    color: #ff3366;
}

.movie-card p,
.rank-card p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
}

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

.category-tile {
    min-height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: 30px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--site-shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.1));
}

.category-tile-content {
    position: relative;
    z-index: 2;
}

.category-tile h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 950;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 32px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 42px rgba(255, 51, 102, 0.12);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 51, 102, 0.18);
    border-radius: 18px;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #ff3366;
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 12px;
    align-items: center;
}

.rank-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffe4e9, #fff7fb);
}

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

.rank-number {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff3366, #ff6b8e);
    font-weight: 950;
}

.detail-layout {
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto 58px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 360px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side,
.text-panel {
    border: 1px solid var(--site-border);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--site-shadow);
}

.detail-main {
    overflow: hidden;
}

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

.movie-player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 51, 102, 0.32), transparent 18rem),
        rgba(17, 24, 39, 0.46);
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #ff3366;
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.player-start span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.detail-content {
    padding: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ff3366;
}

.detail-content h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-summary {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-info-grid div {
    padding: 14px;
    border-radius: 18px;
    background: #fff1f3;
}

.detail-info-grid span {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 900;
}

.detail-info-grid strong {
    display: block;
    margin-top: 4px;
    color: #111827;
}

.text-panel {
    padding: 26px;
    margin-top: 22px;
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.text-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.detail-side {
    padding: 18px;
}

.detail-side .rank-card {
    grid-template-columns: 88px 1fr;
    box-shadow: none;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffe4e9, #fff7fb);
    margin-bottom: 18px;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.empty-result {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 42px;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--site-border);
}

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

.site-footer {
    margin-top: 64px;
    padding: 48px 0 28px;
    background: #111827;
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

.footer-links a:hover {
    color: #ff6b8e;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1000px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .detail-side {
        order: -1;
    }
}

@media (max-width: 760px) {
    .site-header-inner {
        min-height: 64px;
    }

    .mobile-menu-button {
        display: flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 20px 48px rgba(17, 24, 39, 0.15);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: 620px;
        border-radius: 28px;
    }

    .hero-content {
        padding: 48px 24px 84px;
    }

    .hero-dots {
        left: 24px;
        bottom: 26px;
    }

    .page-hero {
        padding: 34px 24px;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 16px;
    }

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

    .rank-card {
        grid-template-columns: 92px 1fr;
    }

    .detail-content,
    .text-panel {
        padding: 22px;
    }

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