* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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;
}

.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);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.brand-mark.small {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

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

.brand-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: #334155;
  font-size: 16px;
  font-weight: 650;
  transition: color 180ms ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #2563eb;
  border-radius: 999px;
}

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  color: #334155;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: #2563eb;
  background: #eff6ff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 46%, #06b6d4 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.32) 2px, transparent 0);
  background-size: 42px 42px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.95);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 22px 0 22px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 740px;
  margin: 0 0 28px;
  color: #ecfeff;
  font-size: 19px;
}

.hero-search {
  display: flex;
  width: min(640px, 100%);
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  color: #0f172a;
  border: 0;
  outline: 0;
  background: transparent;
}

.hero-search button {
  padding: 12px 20px;
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  background: #2563eb;
  cursor: pointer;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-light {
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.btn-outline-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.btn-soft {
  color: #2563eb;
  background: #eff6ff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.hero-stats span {
  color: #ccfbf1;
  font-size: 13px;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  background: #0f172a;
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

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

.hero-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.12));
}

.hero-slide-content {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.hero-slide-content h2 {
  margin: 16px 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.hero-slide-content p {
  display: -webkit-box;
  overflow: hidden;
  color: #e0f2fe;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.hero-slide-meta span,
.movie-meta span,
.rank-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-slide-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: -34px;
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.section-block {
  padding: 72px 0;
}

.bg-soft {
  background: #f8fafc;
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #64748b;
}

.section-link {
  flex: 0 0 auto;
  color: #2563eb;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 21px;
}

.category-card p {
  position: relative;
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.category-glow {
  position: absolute;
  right: -36px;
  top: -42px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.32), transparent 68%);
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.poster-link img,
.rank-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.poster-link img {
  transition: transform 240ms ease;
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 12px 0 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover,
.prev-next-links a:hover {
  color: #2563eb;
}

.movie-card p {
  display: -webkit-box;
  min-height: 66px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  padding: 5px 9px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  padding: 7px 12px;
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
}

.page-hero .container {
  padding-top: 76px;
  padding-bottom: 76px;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 14px;
}

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

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span,
.filter-row span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.search-field input,
.filter-row select {
  width: 100%;
  padding: 12px 14px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
}

.search-field input:focus,
.filter-row select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.filter-row label {
  display: grid;
  gap: 8px;
}

.overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.category-overview-head p {
  margin: 0;
  color: #64748b;
}

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

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

.movie-card.compact h2 {
  min-height: auto;
  font-size: 16px;
}

.movie-card.compact p,
.movie-card.compact .tag-row {
  display: none;
}

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

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

.rank-poster {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f766e;
  border-radius: 16px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
}

.rank-content h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-content p {
  margin: 0 0 12px;
  color: #64748b;
}

.detail-hero {
  padding: 42px 0 56px;
  background: linear-gradient(135deg, #0f172a 0%, #164e63 55%, #0f766e 100%);
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0f766e;
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.38);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: 19px;
}

.detail-info .detail-meta span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

.detail-info .tag-row {
  margin-top: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.player-section {
  background: #020617;
  color: #ffffff;
}

.player-heading {
  margin-bottom: 20px;
}

.player-heading h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.player-heading p {
  margin: 0;
  color: #cbd5e1;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  z-index: 1;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  padding-left: 5px;
  color: #0f766e;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

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

.detail-text-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.detail-text-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-text-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.prev-next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.prev-next-links a {
  padding: 16px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

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

.footer-bottom {
  padding: 18px 16px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 520px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 72px;
  }

  .hero-search {
    flex-direction: column;
    gap: 8px;
  }

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

  .hero-stats,
  .filter-row,
  .footer-grid,
  .detail-grid,
  .prev-next-links {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-poster {
    width: min(280px, 100%);
  }

  .category-grid,
  .wide-grid,
  .card-grid,
  .mini-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .rank-number {
    position: absolute;
    margin: 8px;
  }

  .rank-item {
    position: relative;
  }
}

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

  .brand-title {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-showcase {
    min-height: 480px;
  }

  .category-grid,
  .wide-grid,
  .card-grid,
  .mini-card-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 52px 0;
  }

  .page-hero .container {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}
