:root {
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f3f4f6;
}

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

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

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

.nav-container {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--orange);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: none;
  font: inherit;
}

.header-search input {
  width: 210px;
  padding: 11px 14px;
}

.header-search button,
.mobile-nav button {
  height: 40px;
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 24px;
  background: #fff7ed;
  color: var(--orange);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
}

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

.mobile-nav form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.mobile-nav input {
  width: 100%;
  padding: 12px;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  background: #f9fafb;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #f97316, #ef4444 50%, #ec4899);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.20), transparent 26%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.02));
}

.hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 52px;
}

.hero-slides {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 42px);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed !important;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

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

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.10);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.24);
}

.hero-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

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

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.hero-control-row button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  opacity: 0.55;
}

.hero-dots button.is-active {
  width: 28px;
  opacity: 1;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.section-light,
.section-blue {
  width: 100%;
  padding-left: max(16px, calc((100% - 1240px) / 2));
  padding-right: max(16px, calc((100% - 1240px) / 2));
}

.section-light {
  background: #ffffff;
}

.section-blue {
  background: linear-gradient(120deg, #eff6ff, #ecfeff);
}

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

.section-heading p {
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.section-heading a {
  color: #ea580c;
  font-weight: 900;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.92);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line,
.rank-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-one-line {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  background: #fff7ed;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: 152px;
  background: rgba(255, 255, 255, 0.94);
}

.movie-card-compact .movie-poster {
  aspect-ratio: auto;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card-wide .movie-poster {
  aspect-ratio: auto;
}

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

.category-card,
.category-overview-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-card img,
.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.2);
}

.category-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(239, 68, 68, 0.72));
}

.category-gradient.from-blue-500,
.category-gradient.from-sky-500 {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(6, 182, 212, 0.70));
}

.category-gradient.from-emerald-500,
.category-gradient.from-lime-500,
.category-gradient.from-teal-500 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.88), rgba(20, 184, 166, 0.70));
}

.category-gradient.from-purple-500,
.category-gradient.from-indigo-500 {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.88), rgba(236, 72, 153, 0.70));
}

.category-gradient.from-slate-700 {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(75, 85, 99, 0.72));
}

.category-gradient span,
.category-gradient h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-gradient strong,
.category-gradient p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.category-gradient em {
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, #f97316, #ef4444 52%, #ec4899);
}

.compact-page-hero {
  padding: 70px max(16px, calc((100% - 1240px) / 2));
}

.compact-page-hero p {
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.compact-page-hero span {
  display: block;
  max-width: 760px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.category-overview-card {
  min-height: 280px;
}

.overview-covers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel-large {
  grid-template-columns: minmax(280px, 1fr) 180px 160px 160px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
}

.rank-section {
  padding-bottom: 70px;
}

.rank-list,
.rank-page-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-list span,
.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-list a {
  font-weight: 900;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #fff7ed;
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-row p {
  margin: 0 0 8px;
  color: #4b5563;
  line-height: 1.65;
}

.detail-hero {
  padding: 54px max(16px, calc((100% - 1240px) / 2));
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.34), transparent 25%), linear-gradient(135deg, #111827, #7f1d1d);
}

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

.detail-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a {
  color: #fed7aa;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-one-line {
  max-width: 840px;
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.detail-pills,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff7ed;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(127, 29, 29, 0.45));
}

.player-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.35);
}

.player-overlay strong {
  font-size: 20px;
}

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

.detail-article article {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

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

.detail-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-data div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.detail-data dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-data dd {
  margin: 0;
  font-weight: 900;
}

.static-page article {
  max-width: 860px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

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

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

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

.site-footer li {
  margin-bottom: 10px;
}

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

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid #374151;
  color: #9ca3af;
  text-align: center;
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

@media (max-width: 820px) {
  .nav-container {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    width: 100%;
  }

  .hero-inner {
    padding-top: 38px;
  }

  .hero-slides {
    min-height: 690px;
  }

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

  .hero-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-feature-grid,
  .movie-grid,
  .movie-grid.three-col,
  .movie-list-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide,
  .movie-card-compact,
  .rank-row {
    grid-template-columns: 96px 1fr;
  }

  .movie-card-wide .movie-poster,
  .movie-card-compact .movie-poster {
    aspect-ratio: 3 / 4;
  }

  .rank-number {
    display: none;
  }

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

  .rank-list li {
    grid-template-columns: 42px 1fr;
  }

  .rank-list em {
    grid-column: 2;
  }

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

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