:root {
    --page-bg: #fff7fd;
    --text-main: #111827;
    --text-muted: #6b7280;
    --purple: #9333ea;
    --pink: #db2777;
    --rose: #f43f5e;
    --soft-purple: #f3e8ff;
    --soft-pink: #fce7f3;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border: rgba(147, 51, 234, 0.16);
    --shadow: 0 24px 70px rgba(147, 51, 234, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(135deg, #fff7fd 0%, #fdf2f8 45%, #faf5ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.container,
.section-block,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.12);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 12px 28px rgba(147, 51, 234, 0.28);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #374151;
    font-weight: 700;
}

.nav-menu a {
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3e8ff;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--purple);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 68px 0 36px;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 55%, #fff1f2 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.28;
}

.hero-glow-a {
    width: 360px;
    height: 360px;
    top: 36px;
    left: 6%;
    background: #a855f7;
}

.hero-glow-b {
    width: 420px;
    height: 420px;
    right: 2%;
    bottom: 24px;
    background: #ec4899;
}

.hero-container {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
    gap: 44px;
    align-items: center;
    min-height: 610px;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-eyebrow,
.section-title p,
.highlight-panel > p,
.ranking-card > div > p,
.movie-meta {
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 860px;
    margin: 14px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, #581c87 0%, var(--purple) 42%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    color: #111827;
}

.hero-copy p {
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #7e22ce;
    background: rgba(243, 232, 255, 0.92);
    border: 1px solid rgba(147, 51, 234, 0.13);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.primary-btn,
.secondary-btn,
.card-action,
.inline-search button,
.search-fields button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.card-action,
.inline-search button,
.search-fields button {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 16px 32px rgba(147, 51, 234, 0.26);
}

.secondary-btn {
    color: #7e22ce;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(147, 51, 234, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.card-action:hover,
.inline-search button:hover,
.search-fields button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.24);
}

.hero-search,
.inline-search,
.search-fields {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.hero-search input,
.inline-search input,
.search-fields input,
.search-fields select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(147, 51, 234, 0.16);
    border-radius: 14px;
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
    padding: 0 16px;
    outline: none;
}

.hero-search input:focus,
.inline-search input:focus,
.search-fields input:focus,
.search-fields select:focus {
    border-color: rgba(147, 51, 234, 0.55);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    min-height: 540px;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    box-shadow: 0 34px 80px rgba(147, 51, 234, 0.26);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.82));
}

.hero-poster span {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 12px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(147, 51, 234, 0.2);
}

.hero-dots button.active {
    background: linear-gradient(90deg, var(--purple), var(--pink));
}

.feature-strip {
    padding: 28px 0;
}

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

.feature-grid article,
.category-card,
.movie-card,
.highlight-panel,
.ranking-card,
.detail-content article,
.video-shell,
.search-panel,
.page-hero .container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.feature-grid article {
    padding: 22px;
}

.feature-grid strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.feature-grid span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.section-block {
    padding: 54px 0;
}

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

.section-title h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-title a {
    color: var(--purple);
    font-weight: 900;
}

.left-title {
    display: block;
}

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

.category-card {
    padding: 24px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 72px rgba(147, 51, 234, 0.22);
}

.category-card span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    font-size: 12px;
    font-weight: 900;
}

.category-card h3 {
    margin: 16px 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #7e22ce;
    background: #faf5ff;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 82px rgba(147, 51, 234, 0.2);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img {
    transform: scale(1.045);
}

.cover-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(147, 51, 234, 0.9);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
    color: var(--purple);
}

.movie-desc {
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    width: 100%;
    margin-top: 18px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
    gap: 24px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 70px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
}

.rank-number {
    font-size: 20px;
    color: var(--purple);
    font-weight: 950;
}

.rank-row img {
    width: 70px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    background: #f3e8ff;
}

.rank-info strong,
.small-movie-link strong {
    display: block;
    font-weight: 900;
}

.rank-info em,
.small-movie-link em {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-style: normal;
    font-size: 13px;
}

