:root {
    --bg: #fff7fb;
    --bg-soft: #fff0f7;
    --card: rgba(255, 255, 255, 0.88);
    --text: #221727;
    --muted: #74687b;
    --line: rgba(220, 80, 145, 0.18);
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #38bdf8;
    --shadow: 0 24px 70px rgba(168, 85, 247, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.18), transparent 30rem),
        radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.14), transparent 26rem),
        linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fbf7ff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

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

.main-nav a {
    padding: 10px 15px;
    border-radius: 999px;
    color: #5f5466;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.26);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    padding: 10px 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 54px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(236, 72, 153, 0.12), transparent 36rem);
    pointer-events: none;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    border-radius: 44px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: #19091d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 34px;
    align-items: center;
    padding: 62px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(20, 5, 26, 0.94) 0%, rgba(72, 19, 80, 0.76) 48%, rgba(21, 10, 34, 0.5) 100%),
        radial-gradient(circle at 15% 30%, rgba(236, 72, 153, 0.38), transparent 26rem);
    z-index: 0;
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-eyebrow,
.section-eyebrow,
.page-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(252, 231, 243, 0.9);
    border: 1px solid rgba(236, 72, 153, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, #fb7185, #f0abfc, #7dd3fc);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 0 28px;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.78;
}

.hero-actions,
.section-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn,
.btn-soft,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn {
    color: #fff;
    padding: 13px 21px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
}

.btn:hover,
.btn-soft:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.btn-soft {
    color: #fff;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    justify-self: end;
    width: min(420px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(56, 189, 248, 0.25));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 62px;
    bottom: 38px;
    z-index: 3;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, #fb7185, #a78bfa);
}

.section {
    padding: 58px 0;
}

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

.section h2,
.page-head h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.section-head p,
.page-head p,
.category-lead {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 740px;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: 0 18px 42px rgba(168, 85, 247, 0.1);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 68px rgba(236, 72, 153, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.22), rgba(139, 92, 246, 0.2), rgba(56, 189, 248, 0.16));
}

.poster img,
.rank-cover img,
.detail-cover img,
.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover .poster img,
.rank-item:hover .rank-cover img,
.related-card:hover .related-cover img {
    transform: scale(1.06);
}

.poster-badge,
.rank-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.card-body {
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(251, 207, 232, 0.38);
}

.movie-card h3,
.rank-item h3,
.related-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

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

.movie-card p,
.rank-item p,
.related-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

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

.tag-row span {
    color: #be185d;
    background: rgba(252, 231, 243, 0.78);
    border: 1px solid rgba(236, 72, 153, 0.13);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(253, 242, 248, 0.88));
    border: 1px solid rgba(236, 72, 153, 0.16);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.1);
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -42px;
    bottom: -42px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(56, 189, 248, 0.18));
}

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

.category-tile p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-tile a,
.text-link {
    color: var(--pink);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(150px, 0.5fr));
    gap: 12px;
    padding: 18px;
    margin: 26px 0 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.1);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid rgba(236, 72, 153, 0.18);
    outline: none;
}

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

.empty-state {
    display: none;
    padding: 34px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
}

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

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 118px 52px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.09);
    transition: 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
}

.rank-cover {
    height: 148px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(56, 189, 248, 0.16));
}

.rank-number {
    position: static;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 16px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

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

.page-shell {
    padding: 46px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.player-card,
.detail-panel {
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0c0612;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
    background: #0c0612;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 46%, rgba(236, 72, 153, 0.35), transparent 15rem),
        linear-gradient(180deg, rgba(14, 8, 19, 0.35), rgba(14, 8, 19, 0.78));
    transition: 0.25s ease;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 30px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 20px 52px rgba(236, 72, 153, 0.38);
}

.player-overlay strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

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

.player-info {
    padding: 28px;
}

.player-info h1,
.detail-panel h2 {
    margin: 12px 0;
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.player-info h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.player-info p,
.detail-panel p,
.detail-panel li {
    color: var(--muted);
    line-height: 1.86;
}

.detail-panel {
    padding: 24px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(56, 189, 248, 0.16));
    margin-bottom: 18px;
}

.info-list {
    display: grid;
    gap: 11px;
    margin: 18px 0 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.info-list span:first-child {
    color: var(--muted);
}

.info-list span:last-child {
    font-weight: 800;
    text-align: right;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(236, 72, 153, 0.14);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.9;
}

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

.related-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(236, 72, 153, 0.14);
}

.related-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(56, 189, 248, 0.16));
}

.related-card h3 {
    padding: 12px 12px 0;
    font-size: 15px;
}

.related-card p {
    padding: 8px 12px 14px;
    font-size: 13px;
}

.site-footer {
    margin-top: 44px;
    padding: 48px 0 20px;
    background: #1a0c1f;
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}

.site-footer p {
    margin: 12px 0 0;
    line-height: 1.8;
    max-width: 520px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

@media (max-width: 980px) {
    .main-nav {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        border: 1px solid var(--line);
    }

    .main-nav.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-stage {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .hero-poster {
        justify-self: start;
        width: min(280px, 80%);
    }

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

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

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

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

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        height: 68px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding-top: 22px;
    }

    .hero-stage {
        min-height: 680px;
        border-radius: 28px;
    }

    .hero-slide {
        padding: 24px;
    }

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

    .hero p {
        font-size: 15px;
    }

    .hero-controls {
        left: 24px;
        bottom: 24px;
    }

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

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

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

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

    .rank-number {
        position: absolute;
        left: 18px;
        top: 18px;
    }

    .rank-cover {
        height: 128px;
    }
}
