*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --panel: #ffffff;
  --soft: #ecfeff;
  --primary: #0f766e;
  --primary-bright: #14b8a6;
  --accent: #0891b2;
  --accent-soft: #cffafe;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 118, 110, 0.14);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.32);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #1f2937;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: #334155;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--primary);
  background: #ecfeff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #334155;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 66px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 45%, #eff6ff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.42;
}

.hero::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: 40px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.38), transparent 67%);
}

.hero::after {
  width: 460px;
  height: 460px;
  right: -130px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.32), transparent 64%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  font-weight: 760;
  font-size: 14px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: clamp(24px, 4.5vw, 44px);
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #475569;
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 760;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 18px 36px rgba(8, 145, 178, 0.22);
}

.btn-ghost {
  color: #0f766e;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(20, 184, 166, 0.24);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-search {
  margin-top: 30px;
  display: flex;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 16px;
  color: #0f172a;
}

.hero-search button {
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: #0f766e;
  font-weight: 760;
}

.hero-slider {
  position: relative;
  min-height: 550px;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.hero-slide-content {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 26px;
  color: #ffffff;
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

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

.section-block {
  padding: 58px 0 0;
}

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

.section-head h1,
.section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow);
}

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

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

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

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.25);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.movie-meta-line a {
  color: var(--primary);
}

.movie-card h2 {
  margin: 8px 0 7px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.movie-card h2 a:hover {
  color: var(--primary);
}

.movie-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.category-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(20, 184, 166, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.ranking-panel,
.search-panel,
.detail-panel,
.related-panel {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.ranking-panel {
  padding: 12px;
}

.small-movie {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px;
  border-radius: 18px;
  transition: background 0.2s ease;
}

.small-movie:hover {
  background: #f8fafc;
}

.small-movie img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: #e0f2fe;
}

.small-movie-copy strong {
  display: block;
  color: #0f172a;
  line-height: 1.25;
}

.small-movie-copy em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.small-rank {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 900;
}

.page-hero {
  padding: 58px 0 30px;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 750;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

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

.filter-bar {
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.filter-bar input,
.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  outline: none;
  padding: 0 16px;
}

.filter-bar select {
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  padding: 0 14px;
  color: #334155;
}

.search-panel {
  padding: 20px;
}

.search-form-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-results {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  align-items: end;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e0f2fe;
}

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: #ecfeff;
  font-weight: 760;
  font-size: 13px;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

.detail-panel {
  padding: 24px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.24);
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button-core {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 20px 44px rgba(20, 184, 166, 0.34);
}

.play-button-core svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.article-body {
  margin-top: 28px;
}

.article-body h2 {
  margin: 26px 0 10px;
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.article-body p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 17px;
}

.related-panel {
  padding: 18px;
  position: sticky;
  top: 96px;
}

.related-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.not-found {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: #ffffff;
}

.site-footer {
  margin-top: 68px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827 58%, #0f172a);
}

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

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
}

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

.footer-links a {
  display: block;
  padding: 4px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .mobile-panel .nav-link {
    display: block;
  }

  .hero-inner,
  .ranking-layout,
  .detail-hero-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 430px;
  }

  .hero-slide img {
    height: 430px;
  }

  .related-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    padding: 46px 0 42px;
  }

  .hero-search,
  .search-form-large,
  .filter-bar {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search {
    display: grid;
  }

  .hero-search button,
  .search-form-large .btn {
    width: 100%;
  }

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

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

  .small-movie {
    grid-template-columns: 64px 1fr;
  }

  .small-rank {
    display: none;
  }

  .detail-panel {
    padding: 16px;
  }
}
