* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

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

img,
video {
  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;
  color: #ffffff;
  background: linear-gradient(90deg, #059669, #0d9488, #0891b2);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

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

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #059669;
  background: #ffffff;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22);
  transition: transform 0.25s ease;
}

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

.brand-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: #d1fae5;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #ffffff;
  border-radius: 2px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.header-search input {
  width: 190px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input::placeholder {
  color: #d1fae5;
}

.header-search button {
  padding: 7px 14px;
  color: #047857;
  font-weight: 700;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
}

.menu-button {
  display: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-panel a {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  color: #64748b;
  font-size: 14px;
}

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

.breadcrumb em {
  color: #94a3b8;
  font-style: normal;
}

.hero {
  position: relative;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s 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-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  color: #ffffff;
  background: #059669;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.35);
}

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

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 6px 12px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #059669;
  box-shadow: 0 16px 38px rgba(5, 150, 105, 0.38);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

.content-section {
  padding: 68px 0;
}

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

.section-muted {
  background: #f1f5f9;
}

.category-band {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

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

.section-heading h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.category-band .section-heading h2,
.category-band .section-heading p {
  color: #ffffff;
}

.section-heading p {
  margin: 8px 0 0;
  color: #64748b;
}

.section-more {
  flex-shrink: 0;
  color: #059669;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.compact-grid .card-poster {
  aspect-ratio: 3 / 4;
}

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

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

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

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

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

.card-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-meta span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  color: #475569;
  background: #f1f5f9;
}

.card-tags {
  margin-top: 10px;
}

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

.category-tile,
.category-card {
  display: block;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255, 255, 255, 0.14);
}

.category-card:hover {
  background: #ecfdf5;
}

.category-tile span,
.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 36px;
}

.category-tile strong,
.category-card h2 {
  display: block;
  margin: 0 0 8px;
  color: inherit;
  font-size: 22px;
}

.category-card h2 {
  color: #0f172a;
}

.category-tile small,
.category-card p {
  display: block;
  color: #cbd5e1;
}

.category-card p {
  color: #64748b;
}

.category-card strong {
  display: inline-block;
  margin-top: 18px;
  color: #059669;
}

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #065f46, #0f766e, #0e7490);
}

.small-hero h1,
.rank-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
}

.small-hero p,
.rank-hero p {
  max-width: 820px;
  margin: 0;
  color: #d1fae5;
  font-size: 19px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.filter-panel button {
  min-height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: #0f766e;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
}

.empty-state {
  padding: 28px;
  margin-bottom: 24px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
}

.rank-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.rank-feature {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.rank-feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.rank-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
}

.rank-feature span,
.rank-feature strong {
  position: absolute;
  z-index: 2;
  left: 18px;
}

.rank-feature span {
  top: 18px;
  padding: 5px 12px;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  font-weight: 900;
}

.rank-feature strong {
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 22px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.rank-number {
  color: #059669;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 14px;
}

.rank-thumb img {
  width: 120px;
  height: 78px;
  object-fit: cover;
}

.rank-title {
  display: block;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.rank-main p {
  margin: 5px 0 8px;
  color: #64748b;
}

.rank-play {
  padding: 10px 16px;
  color: #ffffff;
  background: #059669;
  border-radius: 12px;
  font-weight: 900;
}

.player-section {
  padding: 32px 0;
  background: #000000;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.site-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.38));
  border: 0;
}

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

.player-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  color: #059669;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 36px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease;
}

.player-overlay:hover span {
  transform: scale(1.08);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 42px 0;
}

.detail-content h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
}

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

.detail-meta a,
.detail-meta span {
  padding: 6px 12px;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.lead-text {
  margin: 0 0 24px;
  color: #475569;
  font-size: 20px;
}

.text-card,
.side-card,
.tag-section {
  padding: 26px;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.review-card {
  background: linear-gradient(120deg, #fffbeb, #fff7ed);
  border-color: #fde68a;
}

.text-card h2,
.tag-section h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
}

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

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 100px;
}

.side-gradient {
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0f766e);
  border: 0;
}

.side-gradient h2,
.side-gradient p {
  color: #ffffff;
}

.side-gradient a {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 16px;
  color: #047857;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 900;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.side-link:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

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

.footer-brand {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1280px) {
  .hero {
    height: 600px;
  }
}

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

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

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

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

  .detail-side {
    position: static;
  }

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

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

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

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.55));
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .rank-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 48px 82px 1fr;
  }

  .rank-thumb img {
    width: 82px;
    height: 64px;
  }

  .rank-play {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
}
