:root {
  --color-teal: #0d9488;
  --color-teal-dark: #0f766e;
  --color-cyan: #0891b2;
  --color-blue: #2563eb;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.10);
  --shadow-card: 0 12px 28px rgba(17, 24, 39, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--color-gray-50), #ffffff 42%, var(--color-gray-50));
  color: var(--color-gray-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.90);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
}

.header-inner {
  max-width: var(--container);
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.25);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: var(--color-gray-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-search {
  width: 270px;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.nav-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.nav-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  padding: 10px 16px;
  background: var(--color-teal);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover {
  background: var(--color-teal-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-gray-700);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  border-top: 1px solid var(--color-gray-200);
  padding: 14px 22px 20px;
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--color-gray-700);
  font-weight: 700;
}

.mobile-search {
  display: flex;
  margin-top: 10px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  overflow: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--color-teal), var(--color-cyan) 45%, var(--color-blue));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.13), transparent 26%),
    rgba(0, 0, 0, 0.20);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.20;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%);
  background-size: 60px 60px;
}

.hero-track {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  min-height: 620px;
  margin: 0 auto;
  padding: 70px 22px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  align-items: center;
  gap: 48px;
  min-height: 480px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeRise 0.55s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 26px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 740px;
  margin: 0 0 22px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(255, 255, 255, 0.94);
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button-primary {
  background: #ffffff;
  color: var(--color-teal);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

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

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.20);
}

.hero-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.78));
}

.hero-card-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.hero-card-caption strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.hero-card-caption span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

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

.section {
  padding: 74px 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--color-gray-100), var(--color-gray-50));
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-gray-600);
}

.section-more {
  color: var(--color-teal);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.94);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-gray-200);
}

.movie-card.feature .poster-frame {
  aspect-ratio: 16 / 10;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 210px;
}

.movie-card.horizontal .poster-frame {
  aspect-ratio: auto;
  height: 100%;
}

.poster-frame img {
  transition: transform 0.4s ease;
}

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

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

.card-year {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.90);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.card-meta {
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 800;
}

.card-title {
  color: var(--color-gray-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
}

.card-summary {
  color: var(--color-gray-600);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  padding: 24px;
  min-height: 160px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card p {
  margin: 0 0 18px;
  color: var(--color-gray-600);
}

.category-link {
  color: var(--color-teal);
  font-weight: 800;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(13, 148, 136, 0.96), rgba(8, 145, 178, 0.92)),
    linear-gradient(135deg, var(--color-teal), var(--color-blue));
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.search-panel {
  display: flex;
  max-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  color: #ffffff;
  background: transparent;
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.search-panel button {
  border: 0;
  padding: 14px 24px;
  color: var(--color-teal);
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.filter-button {
  border: 1px solid var(--color-gray-200);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--color-gray-700);
  background: #ffffff;
  cursor: pointer;
  font-weight: 750;
}

.filter-button.is-active,
.filter-button:hover {
  color: #ffffff;
  border-color: var(--color-teal);
  background: var(--color-teal);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 110px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-teal), var(--color-cyan));
  font-size: 18px;
  font-weight: 900;
}

.rank-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-gray-200);
}

.rank-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-title {
  color: var(--color-gray-900);
  font-size: 20px;
  font-weight: 880;
}

.rank-meta,
.rank-summary {
  color: var(--color-gray-600);
}

.rank-score {
  color: var(--color-teal);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 350px;
  gap: 34px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.20), rgba(0, 0, 0, 0.45));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-size: 38px;
}

.player-box.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  font-weight: 800;
}

.detail-copy h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-copy p {
  margin: 0 0 12px;
  color: var(--color-gray-700);
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 2 / 3;
  background: var(--color-gray-200);
  box-shadow: var(--shadow-soft);
}

.side-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--color-gray-50));
  border: 1px solid var(--color-gray-200);
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.side-panel a {
  color: var(--color-teal);
  font-weight: 800;
}

.no-results {
  margin: 36px 0 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--color-gray-600);
  text-align: center;
  border: 1px solid var(--color-gray-200);
}

.site-footer {
  color: var(--color-gray-300);
  background: var(--color-gray-900);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 22px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 480px;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #2dd4bf;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 22px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .hero-card {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 680px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-track {
    min-height: 760px;
    padding: 48px 16px 74px;
  }

  .hero h1 {
    margin-top: 20px;
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

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

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 118px 1fr;
  }

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

  .rank-score {
    display: none;
  }

  .search-panel {
    border-radius: 20px;
    flex-direction: column;
  }

  .search-panel button {
    width: 100%;
  }

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