:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: #f0fdfa;
  --secondary-soft: #fdf8f6;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --page: #f8fafc;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.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.85);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1260px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 320px);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #374151;
  font-weight: 650;
  font-size: 15px;
}

.nav-links a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
}

.site-search {
  position: relative;
}

.site-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: #ffffff;
}

.site-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 470px;
  overflow: auto;
  display: none;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.search-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 13px;
}

.search-result-item:hover {
  background: var(--primary-soft);
}

.search-result-item img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-soft), #e5e7eb);
}

.search-result-item strong {
  display: block;
  margin-bottom: 3px;
}

.search-result-item span {
  color: var(--muted);
  font-size: 13px;
}

.home-hero {
  padding: 26px 0 10px;
}

.hero-shell {
  position: relative;
  width: min(1260px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f172a, #0d9488);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-backdrop {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: clamp(34px, 8vw, 84px);
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

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

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.tag-row,
.page-meta-pills,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.page-meta-pills span,
.detail-meta span {
  padding: 6px 10px;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  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: var(--primary);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.34);
}

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

.button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: clamp(34px, 8vw, 84px);
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 26px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

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

.content-section {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.intro-copy,
.intro-stats,
.detail-text-grid article,
.detail-info-panel,
.rank-entry,
.player-shell {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.intro-copy {
  padding: clamp(24px, 4vw, 42px);
}

.intro-copy h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.intro-copy p,
.section-heading p,
.page-hero p {
  color: var(--muted);
  line-height: 1.8;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.intro-stats div {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  background: #ffffff;
  text-align: center;
}

.intro-stats strong {
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.intro-stats span {
  color: var(--muted);
  font-size: 14px;
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-more {
  flex: none;
  color: var(--primary);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(13, 148, 136, 0.92);
}

.poster-badge {
  left: 12px;
}

.poster-score {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 13px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #9ca3af;
}

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

.category-tile,
.category-overview-card a {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 22px;
  color: #ffffff;
  border-radius: var(--radius-md);
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.24)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-tile span,
.category-overview-body h2 {
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  width: fit-content;
  padding: 5px 10px;
  color: #134e4a;
  background: #ccfbf1;
  border-radius: 999px;
}

.category-tile p,
.category-overview-body p,
.category-overview-body span {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.rank-item:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--primary-soft);
}

.rank-num,
.rank-row-num {
  color: var(--primary);
  font-weight: 900;
  font-size: 20px;
}

.rank-item img,
.rank-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.rank-title {
  font-weight: 850;
}

.rank-score,
.rank-row-score {
  padding: 6px 10px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 999px;
  font-weight: 850;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

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

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.page-hero {
  width: min(1260px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: clamp(44px, 8vw, 86px);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.55)), var(--page-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.small-hero {
  background-image: radial-gradient(circle at top right, rgba(20, 184, 166, 0.28), transparent 40%), linear-gradient(135deg, #0f172a, #134e4a);
}

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

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.category-overview-card a {
  min-height: 260px;
}

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 58px 58px 1fr minmax(150px, auto) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.rank-row a:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: var(--primary-soft);
}

.rank-row-main strong,
.rank-row-main em {
  display: block;
}

.rank-row-main strong {
  margin-bottom: 4px;
  font-size: 17px;
  font-style: normal;
}

.rank-row-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row-meta {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  min-height: 600px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.2)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.detail-cover {
  width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.detail-info {
  color: #ffffff;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
}

.detail-info p {
  max-width: 830px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.player-section {
  margin-top: -64px;
  position: relative;
  z-index: 3;
}

.player-shell {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #030712;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.34), rgba(3, 7, 18, 0.42));
  cursor: pointer;
}

.play-overlay span {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--primary);
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(13, 148, 136, 0.35);
}

.play-overlay strong {
  font-size: 20px;
}

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

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

.detail-text-grid article,
.detail-info-panel {
  padding: clamp(22px, 4vw, 38px);
}

.detail-text-grid h2,
.detail-info-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-text-grid p {
  color: #374151;
  line-height: 1.9;
}

.detail-info-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-info-panel div {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.detail-info-panel dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-info-panel dd {
  margin: 5px 0 0;
  font-weight: 800;
}

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

.prev-next a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  font-weight: 800;
}

.prev-next a:hover {
  color: var(--primary);
  border-color: rgba(13, 148, 136, 0.35);
}

.movie-card-compact .card-body p {
  min-height: auto;
}

.site-footer {
  margin-top: 50px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.copyright {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

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

  .intro-panel,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-list-home {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 20px, 1260px);
    height: auto;
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .site-search {
    grid-column: 1 / -1;
  }

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

  .hero-shell {
    width: calc(100% - 20px);
    min-height: 680px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 34px 24px 80px;
  }

  .hero-control {
    top: auto;
    bottom: 22px;
  }

  .hero-dots {
    left: 24px;
  }

  .content-section,
  .page-hero,
  .detail-hero-content,
  .footer-grid,
  .copyright {
    width: calc(100% - 20px);
  }

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

  .section-heading {
    display: block;
  }

  .movie-grid-four,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .detail-cover {
    width: min(250px, 72vw);
  }

  .detail-info-panel dl,
  .prev-next,
  .intro-stats {
    grid-template-columns: 1fr;
  }

  .rank-row a {
    grid-template-columns: 42px 54px 1fr;
  }

  .rank-row-meta,
  .rank-row-score {
    grid-column: 3;
  }

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

@media (max-width: 460px) {
  .movie-grid-four,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}
