* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  box-shadow: 0 0 0 7px rgba(45, 212, 191, 0.12);
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

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

.brand-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 15px;
}

.main-nav a,
.mobile-panel a,
.site-footer a {
  transition: color 0.22s ease, transform 0.22s ease;
}

.main-nav a:hover,
.mobile-panel a:hover,
.site-footer a:hover {
  color: #2dd4bf;
}

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

.header-search input,
.mobile-panel input,
.filter-box input,
.search-hero input {
  width: 250px;
  border: 0;
  outline: none;
  color: #ffffff;
  background: #334155;
  border-radius: 999px;
  padding: 11px 44px 11px 18px;
  transition: box-shadow 0.22s ease, background 0.22s ease;
}

.header-search input::placeholder,
.mobile-panel input::placeholder,
.search-hero input::placeholder {
  color: #cbd5e1;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-hero input:focus {
  background: #1f2937;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
}

.header-search button {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #cbd5e1;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-panel.open {
  display: grid;
  gap: 14px;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel input {
  width: 100%;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: #14b8a6;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1280px) / 2 + 16px));
  right: 32px;
  bottom: 12%;
  max-width: 780px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.18);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.28);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.44);
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-style: normal;
}

.hero-meta span:first-child,
.pill-accent {
  color: #ffffff;
  background: #14b8a6;
}

.hero-meta span:not(:first-child) {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: #14b8a6;
  box-shadow: 0 16px 36px rgba(20, 184, 166, 0.28);
}

.btn-primary:hover {
  background: #0f766e;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 30px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.22s ease, transform 0.22s ease;
}

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

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

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 32px;
  background: #14b8a6;
}

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

.section {
  padding: 52px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-head h2,
.category-title h1,
.detail-copy h1,
.search-title h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.category-title p,
.search-title p {
  margin: 9px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.section-link {
  color: #0d9488;
  font-weight: 700;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.movie-poster-wrap {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.movie-card-large .movie-poster-wrap {
  height: 320px;
}

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

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

.movie-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 9px;
  padding: 5px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.movie-hover-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 76px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card-link:hover .movie-hover-text {
  opacity: 1;
}

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

.movie-card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.22s ease;
}

.movie-card-link:hover strong {
  color: #0d9488;
}

.movie-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

.movie-card-meta em {
  overflow: hidden;
  max-width: 70%;
  border-radius: 8px;
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card-meta span {
  color: #ca8a04;
  font-weight: 800;
}

.feature-band {
  border-radius: 26px;
  padding: 34px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.category-card {
  display: block;
  min-height: 190px;
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0f172a);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #ea580c, #7f1d1d);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #2563eb, #312e81);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.22);
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 25px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: #ccfbf1;
  font-weight: 800;
}

.rank-panel {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 86px 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 15px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 86px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.rank-copy strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.rank-copy em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.banner-title {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.banner-title.orange {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.banner-title.blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.banner-title.slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.banner-title .container {
  padding: 54px 0;
}

.banner-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.05em;
}

.banner-title p {
  max-width: 780px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.filter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.filter-box input {
  width: min(420px, 100%);
  color: #111827;
  background: #f1f5f9;
}

.filter-box input::placeholder {
  color: #94a3b8;
}

.filter-box p {
  margin: 0;
  color: #64748b;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 32px;
  padding: 34px 0 64px;
}

.player-shell {
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

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

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.18), rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.78));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-mark {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #14b8a6;
  box-shadow: 0 16px 44px rgba(20, 184, 166, 0.34);
  font-size: 34px;
  transform: translateZ(0);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.detail-meta span {
  color: #475569;
  background: #e2e8f0;
}

.detail-meta span.rating {
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

.content-card {
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.content-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 23px;
}

.content-card p {
  margin: 0 0 13px;
  color: #374151;
  line-height: 1.88;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.tag {
  color: #475569;
  background: #f1f5f9;
}

.related-panel {
  position: sticky;
  top: 96px;
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.related-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 12px;
}

.compact-card img {
  width: 118px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card em {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.search-hero {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #334155, #0f172a);
}

.search-hero form {
  display: flex;
  width: min(720px, 100%);
  gap: 12px;
  margin-top: 24px;
}

.search-hero input {
  flex: 1;
  width: 100%;
}

.search-hero button {
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  color: #ffffff;
  background: #14b8a6;
  font-weight: 800;
  cursor: pointer;
}

.search-title h1,
.search-title p {
  color: #ffffff;
}

.site-footer {
  margin-top: 64px;
  color: #cbd5e1;
  background: linear-gradient(to bottom, #0f172a, #020617);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

.footer-about p {
  max-width: 640px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px 16px;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

.empty-result {
  border-radius: 20px;
  padding: 54px 24px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
}

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

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

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

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

  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero {
    height: 74vh;
    min-height: 560px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 86px;
  }

  .hero-arrow {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .hero-arrow:hover {
    transform: scale(1.06);
  }

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

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

  .hero-dots {
    bottom: 40px;
  }

  .section-head,
  .filter-box,
  .search-hero form {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-3,
  .category-cards,
  .footer-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-band,
  .rank-panel {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 44px 78px 1fr;
    gap: 12px;
  }

  .rank-row img {
    width: 78px;
    height: 54px;
  }

  .compact-card {
    grid-template-columns: 100px 1fr;
  }

  .compact-card img {
    width: 100px;
    height: 64px;
  }
}
