* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.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.95);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f766e;
  background: #ccfbf1;
}

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.header-search input {
  padding: 0 12px;
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  background: #0d9488;
  font-weight: 700;
  cursor: pointer;
}

.header-search button {
  height: 100%;
  padding: 0 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav,
.mobile-cats {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

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

.mobile-cats a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
}

.mobile-search input,
.large-search input,
.search-page-form input {
  padding: 13px 14px;
}

.mobile-search button,
.large-search button,
.search-page-form button {
  padding: 0 18px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #111827, #1f2937);
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08));
}

.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: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #0d9488;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  color: #0f766e;
  background: #ccfbf1;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 22px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 690px;
  margin: 0;
  color: #e5e7eb;
  font-size: 20px;
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: #0d9488;
}

.btn-primary:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.intro-panel {
  margin-top: -56px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.intro-panel h2,
.page-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.intro-panel p,
.page-hero p {
  margin: 0;
  color: #4b5563;
}

.large-search,
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #ffffff;
}

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

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

.section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: #6b7280;
}

.section-head a {
  color: #0d9488;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.14);
}

.movie-card a,
.poster-frame,
.card-body {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
}

.movie-card-featured .poster-frame {
  aspect-ratio: 4 / 3;
}

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

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.category-overview:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent);
}

.poster-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: #0d9488;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-body strong {
  display: block;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.card-line {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 700;
}

.soft-panel,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding: 34px;
  border-radius: 30px;
}

.tone-teal {
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.tone-blue {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.tone-pink {
  background: linear-gradient(135deg, #fce7f3, #fff1f2);
}

.tone-indigo {
  background: linear-gradient(135deg, #e0e7ff, #eef2ff);
}

.tone-orange {
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
}

.tone-red {
  background: linear-gradient(135deg, #fee2e2, #fff7ed);
}

.tone-purple {
  background: linear-gradient(135deg, #f3e8ff, #eef2ff);
}

.tone-green {
  background: linear-gradient(135deg, #dcfce7, #ecfeff);
}

.tone-amber {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
}

.tone-slate {
  background: linear-gradient(135deg, #e5e7eb, #f8fafc);
}

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

.category-tile,
.category-overview a {
  position: relative;
  display: block;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.category-tile img,
.category-overview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.45s ease;
}

.category-tile::after,
.category-overlay {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.category-tile span,
.category-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
}

.category-tile strong,
.category-text strong {
  display: block;
  font-size: 20px;
}

.category-tile em,
.category-text em {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #e5e7eb;
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-main {
  padding: 42px 0 72px;
}

.page-hero {
  margin-top: 0;
}

.small-hero {
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #4b5563;
  font-size: 14px;
}

.breadcrumb a {
  color: #0d9488;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  transition: 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.rank-number {
  color: #0d9488;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 92px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-text strong {
  display: block;
  color: #111827;
}

.rank-text em {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-meta {
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.all-ranks {
  max-height: none;
}

.category-overview-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
}

.movie-detail {
  background: #f9fafb;
}

.detail-top {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(3px);
  transform: scale(1.04);
}

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.3));
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 800px;
  margin: 0;
  color: #e5e7eb;
  font-size: 19px;
}

.breadcrumb.light {
  color: #e5e7eb;
  margin-bottom: 18px;
}

.breadcrumb.light strong {
  color: #ffffff;
}

.player-section {
  margin-top: 42px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-player,
.play-cover,
.play-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  z-index: 1;
  background: #000000;
}

.play-cover {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
}

.play-cover img {
  object-fit: cover;
  opacity: 0.55;
}

.play-cover span {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #ffffff;
  background: #0d9488;
  font-size: 38px;
  box-shadow: 0 20px 44px rgba(13, 148, 136, 0.45);
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 22px;
  margin-top: 36px;
}

.story-card,
.side-recs {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

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

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

.compact-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 82px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.compact-card em {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

.brand-footer {
  color: #ffffff;
}

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

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

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

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

.footer-copy {
  padding: 18px 16px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-carousel {
    height: 520px;
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
  }

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

  .hero-carousel {
    height: 500px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-panel {
    margin-top: -28px;
    padding: 22px;
  }

  .large-search,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .large-search button,
  .search-page-form button {
    min-height: 46px;
  }

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

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

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

  .rank-meta {
    grid-column: 3;
  }

  .detail-grid {
    min-height: auto;
    padding-top: 34px;
  }

  .detail-poster {
    display: none;
  }

  .player-wrap {
    border-radius: 18px;
  }

  .soft-panel,
  .page-hero {
    width: min(100% - 32px, 1180px);
    padding: 24px;
  }
}
