* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #b45309;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-nav input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  padding: 10px 16px;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

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

.header-search button:hover,
.mobile-nav button:hover,
.primary-button:hover {
  background: #b45309;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.24);
  transform: translateY(-1px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  padding: 8px 12px;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav nav,
.mobile-nav form {
  display: grid;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 14px auto 0;
}

.mobile-nav input {
  width: 100%;
  padding: 12px 16px;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

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

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(217, 119, 6, 0.95);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-kicker small {
  color: #f9fafb;
  font-size: 15px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

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

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

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

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

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fffbeb, #ffffff);
}

.section-gray {
  background: #f3f4f6;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading p,
.page-lead {
  margin: 8px 0 0;
  max-width: 760px;
  color: #4b5563;
  font-size: 17px;
}

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

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

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

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

.movie-card,
.category-card,
.info-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover,
.category-card:hover,
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  height: 268px;
  overflow: hidden;
  background: #111827;
}

.movie-card-large .poster-frame {
  height: 340px;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
}

.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.rank-badge {
  right: auto;
  left: 12px;
  background: #d97706;
}

.poster-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.card-copy {
  display: block;
  padding: 16px;
}

.card-copy strong,
.row-copy strong,
.related-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-copy strong,
.movie-row:hover .row-copy strong,
.related-card:hover .related-copy strong {
  color: #b45309;
}

.card-copy em,
.row-copy em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.row-meta {
  display: block;
  margin-top: 12px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.movie-row {
  display: flex;
  gap: 18px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.row-poster {
  position: relative;
  flex: 0 0 180px;
  height: 116px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.row-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

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

.category-card {
  padding: 24px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: #4b5563;
}

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

.page-hero {
  padding: 64px 0 36px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 54%, #f3f4f6);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 5;
  margin: 32px 0;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 35px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 190px 190px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 16px;
}

.empty-state {
  display: none;
  padding: 50px 24px;
  border-radius: 18px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.empty-state.show {
  display: block;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  padding: 40px 0 64px;
}

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

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

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #d97706;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.38);
}

.detail-card,
.sidebar-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

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

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.detail-meta .accent,
.tag:first-child {
  background: #fef3c7;
  color: #92400e;
}

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

.detail-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-line;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sidebar-card {
  position: sticky;
  top: 100px;
  padding: 22px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 900;
}

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

.related-card {
  display: flex;
  gap: 12px;
}

.related-poster {
  flex: 0 0 116px;
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.related-copy {
  min-width: 0;
}

.related-copy strong {
  font-size: 15px;
  -webkit-line-clamp: 2;
}

.related-copy span {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-logo {
  color: #f59e0b;
}

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

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

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

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .sidebar-card {
    position: static;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

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

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .hero-carousel {
    height: 78vh;
    min-height: 560px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.82));
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .poster-frame {
    height: 220px;
  }

  .movie-card-large .poster-frame {
    height: 260px;
  }

  .filter-panel {
    position: static;
  }

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

  .movie-row {
    gap: 12px;
  }

  .row-poster {
    flex-basis: 122px;
    height: 86px;
  }

  .detail-card {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-frame,
  .movie-card-large .poster-frame {
    height: 300px;
  }

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

  .primary-button,
  .secondary-button {
    text-align: center;
  }
}
