:root {
    color-scheme: light;
    --site-pink: #ec4899;
    --site-orange: #fb923c;
    --site-blue: #38bdf8;
    --site-dark: #111827;
    --site-muted: #6b7280;
    --site-border: #f3e8ff;
    --site-soft: #fff7ed;
    --site-shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 36%, #eff6ff 100%);
}

body.is-locked {
    overflow: hidden;
}

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

img {
    background: linear-gradient(135deg, #ffe4e6, #dbeafe);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(251, 207, 232, 0.75);
    backdrop-filter: blur(18px);
}

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

.navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-orange), var(--site-blue));
    box-shadow: 0 14px 32px rgba(236, 72, 153, 0.35);
}

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

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--site-pink);
    background: #fdf2f8;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(300px, 32vw);
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(251, 207, 232, 0.25);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 6px 12px 16px;
    color: #111827;
    background: transparent;
}

.header-search button {
    border: 0;
    padding: 10px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #111827;
    background: #fff1f2;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #fbcfe8;
    padding: 12px 0 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel .nav-links,
.mobile-panel .header-search {
    width: 100%;
}

.mobile-panel .nav-links {
    align-items: stretch;
    flex-direction: column;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.65s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 22%, rgba(56, 189, 248, 0.34), transparent 28%),
        linear-gradient(105deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.68) 44%, rgba(236, 72, 153, 0.2) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 72px 0 96px;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: var(--site-pink);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.28);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.btn-gradient {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.24);
}

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

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

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

.wave {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: -1px;
    left: 0;
    color: #fff7ed;
}

main {
    flex: 1;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(135deg, rgba(255, 228, 230, 0.86), rgba(219, 234, 254, 0.86));
}

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

.section-kicker {
    margin: 0 0 10px;
    color: var(--site-pink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.section-subtitle {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--site-muted);
    font-size: 16px;
    line-height: 1.8;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.78);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 42px rgba(236, 72, 153, 0.1);
    transform: translateZ(0);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(236, 72, 153, 0.42);
    box-shadow: var(--site-shadow);
}

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

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

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

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.28);
}

.movie-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-title {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.meta-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #be185d;
    background: #fdf2f8;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(251, 207, 232, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.16);
}

.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    width: 92px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

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

.rank-title {
    margin: 0 0 6px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

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

.category-card {
    position: relative;
    min-height: 158px;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-orange));
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 58px rgba(236, 72, 153, 0.28);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #fb923c, #38bdf8);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero {
    padding: 86px 0 52px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.34), transparent 28%),
        linear-gradient(135deg, #ec4899 0%, #fb923c 52%, #38bdf8 100%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 800;
}

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

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr repeat(3, minmax(150px, 190px));
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(251, 207, 232, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.1);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    width: 100%;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    padding: 0 16px;
    color: #111827;
    background: #ffffff;
    outline: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 34px;
}

.player-card,
.detail-card {
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.82);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.1);
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: var(--site-pink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    font-size: 34px;
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.player-overlay:hover .play-mark {
    transform: scale(1.08);
}

.detail-body {
    padding: 26px;
}

.detail-body h2,
.detail-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 900;
}

.detail-body p,
.detail-card p {
    color: #4b5563;
    line-height: 1.9;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

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

.detail-side-content {
    padding: 22px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.info-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #fce7f3;
    color: #4b5563;
    font-size: 14px;
}

.info-line strong {
    color: #111827;
}

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

.related-grid .movie-card .movie-body {
    padding: 14px;
}

.related-grid .movie-title {
    font-size: 15px;
}

.site-footer {
    padding: 42px 0;
    color: #e5e7eb;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.7fr);
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-text,
.footer-link {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.9;
}

.footer-link:hover {
    color: #f9a8d4;
}

.footer-stack {
    display: grid;
    gap: 8px;
}

.empty-state {
    display: none;
    padding: 48px 24px;
    border: 1px solid rgba(251, 207, 232, 0.82);
    border-radius: 28px;
    text-align: center;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.88);
}

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

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

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

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

@media (max-width: 860px) {
    .navbar > .nav-links,
    .navbar > .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero,
    .hero-inner {
        min-height: 650px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 44px 76px 1fr;
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

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

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

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

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

    .hero h1 {
        letter-spacing: -0.045em;
    }

    .hero-actions,
    .section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .rank-item {
        grid-template-columns: 40px 1fr;
    }

    .rank-thumb {
        display: none;
    }

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