:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --gold: #eab308;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1f2937;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 38, 38, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}

.main-nav a,
.mobile-panel a,
.site-footer a {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover,
.site-footer a:hover {
  color: var(--red);
}

.header-search,
.mobile-search,
.search-large {
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input,
.mobile-search input,
.search-large input {
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--gray-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 250px;
  padding: 10px 46px 10px 16px;
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.search-large input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-panel-inner {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
  font-weight: 600;
}

.mobile-search {
  gap: 8px;
}

.mobile-search input {
  width: 100%;
  padding: 10px 14px;
}

.mobile-search button,
.search-large button {
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 75% 20%, rgba(220, 38, 38, 0.45), transparent 34%), linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(68px);
  opacity: 0.22;
  pointer-events: none;
}

.hero-glow-red {
  top: 70px;
  right: 9%;
  width: 260px;
  height: 260px;
  background: var(--red);
}

.hero-glow-gold {
  left: 8%;
  bottom: 28px;
  width: 390px;
  height: 390px;
  background: var(--gold);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 56px;
  min-height: 610px;
  padding: 72px 0;
}

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

.hero-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.24);
}

.hero h1 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.hero-tags,
.detail-tags,
.filter-bar,
.explore-links,
.hero-category-row,
.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  color: #f9fafb;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-btn {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 15px 28px;
  box-shadow: 0 16px 28px rgba(220, 38, 38, 0.26);
}

.primary-btn:hover,
.movie-card:hover,
.category-card:hover,
.ranking-card:hover {
  transform: translateY(-4px);
}

.primary-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 22px 34px rgba(220, 38, 38, 0.34);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-category-row a {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.09);
  color: #f3f4f6;
}

.hero-category-row a:hover {
  background: #fff;
  color: var(--red);
}

.hero-art {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(160px, 1fr);
  gap: 18px;
  align-items: center;
}

.hero-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  aspect-ratio: 2 / 3;
  background: #111827;
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: scale(1.03);
}

.hero-poster img,
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-list {
  display: grid;
  gap: 12px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-mini img {
  width: 70px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.hero-mini strong,
.hero-mini em,
.related-card strong,
.related-card em,
.rank-info strong,
.rank-info em {
  display: block;
}

.hero-mini strong {
  color: #fff;
  line-height: 1.35;
}

.hero-mini em {
  color: #d1d5db;
  font-style: normal;
  font-size: 13px;
}

.page-stack,
.page-main {
  padding-top: 46px;
  padding-bottom: 56px;
}

.page-stack {
  display: grid;
  gap: 54px;
}

.movie-section {
  display: grid;
  gap: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.section-line {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--red);
}

.section-head h2,
.content-block h2,
.tag-block h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.section-more {
  color: var(--red);
}

.section-more:hover span {
  transform: translateX(4px);
}

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

.all-grid {
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}

.movie-card {
  display: block;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow-lg);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--slate-900);
}

.poster-frame img {
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%, rgba(0, 0, 0, 0.1));
}

.badge {
  position: absolute;
  z-index: 2;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.region-badge {
  left: 10px;
  top: 10px;
  background: var(--red);
  color: #fff;
}

.year-badge {
  right: 10px;
  top: 10px;
  background: var(--gold);
  color: #111827;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
}

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

.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px;
}

.card-caption strong {
  display: -webkit-box;
  margin-bottom: 3px;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-caption em {
  display: block;
  overflow: hidden;
  color: #d1d5db;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 36px 64px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.rank-index,
.ranking-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-weight: 900;
}

.rank-row img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-900);
}

.rank-info strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.explore-box {
  display: grid;
  justify-items: center;
  gap: 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
  padding: 46px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.explore-box h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.explore-box p,
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
}

.explore-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  color: var(--red);
  font-size: 28px;
  box-shadow: var(--shadow-md);
}

.explore-links {
  justify-content: center;
  margin-top: 10px;
}

.explore-links a,
.filter-bar button,
.tag-block span {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--gray-900);
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.explore-links a:hover,
.filter-bar button:hover,
.filter-bar button.is-active {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.filter-bar {
  align-items: center;
}

.filter-bar button {
  cursor: pointer;
}

.filter-empty,
.search-empty {
  color: var(--gray-500);
  text-align: center;
  font-size: 18px;
}

.page-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.compact-hero {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  position: relative;
}

.compact-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.35);
  filter: blur(20px);
}

.compact-hero > * {
  position: relative;
  z-index: 1;
}

.compact-hero p {
  color: #d1d5db;
}

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

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.category-card {
  display: grid;
  gap: 14px;
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-900);
}

.category-card strong {
  font-size: 20px;
}

.category-card em {
  color: var(--gray-600);
  font-style: normal;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 56px 96px 1fr;
  gap: 18px;
  align-items: center;
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ranking-card:hover {
  box-shadow: var(--shadow-lg);
}

.ranking-card img {
  width: 96px;
  height: 132px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--slate-900);
}

.ranking-body {
  display: grid;
  gap: 5px;
}

.ranking-body strong {
  font-size: 20px;
}

.ranking-body em {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}

.ranking-body span {
  color: var(--gray-600);
}

.search-large {
  width: min(680px, 100%);
  gap: 10px;
}

.search-large input {
  flex: 1;
  padding: 14px 18px;
}

.detail-layout {
  padding-top: 32px;
  padding-bottom: 56px;
}

.player-card,
.detail-card,
.side-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.42));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.player-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.35);
}

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

.detail-card,
.side-card {
  padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-tags span {
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
}

.lead-text {
  margin: 0 0 22px;
  color: var(--gray-600);
  font-size: 18px;
}

.meta-line {
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
  color: var(--gray-700);
}

.content-block,
.tag-block {
  border-top: 1px solid var(--gray-200);
  margin-top: 24px;
  padding-top: 24px;
}

.content-block h2,
.tag-block h2,
.side-card h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.content-block p {
  margin: 0;
  color: var(--gray-700);
  text-align: justify;
}

.review-block {
  border-radius: 22px;
  border: 0;
  background: linear-gradient(135deg, #fff1f2, #fffbeb);
  margin-top: 24px;
  padding: 24px;
}

.tag-block span {
  background: var(--gray-100);
  color: var(--gray-700);
  box-shadow: none;
  padding: 8px 13px;
}

.detail-side {
  position: sticky;
  top: 88px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--gray-50);
}

.related-card img {
  width: 70px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--slate-900);
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0 36px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    grid-template-columns: minmax(220px, 340px) 1fr;
  }

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .hero-grid {
    padding: 44px 0;
    gap: 32px;
  }

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

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

  .hero-mini {
    grid-template-columns: 56px 1fr;
  }

  .hero-mini img {
    width: 56px;
    height: 76px;
  }

  .section-head,
  .ranking-card {
    align-items: flex-start;
  }

  .section-head {
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 32px 58px 1fr;
  }

  .ranking-card {
    grid-template-columns: 42px 82px 1fr;
    gap: 12px;
  }

  .ranking-card img {
    width: 82px;
    height: 112px;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .search-large {
    flex-direction: column;
    align-items: stretch;
  }
}
