* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.26);
}

.nav-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  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;
  font-size: 22px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffedd5;
  transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input {
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  border-radius: 999px;
  outline: none;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.nav-search button,
.mobile-search button,
.big-search button,
.btn-primary {
  border: 0;
  color: #ffffff;
  background: #c2410c;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.btn-primary:hover {
  background: #9a3412;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(154, 52, 18, 0.3);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 20px;
  background: #c2410c;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-link {
  display: block;
  padding: 10px 4px;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.12) 100%);
}

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

.hero-tag,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #c2410c;
  background: #ffedd5;
}

.hero-tag {
  color: #ffffff;
  background: #ea580c;
  margin-bottom: 18px;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 900;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.8;
}

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

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(0, 0, 0, 0.36);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.page-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.category-strip {
  width: min(1240px, calc(100% - 40px));
  margin: 42px auto 0;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title.compact {
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-icon {
  color: #ea580c;
  font-size: 20px;
}

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

.category-overview {
  margin: 42px 0 80px;
}

.category-tile {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 22px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.18);
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  color: #9a3412;
  line-height: 1.6;
}

.content-section {
  margin: 64px 0;
}

.soft-panel {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(90deg, #fff7ed 0%, #fef3c7 100%);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px 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 20px 40px rgba(15, 23, 42, 0.14);
}

.poster-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #111827;
}

.movie-card-large .poster-wrap {
  height: 290px;
}

.poster-wrap img,
.movie-card-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 12px 0 9px;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3,
.rank-main a:hover h3,
.side-item:hover span {
  color: #ea580c;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-horizontal {
  display: flex;
  gap: 18px;
}

.movie-card-horizontal img {
  width: 210px;
  min-height: 150px;
}

.movie-card-horizontal .card-body {
  flex: 1;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
  padding: 54px 0;
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.detail-page .breadcrumbs {
  color: #6b7280;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: #fed7aa;
}

.filter-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.filter-input,
.filter-select,
.big-search input {
  border: 0;
  outline: none;
  border-radius: 14px;
  background: #ffffff;
  padding: 13px 16px;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.14);
}

.filter-input {
  width: min(460px, 100%);
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 42px 0 80px;
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 160px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #ea580c;
  font-weight: 900;
}

.rank-cover img {
  width: 160px;
  height: 104px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-main p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.6;
}

.big-search {
  margin-top: 26px;
  max-width: 640px;
}

.big-search input {
  flex: 1;
}

.search-status {
  margin: 42px 0 20px;
  color: #6b7280;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 32px;
  padding-top: 34px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 30px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 35px rgba(234, 88, 12, 0.42);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

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

.detail-card h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

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

.tag-row span:not(.pill) {
  padding: 6px 11px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.detail-meta {
  color: #6b7280;
  margin-bottom: 22px;
}

.detail-card section {
  border-top: 1px solid #e5e7eb;
  padding-top: 22px;
  margin-top: 22px;
}

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

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 88px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  grid-row: span 2;
}

.side-item span {
  font-weight: 800;
  line-height: 1.45;
}

.side-item small {
  color: #6b7280;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-inner p {
  line-height: 1.8;
}

.footer-inner h3 {
  color: #ffffff;
  margin: 0 0 14px;
}

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

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

.footer-copy {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid #1f2937;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    height: 520px;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 0 16px;
  }

  .logo,
  .footer-logo {
    font-size: 18px;
  }

  .hero {
    height: 500px;
  }

  .hero-content {
    bottom: 62px;
  }

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

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .category-overview,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    display: block;
  }

  .movie-card-horizontal img {
    width: 100%;
    height: 220px;
  }

  .rank-row {
    grid-template-columns: 42px 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-cover img {
    width: 96px;
    height: 72px;
  }

  .rank-main p {
    display: none;
  }

  .filter-row,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

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