* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b 55%, #fb923c);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.22);
}

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

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

.logo {
  font-size: 22px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.32), transparent 32%), linear-gradient(135deg, #7c2d12, #ea580c 48%, #f59e0b);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.26), transparent 56%), radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  gap: 44px;
  align-items: center;
  padding: 64px 0 54px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.btn,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #ea580c;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  background: rgba(15, 23, 42, 0.24);
  box-shadow: 0 28px 60px rgba(124, 45, 18, 0.42);
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-slide img {
  height: 310px;
  object-fit: cover;
  background: linear-gradient(135deg, #f97316, #111827);
}

.hero-slide-body {
  padding: 22px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(16px);
}

.hero-slide-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.hero-slide-body p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: -28px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}

.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.page-title {
  margin-bottom: 26px;
}

.page-title h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-title p {
  max-width: 760px;
  margin: 0;
  color: #6b7280;
  font-size: 17px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 20px;
}

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
}

.section-head a {
  color: #ea580c;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.09);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0 15px;
  color: #111827;
  background: #f9fafb;
  outline: none;
}

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

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

.category-card {
  min-height: 168px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(249, 115, 22, 0.24);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #fed7aa;
  box-shadow: 0 22px 44px rgba(249, 115, 22, 0.15);
}

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

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #facc15);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.card-body {
  padding: 16px;
}

.movie-meta {
  margin: 0 0 7px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-line {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.tag-row span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.compact-card .movie-line {
  min-height: 44px;
  -webkit-line-clamp: 2;
}

.detail-hero {
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #ea580c);
  color: #ffffff;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 38px;
}

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

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #f97316, #111827);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.video-box {
  position: relative;
  background: #000000;
}

.video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.22));
  cursor: pointer;
  z-index: 3;
}

.play-overlay.hidden {
  display: none;
}

.play-icon {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  font-size: 32px;
  transform: translateX(3px);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.content-card,
.side-card {
  border: 1px solid #f3f4f6;
  border-radius: 26px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
  transform: translateX(2px);
  background: #fff7ed;
}

.side-list img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f97316, #111827);
}

.side-list strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-list span {
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

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

.site-footer p {
  max-width: 360px;
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #d1d5db;
  font-size: 14px;
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.empty-result {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
}

.empty-result.visible {
  display: block;
}

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

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

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: #ea580c;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.2);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    border-radius: 14px;
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .nav-toggle {
    display: block;
  }

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

  .hero-panel {
    min-height: 500px;
  }

  .detail-poster {
    width: min(260px, 68vw);
  }

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

@media (max-width: 700px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .page-wrap,
  .detail-hero-inner,
  .hero-inner,
  .footer-grid,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    min-height: auto;
    padding: 42px 0 46px;
  }

  .hero-panel {
    min-height: 440px;
  }

  .hero-slide img {
    height: 260px;
  }

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

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

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

  .card-body {
    padding: 12px;
  }

  .movie-card h2 {
    min-height: 42px;
    font-size: 15px;
  }

  .movie-line {
    min-height: 42px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }
}
