:root {
  --brand: #0f766e;
  --brand-light: #14b8a6;
  --brand-soft: #ccfbf1;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.26);
}

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

.nav-link,
.drop-button {
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.drop-button:hover {
  color: var(--brand);
}

.drop {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  width: 220px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 16px;
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.drop:hover .drop-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
}

.drop-panel a:hover {
  color: var(--brand);
  background: #ecfeff;
}

.nav-search {
  width: min(290px, 100%);
  margin-left: auto;
  position: relative;
}

.nav-search input,
.search-panel input,
.filter-input {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 15px;
  background: #ffffff;
  outline: none;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.search-panel input:focus,
.filter-input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #f3f4f6;
  color: #111827;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 20px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 10px 8px;
  border-radius: 10px;
  color: #374151;
  font-weight: 650;
}

.mobile-menu a:hover {
  color: var(--brand);
  background: #ecfeff;
}

.main {
  min-height: 64vh;
}

.hero {
  position: relative;
  height: min(620px, calc(100vh - 68px));
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #1f2937);
}

.hero-slide {
  position: absolute;
  inset: 0;
  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.86), rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(13, 148, 136, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: #d1d5db;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 35px rgba(13, 148, 136, 0.26);
}

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

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.home-sections {
  padding: 54px 0 72px;
  display: grid;
  gap: 56px;
}

.section {
  background: transparent;
}

.section-card {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.section-card.hot {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
}

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.poster-year {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

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

.card-desc {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 650;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.45), transparent 26%), linear-gradient(135deg, #111827, #0f172a 60%, #134e4a);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

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

.content-block {
  padding: 44px 0 70px;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.45);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

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

.search-panel,
.filter-panel {
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.filter-panel {
  display: grid;
  gap: 14px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
}

.detail-hero {
  padding: 44px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #0f766e);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

.player-card,
.info-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.video-box {
  position: relative;
  overflow: hidden;
  background: #030712;
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

.player-card.is-playing .play-overlay {
  display: none;
}

.play-pulse {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.95);
  font-size: 32px;
  box-shadow: 0 0 0 16px rgba(20, 184, 166, 0.16);
}

.player-caption {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5563;
  background: #ffffff;
}

.detail-content {
  padding: 42px 0 72px;
}

.info-card {
  padding: 22px;
}

.info-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 18px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  color: #374151;
}

.meta-list span {
  color: var(--muted);
}

.article-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-card p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
}

.related-section {
  margin-top: 34px;
}

.empty-state {
  padding: 40px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 21px;
  font-weight: 850;
  margin-bottom: 12px;
}

.footer-wrap p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-links strong {
  color: #ffffff;
  margin-bottom: 4px;
}

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .player-caption {
    flex-direction: column;
  }
}
