:root {
  --color-page: #f9fafb;
  --color-card: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #e5e7eb;
  --color-teal: #0d9488;
  --color-teal-dark: #0f766e;
  --color-cyan: #0891b2;
  --color-footer: #111827;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 18px 38px rgba(15, 23, 42, 0.16);
  --radius-card: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-teal-dark);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 10px 22px rgba(13, 148, 136, 0.22);
}

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

.nav-links a {
  position: relative;
  padding: 22px 0;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-teal-dark);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, #14b8a6, #06b6d4);
  transition: transform 180ms ease;
}

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

.mobile-menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #0f172a;
  background: #f3f4f6;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #134e4a, #164e63);
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
  transform: scale(1.03);
}

.hero-background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 20% 18%, rgba(20, 184, 166, 0.46), transparent 34%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.78), rgba(3, 7, 18, 0.44), rgba(3, 7, 18, 0.16));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  min-height: 600px;
  align-items: center;
  gap: 44px;
  padding: 64px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 15px;
  color: #fff;
  background: rgba(20, 184, 166, 0.88);
  font-weight: 750;
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.22);
}

.hero h1 {
  margin: 20px 0 14px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-feature-title {
  display: block;
  margin: 0 0 18px;
  color: #e0f2fe;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.16;
  font-weight: 800;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
}

.hero-meta,
.movie-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.36);
  font-size: 14px;
  font-weight: 650;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--color-teal);
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.28);
}

.button-primary:hover {
  background: var(--color-teal-dark);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 22px;
  color: #fff;
  background: rgba(15, 23, 42, 0.48);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.hero-focus-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.hero-focus-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-focus-card img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-focus-card strong {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-focus-card span {
  color: #cbd5e1;
  font-size: 13px;
}

.home-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-radius: 22px;
  margin: -34px auto 24px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.home-search input,
.filter-input,
.filter-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  padding: 0 14px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.home-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(13, 148, 136, 0.8);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section-white {
  background: #fff;
}

.section-teal {
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--color-muted);
}

.section-link {
  color: var(--color-teal-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.36);
  box-shadow: var(--shadow-card-hover);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 250px;
  background: #e5e7eb;
}

.small-cards .movie-cover {
  height: 170px;
}

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

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

.movie-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: rgba(15, 23, 42, 0.38);
  transition: opacity 180ms ease;
}

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

.play-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--color-teal);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badge-type {
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.76);
}

.badge-year {
  top: 12px;
  right: 12px;
  background: rgba(13, 148, 136, 0.9);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 52px;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  transition: color 180ms ease;
}

.movie-card:hover h3 {
  color: var(--color-teal-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.card-meta {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
}

.category-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
}

.category-card span {
  margin-top: 22px;
  color: var(--color-teal-dark);
  font-weight: 800;
}

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(135deg, #134e4a, #155e75);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.filter-empty {
  display: none;
  border-radius: 18px;
  margin-top: 20px;
  padding: 30px;
  text-align: center;
  color: var(--color-muted);
  background: #fff;
}

.filter-empty.is-visible {
  display: block;
}

.is-hidden {
  display: none !important;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 122px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  font-weight: 900;
}

.rank-row img {
  width: 122px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-row p {
  margin: 0;
  color: var(--color-muted);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 30px;
  align-items: start;
}

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

.breadcrumb a {
  color: var(--color-teal-dark);
  font-weight: 700;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

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

.player-play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.54));
  cursor: pointer;
}

.player-play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.96);
  box-shadow: 0 18px 42px rgba(13, 148, 136, 0.35);
  font-size: 34px;
  transform: translateX(2px);
  transition: transform 180ms ease, background 180ms ease;
}

.player-play:hover span {
  background: var(--color-teal-dark);
  transform: translateX(2px) scale(1.06);
}

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

.detail-main-card,
.related-card,
.detail-side-card {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.detail-main-card {
  margin-top: 26px;
}

.detail-main-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-bottom: 20px;
  color: #4b5563;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 11px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 750;
}

.content-block {
  border-radius: 18px;
  margin-top: 18px;
  padding: 22px;
  background: #f8fafc;
}

.content-block.highlight {
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.content-block p {
  margin: 0;
  color: #374151;
}

.sidebar {
  position: sticky;
  top: 92px;
}

.related-card h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-list {
  display: grid;
  gap: 15px;
}

.related-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 108px;
  height: 70px;
  border-radius: 13px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  margin-bottom: 3px;
  line-height: 1.35;
}

.related-item span {
  color: #6b7280;
  font-size: 13px;
}

.more-grid {
  margin: 54px 0 76px;
}

.site-footer {
  color: #d1d5db;
  background: var(--color-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-links a:hover {
  color: #5eead4;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 0;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-inner,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .sidebar {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 14px;
  }

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

  .nav-links a {
    padding: 12px 2px;
  }

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

  .hero,
  .hero-inner {
    min-height: 640px;
  }

  .hero-inner {
    padding: 44px 0 64px;
  }

  .hero-summary {
    font-size: 17px;
  }

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

  .section {
    padding: 46px 0;
  }

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

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

  .movie-cover,
  .small-cards .movie-cover {
    height: 205px;
  }

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

  .rank-row {
    grid-template-columns: 44px 92px 1fr;
  }

  .rank-row .button {
    grid-column: 1 / -1;
  }

  .rank-row img {
    width: 92px;
    height: 62px;
  }

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

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-feature-title {
    font-size: 24px;
  }

  .cards-grid,
  .cards-grid.small-cards,
  .cards-grid.category-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover,
  .small-cards .movie-cover {
    height: 260px;
  }

  .related-item {
    grid-template-columns: 92px 1fr;
  }

  .related-item img {
    width: 92px;
    height: 62px;
  }
}
