:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff1f6;
    --text: #22212a;
    --muted: #6b6675;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --rose: #f43f5e;
    --orange: #f97316;
    --yellow: #f59e0b;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --shadow: 0 22px 60px rgba(79, 31, 60, 0.13);
    --shadow-soft: 0 12px 36px rgba(79, 31, 60, 0.1);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 45%, #fffaf0 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 10px 16px;
    color: #4b4558;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--pink);
    background: #fff1f7;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f7;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--pink);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 20px 16px;
    max-width: 1180px;
    margin: 0 auto;
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.38), transparent 28%), linear-gradient(135deg, #ec4899 0%, #f97316 50%, #facc15 100%);
}

.stars {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: radial-gradient(#ffffff 1px, transparent 1px), radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 38px 38px, 72px 72px;
    background-position: 0 0, 18px 28px;
    animation: star-drift 26s linear infinite;
}

@keyframes star-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-72px, 38px, 0);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    min-height: 560px;
    margin: 0 auto;
    padding: 74px 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: 46px;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 48px rgba(92, 27, 40, 0.24);
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 670px;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: var(--pink);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(160, 64, 80, 0.22);
}

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

.hero-showcase {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background: rgba(29, 15, 28, 0.48);
    box-shadow: 0 30px 70px rgba(99, 33, 50, 0.35);
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(10, 8, 14, 0.86) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.hero-slide-content strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: -28px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px;
}

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

.section-title {
    margin: 0;
    color: #2b2634;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    white-space: nowrap;
    color: var(--pink);
    font-weight: 900;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f7, #fff7ed);
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0.52) 100%);
    opacity: 0.76;
}

.duration-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

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

.card-meta {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    margin: 10px 0 0;
    color: #554f62;
    font-size: 14px;
    line-height: 1.58;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff1f7;
    color: #be185d;
    font-size: 12px;
    font-weight: 800;
}

.search-panel {
    margin: 0 0 30px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: #383142;
    font-weight: 900;
}

.search-control {
    display: flex;
    gap: 12px;
}

.search-control input {
    flex: 1;
    min-height: 48px;
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    color: var(--text);
    background: #ffffff;
}

.search-control input:focus {
    border-color: rgba(236, 72, 153, 0.56);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.search-control button {
    min-width: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.category-card {
    position: relative;
    display: grid;
    min-height: 210px;
    padding: 26px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow);
}

.tone-pink { background: linear-gradient(135deg, #ec4899, #fb7185); }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.tone-orange { background: linear-gradient(135deg, #f97316, #facc15); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.tone-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tone-red { background: linear-gradient(135deg, #ef4444, #f97316); }
.tone-yellow { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.tone-amber { background: linear-gradient(135deg, #b45309, #f59e0b); }
.tone-green { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.tone-violet { background: linear-gradient(135deg, #a855f7, #ec4899); }
.tone-slate { background: linear-gradient(135deg, #334155, #0f172a); }

.category-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    right: -46px;
    top: -36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(4px);
}

.category-name {
    position: relative;
    z-index: 2;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-intro {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.category-strip {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    align-self: end;
    margin-top: 22px;
}

.category-strip img {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.62);
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 84px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    font-weight: 900;
}

.rank-item img {
    width: 84px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2f2938;
}

.rank-copy em {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ec4899, #f97316 55%, #facc15);
    color: #ffffff;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 72px;
    padding-bottom: 72px;
}

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #7a7185;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--pink);
    font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f0b16;
}

.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0f0b16;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #110d18;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.68));
}

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

.play-round {
    position: relative;
    z-index: 4;
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--pink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

.player-info {
    padding: 22px 24px 26px;
}

.player-info h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.05em;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-card {
    padding: 26px;
    margin-top: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-card p {
    margin: 0 0 16px;
    color: #4d4658;
    line-height: 1.9;
}

.side-card {
    padding: 18px;
}

.side-card + .side-card {
    margin-top: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 18px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: #fff1f7;
}

.related-item img {
    width: 86px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    color: #312a3a;
    line-height: 1.35;
}

.related-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.empty-result {
    display: none;
    padding: 28px;
    border: 1px dashed rgba(236, 72, 153, 0.35);
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.66);
}

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

.site-footer {
    margin-top: 48px;
    background: #191320;
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 20px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    margin: 8px 0 0;
}

@media (max-width: 1040px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 400px;
    }

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

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

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

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 74px;
    }

    .hero-showcase {
        min-height: 340px;
    }

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

    .hero-dots {
        bottom: -34px;
        left: 22px;
        right: auto;
    }

    .section-head {
        display: block;
    }

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

    .grid-featured,
    .grid-movies,
    .grid-categories,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .search-control {
        display: grid;
    }

    .search-control button {
        min-height: 44px;
    }

    .rank-item {
        grid-template-columns: 38px 78px 1fr;
    }

    .player-info,
    .detail-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .category-card {
        min-height: 190px;
    }
}
