:root {
  --primary: #f17925;
  --primary-dark: #e2591b;
  --primary-soft: #fef7ed;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e5e4;
  --bg: #fafaf9;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(28, 25, 23, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.82);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #facc15);
  box-shadow: 0 12px 28px rgba(241, 121, 37, 0.32);
}

.brand-text {
  font-size: 22px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #57534e;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--primary-dark);
}

.quick-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.quick-nav a {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: #78716c;
  background: #ffffff;
  border: 1px solid #f1f1f0;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(241, 121, 37, 0.36), transparent 34%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.92), rgba(10, 9, 8, 0.66) 44%, rgba(10, 9, 8, 0.18)),
    linear-gradient(0deg, rgba(10, 9, 8, 0.8), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  align-content: center;
  max-width: 1180px;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  box-shadow: 0 16px 36px rgba(241, 121, 37, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-light {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: #fed7aa;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  font-size: 22px;
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 50px;
  display: flex;
  gap: 8px;
}

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

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

.hero-search {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  border: 1px solid #ffffff;
}

.search-panel label,
.filter-panel label {
  display: grid;
  gap: 6px;
  color: #78716c;
  font-size: 13px;
  font-weight: 700;
}

.search-box input,
.filter-panel input,
.filter-panel select,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  font: inherit;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-panel select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(241, 121, 37, 0.10);
}

.section {
  padding: 74px 0 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid #f0efee;
  box-shadow: 0 10px 36px rgba(28, 25, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

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

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

.poster-mask {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, var(--primary));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.card-content {
  padding: 16px;
}

.card-title {
  display: block;
  color: #1c1917;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title:hover {
  color: var(--primary-dark);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  color: #78716c;
  font-size: 13px;
}

.card-content p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #57534e;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 180px;
  padding: 20px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #292524, #0c0a09);
  overflow: hidden;
  position: relative;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

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

.category-card span {
  font-weight: 800;
  color: #fed7aa;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #f0efee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 38px rgba(28, 25, 23, 0.08);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
}

.ranking-item img {
  width: 64px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info strong,
.ranking-info em {
  display: block;
}

.ranking-info strong {
  font-size: 17px;
}

.ranking-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ranking-score {
  color: var(--primary-dark);
  font-weight: 800;
  white-space: nowrap;
}

.page-hero {
  padding: 82px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(241, 121, 37, 0.44), transparent 32%),
    linear-gradient(135deg, #1c1917, #0c0a09 74%);
}

.small-hero {
  padding: 58px 0 52px;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

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

.filter-panel {
  margin-top: -34px;
  margin-bottom: 34px;
  position: relative;
  z-index: 3;
}

.detail-shell {
  padding: 42px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #78716c;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

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

.player-card,
.detail-card,
.text-card {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid #f0efee;
  box-shadow: 0 16px 48px rgba(28, 25, 23, 0.08);
  overflow: hidden;
}

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

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.05));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-player.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #f59e0b);
  box-shadow: 0 20px 45px rgba(241, 121, 37, 0.36);
  font-size: 31px;
  cursor: pointer;
}

.player-meta {
  padding: 20px 22px 24px;
}

.player-meta h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.detail-card {
  padding: 18px;
}

.detail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #1c1917;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f4f3f2;
}

.detail-list span {
  color: #78716c;
}

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

.text-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.text-card p {
  margin: 0 0 16px;
  color: #44403c;
  font-size: 16px;
}

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

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

.no-result {
  display: none;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  color: #78716c;
  background: #ffffff;
  border: 1px solid #f0efee;
}

.no-result.show {
  display: block;
}

.site-footer {
  margin-top: 86px;
  padding: 42px 0;
  color: #d6d3d1;
  background: #1c1917;
}

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

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

.footer-inner p {
  max-width: 520px;
  color: #a8a29e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .detail-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 19px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    display: none;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-link {
    border-radius: 14px;
  }

  .hero-slider {
    height: auto;
    min-height: 620px;
  }

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

  .hero-controls {
    right: 16px;
    bottom: 22px;
  }

  .hero-dots {
    left: 16px;
    bottom: 38px;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 36px 54px 1fr;
  }

  .ranking-score {
    grid-column: 3;
  }

  .detail-card {
    display: block;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .section-head {
    display: block;
  }

  .hero-actions,
  .section-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
