:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --orange: #f97316;
  --slate: #0f172a;
  --ink: #1f2937;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--teal-dark), var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.24);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  font-weight: 650;
  font-size: 15px;
}

.nav-links a,
.mobile-nav a {
  opacity: 0.96;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover {
  color: #ccfbf1;
  opacity: 1;
}

.search-mini,
.mobile-search,
.search-large {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-mini {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  backdrop-filter: blur(14px);
}

.search-mini input,
.mobile-search input {
  width: 180px;
  border: 0;
  color: white;
  background: transparent;
  outline: none;
}

.search-mini input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.search-mini button,
.mobile-search button,
.search-large button {
  border: 0;
  cursor: pointer;
  color: var(--teal-dark);
  background: white;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
  gap: 12px;
  flex-direction: column;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: white;
  background: var(--slate);
}

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

.hero-slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-copy {
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1240px) / 2 + 20px));
  padding: 110px 0 120px;
}

.hero-site,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  background: #ccfbf1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags a,
.hero-tags span,
.detail-meta span,
.tag-list a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(12px);
}

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

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

.primary-btn {
  padding: 13px 26px;
  color: var(--teal-dark);
  background: white;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.18);
}

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

.ghost-btn {
  padding: 13px 26px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  right: max(20px, calc((100vw - 1240px) / 2 + 20px));
  bottom: 84px;
  width: min(360px, calc(100% - 40px));
  padding: 24px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.hero-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
}

.hero-mini img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
}

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

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

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

.content-section,
.rank-section,
.cta-section,
.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px;
}

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

.section-head.compact {
  margin-top: 28px;
}

.section-head h2,
.content-section h1 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

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

.section-link {
  padding: 10px 18px;
  color: var(--teal-dark);
  background: #ccfbf1;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.large .card-cover img {
  height: 360px;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dbeafe;
}

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

.movie-card:hover .card-cover img,
.related-card:hover img,
.category-tile:hover {
  transform: scale(1.06);
}

.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, var(--orange), #ef4444);
}

.card-body {
  padding: 18px;
}

.card-category,
.related-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 850;
}

.card-body h3,
.related-card h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.related-card h3 a:hover {
  color: var(--teal-dark);
}

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

.card-meta {
  margin-top: 14px;
  color: #718096;
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-row span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-weight: 900;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.cta-section {
  margin-bottom: 64px;
  border-radius: 34px;
  color: white;
  background: linear-gradient(135deg, var(--teal-dark), var(--blue));
  text-align: center;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-section p {
  margin: 0 auto 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.pill-row {
  justify-content: center;
}

.pill-row a {
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  color: white;
  background: linear-gradient(120deg, var(--teal-dark), var(--blue));
}

.page-hero.small {
  padding: 72px 20px;
}

.page-hero > div,
.detail-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero h1,
.detail-hero h1 {
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
}

.page-hero p,
.detail-hero p {
  margin: 0;
  max-width: 840px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

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

.category-tile {
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 28px;
  color: white;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}

.category-tile span {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.category-tile h2 {
  margin: 14px 0 8px;
  font-size: 34px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.filter-bar {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.search-large input {
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #f8fafc;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-large input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.search-large {
  padding: 16px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-large input {
  flex: 1;
  min-width: 0;
  font-size: 18px;
}

.search-large button {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  padding: 12px 24px;
}

.detail-hero {
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 80px 20px 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.poster-panel,
.related-panel {
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.player-frame {
  position: relative;
  background: black;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.92);
  box-shadow: 0 18px 42px rgba(13, 148, 136, 0.35);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 20px;
}

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

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

.detail-card h2,
.related-panel h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
}

.detail-card section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-card p {
  color: #475569;
  font-size: 17px;
}

.lead-text {
  font-weight: 750;
  color: var(--ink) !important;
}

.detail-meta span,
.tag-list a {
  color: var(--teal-dark);
  background: #ccfbf1;
}

.review-box {
  padding: 22px;
  border-radius: 18px;
  color: #334155;
  background: linear-gradient(135deg, #ecfeff, #f0fdfa);
}

.detail-side {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 96px;
}

.poster-panel {
  padding: 18px;
}

.poster-panel img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 16px;
}

.primary-btn.full {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.related-panel {
  padding: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: start;
}

.related-cover {
  overflow: hidden;
  border-radius: 16px;
  background: #dbeafe;
}

.related-cover img {
  width: 112px;
  height: 82px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
}

.site-footer {
  color: white;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  padding: 54px 20px 24px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #5eead4;
  font-size: 20px;
}

.footer-grid p {
  margin: 0;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .search-mini {
    display: none;
  }

  .mobile-nav.open {
    display: flex;
  }

  .hero-panel {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 800px) {
  .hero-carousel {
    min-height: 620px;
  }

  .hero-copy {
    padding: 92px 0 92px;
  }

  .movie-grid,
  .category-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .rank-row em {
    grid-column: 2;
  }

  .filter-bar input,
  .filter-bar select,
  .search-large input {
    width: 100%;
    min-width: 0;
  }

  .search-large {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    padding: 13px 14px;
  }

  .brand {
    font-size: 19px;
  }

  .hero-copy {
    width: calc(100% - 28px);
    margin-left: 14px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 40px;
  }

  .content-section,
  .rank-section,
  .cta-section,
  .detail-layout {
    padding: 44px 14px;
  }

  .card-cover img {
    height: 220px;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }

  .related-cover img {
    width: 96px;
    height: 72px;
  }
}
