:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-50: #fdf2f8;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 20px 60px rgba(244, 63, 94, 0.18);
    --soft-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.52), #ffffff 28%, rgba(253, 242, 248, 0.42));
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(244, 63, 94, 0.08);
    border-bottom: 1px solid rgba(244, 63, 94, 0.08);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.28);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 23px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--gray-500);
    font-size: 12px;
    margin-top: 4px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--gray-600);
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--rose-500);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--rose-50);
    color: var(--rose-500);
    cursor: pointer;
}

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

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--gray-50);
    color: var(--gray-600);
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fdf2f8 55%, #fff1f2);
    padding: 72px 0 138px;
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(56px);
    opacity: 0.28;
    background: var(--rose-400);
}

.glow-one {
    top: 10px;
    left: 7%;
}

.glow-two {
    right: 7%;
    bottom: 20px;
    background: var(--pink-400);
}

.hero-heading {
    position: relative;
    text-align: center;
}

.hero-title-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-title-line span {
    color: var(--rose-400);
    font-size: 28px;
}

.hero-heading h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.05;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500), var(--rose-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-heading p,
.page-hero p {
    margin: 0;
    color: var(--gray-600);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-card-wrap {
    margin-top: -92px;
    position: relative;
    z-index: 5;
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.hero-main {
    position: relative;
    min-height: 470px;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.hero-poster {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.active .hero-poster img {
    transform: scale(1.12);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.12)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.hero-copy {
    position: absolute;
    left: clamp(22px, 5vw, 58px);
    right: clamp(22px, 12vw, 120px);
    bottom: 58px;
    color: white;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--rose-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    padding: 7px 12px;
    border-radius: 999px;
    color: white;
    background: var(--rose-500);
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.hero-tags,
.movie-meta-line,
.info-grid,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--rose-600);
    background: var(--rose-50);
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

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

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

.btn.primary {
    color: white;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

.btn.primary.light {
    color: var(--rose-500);
    background: white;
}

.btn.ghost {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    font-size: 26px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 26px;
    background: white;
}

.hero-hot {
    padding: 34px;
    background: linear-gradient(135deg, var(--rose-50), var(--pink-50));
}

.section-mini-title,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.section-mini-title {
    justify-content: flex-start;
    margin-bottom: 22px;
}

.section-mini-title span {
    color: var(--rose-500);
    font-size: 26px;
}

.section-mini-title h2,
.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
}

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 44px 0 20px;
}

.quick-categories a {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--gray-600);
    background: white;
    box-shadow: var(--soft-shadow);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quick-categories a:hover {
    color: white;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    transform: translateY(-2px);
}

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

.section-heading {
    margin-bottom: 24px;
}

.section-heading a {
    color: var(--rose-500);
    font-weight: 800;
}

.section-heading.small {
    margin-bottom: 18px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(244, 63, 94, 0.16);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--rose-50);
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 55%);
    opacity: 0.8;
}

.movie-score {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(244, 63, 94, 0.94);
    font-weight: 800;
    font-size: 13px;
}

.movie-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rose-500);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
}

.movie-body {
    padding: 16px;
}

.movie-meta-line {
    color: var(--gray-500);
    font-size: 12px;
    margin-bottom: 8px;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: var(--gray-400);
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--rose-500);
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    min-height: 142px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, white, var(--rose-50));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    color: var(--gray-800);
    font-size: 22px;
}

.category-tile span {
    color: var(--gray-600);
    line-height: 1.65;
}

.category-preview {
    margin-bottom: 44px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: stretch;
}

.ranking-panel,
.cta-panel,
.filter-panel,
.search-panel,
.detail-content,
.player-card,
.detail-side,
.ranking-page-list {
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--soft-shadow);
}

.ranking-panel {
    padding: 26px;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    background: var(--rose-50);
    transform: translateX(3px);
}

