:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --page: #f9fafb;
  --white: #ffffff;
  --shadow: 0 15px 35px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 12px 25px rgba(13, 148, 136, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  color: #374151;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--teal);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}

.top-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  font: inherit;
}

.top-search button,
.primary-btn,
.big-search button,
.search-page-box button {
  border: 0;
  background: var(--teal);
  color: white;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.top-search button:hover,
.primary-btn:hover,
.big-search button:hover {
  background: var(--teal-dark);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 20px;
}

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

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

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(6, 78, 59, 0.96), rgba(15, 118, 110, 0.74), rgba(8, 145, 178, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.92);
  font-weight: 800;
  box-shadow: 0 15px 35px rgba(20, 184, 166, 0.22);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 23px);
}

.hero-meta,
.hero-tags,
.detail-meta,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 16px;
}

.hero-meta span,
.hero-tags span,
.detail-meta span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  background: rgba(15, 118, 110, 0.75);
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ecfeff;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 17px;
  box-shadow: 0 18px 38px rgba(13, 148, 136, 0.32);
}

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

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

.hero-dot.active {
  width: 34px;
  background: white;
}

.section-block {
  padding: 64px 0;
  background: white;
}

.section-muted,
.category-band,
.search-hero-mini {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.section-head h2 {
  font-size: clamp(25px, 3vw, 34px);
}

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

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

.movie-card {
  border-radius: 18px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

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

.poster-link,
.card-body {
  display: block;
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

.movie-card:not(.small-card) .poster-shell {
  aspect-ratio: 3 / 4;
}

.poster-shell img,
.category-tile img,
.rank-row img,
.side-poster img,
.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-shell img,
.category-tile:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.36);
  transition: 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
}

.type-badge,
.year-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
}

.year-badge {
  right: 10px;
  background: rgba(13, 148, 136, 0.92);
}

.card-body {
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 12px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span,
.detail-tags span {
  background: #ecfeff;
  color: #0f766e;
}

.category-band,
.search-hero-mini {
  padding: 64px 0;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #134e4a, #0891b2);
  color: white;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.36;
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px 16px;
}

.category-tile strong,
.category-tile em {
  display: block;
}

.category-tile strong {
  font-size: 21px;
}

.category-tile em {
  margin-top: 4px;
  color: #ccfbf1;
  font-style: normal;
  font-size: 13px;
}

.big-search,
.search-page-box,
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.big-search input,
.search-page-box input,
.search-page-box select,
.filter-bar input,
.filter-bar button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: white;
}

.big-search input,
.search-page-box input,
.filter-bar input {
  flex: 1 1 320px;
}

.big-search button {
  border-radius: 12px;
}

.page-hero {
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding: 54px 0;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
}

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

.page-section {
  padding: 46px 0 70px;
}

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

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

.filter-bar {
  margin-top: 24px;
}

.filter-bar button {
  cursor: pointer;
  color: #0f766e;
  font-weight: 700;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.category-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  overflow: hidden;
  height: 132px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

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

.category-overview-card p {
  color: #4b5563;
}

.category-overview-card span {
  color: var(--teal);
  font-weight: 800;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 64px 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  color: white;
  font-weight: 900;
}

.rank-row img {
  width: 120px;
  height: 76px;
  border-radius: 12px;
  background: #ccfbf1;
  object-fit: cover;
}

.rank-info strong,
.rank-info em,
.rank-info span {
  display: block;
}

.rank-info strong {
  font-size: 19px;
}

.rank-info em {
  margin: 3px 0;
  color: #4b5563;
  font-style: normal;
}

.rank-info span {
  color: #6b7280;
  font-size: 13px;
}

.result-count {
  margin-bottom: 18px;
  color: #4b5563;
  font-weight: 700;
}

.detail-wrap {
  padding: 34px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 350px;
  gap: 32px;
}

.player-card,
.detail-info,
.detail-side > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.player-card {
  overflow: hidden;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.66));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: white;
  background: rgba(13, 148, 136, 0.96);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(13, 148, 136, 0.35);
}

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

.detail-info {
  margin-top: 24px;
  padding: 28px;
}

.detail-info h1 {
  font-size: clamp(28px, 4vw, 42px);
}

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

.detail-meta span {
  color: #374151;
  background: #f3f4f6;
}

.lead-text {
  margin: 22px 0;
  color: #374151;
  font-size: 18px;
  font-weight: 650;
}

.copy-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

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

.copy-card p {
  margin: 0;
  color: #374151;
}

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

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.side-poster,
.side-related {
  padding: 20px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

.side-poster strong,
.side-poster span {
  display: block;
}

.side-poster strong {
  margin-top: 14px;
  font-size: 22px;
}

.side-poster span {
  color: #6b7280;
}

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

.small-card .poster-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.small-card .card-body {
  padding: 10px 12px;
}

.small-card .card-body strong {
  min-height: auto;
  font-size: 15px;
}

.small-card .card-body em,
.small-card .card-tags {
  display: none;
}

.site-footer {
  padding: 42px 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.site-footer strong {
  color: white;
  font-size: 20px;
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-cats a {
  color: #99f6e4;
}

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

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

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

  .detail-side {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

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

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

  .hero {
    height: 560px;
  }

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

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

  .category-overview-card a {
    grid-template-columns: 1fr;
  }

  .rank-row a {
    grid-template-columns: 46px 92px minmax(0, 1fr);
    gap: 12px;
  }

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

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

@media (max-width: 560px) {
  .container,
  .nav-wrap,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    height: 520px;
  }

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

  .section-block,
  .category-band,
  .search-hero-mini {
    padding: 42px 0;
  }

  .movie-grid {
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body strong {
    min-height: 44px;
    font-size: 15px;
  }

  .card-body em {
    font-size: 13px;
  }

  .detail-info {
    padding: 20px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
  }
}
