:root {
    --color-pink: #ec4899;
    --color-orange: #f97316;
    --color-yellow: #facc15;
    --color-ink: #222222;
    --color-muted: #687083;
    --color-line: rgba(236, 72, 153, 0.18);
    --color-soft: #fff7ed;
    --shadow-card: 0 22px 50px rgba(236, 72, 153, 0.16);
    --shadow-hover: 0 26px 70px rgba(249, 115, 22, 0.24);
    --radius-lg: 28px;
    --radius-md: 20px;
    --site-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background:
        radial-gradient(circle at 14% 12%, rgba(236, 72, 153, 0.12), transparent 28%),
        radial-gradient(circle at 90% 4%, rgba(250, 204, 21, 0.22), transparent 28%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fffaf2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-shell {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(236, 72, 153, 0.16);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

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

.brand-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange), var(--color-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-pink);
    background: rgba(236, 72, 153, 0.08);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.08);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-pink);
}

.hero-section {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #101010;
}

.hero-slider,
.hero-slide,
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
    transform: scale(1.06);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(18, 13, 18, 0.86), rgba(18, 13, 18, 0.34), rgba(18, 13, 18, 0.78)),
        linear-gradient(180deg, rgba(236, 72, 153, 0.34), rgba(249, 115, 22, 0.22));
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(var(--site-width), calc(100% - 32px));
    color: #ffffff;
    animation: fade-up 0.7s ease both;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 16px;
    font-size: clamp(44px, 8vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 7px 13px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

.eyebrow.dark {
    color: var(--color-pink);
    border-color: rgba(236, 72, 153, 0.2);
    background: rgba(236, 72, 153, 0.08);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.35);
}

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

.secondary-btn.light {
    color: var(--color-pink);
    border-color: rgba(236, 72, 153, 0.2);
    background: rgba(236, 72, 153, 0.06);
}

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

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

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

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

.search-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 480px);
    gap: 24px;
    align-items: center;
    margin-top: -48px;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.play-title h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 999px;
    background: #ffffff;
}

.search-form input,
.list-toolbar input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: none;
    background: transparent;
}

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

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

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

.compact-head {
    align-items: center;
}

.text-link {
    color: var(--color-pink);
    background: rgba(236, 72, 153, 0.08);
}

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

.category-card,
.category-detail-card a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 168px;
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, #ffffff, #fff7ed);
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-detail-card a:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card span,
.category-detail-card h2 {
    color: var(--color-ink);
    font-size: 22px;
    font-weight: 900;
}

.category-card strong,
.category-detail-card strong {
    color: var(--color-pink);
}

.category-card em,
.category-detail-card em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 14px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.score-badge,
.duration-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.score-badge {
    left: 12px;
}

.duration-badge {
    right: 12px;
}

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

.movie-card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta span,
.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.07);
}

.tag-row {
    margin-top: 12px;
}

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

.hot-panel,
.article-card,
.side-card,
.play-info article,
.play-info aside {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.hot-panel {
    padding: 22px;
}

.rank-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 86px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-num {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--color-muted);
    font-size: 14px;
}

.ghost-link {
    min-height: 36px;
    padding: 0 14px;
    color: var(--color-pink);
    background: rgba(236, 72, 153, 0.08);
}

.page-main {
    padding-top: 32px;
    padding-bottom: 68px;
}

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

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
    margin-right: 10px;
    color: #c0a7b4;
    content: "/";
}

.breadcrumb.on-dark {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb.on-dark a {
    color: #ffffff;
}

.page-hero {
    padding: 42px;
    margin-bottom: 28px;
    color: #ffffff;
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 18%, rgba(250, 204, 21, 0.32), transparent 26%),
        linear-gradient(135deg, var(--color-pink), var(--color-orange));
    box-shadow: var(--shadow-card);
}

.page-hero p,
.play-title p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.88);
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
}

.list-toolbar label {
    display: grid;
    grid-template-columns: auto minmax(240px, 520px);
    gap: 16px;
    align-items: center;
    width: 100%;
}

.list-toolbar span {
    color: var(--color-pink);
    font-weight: 800;
}

.list-toolbar input {
    padding: 0 16px;
    border: 1px solid rgba(236, 72, 153, 0.14);
    border-radius: 999px;
    background: #ffffff;
}

.rank-board {
    padding: 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.full-rank .rank-item {
    grid-template-columns: 54px 120px minmax(0, 1fr) auto;
}

.detail-main {
    padding-top: 0;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.42), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.28), transparent 30%),
        linear-gradient(135deg, #1f0f18, #3d190f 48%, #25130e);
}

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

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

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

.detail-copy h1 {
    margin: 14px 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
}

.lead-text {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.detail-meta,
.detail-tags {
    margin-top: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.player-section {
    margin-top: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #050505;
    box-shadow: 0 26px 78px rgba(0, 0, 0, 0.24);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #050505;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

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

.play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.38);
    font-size: 28px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 34px;
}

.article-card,
.side-card {
    padding: 28px;
}

.article-card h2,
.side-card h2,
.play-info h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 24px;
    color: #3d4451;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.side-card dt {
    color: var(--color-muted);
}

.side-card dd {
    margin: 0;
    font-weight: 700;
}

.prev-next {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.play-main {
    max-width: 1060px;
}

.play-title {
    margin-bottom: 22px;
    padding: 32px;
    color: #ffffff;
    border-radius: 30px;
    background: linear-gradient(135deg, #21111c, #4a1f12);
}

.no-margin {
    margin-top: 0;
}

.video-shell.cinema {
    border-radius: 24px;
}

.play-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    margin-top: 24px;
}

.play-info article,
.play-info aside {
    padding: 24px;
}

.play-links {
    display: grid;
    gap: 10px;
}

.play-links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(236, 72, 153, 0.08);
}

.site-footer {
    margin-top: 32px;
    padding: 44px 0;
    border-top: 1px solid var(--color-line);
    background: linear-gradient(90deg, rgba(252, 231, 243, 0.7), rgba(255, 237, 213, 0.72));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.site-footer p {
    max-width: 420px;
    margin: 0;
    color: var(--color-muted);
}

.footer-links {
    display: grid;
    gap: 8px;
    color: var(--color-muted);
}

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

@media (max-width: 1100px) {
    .category-grid,
    .category-detail-grid,
    .movie-grid.large-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .split-layout,
    .content-layout,
    .play-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 22px, var(--site-width));
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 70px;
        right: 12px;
        left: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--color-line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-card);
    }

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

    .hero-section {
        height: 620px;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .search-panel,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-form,
    .list-toolbar,
    .list-toolbar label,
    .section-head,
    .rank-item,
    .full-rank .rank-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .category-grid,
    .category-detail-grid,
    .movie-grid,
    .movie-grid.small-grid,
    .movie-grid.large-list {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .play-title {
        padding: 26px;
    }
}