.ranking-item img {
    width: 64px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-num {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
}

.ranking-text {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ranking-text strong,
.ranking-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-text small {
    color: var(--gray-500);
}

.ranking-item em {
    color: var(--rose-500);
    font-style: normal;
    font-weight: 900;
}

.cta-panel {
    display: grid;
    place-items: center;
    text-align: center;
    align-content: center;
    padding: 42px;
    color: white;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: var(--shadow);
}

.cta-panel span {
    font-size: 58px;
    line-height: 1;
}

.cta-panel h2 {
    margin: 12px 0;
    font-size: 34px;
}

.cta-panel p {
    max-width: 330px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
}

.page-hero {
    padding: 70px 0;
    text-align: center;
    background: radial-gradient(circle at 15% 20%, rgba(251, 113, 133, 0.22), transparent 28%), radial-gradient(circle at 85% 20%, rgba(244, 114, 182, 0.22), transparent 30%), linear-gradient(135deg, var(--rose-100), var(--pink-50));
}

.page-hero .eyebrow {
    justify-content: center;
}

.page-hero p {
    max-width: 720px;
    margin: 16px auto 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    padding: 22px;
    margin-top: 32px;
}

.filter-panel label,
.search-box {
    display: grid;
    gap: 8px;
}

.filter-panel span {
    color: var(--gray-600);
    font-weight: 800;
    font-size: 14px;
}

input,
select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--gray-800);
    background: white;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15);
}

.search-panel {
    padding: 28px;
    margin-top: 34px;
    margin-bottom: 54px;
}

.search-box {
    grid-template-columns: minmax(0, 1fr) 220px 120px;
    align-items: end;
    margin-bottom: 28px;
}

.search-box button {
    height: 48px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
    cursor: pointer;
}

.search-empty {
    padding: 36px;
    text-align: center;
    color: var(--gray-500);
    border-radius: 18px;
    background: var(--gray-50);
}

.top-three .movie-card-large .movie-cover {
    aspect-ratio: 16 / 10;
}

.ranking-page-list {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.detail-page {
    padding-top: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--gray-500);
    font-size: 14px;
}

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

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

.player-card {
    overflow: hidden;
    padding: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #05070d;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #05070d;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(5, 7, 13, 0.68), rgba(5, 7, 13, 0.22));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rose-500);
    background: rgba(255, 255, 255, 0.9);
    font-size: 32px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 18px;
}

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

.detail-side {
    padding: 14px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: var(--rose-50);
}

.detail-stat {
    margin-top: 14px;
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--rose-50), var(--pink-50));
}

.detail-stat strong {
    display: block;
    color: var(--rose-500);
    font-size: 42px;
    line-height: 1;
}

.detail-stat span {
    color: var(--gray-500);
    font-weight: 700;
}

.detail-content {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 42px);
}

.detail-content h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.detail-content .lead {
    margin: 0 0 22px;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.75;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.info-grid div {
    padding: 16px;
    border-radius: 16px;
    background: var(--gray-50);
}

.info-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-500);
    font-size: 13px;
}

.info-grid strong {
    color: var(--gray-800);
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-content section {
    margin-top: 28px;
}

.detail-content h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-content section p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 16px;
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(244, 63, 94, 0.1);
    background: linear-gradient(180deg, var(--rose-50), white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 44px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--rose-500);
    font-size: 20px;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: var(--gray-600);
    line-height: 1.8;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer a:hover {
    color: var(--rose-500);
}

.footer-bottom {
    padding: 18px 0 28px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1040px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-card,
    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-hot {
        padding: 26px;
    }
}

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

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .home-hero {
        padding: 52px 0 112px;
    }

    .hero-main {
        min-height: 560px;
    }

    .hero-copy {
        left: 20px;
        right: 20px;
        bottom: 86px;
    }

    .hero-controls {
        left: 20px;
        right: 20px;
        justify-content: center;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .footer-grid,
    .info-grid,
    .filter-panel,
    .search-box {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: auto 56px minmax(0, 1fr);
    }

    .ranking-item em {
        display: none;
    }

    .footer-grid {
        gap: 22px;
    }

    .page-hero {
        padding: 52px 0;
    }
}

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

    .header-inner {
        height: 68px;
    }

    .hero-card-wrap {
        margin-top: -76px;
    }

    .hero-main {
        min-height: 590px;
    }

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

    .movie-grid {
        gap: 16px;
    }

    .category-tile {
        min-height: 126px;
    }
}
