/* Static movie site theme inspired by the uploaded red-and-white React/Tailwind design. */
:root {
  --color-red: #dc2626;
  --color-red-dark: #991b1b;
  --color-yellow: #facc15;
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-gray-950: #030712;
  --color-gray-900: #111827;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-white: #ffffff;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-gray-900);
  background: #f8fafc;
  font-family: var(--font-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #fee2e2;
  box-shadow: 0 8px 28px rgba(127, 29, 29, 0.10);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-red-dark);
  white-space: nowrap;
}

.logo-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), #f97316);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.30);
}

.logo-text {
  font-size: 1.26rem;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-gray-700);
  font-weight: 700;
}

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

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

.nav-search {
  position: relative;
  width: 260px;
  min-width: 220px;
}

.nav-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: var(--color-gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  padding: 10px 44px 10px 16px;
}

.nav-search button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  color: var(--color-gray-500);
  background: transparent;
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.13);
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: var(--color-gray-700);
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid #fee2e2;
}

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

.mobile-nav-links {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.38), transparent 28%),
    linear-gradient(135deg, #030712 0%, #111827 46%, #1f2937 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.hero-glow {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22), transparent 65%);
  filter: blur(10px);
}

.hero-slide {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 580px;
  padding: 76px 0 90px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 14px;
  color: #fff7ed;
  background: rgba(220, 38, 38, 0.88);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.28);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #d1d5db;
  font-size: 1.12rem;
}

.hero-tags,
.meta-chips,
.card-tags,
.genre-cloud,
.inline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag,
.chip,
.genre-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tag {
  padding: 7px 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.detail-actions,
.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

.btn-primary {
  color: #ffffff;
  background: var(--color-red);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.btn-primary:hover {
  background: var(--color-red-dark);
}

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

.btn-light {
  color: var(--color-red-dark);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero-poster,
.poster-xl,
.poster-card,
.mini-poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #991b1b, #f97316);
  isolation: isolate;
}

.hero-poster {
  min-height: 570px;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

.poster-card {
  display: grid;
  min-height: 250px;
  aspect-ratio: 2 / 3;
  place-items: end stretch;
  border-radius: 18px 18px 0 0;
}

.poster-xl {
  min-height: 520px;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
}

.mini-poster {
  width: 78px;
  min-width: 78px;
  height: 108px;
  border-radius: 16px;
}

.hero-poster::before,
.poster-xl::before,
.poster-card::before,
.mini-poster::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 25%, transparent 25% 50%, rgba(0, 0, 0, 0.08) 50% 75%, transparent 75%);
  background-size: auto, 28px 28px;
  mix-blend-mode: screen;
}

.poster-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  color: #ffffff;
}

.poster-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.12;
}

.poster-content span {
  color: #fde68a;
  font-weight: 800;
}

.poster-badge,
.heat-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--color-red);
}

