* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -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(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  font-size: 22px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 650;
}

.nav-link {
  color: #cbd5e1;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #f8fafc;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

.mobile-menu-inner {
  display: grid;
  gap: 2px;
  padding: 10px 0 16px;
}

.mobile-menu a {
  padding: 10px 0;
  color: #cbd5e1;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

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

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-media img {
  transform: scale(1.12);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(20, 184, 166, 0.32), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.35) 50%, rgba(2, 6, 23, 0.68)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 96px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-kicker {
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.42);
  border: 1px solid rgba(45, 212, 191, 0.35);
  backdrop-filter: blur(10px);
}

.hero h1 {
  width: min(900px, 100%);
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero p {
  width: min(680px, 100%);
  margin: 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.detail-title-row,
.section-head,
.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
  box-shadow: 0 18px 30px rgba(20, 184, 166, 0.25);
}

.button-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.35);
  font-size: 30px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

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

.search-banner,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -42px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.search-banner {
  position: relative;
  z-index: 12;
}

.search-banner h2,
.section-head h2,
.page-hero h1,
.detail-main-card h1,
.category-overview-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.search-banner p,
.page-hero p,
.category-overview-head p {
  margin: 10px 0 0;
  color: #64748b;
}

.quick-search {
  display: flex;
  flex: 0 0 min(440px, 100%);
  gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.quick-search button {
  min-width: 96px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: #0f766e;
  font-weight: 800;
}

.section {
  padding: 70px 0 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-more {
  color: #0f766e;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(6, 182, 212, 0.1)),
    #0f172a;
}

.movie-card-large .card-cover {
  aspect-ratio: 16 / 10;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.75));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.88);
  box-shadow: 0 18px 35px rgba(20, 184, 166, 0.36);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.card-desc {
  min-height: 46px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 750;
}

.tag-strong {
  padding: 7px 12px;
  font-size: 14px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

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

.category-tile {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.24), transparent 35%),
    #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.category-tile span {
  display: block;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin: 8px 0;
  color: #0f766e;
  font-size: 26px;
}

.category-tile p,
.tile-links a {
  color: #64748b;
  font-size: 14px;
}

.tile-links {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.tile-links a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-section {
  padding-bottom: 70px;
}

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

.ranking-row {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-link {
  display: grid;
  grid-template-columns: 64px 84px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.ranking-number {
  color: #0f766e;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.ranking-link img {
  width: 84px;
  height: 108px;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.ranking-info {
  display: grid;
  gap: 4px;
}

.ranking-info strong {
  color: #0f172a;
  font-size: 18px;
}

.ranking-info em {
  color: #475569;
  font-style: normal;
}

.ranking-info small {
  color: #64748b;
}

.hot-score {
  border-radius: 999px;
  padding: 8px 12px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 850;
  white-space: nowrap;
}

.page-shell {
  min-height: 68vh;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 18%, rgba(20, 184, 166, 0.36), transparent 30%),
    linear-gradient(135deg, #020617 0%, #0f766e 52%, #0f172a 100%);
}

.compact-hero .container {
  padding: 70px 0 80px;
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  width: min(760px, 100%);
  color: #dbeafe;
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: #5eead4;
}

.overview-list {
  display: grid;
  gap: 34px;
  padding: 44px 0 72px;
}

.category-overview-card {
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-overview-head {
  margin-bottom: 24px;
}

.filter-panel {
  display: block;
  margin: -38px 0 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-status {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}

.detail-page {
  background: #f8fafc;
}

.player-section {
  padding: 22px 0 44px;
  color: #ffffff;
  background: #020617;
}

.dark-breadcrumb {
  margin: 8px 0 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
  box-shadow: 0 24px 60px rgba(20, 184, 166, 0.38);
  transform: translate(-50%, -50%);
}

.play-overlay span {
  margin-left: 5px;
  font-size: 34px;
}

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

.player-status {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  border-radius: 999px;
  padding: 8px 12px;
  color: #d1fae5;
  background: rgba(15, 23, 42, 0.75);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

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

.detail-main-card,
.detail-side-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-main-card {
  padding: 30px;
}

.detail-main-card h1 {
  margin-top: 0;
}

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

.lead-text {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid #14b8a6;
  border-radius: 0 18px 18px 0;
  color: #334155;
  background: #f0fdfa;
  font-size: 18px;
  font-weight: 700;
}

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

.detail-copy h2,
.detail-side-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.detail-copy p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side-card {
  align-self: start;
  overflow: hidden;
  padding-bottom: 22px;
}

.detail-side-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

.detail-side-card h2 {
  padding: 20px 20px 0;
}

.side-rank-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}

.side-rank-links a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
}

.side-rank-links span {
  color: #0f766e;
  font-weight: 900;
}

.image-missing {
  opacity: 0;
}

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

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

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

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

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

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

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

  .search-banner,
  .section-head,
  .category-overview-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-banner {
    margin-top: -26px;
  }

  .quick-search {
    width: 100%;
    flex-basis: auto;
    flex-direction: column;
  }

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

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-desc {
    min-height: 0;
  }

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

  .ranking-link {
    grid-template-columns: 44px 62px 1fr;
  }

  .ranking-link img {
    width: 62px;
    height: 82px;
  }

  .hot-score {
    grid-column: 3;
    width: max-content;
    margin-top: 8px;
  }

  .detail-main-card {
    padding: 22px;
  }

  .play-overlay {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .top-rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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