:root {
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --orange: #f97316;
    --green: #10b981;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7fb;
    --line: rgba(148, 163, 184, 0.26);
    --shadow: 0 22px 55px rgba(31, 41, 55, 0.12);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, #fff7fb 52%, #f6f7ff 100%);
    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;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
    box-shadow: 0 14px 35px rgba(91, 33, 182, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c2d12;
    background: #fde047;
    border-radius: 999px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.38);
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.nav-search input {
    width: 150px;
    padding: 9px 12px;
    color: #ffffff;
    background: transparent;
    outline: none;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search button {
    padding: 9px 14px;
    color: #7c2d12;
    background: #fde047;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 58px 0 44px;
    background: linear-gradient(90deg, #ffe4f0, #f0dcff, #dbeafe);
}

.hero-inner {
    position: relative;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.5;
}

.orb-one {
    width: 230px;
    height: 230px;
    top: -80px;
    left: 6%;
    background: radial-gradient(circle, #f472b6, transparent 68%);
}

.orb-two {
    width: 300px;
    height: 300px;
    right: 5%;
    bottom: -130px;
    background: radial-gradient(circle, #60a5fa, transparent 70%);
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 46px;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

.hero-copy h1 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(90deg, #db2777, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3.2vw, 42px);
    font-weight: 800;
    color: #111827;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: #7e22ce;
    background: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.12);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.26);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(91, 33, 182, 0.18);
}

.ghost-btn {
    color: #7c3aed;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.hero-visual {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(1deg);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hero-visual:hover img {
    transform: scale(1.05);
}

.hero-visual-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
}

.hero-visual-caption strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.hero-visual-caption span {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.hero-controls {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.25);
}

.hero-dot.active {
    width: 36px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

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

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-head a {
    color: #7c3aed;
    font-weight: 900;
}

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

.category-card,
.category-overview-card a {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(91, 33, 182, 0.18);
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-card span,
.category-overview-body h2 {
    display: block;
    padding: 18px 18px 0;
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.category-overview-body p {
    margin: 10px 0 0;
    padding: 0 18px 20px;
    color: var(--muted);
    line-height: 1.65;
}

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

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

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 65px rgba(91, 33, 182, 0.18);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4f0, #dbeafe);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
    transition: opacity 0.2s ease;
}

.card-link:hover .card-mask {
    opacity: 1;
}

.play-badge {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.35);
}

.corner-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    color: #ffffff;
    background: #ec4899;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    min-height: 46px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body p {
    margin: 0 0 12px;
    min-height: 42px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.meta-row,
.meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.meta-row span,
.detail-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f6;
}

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

.tag-row span,
.detail-tags a {
    padding: 5px 10px;
    border-radius: 999px;
    color: #7c3aed;
    background: linear-gradient(90deg, #fce7f3, #ede9fe);
    font-size: 12px;
    font-weight: 800;
}

.soft-section {
    background: linear-gradient(90deg, #eff6ff, #faf5ff);
}

.wide-list,
.rank-list {
    display: grid;
    gap: 18px;
}

.wide-card a {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card a:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 65px rgba(91, 33, 182, 0.18);
}

.wide-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.wide-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rank-no {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 42px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(90deg, #ec4899, #f97316);
    font-weight: 900;
}

.wide-body h3 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 900;
}

.wide-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 0 24px;
}

.scroll-row .movie-card {
    width: 260px;
}

.rank-preview {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #312e81 52%, #831843);
}

.rank-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

.rank-title h2,
.rank-title p {
    color: #ffffff;
}

.rank-title p {
    max-width: 420px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.76);
}

.compact .wide-card a {
    color: var(--text);
}

.page-hero {
    padding: 76px 0;
}

.page-hero > div {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.gradient-hero {
    background: linear-gradient(90deg, #ffe4f0, #ede9fe, #dbeafe);
}

.rank-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #581c87, #be185d);
}

.rank-hero h1,
.rank-hero p {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 3px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.category-collage img {
    width: 100%;
    aspect-ratio: 1 / 0.72;
    object-fit: cover;
}

.category-overview-body span {
    display: inline-flex;
    margin: 0 18px 20px;
    color: #ec4899;
    font-weight: 900;
}

.filter-panel,
.search-page-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 160px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    outline: none;
}

.search-page-form {
    grid-template-columns: minmax(220px, 1fr) 130px;
}

.search-page-form button {
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    font-weight: 900;
}

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

.empty-state.show {
    display: block;
}

.top-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.top-rank-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: end;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.top-rank-card div {
    position: relative;
    z-index: 1;
    padding: 26px;
    color: #ffffff;
}

.top-rank-card span {
    font-weight: 900;
    color: #fde047;
}

.top-rank-card h2 {
    margin: 8px 0;
    font-size: 26px;
    font-weight: 900;
}

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

.full-rank .wide-card a {
    grid-template-columns: 150px minmax(0, 1fr);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(5px);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(88, 28, 135, 0.72), rgba(17, 24, 39, 0.72));
}

.detail-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 42px;
    padding: 60px 0;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

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

.detail-copy h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.detail-one-line {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta span {
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
}

.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    padding-bottom: 22px;
}

.player-card {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    background: #000000;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
}

.play-cover span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    font-size: 38px;
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.35);
}

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

.player-info {
    padding: 22px 26px;
    color: #ffffff;
}

.player-info h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.player-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

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

.content-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

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

.related-card .card-body p,
.related-card .tag-row {
    display: none;
}

.search-heading h2 {
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 900;
}

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

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

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

    .nav-search {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
    }

    .hero-slide,
    .rank-inner,
    .detail-inner,
    .detail-content,
    .full-rank .wide-card a {
        grid-template-columns: 1fr;
    }

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

    .wide-card a {
        grid-template-columns: 160px minmax(0, 1fr);
    }

    .filter-panel,
    .search-page-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .brand {
        font-size: 20px;
    }

    .section,
    .hero-inner,
    .page-hero > div,
    .detail-inner,
    .nav-inner {
        width: min(100% - 22px, 1200px);
    }

    .hero-section {
        padding-top: 34px;
    }

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

    .movie-grid,
    .catalog-grid,
    .dense-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .full-rank {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
        min-height: 40px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .wide-card a {
        grid-template-columns: 1fr;
    }

    .wide-poster img {
        aspect-ratio: 16 / 9;
    }

    .top-rank-card {
        min-height: 260px;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-btn,
    .ghost-btn {
        min-height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }
}
