:root {
  --brand: #ea580c;
  --brand-deep: #c2410c;
  --brand-red: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 34%, #f3f4f6 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav {
  background: linear-gradient(90deg, #d97706 0%, #ea580c 50%, #dc2626 100%);
  box-shadow: 0 12px 32px rgba(194, 65, 12, 0.28);
}

.nav-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff7ed;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a {
  padding: 8px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fef3c7;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: min(620px, 76vh);
  min-height: 500px;
  overflow: hidden;
  background: #000000;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(251, 146, 60, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 66px;
  width: min(1180px, calc(100% - 44px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.meta-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(251, 146, 60, 0.22);
  color: #fed7aa;
  border: 1px solid rgba(253, 186, 116, 0.36);
}

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

.primary-btn,
.ghost-btn,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  border: 0;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.primary-btn,
.quick-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.32);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 42px;
  line-height: 42px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--brand);
}

.search-band,
.section-block,
.page-main,
.footer-inner {
  width: min(1220px, calc(100% - 44px));
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -38px;
  padding: 28px;
  position: relative;
  z-index: 8;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-band h2,
.section-heading h2,
.latest-panel h2,
.detail-content h2,
.player-section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.search-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.quick-search {
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.section-block {
  margin-top: 64px;
}

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

.section-heading a {
  color: var(--brand);
  font-weight: 900;
}

.section-heading.light,
.section-heading.light a {
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.light .eyebrow,
.warm-panel .eyebrow {
  color: #fed7aa;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.movie-card.wide .poster-link {
  aspect-ratio: 16 / 10;
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0.9;
}

.play-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

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

.movie-card .meta-row {
  gap: 6px;
  margin-bottom: 10px;
}

.movie-card .meta-row span {
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
  font-weight: 950;
}

.movie-card h2 a:hover {
  color: var(--brand);
}

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

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.horizontal-cards .movie-card {
  scroll-snap-align: start;
}

.warm-panel {
  padding: 30px;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 8%, rgba(251, 191, 36, 0.35), transparent 28%),
    linear-gradient(135deg, #7c2d12 0%, #c2410c 48%, #991b1b 100%);
  box-shadow: var(--shadow);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 82px 1fr 20px;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.latest-panel .rank-row,
.ranking-more .rank-row {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.2);
}

.latest-panel .rank-row:hover,
.ranking-more .rank-row:hover {
  background: #fff7ed;
}

.rank-row .number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  font-weight: 950;
}

.rank-row img {
  width: 82px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: #111827;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  font-weight: 950;
}

.rank-info em {
  margin-top: 6px;
  color: currentColor;
  opacity: 0.7;
  font-style: normal;
  font-size: 13px;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #9a3412 56%, #dc2626);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.category-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -64px;
  top: -64px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.28);
}

.category-tile strong,
.category-overview-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 950;
}

.category-tile em,
.category-overview-card p {
  position: relative;
  margin: 0;
  color: #fed7aa;
  font-style: normal;
  line-height: 1.65;
  font-size: 14px;
}

.category-index {
  position: absolute;
  top: 18px;
  right: 18px;
  opacity: 0.42;
  font-size: 36px;
  font-weight: 950;
}

.category-overview-card strong {
  position: relative;
  margin-top: 18px;
  color: #ffffff;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 28px;
  align-items: start;
}

.latest-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.latest-panel h2 {
  margin-bottom: 18px;
}

.site-footer {
  margin-top: 78px;
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 470px;
  margin: 18px 0 0;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

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

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

.page-main {
  padding-top: 28px;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 42px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.36), transparent 30%),
    linear-gradient(135deg, #111827 0%, #7c2d12 52%, #dc2626 100%);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 230px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fed7aa;
  line-height: 1.75;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.detail-main {
  max-width: 1220px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 8%, rgba(251, 146, 60, 0.34), transparent 30%),
    linear-gradient(135deg, #111827, #7c2d12 56%, #991b1b);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.detail-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.detail-intro h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.lead-text {
  max-width: 780px;
  margin: 0 0 22px;
  color: #f3f4f6;
  font-size: 20px;
  line-height: 1.75;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section,
.detail-content,
.ranking-more {
  margin-top: 34px;
}

.player-section {
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-section p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.36);
  font-size: 30px;
  text-indent: 4px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-content article {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-list dt {
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.info-list dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .latest-panel {
    position: static;
  }
}

@media (max-width: 780px) {
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 21px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 4px;
  }

  .hero-slider {
    height: 560px;
    min-height: 560px;
  }

  .hero-content {
    bottom: 58px;
  }

  .hero-content p,
  .lead-text {
    font-size: 17px;
  }

  .hero-btn {
    display: none;
  }

  .search-band,
  .filter-panel,
  .footer-inner,
  .home-rank-list {
    grid-template-columns: 1fr;
  }

  .quick-search {
    flex-direction: column;
  }

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

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

  .page-hero,
  .detail-hero,
  .player-section,
  .detail-content article,
  .warm-panel {
    padding: 22px;
  }

  .detail-cover {
    max-width: 360px;
    margin: 0 auto;
  }

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

@media (max-width: 520px) {
  .search-band,
  .section-block,
  .page-main,
  .footer-inner {
    width: min(100% - 28px, 1220px);
  }

  .movie-grid,
  .compact-grid,
  .category-movie-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 18px;
  }

  .rank-row {
    grid-template-columns: 36px 70px 1fr 14px;
  }

  .rank-row img {
    width: 70px;
    height: 54px;
  }
}
