:root {
    --rose: #e11d48;
    --rose-soft: #fb7185;
    --orange: #f97316;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f9fafb 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.site-nav {
    max-width: 1180px;
    height: 76px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark,
.footer-brand span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #fb923c);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, #e11d48, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    color: #374151;
}

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

.hero-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(115deg, #ffe4e6 0%, #fff7ed 45%, #fef3c7 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: linear-gradient(rgba(225, 29, 72, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(225, 29, 72, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    min-height: 600px;
    margin: 0 auto;
    padding: 72px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.10);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, #e11d48, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 26px;
    color: #4b5563;
    font-size: 19px;
}

.hero-search,
.search-panel {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 620px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.hero-search input,
.search-panel input,
.toolbar input,
.search-panel select {
    width: 100%;
    border: 1px solid transparent;
    outline: none;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
}

.hero-search input,
.search-panel input {
    padding: 14px 18px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 26px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, #e11d48, #f97316);
    cursor: pointer;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f97316);
}

.btn.secondary {
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-card-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 34px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35), transparent);
}

.hero-card-copy span,
.card-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: #e11d48;
    font-size: 12px;
    font-weight: 800;
}

.hero-card-copy h2 {
    margin: 14px 0 8px;
    font-size: 30px;
    line-height: 1.15;
}

.hero-card-copy p {
    margin: 0;
    color: #e5e7eb;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.content-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 22px;
}

.content-section.inner {
    padding-left: 22px;
    padding-right: 22px;
}

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

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-more,
.text-link {
    color: var(--rose);
    font-weight: 800;
}

.featured-grid,
.movie-grid,
.category-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    display: block;
    border: 1px solid #f1f5f9;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.movie-card figure {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #fffbeb);
}

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

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

.card-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    max-width: calc(100% - 28px);
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover h2 {
    color: var(--rose);
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

.movie-card.feature {
    position: relative;
    border: 0;
}

.movie-card.feature .card-body {
    position: absolute;
    inset: auto 0 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28), transparent);
}

.movie-card.feature .card-body p,
.movie-card.feature .card-meta {
    color: #e5e7eb;
}

.movie-card.feature figure {
    aspect-ratio: 3 / 4.15;
}

.warm-section {
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.dark-section {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.dark-section .section-head h2,
.dark-section .movie-card h2 {
    color: #ffffff;
}

.dark-section .section-head p,
.dark-section .movie-card p,
.dark-section .card-meta {
    color: #d1d5db;
}

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

.movie-card.dark-card {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: none;
}

.category-tile {
    min-height: 240px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-thumbs,
.category-cover-set {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}

.category-thumbs img,
.category-cover-set img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.category-tile h2,
.category-card-large h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-tile p,
.category-card-large p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.ranking-panel {
    position: sticky;
    top: 98px;
    padding: 24px;
    border-radius: 28px;
    background: #111827;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-panel h2 {
    margin: 0 0 4px;
    font-size: 28px;
}

.ranking-panel p {
    margin: 0 0 18px;
    color: #d1d5db;
}

.rank-list,
.stack-list,
.ranking-page-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 76px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-item img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.35;
}

.rank-item p,
.rank-item span {
    display: block;
    margin: 0;
    color: #d1d5db;
    font-size: 12px;
}

.rank-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f97316);
    font-weight: 900;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.two-columns .rank-item,
.ranking-page-list .rank-item,
.stack-list .rank-item {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.two-columns .rank-item p,
.two-columns .rank-item span,
.ranking-page-list .rank-item p,
.ranking-page-list .rank-item span,
.stack-list .rank-item p,
.stack-list .rank-item span {
    color: var(--muted);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #ffe4e6, #fff7ed, #fef3c7);
}

.page-hero > div {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 22px;
}

.page-hero.compact > div {
    padding: 70px 22px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.toolbar,
.search-panel {
    margin-bottom: 28px;
}

.toolbar {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.toolbar label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 800;
}

.toolbar input {
    padding: 14px 18px;
    border-color: #e5e7eb;
    border-radius: 16px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pills button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 800;
    cursor: pointer;
}

.filter-pills button.active,
.filter-pills button:hover {
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f97316);
}

.search-panel {
    max-width: 100%;
    border-radius: 24px;
}

.search-panel select {
    max-width: 220px;
    padding: 0 18px;
    border-color: #e5e7eb;
}

.detail-hero {
    min-height: 600px;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(10px) saturate(1.15);
    transform: scale(1.06);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.55));
}

.detail-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 22px 70px;
}

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

.detail-poster {
    margin: 0;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
}

.detail-copy .lead {
    max-width: 760px;
    margin: 0 0 22px;
    color: #f3f4f6;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
    color: #ffffff;
    background: rgba(225, 29, 72, 0.75);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.34), rgba(0, 0, 0, 0.54));
    cursor: pointer;
}

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: linear-gradient(135deg, #e11d48, #f97316);
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.35);
    font-size: 30px;
}

.player-start strong {
    font-size: 22px;
}

.player-shell.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    gap: 34px;
}

.movie-article {
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.movie-article h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.movie-article p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
}

.movie-article p:last-child {
    margin-bottom: 0;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 22px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-grid p {
    margin: 0 0 16px;
    color: #9ca3af;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.footer-grid a:hover {
    color: #fb7185;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.footer-brand span {
    width: 34px;
    height: 34px;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

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

@media (max-width: 1024px) {
    .hero-inner,
    .split-layout,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .featured-grid,
    .movie-grid.four,
    .movie-grid.three,
    .poster-row,
    .category-grid,
    .category-list-grid,
    .two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-inner,
    .content-section,
    .page-hero > div,
    .detail-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 54px;
        padding-bottom: 54px;
        gap: 30px;
    }

    .hero-search,
    .search-panel {
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search button,
    .search-panel select {
        min-height: 48px;
        max-width: none;
    }

    .hero-visual {
        min-height: 410px;
        border-radius: 26px;
    }

    .featured-grid,
    .movie-grid.four,
    .movie-grid.three,
    .poster-row,
    .category-grid,
    .category-list-grid,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-grid {
        gap: 28px;
    }

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

    .movie-article {
        padding: 24px;
    }

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

    .rank-item img {
        width: 68px;
        height: 68px;
    }
}
