:root {
  --cyan: #0891b2;
  --cyan-soft: #ecfeff;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

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

.nav-link {
  position: relative;
  overflow: hidden;
  padding: 10px 13px;
  border-radius: 12px;
  color: #374151;
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--cyan);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 18px;
  background: #ffffff;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: #374151;
  font-weight: 700;
}

.mobile-nav.is-open {
  display: grid;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.55), transparent 32%), linear-gradient(135deg, #06b6d4 0%, #2563eb 48%, #1e3a8a 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding: 84px 0 118px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.66fr);
  gap: 52px;
  animation: fadeUp 0.6s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #cffafe;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-copy p {
  margin: 0 0 26px;
  max-width: 650px;
  color: #ecfeff;
  font-size: 1.2rem;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.tag-row span {
  color: #0e7490;
  background: #ecfeff;
}

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

.primary-button,
.ghost-button,
.ghost-dark-button,
.section-action,
.text-link,
.home-search 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.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.primary-button:hover,
.section-action:hover,
.text-link:hover,
.home-search button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.ghost-button:hover {
  color: var(--blue);
  background: #ffffff;
}

.ghost-dark-button {
  color: var(--cyan);
  border: 2px solid #bae6fd;
  background: #ffffff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 470px;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 58px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  border-radius: 999px;
}

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

.hero-wave {
  position: absolute;
  right: -8%;
  bottom: -90px;
  width: 62%;
  height: 190px;
  background: #ffffff;
  border-radius: 50% 50% 0 0;
  opacity: 0.95;
}

.metric-section {
  position: relative;
  z-index: 4;
  margin-top: -52px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-grid div {
  padding: 26px 20px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.metric-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 1.7rem;
}

.metric-grid span {
  color: var(--muted);
  font-weight: 700;
}

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

.soft-bg {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
  background: var(--cyan-soft);
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.related-panel h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-action,
.text-link,
.home-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 28px rgba(8, 145, 178, 0.2);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.ranking-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #bae6fd;
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #1e40af);
}

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

.featured-card .movie-poster {
  aspect-ratio: 16 / 11;
}

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

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

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

.poster-badge,
.poster-type,
.rank-no {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
}

.poster-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(8, 145, 178, 0.9);
  font-size: 0.78rem;
}

.poster-type {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.78rem;
}

.rank-no {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.3);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-title:hover {
  color: var(--cyan);
}

.movie-meta {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.12));
}

.category-name,
.category-desc {
  position: absolute;
  left: 22px;
  right: 22px;
  color: #ffffff;
}

.category-name {
  bottom: 70px;
  font-size: 1.55rem;
  font-weight: 900;
}

.category-desc {
  bottom: 22px;
  color: #e0f2fe;
  line-height: 1.5;
}

.home-search,
.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.home-search {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 760px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.filter-panel {
  grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(150px, 0.32fr));
  align-items: end;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.page-hero {
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 55%, #ffffff 100%);
}

.compact-hero {
  padding: 62px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.detail-hero {
  padding: 44px 0 64px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff 55%, #ffffff);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.86);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 36px rgba(8, 145, 178, 0.34);
}

.detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 18px;
  color: #374151;
  font-size: 1.18rem;
}

.player-section {
  padding: 42px 0;
  background: #020617;
}

.video-block {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 26px;
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.5);
}

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

.player-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.16), rgba(2, 6, 23, 0.78));
  border: 0;
  text-align: center;
}

.player-mask.is-hidden {
  display: none;
}

.play-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 50%;
  box-shadow: 0 20px 42px rgba(8, 145, 178, 0.35);
}

.player-mask strong {
  max-width: 760px;
  padding: 0 20px;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
}

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.related-panel {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.related-panel h2 {
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.detail-article p {
  margin: 0 0 24px;
  color: #374151;
  font-size: 1.04rem;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.detail-meta-list div {
  padding: 14px;
  background: #f8fafc;
  border-radius: 16px;
}

.detail-meta-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-meta-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

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

.related-list .movie-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.related-list .movie-poster {
  aspect-ratio: 3 / 4;
}

.related-list .movie-line,
.related-list .tag-row,
.related-list .text-link {
  display: none;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 1fr 1fr;
  gap: 36px;
  padding: 56px 0;
}

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

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

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1.1rem;
}

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filtered-out {
  display: none !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-menu-button {
    display: flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 420px;
    min-height: 420px;
  }

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

  .ranking-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .header-inner {
    min-height: 66px;
  }

  .brand-text span {
    font-size: 1.16rem;
  }

  .hero-wrapper {
    min-height: auto;
    padding: 58px 0 108px;
  }

  .hero-copy p {
    font-size: 1.03rem;
  }

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

  .hero-poster img {
    min-height: 360px;
  }

  .hero-dots {
    bottom: 48px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .movie-grid,
  .category-grid,
  .featured-grid,
  .large-category-grid,
  .ranking-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-panel,
  .home-search,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .related-list .movie-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .category-grid,
  .featured-grid,
  .large-category-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

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

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

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

  .primary-button,
  .ghost-button,
  .ghost-dark-button {
    width: 100%;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}
