:root {
  --page-bg: #f9fafb;
  --text-main: #1f2937;
  --text-soft: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: var(--page-bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.26);
}

.logo-text {
  font-size: 21px;
  color: #111827;
}

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

.nav-link,
.nav-more-button,
.mobile-nav a {
  border: 0;
  color: #374151;
  background: transparent;
  border-radius: 12px;
  padding: 9px 13px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-more-button:hover,
.mobile-nav a:hover,
.nav-link.is-active {
  color: #ffffff;
  background: var(--orange);
}

.nav-more {
  position: relative;
}

.nav-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 180px;
  padding: 10px;
  display: none;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.nav-more:hover .nav-more-panel {
  display: grid;
  gap: 4px;
}

.nav-more-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.nav-more-panel a:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  width: 21px;
  height: 2px;
  margin: 0 auto;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: radial-gradient(circle at 20% 12%, rgba(251, 146, 60, 0.28), transparent 28%), radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.24), transparent 26%), linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #fef3c7 100%);
}

.hero-viewport {
  position: relative;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.88);
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  color: #374151;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
}

.btn-ghost {
  border-color: #fed7aa;
  background: rgba(255, 255, 255, 0.78);
}

.hero-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
  box-shadow: 0 30px 70px rgba(194, 65, 12, 0.28);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-image-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
}

.hero-image-meta strong {
  display: block;
  font-size: 28px;
  line-height: 1.25;
}

.hero-image-meta span {
  color: rgba(255, 255, 255, 0.82);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 6;
}

.quick-search-inner,
.filter-bar {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  outline: none;
  color: #111827;
  background: #fff7ed;
}

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.search-button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
  font-weight: 800;
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

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

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-heading p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--text-soft);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: var(--shadow-card);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fed7aa 0%, #fde68a 100%);
}

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

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

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 42px;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

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

.movie-card h3 a:hover,
.ranking-content h3 a:hover,
.detail-text a:hover {
  color: var(--orange-dark);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 14px;
}

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

.tag-row span,
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card .icon {
  font-size: 36px;
}

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

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.gradient-orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.gradient-amber { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); }
.gradient-green { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); }
.gradient-red { background: linear-gradient(135deg, #fb7185 0%, #dc2626 100%); }
.gradient-pink { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); }
.gradient-purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }
.gradient-blue { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }
.gradient-yellow { background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%); }
.gradient-teal { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); }
.gradient-gray { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }

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

.ranking-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 52px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ranking-cover {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #ffedd5;
}

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

.ranking-number {
  color: var(--orange-dark);
  font-size: 28px;
  font-weight: 900;
}

.ranking-content h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-content p {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 25%), linear-gradient(120deg, #f97316 0%, #f59e0b 100%);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

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

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

.player-card,
.detail-text,
.side-card {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

.player-stage {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
}

.play-button {
  position: relative;
  z-index: 3;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.player-cover:hover .play-button {
  transform: scale(1.08);
}

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

.player-info {
  padding: 22px;
}

.player-info h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

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

.detail-text h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-text p {
  margin: 0 0 18px;
  color: #4b5563;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.side-card {
  padding: 20px;
}

.side-card + .side-card {
  margin-top: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  background: #ffedd5;
}

.side-link strong {
  display: block;
  line-height: 1.35;
}

.side-link span {
  color: var(--text-soft);
  font-size: 13px;
}

.empty-tip {
  display: none;
  padding: 28px;
  border: 1px dashed #fdba74;
  border-radius: 18px;
  color: #9a3412;
  background: #fff7ed;
  text-align: center;
}

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

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

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

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 480px;
  color: #9ca3af;
}

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

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

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

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

.footer-bottom {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  text-align: center;
}

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

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

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

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

  .nav-toggle {
    display: flex;
  }

  .hero,
  .hero-viewport {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 0 70px;
  }

  .hero-image {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
  }

  .quick-search-inner,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .logo-text {
    font-size: 18px;
  }

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

  .ranking-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .ranking-number {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    font-size: 16px;
  }

  .player-info,
  .detail-text,
  .side-card {
    padding: 18px;
  }
}
