* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #db2777 100%);
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.24);
  transition: transform 0.22s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #dc2626;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px 16px;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 650;
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 64px;
  width: min(100% - 32px, 1280px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: end;
  color: #ffffff;
}

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

.eyebrow-row,
.hero-meta,
.tag-row,
.meta-line,
.button-row,
.rank-meta,
.breadcrumbs,
.detail-meta,
.player-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  padding: 6px 12px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero-meta span,
.poster-type,
.poster-year {
  padding: 5px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 750;
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.button-row {
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  padding: 14px 22px;
  background: linear-gradient(90deg, #dc2626 0%, #db2777 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.26);
}

.secondary-button {
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.small-button {
  padding: 9px 12px;
  background: #ffffff;
  color: #dc2626;
  font-size: 14px;
}

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

.hero-side-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-side-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hero-side-card ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.hero-side-card li a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-index {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #dc2626, #db2777);
  color: #ffffff;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  right: calc((100vw - min(100vw, 1280px)) / 2 + 16px);
  bottom: 22px;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.hero-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 16px 56px;
}

.content-section {
  margin-top: 46px;
}

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

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

.section-heading p {
  margin: 8px 0 0;
  max-width: 780px;
  color: #6b7280;
  line-height: 1.7;
}

.section-more {
  flex: none;
  color: #dc2626;
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

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

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

.poster-year {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.poster-type {
  position: absolute;
  top: 10px;
  right: 10px;
}

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

.movie-card h3 {
  margin: 0;
  min-height: 42px;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

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

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

.meta-line {
  margin-top: 9px;
  color: #6b7280;
  font-size: 12px;
}

.meta-line a {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 750;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 750;
}

.feature-band {
  margin-top: 46px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(90deg, #eff6ff 0%, #faf5ff 100%);
}

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

.category-card {
  min-height: 160px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

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

.filter-panel {
  margin: 24px 0 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-item img {
  width: 88px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h2,
.rank-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.rank-item p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.rank-meta {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
}

.detail-hero {
  position: relative;
  margin-bottom: 30px;
  min-height: 430px;
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  background: #111827;
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 150px 16px 54px;
  color: #ffffff;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: #e5e7eb;
  font-size: 14px;
}

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

.detail-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-hero p {
  max-width: 850px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  margin: 16px 0 0;
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 750;
}

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

.detail-card,
.player-card,
.side-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

.player-card {
  margin-bottom: 28px;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  z-index: 2;
}

.play-layer.is-hidden {
  display: none;
}

.play-button-visual {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #db2777);
  box-shadow: 0 20px 44px rgba(220, 38, 38, 0.36);
}

.play-button-visual svg {
  margin-left: 4px;
}

.player-tools {
  padding: 16px 18px;
  justify-content: space-between;
}

.player-tools strong {
  font-size: 18px;
}

.detail-card {
  padding: 24px;
}

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

.detail-card h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-card p + p {
  margin-top: 14px;
}

.side-panel {
  padding: 20px;
  align-self: start;
}

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

.side-list a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-list img {
  width: 70px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.side-list strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.side-list small {
  display: block;
  margin-top: 5px;
  color: #6b7280;
}

.site-footer {
  margin-top: 52px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #9ca3af;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.empty-result {
  display: none;
  padding: 36px;
  text-align: center;
  border-radius: 20px;
  background: #ffffff;
  color: #6b7280;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

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

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

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

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

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

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

  .hero-slider {
    min-height: 640px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    bottom: 72px;
  }

  .hero-side-card {
    display: none;
  }

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

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

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

  .rank-item {
    grid-template-columns: 46px 76px minmax(0, 1fr);
  }

  .rank-item .small-button {
    grid-column: 2 / 4;
  }

  .rank-item img {
    width: 76px;
    height: 108px;
  }
}

@media (max-width: 640px) {
  .brand-text small {
    display: none;
  }

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

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

  .hero-controls {
    display: none;
  }

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

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

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

  .feature-band {
    padding: 18px;
    border-radius: 22px;
  }

  .detail-hero-inner {
    padding-top: 118px;
  }

  .detail-card,
  .side-panel {
    padding: 18px;
  }
}
