* {
    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;
    background: linear-gradient(180deg, #fff7ed 0%, #fff1f2 42%, #fff7ed 100%);
    color: #374151;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(251, 207, 232, 0.75);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.09);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon,
.footer-logo span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #f472b6;
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.35);
}

.brand-text,
.footer-logo {
    font-size: 24px;
    background: linear-gradient(90deg, #ec4899, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ec4899;
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.hero-search,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-input-wrap input,
.filter-panel select {
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    padding: 11px 16px;
    color: #374151;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 180px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-input-wrap input:focus,
.filter-panel select:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.18);
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-panel button,
.primary-button,
.hero-play {
    border: none;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #ec4899, #fb923c);
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-panel button:hover,
.primary-button:hover,
.hero-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(236, 72, 153, 0.3);
}

.ghost-button,
.text-link {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.text-link {
    display: inline-flex;
    color: #ec4899;
    border-color: #fbcfe8;
    background: #fff7ed;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: none;
    color: #4b5563;
    background: #ffe4e6;
    border-radius: 14px;
    padding: 10px 13px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
    padding: 12px 0;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.68);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #f472b6 0%, #fb923c 52%, #facc15 100%);
    padding: 78px 0 88px;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 20%, #ffffff 0 2px, transparent 3px), radial-gradient(circle at 80% 30%, #ffffff 0 2px, transparent 3px);
    background-size: 58px 58px, 86px 86px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 42px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
}

.hero-eyebrow,
.detail-label,
.page-hero span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 14px 30px rgba(124, 45, 18, 0.24);
}

.hero-copy p {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.hero-search {
    max-width: 520px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border-color: transparent;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(124, 45, 18, 0.28);
    background: rgba(255, 255, 255, 0.16);
}

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

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

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

.hero-slide-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.78));
}

.hero-slide-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
    color: #ffffff;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.hot-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
}

.tag-row span,
.detail-meta span,
.hot-meta span {
    color: #9d174d;
    background: #ffe4e6;
}

.hero-slide-copy h2 {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.08;
}

.hero-slide-copy p {
    max-width: 620px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-dots {
    position: absolute;
    right: 26px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

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

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    color: #111827;
    font-weight: 900;
}

.section-heading p {
    margin: 8px 0 0;
    color: #6b7280;
}

.section-heading > a {
    flex: 0 0 auto;
    color: #ec4899;
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(236, 72, 153, 0.16);
}

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

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.hot-item:hover img,
.detail-poster:hover img {
    transform: scale(1.08);
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #ec4899, #fb923c);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.rank-badge,
.hot-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #78350f;
    background: #facc15;
    font-weight: 900;
    z-index: 1;
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: #ec4899;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.movie-card h2,
.hot-info h2,
.category-card-large h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.movie-card h2 a:hover,
.hot-info h2 a:hover,
.category-card-large h2 a:hover {
    color: #ec4899;
}

.movie-card p,
.hot-info p,
.category-card-large p {
    margin: 0;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.card-actions a {
    color: #ec4899;
}

.tag-row {
    margin-top: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.12);
}

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

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

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
}

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

.hot-list.wide {
    grid-template-columns: 1fr;
}

.hot-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(236, 72, 153, 0.16);
}

.hot-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hot-info {
    align-self: center;
}

.hot-meta {
    margin-top: 14px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    border-radius: 34px;
    padding: 52px;
    color: #ffffff;
    background: linear-gradient(115deg, #ec4899, #fb923c 64%, #facc15);
    box-shadow: 0 24px 55px rgba(236, 72, 153, 0.18);
}

.slim-hero {
    margin-top: 34px;
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

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

.filter-panel {
    align-items: stretch;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.1);
}

.filter-input-wrap {
    flex: 1;
}

.filter-input-wrap input,
.filter-panel select {
    width: 100%;
    height: 48px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.09);
}

.category-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.category-cover img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #9d174d;
    font-weight: 700;
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 55px rgba(236, 72, 153, 0.12);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

.detail-info h1 {
    margin: 16px 0 14px;
    color: #111827;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
}

.detail-label {
    color: #9d174d;
    background: #ffe4e6;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 19px;
}

.detail-tags {
    margin-bottom: 24px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 26px 60px rgba(17, 24, 39, 0.28);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
    cursor: pointer;
    z-index: 2;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #fb923c);
    font-size: 34px;
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.35);
}

.play-overlay strong {
    font-size: 20px;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.detail-content {
    padding-top: 38px;
}

.article-panel {
    padding: 30px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.09);
}

.article-panel h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
}

.article-panel p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 58px;
    background: linear-gradient(180deg, #fff1f2, #ffe4e6);
    border-top: 1px solid #fbcfe8;
}

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

.footer-brand p {
    max-width: 520px;
    color: #6b7280;
}

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

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

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

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

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

.is-filter-hidden {
    display: none !important;
}

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

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

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

    .hero-slider {
        min-height: 480px;
    }

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

@media (max-width: 820px) {
    .hero-section {
        padding: 54px 0 64px;
    }

    .hero-inner {
        gap: 28px;
    }

    .hero-search,
    .filter-panel,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-slider {
        min-height: 420px;
        border-radius: 26px;
    }

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

    .category-card-large,
    .hot-item {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .detail-hero {
        padding: 28px;
        border-radius: 26px;
    }

    .detail-poster {
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
        gap: 12px;
    }

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

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-slide-copy {
        padding: 22px;
    }

    .hero-dots {
        right: 20px;
        bottom: 18px;
    }

    .content-section,
    .page-hero,
    .detail-hero,
    .player-section,
    .breadcrumb,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .movie-grid,
    .movie-grid.three-col,
    .category-grid,
    .category-overview-grid,
    .hot-list {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        gap: 24px;
    }
}
