* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 52%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e 0%, #0891b2 100%);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.24);
}

.nav-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark,
.footer-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.36);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 12px;
  color: #ccfbf1;
}

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

.nav-link {
  font-weight: 700;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fcd34d;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 11px;
  cursor: pointer;
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px 0 0 999px;
  padding: 9px 14px;
  transition: background 0.2s ease;
}

.search-form input::placeholder {
  color: #ccfbf1;
}

.search-form input:focus {
  background: rgba(255, 255, 255, 0.28);
}

.search-form button {
  border: 0;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 0 999px 999px 0;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form button:hover {
  background: #d97706;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

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

.hero-content {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 0 0 80px;
  position: relative;
  z-index: 2;
}

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

.hero-kickers,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.kicker,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.86);
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.kicker-gold {
  background: #f59e0b;
}

.kicker-soft {
  background: rgba(255, 255, 255, 0.22);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
  margin: 0 0 18px;
  max-width: 620px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-meta {
  display: block;
  margin-bottom: 10px;
  color: #e0f2fe;
  font-size: 18px;
  font-weight: 700;
}

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

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

.btn-primary {
  color: #ffffff;
  background: #0d9488;
  box-shadow: 0 18px 30px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-line:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background: #0f766e;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-line {
  color: #0f766e;
  border: 1px solid #99f6e4;
  background: #ffffff;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

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

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

.page-hero {
  padding: 64px 0 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 58%, #0f172a 100%);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

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

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
  border-radius: 32px;
  padding: 36px;
  margin: 48px 0;
}

.section-pink {
  background: linear-gradient(90deg, #faf5ff 0%, #fdf2f8 100%);
}

.section-rose {
  background: linear-gradient(90deg, #fff1f2 0%, #fff7ed 100%);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  font-size: 28px;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-more {
  color: #0f766e;
  font-weight: 800;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-frame img,
.feature-card:hover img {
  transform: scale(1.1);
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.82) 100%);
}

.poster-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.34));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-hover span,
.player-overlay span {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0d9488;
  border-radius: 999px;
  box-shadow: 0 20px 35px rgba(13, 148, 136, 0.34);
}

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

.badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge-region {
  left: 12px;
  background: #0d9488;
}

.badge-type {
  right: 12px;
  border-radius: 8px;
  background: #f59e0b;
}

.poster-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #ffffff;
  padding: 32px 12px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
  font-size: 13px;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: #0f766e;
}

.movie-card-body em,
.category-card em,
.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18));
}

.feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px;
  color: #ffffff;
}

.feature-copy h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.feature-copy p {
  margin: 0;
  color: #cbd5e1;
}

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

.category-card {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.category-icon {
  font-size: 38px;
}

.category-card strong {
  font-size: 22px;
}

.category-card em {
  color: rgba(255, 255, 255, 0.86);
}

.theme-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.theme-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.theme-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.theme-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.theme-slate { background: linear-gradient(135deg, #475569, #0f172a); }
.theme-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.theme-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.theme-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.theme-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.theme-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.theme-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.theme-fuchsia { background: linear-gradient(135deg, #d946ef, #a21caf); }

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

.rank-row {
  display: grid;
  grid-template-columns: 50px 76px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 106px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.rank-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 999px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin: 30px 0;
  border-radius: 24px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.10);
}

.empty-state {
  display: none;
  border-radius: 20px;
  color: #64748b;
  background: #ffffff;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.empty-state.is-visible {
  display: block;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumbs a {
  color: #0f766e;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 118, 110, 0.18), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card,
.content-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-card {
  overflow: hidden;
}

.detail-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #0f172a;
}

.detail-card-body {
  padding: 22px;
}

.detail-card-body h1 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.detail-meta {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.content-card {
  padding: 28px;
  margin-top: 24px;
}

.content-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
}

.related-strip {
  margin: 56px 0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  margin-top: 64px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

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

.site-footer a:hover {
  color: #22d3ee;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 22px 16px;
  color: #94a3b8;
  text-align: center;
}

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

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

  .detail-card {
    display: grid;
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #0f766e;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
  }

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

  .nav-link {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .search-form {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .feature-grid,
  .movie-grid.three,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-soft {
    padding: 24px;
    border-radius: 24px;
  }
}

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

  .nav-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
  }

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

  .search-form {
    order: 3;
    max-width: none;
  }

  .hero-copy p,
  .hero-meta,
  .page-hero p {
    font-size: 16px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

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

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

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

  .detail-card {
    display: block;
  }

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