:root {
    --pink: #ec4899;
    --pink-dark: #be185d;
    --purple: #7c3aed;
    --purple-dark: #4c1d95;
    --blue: #2563eb;
    --cyan: #0891b2;
    --orange: #f97316;
    --red: #ef4444;
    --gold: #facc15;
    --green: #10b981;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(148, 163, 184, 0.25);
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 22px 55px rgba(88, 28, 135, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(88, 28, 135, 0.92), rgba(17, 24, 39, 0.94));
    box-shadow: 0 12px 35px rgba(30, 41, 59, 0.26);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

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

.main-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    width: 260px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.header-search input {
    min-width: 0;
    flex: 1;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header-search button {
    border: 0;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.main-content {
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease, transform 3s ease;
    transform: scale(1.04);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(80, 7, 36, 0.94) 0%, rgba(76, 29, 149, 0.82) 45%, rgba(30, 64, 175, 0.86) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: center;
    padding: 54px 0;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 42px rgba(124, 58, 237, 0.28);
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.hero-panel {
    padding: 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.hero-panel h2 {
    margin: 18px 0 8px;
    font-size: 24px;
}

.hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

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

.hero-dots button {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 58px;
    background: #ffffff;
}

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

.section.wide-bg {
    width: 100%;
    max-width: none;
    padding: 64px 0;
    background: rgba(255, 255, 255, 0.74);
}

.section.wide-bg > .section-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.section-title h2,
.section-title h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-title p,
.lead {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.icon-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 24px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--shadow);
}

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

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

.movie-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(88, 28, 135, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.75);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-poster {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #4c1d95);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card-body h3 {
    margin: 8px 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 900;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-label {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    color: var(--pink-dark);
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: #fce7f3;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(3n + 1) {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.category-card:nth-child(3n + 3) {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.category-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 60px rgba(88, 28, 135, 0.22);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-icon {
    font-size: 36px;
}

.category-card h3 {
    position: relative;
    margin: 14px 0 8px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.72), transparent 32%), linear-gradient(115deg, #111827, #581c87 52%, #1e40af);
}

.page-hero .section {
    padding: 70px 0;
}

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

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(88, 28, 135, 0.08);
}

.filter-bar input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    outline: 0;
    border-radius: 999px;
    padding: 13px 18px;
    background: #ffffff;
}

.filter-bar input:focus {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 68px 94px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(88, 28, 135, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-number {
    color: var(--pink-dark);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-thumb {
    width: 94px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #4c1d95);
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

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

.rank-score {
    display: grid;
    place-items: center;
    min-width: 72px;
    color: #ffffff;
    font-weight: 950;
    border-radius: 16px;
    padding: 12px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin-bottom: 24px;
}

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

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.55), transparent 32%), linear-gradient(115deg, #111827, #581c87 50%, #1e3a8a);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #111827;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.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(0deg, rgba(0, 0, 0, 0.68), rgba(88, 28, 135, 0.38));
}

.play-button {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
    transform: scale(1.07);
    box-shadow: 0 28px 58px rgba(236, 72, 153, 0.32);
}

.detail-card {
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

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

.detail-meta div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta strong {
    display: block;
    margin-bottom: 4px;
    color: #fde68a;
    font-size: 12px;
}

.article-box {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(88, 28, 135, 0.08);
}

.article-box h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-box p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    font-size: 16px;
}

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

.side-panel {
    display: grid;
    gap: 14px;
}

.side-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(88, 28, 135, 0.07);
}

.side-card img {
    width: 78px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.side-card h3 {
    margin: 4px 0 6px;
    font-size: 16px;
    line-height: 1.35;
}

.side-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
}

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

.site-footer {
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #581c87, #111827);
    margin-top: 42px;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.footer-title {
    font-size: 22px;
    font-weight: 950;
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

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

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

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1060px) {
    .header-search {
        width: 210px;
    }

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

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

    .hero-inner,
    .detail-layout,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }
}

@media (max-width: 820px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-slider,
    .hero-inner {
        min-height: 620px;
    }

    .section-title {
        display: block;
    }

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

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

    .rank-score {
        grid-column: 3;
        justify-self: start;
        margin-top: 8px;
    }

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

@media (max-width: 560px) {
    .nav-inner,
    .mobile-nav,
    .section,
    .section.wide-bg > .section-inner,
    .footer-inner,
    .copyright {
        width: min(100% - 22px, 1180px);
    }

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

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

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

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

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

    .rank-item {
        grid-template-columns: 40px 72px minmax(0, 1fr);
        gap: 12px;
    }

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