:root {
    --pink: #ec4899;
    --rose: #ef4444;
    --orange: #f97316;
    --yellow: #fde68a;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3e8ff;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
    --gradient: linear-gradient(135deg, #ec4899 0%, #ef4444 48%, #f97316 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fffaf7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(236, 72, 153, 0.14);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    max-width: 1280px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 900;
}

.site-logo__mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.32);
}

.site-logo__text {
    font-size: 22px;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
    color: var(--pink);
    background: linear-gradient(135deg, #fce7f3, #ffedd5);
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.filter-panel input,
.filter-panel select {
    min-height: 42px;
    border: 2px solid #fbcfe8;
    border-radius: 999px;
    padding: 0 16px;
    outline: none;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.top-search button,
.btn,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #fff;
    background: var(--gradient);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-search button:hover,
.btn:hover,
.filter-panel button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.26);
}

.nav-toggle {
    display: none;
    border: 0;
    background: #fce7f3;
    color: var(--pink);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid #fce7f3;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--gradient);
}

.hero-slider {
    position: relative;
    min-height: 560px;
}

.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__bg,
.hero-slide__shade {
    position: absolute;
    inset: 0;
}

.hero-slide__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.04);
}

.hero-slide__bg img.image-missing {
    display: none;
}

.hero-slide__shade {
    background:
        radial-gradient(circle at 78% 18%, rgba(253, 230, 138, 0.34), transparent 26%),
        linear-gradient(90deg, rgba(136, 19, 55, 0.88), rgba(236, 72, 153, 0.56), rgba(249, 115, 22, 0.42));
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 92px 24px 70px;
    color: #fff;
}

.hero-slide__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-slide h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-slide p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #fff7ed;
    font-size: 20px;
}

.hero-slide__tags,
.movie-card__tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tag,
.tag,
.mini-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tag {
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.tag {
    padding: 8px 12px;
    color: var(--pink);
    background: #fce7f3;
}

.mini-tag {
    padding: 5px 9px;
    color: #be123c;
    background: #fff1f2;
    font-size: 12px;
}

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

.btn--light {
    color: var(--pink);
    background: #fff;
}

.btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(12px);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.section,
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section--wide {
    max-width: none;
    background: linear-gradient(135deg, #fce7f3, #fff7ed);
}

.section--wide > .section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 207, 232, 0.78);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border 0.26s ease;
}

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

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gradient);
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.movie-card__poster img.image-missing {
    opacity: 0;
}

.movie-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.88);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card__year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 900;
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta,
.movie-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    min-height: 58px;
    margin: 8px 0;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--pink);
}

.movie-card p {
    min-height: 78px;
    margin: 0 0 14px;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #fce7f3;
}

.movie-card__foot a {
    color: var(--pink);
    font-weight: 900;
}

.movie-card--compact h3 {
    min-height: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.rank-list {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.rank-list__item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #fce7f3;
    transition: background 0.2s ease;
}

.rank-list__item:hover {
    background: #fff7ed;
}

.rank-list__item:last-child {
    border-bottom: 0;
}

.rank-list__num {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #6b7280;
    background: #f3f4f6;
    font-weight: 900;
}

.rank-list__num--hot {
    color: #fff;
    background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-list__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-list__views {
    color: var(--muted);
    font-size: 13px;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 26px;
    color: #fff;
    background: var(--gradient);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    color: #fff7ed;
}

.category-card span {
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid #fbcfe8;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08);
}

.filter-count {
    color: var(--muted);
    font-weight: 800;
}

.detail-hero {
    padding: 52px 24px;
    color: #fff;
    background: var(--gradient);
}

.detail-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.24);
    background: rgba(255, 255, 255, 0.16);
}

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

.detail-poster img.image-missing {
    opacity: 0;
}

.detail-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.1;
}

.detail-hero p {
    max-width: 880px;
    color: #fff7ed;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 0;
}

.player-shell {
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.28);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 40%, rgba(236, 72, 153, 0.28), transparent 30%),
        linear-gradient(135deg, #111827, #3b0764);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    background: rgba(15, 23, 42, 0.42);
}

.player-cover.is-hidden {
    display: none;
}

.player-cover__button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: var(--pink);
    background: #fff;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.player-cover h2 {
    margin: 18px 0 6px;
    font-size: 28px;
}

.player-status {
    margin: 0;
    color: #fce7f3;
}

.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
}

.article-panel,
.side-panel {
    border: 1px solid #fbcfe8;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.08);
}

.article-panel {
    padding: 30px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.side-panel {
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 92px;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
}

.related-list img {
    width: 72px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gradient);
}

.related-list img.image-missing {
    opacity: 0;
}

.related-list h3 {
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.related-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, #831843, #991b1b 52%, #9a3412);
}

.site-footer__grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
}

.site-logo--footer .site-logo__mark {
    color: var(--pink);
    background: #fff;
}

.site-logo--footer .site-logo__text {
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #ffe4e6;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #fecdd3;
}

.empty-state {
    display: none;
    padding: 38px;
    border-radius: 24px;
    text-align: center;
    background: #fff;
    color: var(--muted);
}

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

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .feature-grid,
    .detail-content,
    .detail-hero__inner,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 320px;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .site-header__inner {
        padding: 0 16px;
    }

    .site-logo__text {
        font-size: 18px;
    }

    .hero,
    .hero-slider {
        min-height: 640px;
    }

    .hero-slide__content {
        padding: 74px 18px 82px;
    }

    .section,
    .page-main,
    .section--wide > .section__inner,
    .detail-content,
    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

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

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

    .rank-list__views {
        grid-column: 2;
    }

    .detail-hero {
        padding: 38px 16px;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}
