:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #16a34a;
  --emerald: #059669;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.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);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.32);
}

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

.nav-link {
  padding: 10px 16px;
  color: var(--gray-700);
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: #fff7ed;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: var(--gray-100);
  border-radius: 12px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--gray-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

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

.mobile-link {
  padding: 12px;
  color: var(--gray-700);
  border-radius: 12px;
  font-weight: 700;
}

.mobile-link:hover {
  color: var(--orange);
  background: #fff7ed;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--white);
  background: linear-gradient(120deg, #ea580c 0%, #dc2626 58%, #7f1d1d 100%);
}

.hero-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 32%), rgba(0, 0, 0, 0.12);
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
}

.hero-glow-one {
  top: 80px;
  right: 8%;
  background: #facc15;
}

.hero-glow-two {
  bottom: -110px;
  left: 10%;
  background: #fb923c;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  min-height: 470px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.5s ease both;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 14px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #fff7ed;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 10px;
  color: inherit;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.card-tags span,
.detail-tags span {
  color: var(--gray-700);
  background: var(--gray-100);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-light {
  color: var(--orange);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

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

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--white);
  background: rgba(234, 88, 12, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

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

.hero-dot.is-active {
  width: 64px;
  background: var(--white);
}

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin-top: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  color: var(--gray-900);
  border: 0;
  border-radius: 12px;
  outline: 0;
}

.hero-search button {
  padding: 0 22px;
  color: var(--white);
  border: 0;
  background: var(--gray-900);
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.stats-strip {
  width: min(1200px, calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-900);
  font-size: 22px;
}

.stat-card span {
  color: var(--gray-500);
}

.page-section,
.category-band,
.latest-band,
.overview-list,
.detail-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.page-section {
  padding: 72px 0;
}

.wide-section {
  width: min(1320px, calc(100% - 32px));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

.section-action {
  color: var(--orange);
  font-weight: 900;
}

.category-band,
.latest-band {
  width: 100%;
  padding: 72px max(16px, calc((100% - 1200px) / 2));
}

.category-band {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.latest-band {
  background: linear-gradient(135deg, var(--green), var(--emerald));
}

.light-heading h2,
.light-heading p,
.light-action {
  color: var(--white);
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.14);
  transform: translateY(-7px);
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.card-label,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(234, 88, 12, 0.9);
  backdrop-filter: blur(8px);
}

.card-label {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(220, 38, 38, 0.92);
}

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

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 999px;
}

.card-tags {
  margin-top: 12px;
}

.compact-card .card-body h3 {
  min-height: auto;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.01);
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.category-tile-main {
  display: grid;
  gap: 8px;
}


.category-tile span {
  color: #e0f2fe;
  font-size: 14px;
}

.category-tile ul {
  display: grid;
  gap: 6px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
  color: #eff6ff;
  font-size: 13px;
}

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

.small-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.small-card img {
  width: 96px;
  height: 60px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.small-card span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sub-hero {
  color: var(--white);
}

.sub-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.sub-hero h1 {
  max-width: 840px;
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.orange-hero {
  background: linear-gradient(120deg, var(--orange), var(--red));
}

.blue-hero {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.dark-hero {
  background: linear-gradient(120deg, #111827, #7f1d1d);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

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

.filter-grid.two-cols {
  grid-template-columns: 1.4fr 1fr;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: 0;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 22px;
  color: var(--gray-500);
  text-align: center;
  background: var(--gray-50);
  border-radius: 14px;
}

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

.overview-list {
  display: grid;
  gap: 24px;
  padding: 64px 0;
}

.category-overview-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-500);
}

.category-overview-head a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  font-weight: 900;
}

.category-overview-card .small-card {
  color: var(--gray-900);
  background: var(--gray-50);
  border-color: var(--gray-200);
}

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

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

.detail-wrap {
  padding: 34px 0 70px;
}

.detail-wrap > .breadcrumb {
  color: var(--gray-500);
}

.detail-wrap > .breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--orange);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

.detail-card,
.poster-card,
.related-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta span {
  padding: 6px 12px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h2,
.related-card h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-tags {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.poster-card div {
  display: grid;
  gap: 4px;
  padding: 18px;
}

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

.poster-card span {
  color: var(--gray-500);
}

.related-card {
  padding: 20px;
}

.related-card h2 {
  margin-top: 0;
}

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

.related-card .small-card {
  color: var(--gray-900);
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.site-footer {
  margin-top: 40px;
  color: var(--white);
  background: var(--gray-900);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

.footer-brand p {
  margin: 8px 0 0;
  color: #d1d5db;
}

.footer-logo {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #d1d5db;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .menu-button {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    max-width: 640px;
    transform: none;
  }

  .stats-strip,
  .movie-grid,
  .category-grid,
  .small-card-grid,
  .filter-grid,
  .filter-grid.two-cols,
  .detail-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 19px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

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

  .hero-inner {
    padding: 54px 0;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-actions,
  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

  .stats-strip,
  .movie-grid,
  .library-grid,
  .category-grid,
  .small-card-grid,
  .filter-grid,
  .filter-grid.two-cols,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .category-overview-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-section,
  .category-band,
  .latest-band,
  .overview-list,
  .detail-wrap {
    width: min(100% - 24px, 1200px);
  }

  .category-band,
  .latest-band {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sub-hero-inner {
    padding: 46px 0;
  }

  .detail-card {
    padding: 22px;
  }
}