.heat-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #422006;
  background: var(--color-yellow);
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.95);
  border-radius: 999px;
  opacity: 0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster-title {
  position: relative;
  z-index: 2;
  min-height: 86px;
  padding: 34px 14px 14px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.32;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.tone-0 { background: linear-gradient(135deg, #7f1d1d, #f97316); }
.tone-1 { background: linear-gradient(135deg, #111827, #dc2626); }
.tone-2 { background: linear-gradient(135deg, #0f172a, #2563eb); }
.tone-3 { background: linear-gradient(135deg, #312e81, #db2777); }
.tone-4 { background: linear-gradient(135deg, #134e4a, #f59e0b); }
.tone-5 { background: linear-gradient(135deg, #3f6212, #84cc16); }
.tone-6 { background: linear-gradient(135deg, #581c87, #ef4444); }
.tone-7 { background: linear-gradient(135deg, #0c4a6e, #22d3ee); }
.tone-8 { background: linear-gradient(135deg, #7c2d12, #fde047); }
.tone-9 { background: linear-gradient(135deg, #164e63, #a855f7); }
.tone-10 { background: linear-gradient(135deg, #450a0a, #f43f5e); }
.tone-11 { background: linear-gradient(135deg, #1e1b4b, #fb7185); }

.hero-dots {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: -48px;
  padding-bottom: 28px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  background: rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--color-red);
}

.main-sections {
  display: grid;
  gap: 58px;
  padding: 54px 0 76px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-bar {
  width: 6px;
  height: 36px;
  background: var(--color-red);
  border-radius: 999px;
}

.section-title h2,
.page-title h1,
.detail-copy h1,
.player-title {
  margin: 0;
  color: var(--color-gray-900);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-title h2 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.section-subtitle {
  margin: 5px 0 0;
  color: var(--color-gray-600);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-red);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: #fecaca;
  box-shadow: 0 24px 48px rgba(127, 29, 29, 0.16);
  transform: translateY(-6px);
}

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

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--color-gray-900);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: var(--color-gray-500);
  font-size: 0.84rem;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--color-gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags .chip {
  padding: 3px 8px;
  color: var(--color-red-dark);
  background: #fff1f2;
  font-size: 0.76rem;
}

.stats-panel,
.filter-panel,
.cta-panel,
.genre-panel {
  padding: 28px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  border: 1px solid #ffedd5;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

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

.stat-item {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(254, 202, 202, 0.72);
  border-radius: 20px;
  text-align: center;
}

.stat-value {
  display: block;
  color: var(--color-red);
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.stat-label {
  color: var(--color-gray-600);
  font-weight: 800;
}

.genre-chip {
  padding: 8px 14px;
  color: var(--color-gray-700);
  background: #ffffff;
  border: 1px solid #fecaca;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.08);
}

.genre-chip:hover {
  color: #ffffff;
  background: var(--color-red);
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: radial-gradient(circle at 75% 15%, rgba(250, 204, 21, 0.24), transparent 32%),
    linear-gradient(135deg, var(--color-gray-950), var(--color-gray-800));
}

.page-title {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
}

.page-title p {
  margin: 0;
  color: #d1d5db;
  font-size: 1.06rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 150px 130px;
  gap: 14px;
  align-items: center;
  margin: -28px auto 42px;
  position: relative;
  z-index: 2;
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 10px 14px;
}

.filter-count {
  color: var(--color-gray-700);
  font-weight: 900;
  text-align: right;
}

.empty-state {
  display: none;
  padding: 36px;
  color: var(--color-gray-600);
  background: #ffffff;
  border: 1px dashed #fecaca;
  border-radius: var(--radius-lg);
  text-align: center;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 78px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  color: var(--color-red);
  font-size: 1.7rem;
  font-weight: 950;
  text-align: center;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.rank-info p {
  margin: 0;
  color: var(--color-gray-600);
}

.rank-score {
  display: grid;
  min-width: 86px;
  padding: 10px 14px;
  color: #422006;
  background: #fef3c7;
  border-radius: 16px;
  font-weight: 950;
  text-align: center;
}

.detail-page {
  padding-bottom: 72px;
}

.detail-hero {
  padding: 56px 0;
  color: #ffffff;
  background: radial-gradient(circle at 18% 12%, rgba(220, 38, 38, 0.35), transparent 30%),
    linear-gradient(135deg, #020617, #111827 54%, #1f2937);
}

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

.detail-copy {
  display: grid;
  gap: 18px;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.detail-lead {
  margin: 0;
  color: #e5e7eb;
  font-size: 1.12rem;
}

.chip {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.watch-panel,
.article-card,
.related-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.watch-panel {
  margin-top: 42px;
}

.video-shell {
  overflow: hidden;
  background: #000000;
  border-radius: 22px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.26);
}

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

.player-status {
  margin: 12px 0 0;
  color: var(--color-gray-600);
  font-size: 0.92rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 28px;
}

.article-card h2,
.related-panel h2,
.watch-panel h2 {
  margin: 0 0 16px;
  color: var(--color-gray-900);
  font-size: 1.45rem;
}

.article-card p {
  margin: 0;
  color: var(--color-gray-700);
}

.article-card p + p {
  margin-top: 16px;
}

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

.related-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-mini:hover {
  border-color: #fdba74;
  transform: translateX(4px);
}

.related-mini h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
}

.related-mini p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.84rem;
}

.player-body {
  min-height: 100vh;
  color: #ffffff;
  background: #020617;
}

.player-page {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding: 34px 0 60px;
}

.cinema-panel {
  display: grid;
  gap: 24px;
}

.cinema-panel .video-shell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
}

.player-title {
  color: #ffffff;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
}

.player-summary {
  max-width: 860px;
  margin: 0;
  color: #d1d5db;
}

.player-related {
  margin-top: 34px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
}

.player-related h2 {
  margin: 0 0 18px;
}

.player-related .related-mini {
  color: var(--color-gray-900);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0 34px;
}

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

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

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

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 0.9rem;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

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

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

  .mobile-nav .nav-search {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .hero-grid,
  .detail-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-poster,
  .poster-xl {
    min-height: 430px;
  }

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

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

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

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

  .hero-slide {
    padding: 44px 0 66px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

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

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

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

  .rank-row {
    grid-template-columns: 54px 70px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / -1;
    width: fit-content;
  }

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