* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706, #ea580c);
  box-shadow: 0 14px 30px rgba(146, 64, 14, 0.22);
}

.nav-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.desktop-nav a {
  padding: 8px 0;
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-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.14);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  background: rgba(146, 64, 14, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
}

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

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.82)), linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.1));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 78px;
  color: #ffffff;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  background: #d97706;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 21px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #d97706;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #b45309;
  box-shadow: 0 18px 30px rgba(217, 119, 6, 0.26);
}

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

.slider-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.04);
}

.slider-arrow.prev {
  left: 18px;
}

.slider-arrow.next {
  right: 18px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  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: #d97706;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #ffffff;
}

.section.tint {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-line {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706, rgba(217, 119, 6, 0));
}

.lead {
  max-width: 780px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 18px;
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.category-chip,
.duration-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.category-chip {
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  background: #d97706;
}

.duration-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #ef4444;
}

.movie-card strong {
  display: block;
  padding: 15px 16px 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  padding: 0 16px 8px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card em {
  display: block;
  padding: 0 16px 16px;
  color: #9ca3af;
  font-size: 12px;
  font-style: normal;
}

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

.category-card {
  display: block;
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(217, 119, 6, 0.28);
}

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

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

.category-card span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.horizontal-card img {
  width: 100%;
  height: 100%;
  min-height: 142px;
  object-fit: cover;
  background: #f59e0b;
}

.horizontal-card span {
  padding: 18px;
}

.horizontal-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.horizontal-card small {
  display: -webkit-box;
  margin-bottom: 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-card i {
  color: #d97706;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.36), transparent 38%), linear-gradient(135deg, #111827, #92400e 55%, #ea580c);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 900;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin: 0 0 28px;
}

.toolbar input,
.toolbar select,
.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: #111827;
  background: #ffffff;
}

.toolbar input:focus,
.toolbar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  padding: 22px;
  margin-bottom: 30px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding: 38px 0 64px;
}

.video-main,
.video-side {
  min-width: 0;
}

.video-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.video-meta span,
.tag-list span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #111827;
  cursor: pointer;
  z-index: 2;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.58));
}

.player-cover span {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  font-size: 36px;
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.34);
}

.player-cover.is-hidden {
  display: none;
}

.player-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: #b45309;
  font-size: 14px;
}

.detail-block {
  margin-top: 30px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-block p {
  margin: 0 0 16px;
  color: #374151;
  font-size: 17px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.side-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.related-mini {
  display: grid;
  gap: 14px;
}

.related-mini a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-mini img {
  width: 96px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: #f59e0b;
}

.related-mini b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-mini small {
  color: #d97706;
  font-size: 12px;
  font-weight: 800;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-logo .logo-mark {
  color: #ffffff;
  background: #d97706;
}

.footer-brand p {
  max-width: 440px;
  color: #9ca3af;
}

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

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

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

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

.empty-result {
  padding: 36px;
  border-radius: 20px;
  color: #6b7280;
  background: #ffffff;
  text-align: center;
}

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

  .nav-toggle {
    display: block;
  }

  .hero-slider {
    height: 540px;
  }

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

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

  .horizontal-list,
  .video-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 18px;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .section {
    padding: 44px 0;
  }

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

  .section-line {
    width: 100%;
    flex: none;
  }

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

  .movie-card strong {
    font-size: 14px;
  }

  .movie-card p {
    display: none;
  }

  .horizontal-card {
    grid-template-columns: 130px 1fr;
  }

  .horizontal-card img {
    min-height: 118px;
  }

  .horizontal-card span {
    padding: 12px;
  }

  .video-layout {
    padding-top: 24px;
  }

  .detail-block {
    padding: 20px;
  }
}
