:root {
  --color-red: #ef4444;
  --color-red-dark: #dc2626;
  --color-orange: #f97316;
  --color-yellow: #f59e0b;
  --color-green: #10b981;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-border: #e5e7eb;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 44px rgba(239, 68, 68, 0.18);
  --radius: 22px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--color-text);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--color-red);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 30vw);
}

.header-search input,
.hero-search input,
.mobile-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.hero-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.header-search button,
.hero-search button,
.mobile-panel button,
.filter-reset {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: var(--color-red);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.mobile-panel button:hover,
.filter-reset:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

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

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 99px;
}

.mobile-panel {
  border-top: 1px solid var(--color-border);
  padding: 16px;
  background: #ffffff;
}

.mobile-panel a,
.mobile-panel form {
  display: block;
  margin: 12px auto;
  width: min(100%, 720px);
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 48%, #fefce8 100%);
}

.home-hero {
  padding: 80px 0 88px;
}

.page-hero {
  padding: 72px 0;
  text-align: center;
}

.page-hero h1,
.home-hero h1 {
  margin: 0;
  color: var(--color-text);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 70px);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.home-hero p,
.page-hero p {
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 21px);
}

.home-hero p {
  max-width: 620px;
  margin: 24px 0 0;
}

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 42px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--color-red);
  background: #fee2e2;
  font-weight: 800;
  font-size: 14px;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--color-red);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.26);
}

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

.btn-secondary {
  color: #374151;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
}

.hero-feature {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
  isolation: isolate;
}

.hero-feature img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-feature:hover img {
  transform: scale(1.06);
}

.hero-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.34) 40%, rgba(17, 24, 39, 0.92) 100%);
}

.hero-feature-text {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px;
  color: #ffffff;
}

.hero-feature-text b {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--color-red);
  font-size: 13px;
}

.hero-feature-text strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-feature-text em {
  display: block;
  color: #e5e7eb;
  font-style: normal;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.25;
  pointer-events: none;
}

.hero-glow-one {
  top: -120px;
  left: -80px;
  background: #f87171;
}

.hero-glow-two {
  right: -80px;
  bottom: -140px;
  background: #fb923c;
}

.stats-section {
  padding: 38px 0;
  background: #ffffff;
}

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

.stat-card {
  padding: 26px;
  border-radius: 20px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: #4b5563;
  font-weight: 700;
}

.stat-card.red {
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
  color: var(--color-red);
}

.stat-card.orange {
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
  color: var(--color-orange);
}

.stat-card.yellow {
  background: linear-gradient(135deg, #fef3c7, #ecfccb);
  color: #ca8a04;
}

.stat-card.green {
  background: linear-gradient(135deg, #ecfccb, #ccfbf1);
  color: var(--color-green);
}

.content-section {
  padding: 70px 0;
  background: #ffffff;
}

.content-section.muted {
  background: #f9fafb;
}

.content-section.warm {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-heading h2,
.tag-cloud-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-red);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-red);
  font-weight: 800;
}

.section-more span {
  transition: transform 0.2s ease;
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

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

.movie-cover-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.movie-card-list .movie-cover-wrap {
  width: 180px;
  aspect-ratio: 16 / 11;
  flex: 0 0 180px;
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0) 48%, rgba(17, 24, 39, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card-link:hover .cover-gradient {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-meta-row,
.movie-tag-row,
.detail-meta-pills,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta-row span,
.meta-pill,
.movie-tag-row span,
.detail-meta-pills span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-row span,
.detail-meta-pills span {
  padding: 5px 9px;
  color: #4b5563;
  background: #f3f4f6;
}

.movie-tag-row span,
.detail-tags a {
  padding: 5px 9px;
  color: var(--color-red);
  background: #fee2e2;
}

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

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

.movie-card-list .movie-card-link {
  flex-direction: row;
  min-height: 180px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-media,
.overview-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 120px;
  background: #111827;
}

.category-card-media img,
.overview-media img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.overview-media {
  grid-template-columns: repeat(4, 1fr);
  min-height: 180px;
}

.overview-media img {
  min-height: 180px;
}

.category-card-body,
.overview-body {
  padding: 18px;
}

.category-card-body h3,
.overview-body h2 {
  margin: 0 0 8px;
}

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

.category-card-body span,
.overview-body strong {
  color: var(--color-red);
  font-weight: 800;
}

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

.tag-cloud-section {
  text-align: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.tag-cloud a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tag-cloud a:hover {
  color: #ffffff;
  background: var(--color-red);
  transform: translateY(-2px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 0.3fr)) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-panel {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.3fr) minmax(150px, 0.3fr) auto;
}

.filter-count {
  margin: 12px 0 22px;
  color: var(--color-muted);
  font-weight: 700;
}

.detail-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, #111827 0%, #312e81 42%, #7f1d1d 100%);
  color: #ffffff;
}

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb em {
  font-style: normal;
  color: #ffffff;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.detail-meta-pills {
  margin-top: 24px;
}

.detail-meta-pills span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.player-section {
  padding: 58px 0;
  background: #0f172a;
  color: #ffffff;
}

.player-section h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 4vw, 38px);
}

.site-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.movie-video,
.player-poster,
.player-poster img,
.player-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000000;
}

.player-poster {
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-poster img {
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(1.05);
}

.player-shade {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.28), rgba(0, 0, 0, 0.72));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-red);
  box-shadow: 0 22px 44px rgba(239, 68, 68, 0.35);
  transform: translate(-50%, -50%);
  font-size: 30px;
  padding-left: 4px;
}

.site-player.is-started .player-poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.detail-article,
.detail-info-card {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

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

.detail-info-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.detail-info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-info-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-info-card li:last-child {
  border-bottom: 0;
}

.detail-info-card span {
  color: var(--color-muted);
}

.detail-info-card strong {
  text-align: right;
  color: var(--color-text);
}

.site-footer {
  padding: 54px 0;
  color: #d1d5db;
  background: #111827;
}

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

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

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

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

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

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

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

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

  .header-search {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

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

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

  .stats-grid,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-three,
  .list-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-info-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .home-hero,
  .page-hero {
    padding: 54px 0;
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .hero-search,
  .mobile-panel form {
    flex-direction: column;
  }

  .hero-feature,
  .hero-feature img {
    min-height: 320px;
  }

  .stats-grid,
  .movie-grid-four,
  .movie-grid-five,
  .movie-grid-three,
  .list-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card-list .movie-card-link {
    flex-direction: column;
  }

  .movie-card-list .movie-cover-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
  }

  .detail-copy p {
    font-size: 17px;
  }

  .player-button {
    width: 66px;
    height: 66px;
  }
}
