* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 48%, #fefce8 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b 0%, #eab308 50%, #f97316 100%);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.22);
}

.nav-inner {
  min-height: 64px;
  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;
}

.brand-text {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a,
.mobile-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
  color: #fffbeb;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-links {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  color: #ffffff;
  font-weight: 700;
}

.mobile-links.is-open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(110deg, #d97706 0%, #f97316 52%, #eab308 100%);
}

.hero-bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.38;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-bg-glow-one {
  width: 330px;
  height: 330px;
  left: 6%;
  top: 40px;
  background: #fde047;
}

.hero-bg-glow-two {
  width: 420px;
  height: 420px;
  right: 5%;
  bottom: 40px;
  background: #fb923c;
  animation-delay: 1s;
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-slides {
  width: 100%;
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
}

.hero-slide.is-active {
  display: flex;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #fffbeb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.badge-row,
.tag-row,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.badge-row span,
.tag-row span,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
  color: #d97706;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(180, 83, 9, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-gradient {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316, #eab308);
  box-shadow: 0 14px 26px rgba(245, 158, 11, 0.25);
}

.btn-line {
  color: #b45309;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #fbbf24;
}

.hero-poster {
  width: min(360px, 34vw);
  min-width: 260px;
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(120, 53, 15, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  background: rgba(120, 53, 15, 0.24);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.74);
  color: #ffffff;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

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

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #fffbeb, rgba(255, 251, 235, 0));
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 4;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(146, 64, 14, 0.14);
}

.metrics-panel div {
  text-align: center;
}

.metrics-panel strong {
  display: block;
  color: #d97706;
  font-size: 28px;
  margin-bottom: 4px;
}

.metrics-panel span {
  color: #6b7280;
  font-size: 14px;
}

.content-section {
  padding: 54px 0;
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  color: #d97706;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 45px rgba(146, 64, 14, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(249, 115, 22, 0.18));
}

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

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

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
}

.cover-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: #f59e0b;
}

.movie-info {
  padding: 18px;
}

.badge-row span {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.movie-info h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: #d97706;
}

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

.tag-row span,
.mini-tags span {
  color: #92400e;
  background: #fef3c7;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

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

.category-card,
.category-overview-card,
.prose-card,
.filter-card,
.search-box-large,
.ranking-copy,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(146, 64, 14, 0.12);
}

.category-card {
  overflow: hidden;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 38px rgba(146, 64, 14, 0.18);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
  background: rgba(245, 158, 11, 0.15);
}

.category-card span {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

.ranking-panel {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(90deg, #f59e0b, #f97316, #eab308);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(146, 64, 14, 0.2);
}

.ranking-panel .section-head p,
.ranking-panel .section-more {
  color: #fffbeb;
}

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

.rank-item {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px 60px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-num {
  color: #d97706;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 60px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
}

.rank-body strong,
.rank-body em {
  display: block;
}

.rank-body strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.rank-body em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: #d97706;
  font-weight: 900;
}

.sub-hero {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 52%, #eab308 100%);
}

.sub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #fffbeb;
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #fff7ed;
  font-weight: 700;
}

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

.categories-overview {
  display: grid;
  gap: 24px;
  padding: 54px 0;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 22px;
}

.category-cover-link img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.14);
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

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

.category-overview-card .btn {
  margin-top: 18px;
}

.filter-panel,
.search-panel {
  padding: 34px 0 64px;
}

.filter-card,
.search-box-large {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin-bottom: 28px;
}

.filter-card label {
  flex: 1 1 250px;
}

.filter-card span {
  display: block;
  margin-bottom: 8px;
  color: #92400e;
  font-weight: 800;
}

.filter-card input,
.filter-card select,
.search-box-large input,
.search-box-large select {
  width: 100%;
  min-height: 46px;
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: 0;
}

.filter-card input:focus,
.filter-card select:focus,
.search-box-large input:focus,
.search-box-large select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-box-large input {
  flex: 1 1 360px;
}

.search-box-large select {
  width: 180px;
}

.search-box-large button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  padding: 44px 0 16px;
}

.rank-list-big {
  grid-template-columns: 1fr;
}

.ranking-copy {
  align-self: start;
  padding: 28px;
  position: sticky;
  top: 90px;
}

.ranking-copy h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.ranking-copy p,
.prose-card p {
  color: #6b7280;
  line-height: 1.85;
}

.detail-hero {
  padding: 28px 0 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
  gap: 28px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.22);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  font-weight: 900;
  z-index: 3;
}

.video-play-button span {
  font-size: 20px;
}

.video-play-button.is-hidden {
  display: none;
}

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

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

.detail-card .lead {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.detail-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #fffbeb;
}

.detail-meta-grid span,
.detail-meta-grid strong {
  display: block;
}

.detail-meta-grid span {
  margin-bottom: 6px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta-grid strong {
  color: #111827;
  font-size: 16px;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

.tag-row-large span {
  padding: 7px 12px;
}

.detail-side img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 26px;
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 20px 45px rgba(146, 64, 14, 0.15);
}

.side-card {
  margin-top: 20px;
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.side-card p {
  margin: 0 0 18px;
  color: #6b7280;
}

.side-card .btn {
  width: 100%;
  margin-top: 12px;
}

.prose-card {
  margin: 54px auto;
  padding: 32px;
}

.prose-card p {
  margin: 0 0 18px;
  font-size: 17px;
}

.is-filtered-out {
  display: none;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 13px;
    font-size: 14px;
  }

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 70px 0 110px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-poster {
    width: 100%;
    min-width: 0;
    margin-top: 30px;
    transform: none;
  }

  .hero-poster img {
    height: 360px;
  }

  .hero-dots {
    bottom: 54px;
  }

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

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

  .rank-list,
  .ranking-layout,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .ranking-copy {
    position: static;
  }

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

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

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

  .hero-inner {
    padding-top: 48px;
  }

  .hero-actions,
  .filter-card,
  .search-box-large {
    display: grid;
  }

  .btn,
  .search-box-large button,
  .search-box-large select {
    width: 100%;
  }

  .metrics-panel,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .movie-cover {
    height: 360px;
  }

  .rank-item {
    grid-template-columns: 34px 54px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-card,
  .prose-card {
    padding: 22px;
  }
}
