* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #ea580c 100%);
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.nav-link {
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7ed;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 20px 18px;
  background: #b45309;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.mobile-nav-link {
  padding: 12px 6px;
  color: #ffffff;
  border-radius: 8px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.2) 100%);
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  height: 100%;
  max-width: 760px;
  padding-top: 34px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 700;
  background: rgba(217, 119, 6, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.4vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 800;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.32);
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  background: #b45309;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.button-ghost {
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(620px, 100%);
  padding: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0 14px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  color: #ffffff;
  cursor: pointer;
  background: #d97706;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 800;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.48);
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: #ffffff;
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
}

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

.section-head h1,
.section-head h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-line {
  flex: 1 1 auto;
  height: 4px;
  background: linear-gradient(90deg, #d97706, rgba(217, 119, 6, 0));
  border-radius: 999px;
}

.section-intro {
  max-width: 860px;
  margin: -12px 0 32px;
  color: #4b5563;
  font-size: 17px;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.15);
}

.movie-card[hidden] {
  display: none;
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #f59e0b, #1f2937 70%);
}

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

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

.poster-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.25s ease;
}

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

.movie-label,
.movie-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

.movie-label {
  top: 12px;
  left: 12px;
  background: #d97706;
}

.movie-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  right: 12px;
  top: 12px;
  background: #ef4444;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  opacity: 0;
  background: #d97706;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #6b7280;
  font-size: 12px;
}

.movie-meta-row span {
  padding: 3px 7px;
  background: #f3f4f6;
  border-radius: 999px;
}

.movie-card-wide a {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 100%;
}

.movie-card-wide .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card-wide .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.category-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(120, 53, 15, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 8px;
  height: 128px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-card h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 21px;
}

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

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

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #111827 0%, #7c2d12 48%, #d97706 100%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

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

.breadcrumb a {
  color: #b45309;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 0.5fr));
  gap: 14px;
  padding: 16px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  color: #111827;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: 0;
  padding: 0 12px;
}

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

.empty-state {
  display: none;
  padding: 28px;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
}

.empty-state.is-visible {
  display: block;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25));
  border: 0;
  font-size: 18px;
  font-weight: 800;
}

.player-overlay.is-hidden {
  display: none;
}

.overlay-play-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 4px;
  background: #d97706;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.34);
}

.detail-card,
.side-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

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

.detail-card h1 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
}

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

.detail-lead {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

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

.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  color: #ffffff;
  background: #d97706;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge-row span:nth-child(2n) {
  background: #4b5563;
}

.tag-row {
  margin: 0 0 24px;
}

.tag-row span {
  padding: 5px 10px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
}

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

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

.side-card {
  position: sticky;
  top: 88px;
  padding: 18px;
}

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

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

.related-item img {
  width: 110px;
  height: 66px;
  object-fit: cover;
  background: #111827;
  border-radius: 10px;
}

.related-item h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item span {
  color: #6b7280;
  font-size: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 48px 0;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.site-footer ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 0;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid #1f2937;
  font-size: 13px;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    height: 560px;
  }

  .movie-grid,
  .movie-grid-large,
  .category-grid,
  .rank-list,
  .detail-layout,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .side-card {
    position: static;
  }
}

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

  .site-logo {
    font-size: 19px;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    align-content: end;
    padding-bottom: 92px;
  }

  .hero-actions,
  .hero-search {
    width: 100%;
  }

  .hero-search {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-search input {
    min-height: 42px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 48px 0;
  }

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

  .section-line {
    width: 100%;
  }

  .movie-grid,
  .movie-grid-large,
  .category-grid,
  .rank-list,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-card-wide a,
  .related-item {
    grid-template-columns: 1fr;
  }

  .related-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-hero {
    padding: 42px 0;
  }
}