.rank-arrow {
    color: var(--purple);
    font-size: 28px;
    font-weight: 300;
}

.highlight-panel {
    padding: 34px;
    position: sticky;
    top: 100px;
}

.highlight-panel h2 {
    margin: 10px 0 14px;
    font-size: 34px;
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.highlight-panel p {
    color: var(--text-muted);
    line-height: 1.9;
}

.page-hero {
    padding: 58px 0 28px;
}

.page-hero .container {
    padding: 46px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(253, 242, 248, 0.92));
}

.page-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p:last-child {
    max-width: 840px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.85;
}

.list-toolbar {
    padding-top: 20px;
    padding-bottom: 20px;
}

.inline-search {
    margin-top: 0;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
}

.ranking-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #f3e8ff;
}

.ranking-cover img {
    width: 130px;
    height: 176px;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    font-weight: 950;
}

.ranking-card h2 {
    margin: 6px 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.ranking-card div > p:last-of-type {
    color: var(--text-muted);
    line-height: 1.7;
}

.search-panel {
    padding: 24px;
}

.search-fields {
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 0.7fr)) auto;
}

.search-status {
    margin: 18px 0 24px;
    color: var(--text-muted);
    font-weight: 700;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.detail-hero {
    padding: 42px 0 20px;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.16), transparent 34%), radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 38%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: #7e22ce;
    font-weight: 800;
}

.breadcrumb span:last-child {
    color: var(--text-muted);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(147, 51, 234, 0.25);
    background: #f3e8ff;
}

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

.detail-info h1 {
    margin: 10px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-meta {
    color: var(--purple);
    font-weight: 900;
}

.detail-one-line {
    max-width: 880px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.large-tags span {
    min-height: 34px;
    padding: 7px 14px;
}

.player-section {
    padding-top: 32px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.hls-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: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.22), rgba(17, 24, 39, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 20px 48px rgba(147, 51, 234, 0.4);
    font-size: 28px;
}

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

.video-shell.is-playing .play-overlay,
.video-shell.is-ready .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.detail-content article {
    padding: 28px;
}

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

.detail-content p {
    color: #4b5563;
    line-height: 2;
    font-size: 17px;
}

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

.info-list div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #faf5ff;
}

.info-list dt {
    color: var(--purple);
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: #374151;
}

.small-movie-link {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.small-movie-link img {
    width: 56px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3e8ff;
}

.site-footer {
    margin-top: 42px;
    padding: 54px 0 0;
    color: #f5f3ff;
    background: linear-gradient(135deg, #581c87, #831843);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 42px;
}

.footer-inner p {
    max-width: 460px;
    margin-top: 14px;
    color: #e9d5ff;
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 900;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: #f3e8ff;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #e9d5ff;
    font-size: 14px;
}

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

@media (max-width: 1024px) {
    .hero-slide,
    .detail-layout,
    .two-column-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 420px;
        transform: none;
    }

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

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

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .highlight-panel {
        position: static;
    }

    .search-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 64px;
    }

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

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 70px rgba(147, 51, 234, 0.2);
    }

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

    .nav-menu a {
        padding: 12px;
    }

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

    .hero-container,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide.active {
        display: block;
    }

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

    .hero-actions,
    .hero-search,
    .inline-search {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-poster {
        margin-top: 28px;
        min-height: 360px;
    }

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

    .hero-dots {
        position: static;
        margin-top: 18px;
    }

    .section-title {
        display: block;
    }

    .section-title a {
        display: inline-flex;
        margin-top: 10px;
    }

    .movie-grid,
    .category-grid,
    .feature-grid,
    .search-fields,
    .info-list {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .ranking-cover img {
        width: 100px;
        height: 142px;
    }

    .rank-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-arrow {
        display: none;
    }

    .rank-row img {
        width: 58px;
        height: 76px;
    }

    .page-hero .container,
    .detail-content article,
    .highlight-panel,
    .search-panel {
        padding: 24px;
    }

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