:root {
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-orange: #f97316;
  --color-yellow: #fde68a;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-line: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 25px 60px rgba(15, 23, 42, 0.25);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-soft);
  color: var(--color-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.site-logo-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo-text strong {
  font-size: 20px;
  color: #111827;
}

.site-logo-text small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #374151;
  border-radius: 999px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-red);
  background: #fff1f2;
}

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

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  outline: none;
  padding: 0 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 260px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
}

.header-search button,
.mobile-search button,
.primary-button,
.hero-button,
.filter-button.is-active {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--color-red), var(--color-orange));
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button,
.mobile-search button {
  height: 42px;
  padding: 0 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.hero-button:hover,
.filter-button.is-active:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.3);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--color-line);
  padding: 16px 24px 20px;
  background: #fff;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
}

.mobile-nav {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-main {
  min-height: 60vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 55%, #f59e0b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
}

.hero h1 {
  margin: 18px 0 18px;
  max-width: 720px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--color-yellow);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #fff7ed;
  font-size: 19px;
}

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

.hero-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.hero-button.secondary,
.primary-button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-red);
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
}

.hero-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: #ffe4e6;
  font-size: 13px;
}

.hero-visual {
  min-width: 0;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
}

.hero-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  background: #111827;
}

.hero-card img {
  height: 430px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.18) 35%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-card-content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}

.hero-card-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.25;
}

.hero-card-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hero-dots {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.section,
.content-section {
  padding: 54px 0;
}

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

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--color-muted);
  max-width: 760px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--color-red);
  background: #fff1f2;
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card-link:hover .poster-wrap img,
.mini-card:hover img,
.related-feature:hover img,
.category-sample a:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card-link:hover .poster-shade {
  background: rgba(0, 0, 0, 0.32);
}

.play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-red);
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.region-badge,
.rank-badge,
.detail-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  color: #fff;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card-link:hover .movie-card-body strong {
  color: var(--color-red);
}

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-tags span {
  color: #b91c1c;
  background: #fff1f2;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.panel {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel-body {
  padding: 24px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  font-weight: 900;
}

.ranking-item strong {
  display: block;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-item span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
}

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

.category-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.category-card p {
  margin: 8px 0 18px;
  color: var(--color-muted);
}

.category-sample {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-sample a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.category-sample img {
  aspect-ratio: 1;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.filters {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.filter-input {
  width: 100%;
  border-radius: 14px;
}

.filter-select {
  border-radius: 14px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: #fff;
  color: #6b7280;
  box-shadow: var(--shadow-sm);
}

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

.breadcrumb {
  margin: 28px 0 0;
  color: #6b7280;
  font-size: 14px;
}

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

.detail-hero {
  padding: 42px 0 36px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #7f1d1d 48%, #f97316 100%);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  background: #111827;
}

.detail-cover img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
}

.detail-badge {
  position: absolute;
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.detail-info p {
  color: #f3f4f6;
  font-size: 18px;
}

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

.detail-meta span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 700;
}

.detail-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-xl);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button-core {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-red);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  transform: scale(0.96);
  transition: transform 0.22s ease;
}

.player-overlay:hover .player-button-core {
  transform: scale(1.04);
}

.article-content {
  display: grid;
  gap: 22px;
}

.text-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  text-align: justify;
}

.sidebar-sticky {
  position: sticky;
  top: 96px;
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mini-poster {
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.mini-poster img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-card:hover .mini-info strong {
  color: var(--color-red);
}

.mini-info em {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.related-feature {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.related-feature img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-feature strong {
  display: block;
  padding: 14px 16px 16px;
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: #111827;
}

.site-footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 520px;
  color: #9ca3af;
}

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

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

.footer-links a:hover {
  color: #fca5a5;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 24px;
  color: #9ca3af;
  text-align: center;
}

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

  .site-logo {
    min-width: 0;
    margin-right: auto;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

  .sidebar-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .site-logo-text small {
    display: none;
  }

  .site-logo-text strong {
    font-size: 18px;
  }

  .container,
  .site-footer-inner {
    width: min(100% - 32px, 1280px);
  }

  .hero-inner {
    min-height: auto;
    padding: 46px 0;
    gap: 34px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-card img {
    min-height: 340px;
    height: 340px;
  }

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

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

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

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

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