* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0c0a09;
  color: #e7e5e4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.96);
  border-bottom: 1px solid rgba(68, 64, 60, 0.75);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fafaf9;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-links a {
  color: #d6d3d1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #f59e0b;
}

.top-search,
.mobile-search,
.home-search-strip form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.home-search-strip input,
.catalog-tools input,
.catalog-tools select {
  border: 1px solid rgba(120, 113, 108, 0.35);
  outline: none;
  border-radius: 12px;
  background: #292524;
  color: #fafaf9;
  padding: 11px 14px;
  min-width: 0;
}

.top-search input {
  width: 180px;
}

.top-search input:focus,
.mobile-search input:focus,
.home-search-strip input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.top-search button,
.mobile-search button,
.home-search-strip button,
.catalog-tools button {
  border: none;
  border-radius: 12px;
  background: #d97706;
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.home-search-strip button:hover,
.catalog-tools button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(120, 113, 108, 0.35);
  border-radius: 12px;
  background: #292524;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: #fafaf9;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-search input {
  flex: 1;
}

.mobile-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-links a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #292524;
  color: #e7e5e4;
}

.hero-carousel {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(135deg, #1c1917, #292524 45%, #78350f);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.72) 45%, rgba(12, 10, 9, 0.2)), linear-gradient(0deg, #0c0a09, rgba(12, 10, 9, 0.05) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 96px;
  max-width: 1180px;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  color: #f59e0b;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 12px 0 0;
  max-width: 760px;
  color: #fafaf9;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-content h3 {
  margin: 14px 0 0;
  max-width: 780px;
  color: #fef3c7;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}

.hero-content p {
  max-width: 690px;
  margin: 20px 0 0;
  color: #d6d3d1;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(68, 64, 60, 0.78);
  color: #d6d3d1;
  padding: 6px 10px;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: #d97706;
  color: #fff;
  padding: 13px 24px;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.28);
}

.primary-button:hover {
  background: #b45309;
  transform: translateY(-2px);
}

.ghost-button {
  border: 1px solid rgba(231, 229, 228, 0.18);
  background: rgba(41, 37, 36, 0.78);
  color: #fafaf9;
  padding: 12px 22px;
}

.ghost-button:hover {
  border-color: rgba(245, 158, 11, 0.75);
  color: #fbbf24;
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(231, 229, 228, 0.16);
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.7);
  color: #fafaf9;
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 30px;
  background: #f59e0b;
}

.home-search-strip {
  position: relative;
  z-index: 6;
  width: min(960px, calc(100% - 32px));
  margin: -34px auto 0;
  padding: 16px;
  border: 1px solid rgba(120, 113, 108, 0.35);
  border-radius: 22px;
  background: rgba(28, 25, 23, 0.92);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.home-search-strip input {
  flex: 1;
  background: #1c1917;
}

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

.content-section.shaded {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: rgba(28, 25, 23, 0.55);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  color: #fafaf9;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #a8a29e;
}

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

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

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

.movie-card {
  position: relative;
  border: 1px solid rgba(68, 64, 60, 0.55);
  border-radius: 18px;
  overflow: hidden;
  background: #1c1917;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #292524;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-play span {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.92);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: scale(1);
}

.card-year,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.card-year {
  right: 10px;
}

.rank-badge {
  left: 10px;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #fafaf9;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

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

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #78716c;
  font-size: 13px;
}

.card-meta span:first-child {
  color: #d97706;
}

.card-body .tag-row {
  margin-top: 12px;
}

.card-body .tag-row span {
  padding: 4px 8px;
  font-size: 12px;
  background: #292524;
  color: #a8a29e;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #1c1917;
  border: 1px solid rgba(68, 64, 60, 0.55);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.2));
}

.category-card span,
.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

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

.category-card strong {
  margin-top: 8px;
  color: #fafaf9;
  font-size: 24px;
  line-height: 1.2;
}

.category-card em {
  margin-top: 18px;
  color: #d6d3d1;
  font-style: normal;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.72;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 10%, rgba(217, 119, 6, 0.2), transparent 28%), linear-gradient(135deg, #1c1917, #292524 54%, #451a03);
}

.small-hero {
  padding: 80px max(16px, calc((100% - 1180px) / 2));
}

.catalog-tools {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  border: 1px solid rgba(68, 64, 60, 0.55);
  border-radius: 20px;
  background: rgba(28, 25, 23, 0.78);
}

.catalog-tools label {
  display: grid;
  gap: 8px;
  color: #d6d3d1;
  font-weight: 700;
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  background: #0c0a09;
}

.overview-grid {
  display: grid;
  gap: 24px;
}

.overview-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  padding: 22px;
  border: 1px solid rgba(68, 64, 60, 0.55);
  border-radius: 24px;
  background: #1c1917;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.overview-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.overview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overview-body span {
  color: #f59e0b;
  font-weight: 800;
}

.overview-body h2 {
  margin: 8px 0 12px;
  color: #fafaf9;
  font-size: clamp(24px, 3vw, 36px);
}

.overview-body p {
  color: #a8a29e;
}

.text-link {
  width: fit-content;
  margin-top: 12px;
  color: #f59e0b;
}

.detail-head {
  position: relative;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px) saturate(1.1);
  transform: scale(1.12);
  opacity: 0.32;
}

.detail-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0c0a09 0%, rgba(12, 10, 9, 0.86) 52%, rgba(12, 10, 9, 0.72)), linear-gradient(0deg, #0c0a09, transparent 48%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a8a29e;
  font-size: 14px;
  margin-bottom: 28px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(120, 113, 108, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 10px 0 14px;
  color: #fafaf9;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one {
  max-width: 820px;
  color: #d6d3d1;
  font-size: 20px;
}

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

.detail-meta span {
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.8);
  color: #d6d3d1;
  padding: 7px 12px;
}

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

.player-section {
  padding-top: 36px;
}

.player-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(120, 113, 108, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

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

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 119, 6, 0.95);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.06);
  background: #f59e0b;
}

.player-card.is-playing .play-overlay {
  display: none;
}

.detail-text article {
  max-width: 920px;
  padding: 28px;
  border: 1px solid rgba(68, 64, 60, 0.55);
  border-radius: 22px;
  background: #1c1917;
}

.detail-text h2 {
  margin: 0 0 12px;
  color: #fafaf9;
  font-size: 26px;
}

.detail-text h2 + p {
  margin-top: 0;
}

.detail-text p {
  color: #d6d3d1;
}

.detail-meta-line {
  color: #a8a29e;
}

.site-footer {
  background: #09090b;
  border-top: 1px solid rgba(68, 64, 60, 0.7);
  margin-top: 72px;
}

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

.footer-grid p {
  max-width: 560px;
  color: #a8a29e;
}

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

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

.footer-links a {
  color: #a8a29e;
}

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

.footer-bottom {
  border-top: 1px solid rgba(68, 64, 60, 0.55);
  padding: 16px;
  text-align: center;
  color: #78716c;
}

[hidden] {
  display: none !important;
}

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

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

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

@media (max-width: 900px) {
  .nav-links,
  .top-search {
    display: none;
  }

  .nav-wrap {
    justify-content: space-between;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-content {
    padding-top: 60px;
  }

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

  .overview-card,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .brand {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 78vh;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.68) 62%, rgba(12, 10, 9, 0.25));
  }

  .hero-actions,
  .detail-actions,
  .home-search-strip form {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search-strip {
    margin-top: -24px;
  }

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

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

  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .small-hero {
    padding-top: 58px;
    padding-bottom: 58px;
  }

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

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

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

  .play-overlay span {
    width: 68px;
    height: 68px;
  }
}
