:root {
  color-scheme: light;
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --amber-500: #f59e0b;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal-700), var(--teal-900));
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-links a {
  padding: 8px 2px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ccfbf1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 11px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(360px, 36vw);
  min-width: 250px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 12px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--teal-900);
  background: #ccfbf1;
  font-weight: 700;
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(430px, 90vw);
  max-height: 430px;
  overflow: auto;
  padding: 8px;
  background: #ffffff;
  color: var(--gray-900);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

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

.search-results a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
}

.search-results a:hover {
  background: #f0fdfa;
}

.search-results img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gray-100);
}

.search-results strong,
.search-results em {
  display: block;
}

.search-results em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.site-main {
  padding: 32px 0 0;
}

.hero-slider {
  position: relative;
  height: 500px;
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.86) 0%, rgba(3, 7, 18, 0.58) 48%, rgba(3, 7, 18, 0.1) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 72px);
  width: min(640px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

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

.label-primary,
.label-year,
.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.label-primary {
  padding: 7px 12px;
  background: var(--teal-600);
}

.label-year {
  padding: 7px 10px;
  background: var(--amber-500);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  display: -webkit-box;
  max-width: 620px;
  margin: 0 0 20px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--teal-600);
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
  background: var(--teal-700);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: #ffffff;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.quick-entry a {
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.quick-entry a:hover {
  transform: translateY(-4px);
}

.quick-entry strong,
.quick-entry span {
  display: block;
}

.quick-entry strong {
  margin-bottom: 7px;
  font-size: 20px;
}

.quick-entry span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: var(--gray-800);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

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

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(3, 7, 18, 0.76) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.play-round {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.year-pill {
  top: 12px;
  left: 12px;
  min-height: 26px;
  padding: 0 9px;
  background: var(--amber-500);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 30px;
  height: 30px;
  background: var(--teal-600);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.42;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  min-height: 26px;
  margin-bottom: 12px;
}

.card-tags span {
  padding: 4px 8px;
  color: var(--teal-800);
  background: #ccfbf1;
  font-size: 12px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.category-tile {
  display: block;
  padding: 14px;
}

.category-thumb-grid,
.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.category-thumb-grid img,
.overview-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-100);
}

.category-tile strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 900;
}

.category-tile span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card-compact .movie-info p,
.movie-card-compact .card-tags {
  display: none;
}

.page-hero {
  margin-bottom: 28px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  box-shadow: var(--shadow-md);
}

.page-hero.slim {
  padding: 42px;
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.detail-breadcrumb {
  margin-bottom: 20px;
  color: var(--gray-500);
}

.detail-breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--teal-500);
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-search-row input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  outline: 0;
  padding: 13px 16px;
}

.filter-search-row input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  cursor: pointer;
}

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

.empty-state {
  padding: 28px;
  border-radius: 18px;
  color: var(--gray-500);
  background: #ffffff;
  text-align: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-overview-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--gray-700);
}

.overview-cover {
  margin-bottom: 0;
}

.detail-main {
  padding-top: 24px;
}

.detail-hero-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: var(--gray-100);
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.85;
}

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

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

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags span {
  padding: 7px 12px;
  color: var(--teal-800);
  background: #ccfbf1;
}

.player-section {
  margin: 40px 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gray-950);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.1), rgba(3, 7, 18, 0.66));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: var(--teal-600);
  box-shadow: 0 18px 34px rgba(13, 148, 136, 0.32);
  font-size: 30px;
}

.player-box.is-playing .player-overlay {
  display: none;
}

.player-box.is-loading .player-overlay span {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.95); }
  to { transform: scale(1.05); }
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-bottom: 56px;
}

.detail-article,
.detail-side {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: 24px;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 2;
}

.detail-side dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-size: 13px;
}

.detail-side dd {
  margin: -8px 0 0;
  color: var(--gray-900);
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: var(--gray-900);
}

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

.footer-grid p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .nav-shell {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

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

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

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

  .nav-links a {
    border-radius: 12px;
    padding: 10px 12px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
  }

  .header-search {
    order: 2;
    width: 100%;
    min-width: 0;
  }

  .hero-slider {
    height: 560px;
    border-radius: 22px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.24), rgba(3, 7, 18, 0.88));
  }

  .hero-content {
    top: auto;
    bottom: 42px;
    left: 22px;
    transform: none;
  }

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

  .category-overview-grid,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-overview-card,
  .detail-hero-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 330px;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .hero-slider {
    height: 520px;
    margin-bottom: 32px;
  }

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

  .hero-content p {
    font-size: 16px;
    -webkit-line-clamp: 4;
  }

  .hero-dots {
    right: 18px;
    bottom: 18px;
  }

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

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

  .movie-info {
    padding: 13px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-info p,
  .card-tags {
    display: none;
  }

  .page-hero.slim,
  .detail-hero-card,
  .detail-article,
  .detail-side {
    padding: 20px;
    border-radius: 22px;
  }

  .category-overview-card {
    display: block;
  }

  .overview-cover {
    margin-bottom: 16px;
  }

  .player-box {
    border-radius: 20px;
  }

  .player-overlay span {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .quick-entry,
  .movie-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }
}
