* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 48%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(244, 63, 94, 0.96), rgba(251, 113, 133, 0.96));
    box-shadow: 0 18px 45px rgba(190, 24, 93, 0.18);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #ffffff;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 12px 30px rgba(136, 19, 55, 0.2);
}

.brand-text {
    letter-spacing: 0.02em;
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 9px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #881337;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.36));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 52px;
    padding: 72px 0;
}

.hero-copy {
    animation: riseIn 0.8s ease both;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(255, 255, 255, 0.76);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.9;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.card-tags span,
.detail-tags span {
    color: #be185d;
    background: #fce7f3;
    box-shadow: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #be185d;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    min-height: 520px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(76, 5, 25, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    height: 520px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #be185d;
    background: #ffffff;
    font-weight: 900;
}

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

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

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

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

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 420px);
    gap: 28px;
    align-items: center;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 60px rgba(190, 24, 93, 0.12);
    backdrop-filter: blur(20px);
}

.search-card h2,
.section-heading h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    color: #1f2937;
    letter-spacing: -0.04em;
}

.search-card p,
.page-hero p,
.story-card p,
.detail-content p,
.movie-card-body p,
.site-footer p {
    color: #6b7280;
    line-height: 1.8;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.24), 0 14px 30px rgba(244, 114, 182, 0.12);
}

.search-box span {
    color: #be185d;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    color: #1f2937;
    background: transparent;
}

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

.section-heading h2 {
    margin-top: 10px;
    font-size: 32px;
}

.section-heading > a,
.panel-title a {
    color: #db2777;
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(190, 24, 93, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(190, 24, 93, 0.16);
}

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

.poster-wrap img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.score-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.score-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: #f59e0b;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #be185d;
    background: rgba(255, 255, 255, 0.9);
}

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

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

.movie-title:hover {
    color: #db2777;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

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

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

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

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

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px rgba(190, 24, 93, 0.12);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 20px;
    font-weight: 900;
}

.rank-list,
.rank-page-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(252, 231, 243, 0.56);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #fce7f3;
    transform: translateX(3px);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #f97316);
    font-weight: 900;
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
    background: #fce7f3;
}

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

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: #1f2937;
}

.rank-info em {
    margin-top: 6px;
    color: #9ca3af;
    font-size: 13px;
    font-style: normal;
}

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

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

.category-card {
    display: block;
    min-height: 146px;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #f43f5e 56%, #fb923c);
    box-shadow: 0 22px 50px rgba(190, 24, 93, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 62px rgba(190, 24, 93, 0.2);
}

.category-card span {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

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

.page-hero {
    margin-top: 34px;
    padding: 54px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 60px rgba(190, 24, 93, 0.12);
}

.soft-hero,
.ranking-hero,
.category-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 231, 243, 0.8));
}

.page-hero h1 {
    margin-top: 16px;
    font-size: clamp(36px, 6vw, 64px);
}

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

.hero-search,
.wide-search {
    max-width: 640px;
    margin-top: 24px;
}

.catalog-grid {
    padding-bottom: 28px;
}

.rank-page-list {
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 28px 0;
    color: #9ca3af;
    font-weight: 800;
}

.breadcrumb a {
    color: #db2777;
}

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

.player-card,
.detail-side,
.story-card {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(190, 24, 93, 0.12);
}

.player-card {
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.78));
    cursor: pointer;
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #be185d;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
    padding: 0 22px;
    font-size: 22px;
    text-align: center;
}

.detail-side {
    padding: 18px;
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: #fce7f3;
}

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

.detail-facts {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.detail-facts span {
    padding: 12px 14px;
    border-radius: 16px;
    color: #be185d;
    background: #fce7f3;
    font-weight: 800;
}

.detail-content {
    padding: 34px 0 0;
}

.detail-content h1 {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 62px);
}

.lead-text {
    max-width: 920px;
    font-size: 20px;
}

.story-card {
    margin-top: 22px;
    padding: 28px;
}

.story-card h2 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    font-size: 17px;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 50px;
    padding: 46px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #be185d, #e11d48);
}

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

.footer-brand {
    font-size: 22px;
}

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

.site-footer p {
    color: rgba(255, 255, 255, 0.82);
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.14);
}

[hidden] {
    display: none !important;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .hero-poster img {
        height: 440px;
    }

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

    .split-layout,
    .watch-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 52px 0 82px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-poster,
    .hero-poster img {
        height: 320px;
    }

    .search-card,
    .section-heading {
        grid-template-columns: 1fr;
        display: grid;
    }

    .movie-grid,
    .two-row,
    .rank-page-list,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .page-hero {
        padding: 32px 22px;
    }

    .detail-side {
        display: none;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .two-row,
    .rank-page-list,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        display: grid;
    }

    .section-shell {
        padding: 38px 0;
    }
}
