* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #fff7ed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 5%, rgba(251, 146, 60, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.20), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

.hero {
  width: min(1240px, calc(100% - 32px));
  min-height: 640px;
  margin: 28px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.hero-slider,
.hero-panel,
.page-hero,
.search-card,
.category-card,
.movie-card,
.category-overview-card,
.detail-content,
.side-card,
.player-shell {
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 25px 60px rgba(124, 45, 18, 0.18);
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(251, 146, 60, 0.20), transparent 28rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 47%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 45%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.18);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h2,
.page-hero h1 {
  margin: 16px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

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

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.card-tags span,
.card-tags a,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: 72px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

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

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.panel-title {
  padding: 8px 4px 10px;
  color: #fed7aa;
  font-size: 18px;
  font-weight: 950;
}

.hero-rank-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 6px 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-rank-item:hover {
  background: rgba(249, 115, 22, 0.24);
  transform: translateX(3px);
}

.hero-rank-item span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #111827;
  background: #fed7aa;
  font-weight: 950;
}

.hero-rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-rank-item em {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-style: normal;
}

.content-section,
.search-section,
.detail-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 54px;
}

.search-card,
.page-hero {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(217, 119, 6, 0.94));
  color: #ffffff;
}

.search-card {
  padding: 30px;
}

.search-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 950;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 22px;
}

.search-card .filter-bar {
  margin-bottom: 0;
}

.search-box,
.sort-box {
  display: grid;
  gap: 6px;
}

.search-box span,
.sort-box span {
  font-size: 13px;
  font-weight: 800;
  color: inherit;
  opacity: 0.72;
}

.search-box input,
.sort-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 14px;
  color: #1f2937;
  background: #ffffff;
  outline: none;
}

.search-box input:focus,
.sort-box select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.section-more {
  flex: 0 0 auto;
  min-height: 40px;
  color: #ffffff;
  background: #111827;
}

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

.category-card,
.category-overview-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(124, 45, 18, 0.22);
}

.category-card span,
.category-title {
  display: block;
  margin-bottom: 8px;
  color: #ea580c;
  font-size: 20px;
  font-weight: 950;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.category-overview-card {
  min-height: 230px;
}

.category-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, 0.64));
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(-2px);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #ef4444, #f97316);
  font-weight: 950;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
}

.card-body h3 a:hover {
  color: #ea580c;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags a,
.card-tags span {
  color: #c2410c;
  background: #ffedd5;
}

.page-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 34px;
  padding: 54px;
  overflow: hidden;
}

.compact-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.detail-wrap {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-weight: 800;
}

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

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

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

.player-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  background: #020617;
  object-fit: contain;
}

.player-cover {
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58) saturate(1.1);
}

.play-ring {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.42);
  font-size: 34px;
  font-weight: 950;
  transition: transform 0.2s ease;
}

.player-cover:hover .play-ring {
  transform: scale(1.06);
}

.player-shell.is-playing .player-cover {
  display: none;
}

.detail-content {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
}

.detail-content h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-content h2,
.side-card h2 {
  margin: 26px 0 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.detail-content p {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.9;
}

.lead-text {
  color: #c2410c !important;
  font-size: 18px;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 850;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  color: #374151;
  background: #f3f4f6;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 24px 46px rgba(124, 45, 18, 0.22);
}

.side-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
}

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

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
}

.side-card dt {
  color: #9ca3af;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #374151;
  font-weight: 800;
}

.side-card a {
  color: #ea580c;
}

.site-footer {
  margin-top: 66px;
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.footer-inner p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .panel-title {
    grid-column: 1 / -1;
  }

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

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

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

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }
}

@media (max-width: 780px) {
  .nav-wrap {
    height: 62px;
  }

  .brand {
    font-size: 19px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.96);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  }

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

  .main-nav a {
    justify-content: center;
  }

  .hero {
    width: min(100% - 20px, 1240px);
    min-height: auto;
    margin-top: 14px;
  }

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

  .hero-slide {
    padding: 40px 24px 74px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-dots {
    left: 24px;
    bottom: 28px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .content-section,
  .search-section,
  .detail-wrap,
  .page-hero {
    width: min(100% - 20px, 1240px);
  }

  .page-hero,
  .search-card,
  .detail-content {
    padding: 24px;
    border-radius: 24px;
  }

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

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

  .detail-poster {
    max-width: 260px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .card-body h3 {
    font-size: 18px;
  }
}
