:root {
    --rose-50: #fff1f2;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --rose-500: #f43f5e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 10px 28px rgba(219, 39, 119, 0.12);
    --shadow-strong: 0 25px 60px rgba(17, 24, 39, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--pink-50), #ffffff 42%, var(--rose-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--pink-100);
    box-shadow: 0 4px 18px rgba(219, 39, 119, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1240px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500), var(--pink-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
    margin-top: 4px;
}

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

.nav-link {
    position: relative;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

.header-search input,
.mobile-panel input,
.filter-input,
.filter-select {
    min-height: 42px;
    border: 2px solid var(--pink-200);
    border-radius: 999px;
    background: #ffffff;
    padding: 0 16px;
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-panel button,
.primary-btn,
.secondary-btn,
.section-more,
.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 20px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.section-more:hover,
.filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.34);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--gray-700);
    background: var(--pink-50);
    cursor: pointer;
}

.mobile-panel {
    padding: 18px 24px 24px;
    border-top: 1px solid var(--pink-100);
    background: rgba(255, 255, 255, 0.98);
}

.mobile-panel nav,
.mobile-panel form {
    display: grid;
    gap: 14px;
}

.mobile-panel form {
    grid-template-columns: 1fr auto;
    margin-top: 14px;
}

main {
    min-height: 62vh;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4ee, #fff7fb);
}

.hero-track,
.hero-slide,
.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-shade {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.42) 48%, rgba(17, 24, 39, 0.18)), linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
    animation: fade-up 0.7s ease both;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-kicker span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker span {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-kicker span:first-child {
    background: var(--pink-500);
}

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

.hero p {
    margin: 0 0 30px;
    color: #ffe4ef;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.content-section,
.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 68px 24px;
}

.content-section.tint {
    max-width: none;
    background: linear-gradient(90deg, var(--pink-50), var(--rose-50));
}

.content-section.tint > .section-heading,
.content-section.tint > .movie-grid,
.content-section.tint > .category-grid,
.content-section.tint > .feature-grid {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-heading {
    align-items: start;
}

.section-heading h2,
.page-heading h1,
.detail-title h1 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--gray-500);
    font-size: 16px;
    line-height: 1.8;
}

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

.feature-card,
.category-card,
.info-panel,
.related-panel {
    border: 1px solid var(--pink-100);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.feature-card,
.category-card {
    padding: 26px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.category-card:hover {
    border-color: var(--pink-200);
    transform: translateY(-8px);
    box-shadow: 0 22px 46px rgba(219, 39, 119, 0.18);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 24px;
    background: linear-gradient(135deg, #f472b6, var(--rose-500));
}

.feature-card h3,
.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--gray-800);
    font-size: 20px;
}

.feature-card p,
.category-card p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--pink-100);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: var(--pink-200);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), var(--rose-50));
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 62%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.card-ribbon,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-ribbon {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    background: #ef4444;
}

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-chip {
    left: 50%;
    bottom: 14px;
    padding: 8px 14px;
    background: rgba(236, 72, 153, 0.95);
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 6px;
    color: var(--gray-800);
    font-size: 15px;
    line-height: 1.4;
}

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

.meta-line,
.card-desc {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.65;
}

.meta-line {
    margin: 0 0 8px;
}

.card-desc {
    margin: 8px 0;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span,
.detail-tags span {
    color: var(--pink-600);
    background: var(--pink-50);
    padding: 5px 9px;
    font-size: 12px;
}

.category-pill {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    font-size: 12px;
    font-weight: 800;
}

.cta-band {
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
}

.cta-band p {
    margin: 0 auto 26px;
    max-width: 720px;
    color: #ffe4ee;
    line-height: 1.8;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.7fr) auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--pink-100);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.filter-input,
.filter-select {
    width: 100%;
    border-radius: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 0;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--pink-600);
}

.detail-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 24px 70px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-strong);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-orb {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 24px 48px rgba(236, 72, 153, 0.42);
    font-size: 34px;
    transform: translateX(3px);
}

.detail-title {
    border: 1px solid var(--pink-100);
    border-radius: 28px;
    padding: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 700;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 70px;
}

.info-panel,
.related-panel {
    padding: 28px;
}

.info-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    color: var(--gray-800);
    font-size: 24px;
}

.info-panel p {
    margin: 0 0 20px;
    color: var(--gray-700);
    line-height: 1.9;
}

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

.related-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--gray-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
    background: var(--pink-50);
    transform: translateX(4px);
}

.related-item img {
    width: 74px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-800);
    line-height: 1.4;
}

.related-item span {
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--pink-100);
    background: linear-gradient(135deg, var(--pink-50), var(--rose-50));
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 28px;
}

.footer-brand strong {
    color: var(--pink-600);
    font-size: 22px;
}

.footer-brand p {
    margin: 10px 0 0;
    color: var(--gray-500);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
}

.footer-links a {
    color: var(--gray-600);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--pink-600);
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 22px;
    color: var(--gray-500);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: var(--shadow-soft);
}

.back-top.show {
    display: inline-flex;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

@media (max-width: 720px) {
    .header-inner {
        height: 68px;
        padding: 0 16px;
    }

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

    .brand-text em {
        display: none;
    }

    .hero {
        height: 560px;
    }

    .hero-content,
    .content-section,
    .page-shell,
    .detail-hero,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading,
    .page-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 18px;
    }

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

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

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

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

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