* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 650;
  color: #4b5563;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #4b5563;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-panel {
  max-width: 720px;
  color: #ffffff;
  animation: fadeUp 0.8s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.hero-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
  font-weight: 780;
}

.hero-panel p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 760;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #f43f5e, #ec4899);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.28);
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(244, 63, 94, 0.34);
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  color: #f43f5e;
  border-color: #fecdd3;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.btn-light {
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
}

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

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

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

.section {
  padding: 64px 0;
}

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

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #f43f5e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-link {
  color: #f43f5e;
  font-weight: 760;
}

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

.category-card {
  display: block;
  padding: 24px;
  min-height: 180px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid #f3f4f6;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #fecdd3;
  box-shadow: 0 22px 46px rgba(244, 63, 94, 0.14);
}

.category-icon {
  display: block;
  font-size: 40px;
  margin-bottom: 14px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111827;
}

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

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48));
  opacity: 0.88;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #f43f5e;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.movie-info {
  padding: 15px;
}

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

.meta-row span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f9fafb;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 780;
}

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

.movie-info p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-tag,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  line-height: 1;
}

.mini-tag {
  padding: 6px 8px;
}

.tag {
  padding: 8px 12px;
}

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

.feature-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 300px;
}

.feature-card .movie-cover {
  aspect-ratio: auto;
  min-height: 100%;
}

.feature-card .movie-info {
  padding: 24px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.rank-panel,
.filter-panel,
.detail-card,
.text-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
}

.rank-panel {
  padding: 18px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease;
}

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

.rank-no {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #ffffff;
  font-weight: 850;
}

.rank-item img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-text {
  min-width: 0;
}

.rank-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.rank-text em {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 74px 0;
  background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.16), transparent 34%), linear-gradient(135deg, #fff1f2, #ffffff 45%, #fdf2f8);
}

.page-title {
  max-width: 860px;
}

.page-title p {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
}

.filter-panel {
  padding: 18px;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
}

.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 0 16px;
  color: #111827;
  outline: none;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.search-box {
  max-width: 760px;
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.search-box input {
  height: 56px;
  border-radius: 999px;
}

.detail-wrap {
  padding: 42px 0 72px;
  background: #f9fafb;
}

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

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

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

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.55));
  border: 0;
  color: #ffffff;
  transition: opacity 0.25s ease;
}

.player-frame.playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 22px 42px rgba(244, 63, 94, 0.36);
  font-size: 32px;
  transform: translateX(3px);
}

.detail-card {
  padding: 28px;
}

.detail-title h1 {
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffe4e6;
  color: #be123c;
  font-size: 13px;
  font-weight: 720;
}

.detail-card p {
  color: #4b5563;
}

.text-panel {
  margin-top: 28px;
  padding: 30px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.text-panel p {
  margin: 0 0 22px;
  color: #374151;
}

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

.no-results {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: #6b7280;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.site-footer {
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-top: 1px solid #e5e7eb;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #6b7280;
  font-size: 14px;
}

.site-footer p {
  margin: 14px 0 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-top {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: #ffffff;
  color: #f43f5e;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
  }

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

  .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: #fff1f2;
  }

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

  .feature-grid,
  .rank-layout,
  .player-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-columns: 180px 1fr;
  }

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

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

  .nav-inner {
    min-height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .brand,
  .footer-brand {
    font-size: 19px;
  }

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

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

  .section {
    padding: 46px 0;
  }

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

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

  .feature-grid {
    gap: 14px;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card .movie-cover {
    aspect-ratio: 4 / 5;
  }

  .movie-info {
    padding: 13px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .movie-info p {
    font-size: 13px;
  }

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

  .search-box {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
