* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f9fafb;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #22d3ee;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.12);
}

.brand-text {
  font-size: clamp(19px, 2vw, 25px);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-weight: 650;
}

.desktop-nav a,
.desktop-nav button {
  color: #ffffff;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav a.active {
  color: #cffafe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 210px;
  padding: 10px;
  margin-top: 16px;
  display: grid;
  gap: 4px;
  color: #374151;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

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

.dropdown-panel a {
  color: #374151;
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-panel a:hover {
  color: #0891b2;
  background: #ecfeff;
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-search input,
.search-panel input {
  width: 100%;
  border: 0;
  outline: 0;
}

.header-search input {
  min-width: 0;
  padding: 10px 12px 10px 16px;
  color: #ffffff;
  background: transparent;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button {
  width: 42px;
  color: #ffffff;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

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

.mobile-search button {
  color: #0891b2;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.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 {
  max-width: 680px;
  color: #ffffff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 750;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.28);
}

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

.hero p {
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  color: #0891b2;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

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

.hero-dots {
  position: absolute;
  right: clamp(22px, 6vw, 80px);
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.section {
  padding: 56px 0;
}

.section-soft {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-warm {
  background: linear-gradient(135deg, #fff7ed, #fef9c3);
}

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

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

.section-title h2,
.page-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1.2;
}

.section-title p,
.page-title p {
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.more-link {
  color: #0891b2;
  font-weight: 750;
  white-space: nowrap;
}

.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-card {
  min-width: 0;
}

.movie-link {
  height: 100%;
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #f1f5f9);
}

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

.movie-link:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-link:hover .movie-cover::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.86);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.25s ease;
}

.movie-link:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.74);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-link:hover h3 {
  color: #0891b2;
}

.movie-info p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #0891b2;
  background: #ecfeff;
}

.movie-card-large .movie-info h3 {
  font-size: 21px;
}

.category-preview {
  display: grid;
  gap: 44px;
}

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

.category-head h3 {
  margin: 0;
  font-size: 26px;
}

.page-hero {
  padding: 54px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #2563eb, #06b6d4);
}

.page-title h1 {
  color: inherit;
}

.page-title p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

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

.category-card {
  min-height: 210px;
  padding: 24px;
  color: #1f2937;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
}

.category-card p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.75;
}

.category-sample {
  display: grid;
  gap: 8px;
  color: #0891b2;
  font-weight: 650;
}

.category-pills,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.category-pill,
.filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #374151;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.active,
.filter-button:hover,
.filter-button.active {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.search-panel {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  padding: 8px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-panel input {
  padding: 0 16px;
  font-size: 17px;
}

.search-panel button {
  min-width: 110px;
  color: #ffffff;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  cursor: pointer;
}

.hidden-card,
.search-empty.hidden-card {
  display: none;
}

.search-empty {
  padding: 54px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.detail-shell {
  padding: 42px 0 58px;
}

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

.player-card,
.detail-card,
.content-card,
.related-panel {
  overflow: hidden;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.player-stage {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.site-video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.38);
}

.player-title {
  padding: 24px 26px 26px;
}

.player-title h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
}

.player-title p {
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

.detail-card {
  padding: 20px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #e0f2fe;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-card h2 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  color: #4b5563;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.info-list dt {
  color: #6b7280;
}

.info-list dd {
  margin: 0;
  font-weight: 650;
}

.content-stack {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.content-card {
  padding: 28px;
}

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

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

.related-panel {
  padding: 22px;
}

.related-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.movie-card-horizontal .movie-link {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-radius: 16px;
}

.movie-card-horizontal .movie-cover {
  height: 100%;
  min-height: 104px;
  aspect-ratio: auto;
}

.movie-card-horizontal .movie-info {
  padding: 14px;
}

.movie-card-horizontal .movie-info h3 {
  min-height: 0;
  font-size: 16px;
}

.movie-card-horizontal .movie-info p,
.movie-card-horizontal .tag-row {
  display: none;
}

.movie-card-horizontal .play-mark {
  width: 40px;
  height: 40px;
}

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

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

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

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

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

.footer-bottom {
  padding: 22px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.34);
  cursor: pointer;
}

.back-top.visible {
  display: grid;
}

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

  .mobile-toggle {
    display: block;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 62px;
  }

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

  .hero {
    height: auto;
    min-height: 560px;
  }

  .hero-content {
    padding: 88px 0 96px;
  }

  .hero-slide::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.62));
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 28px;
  }

  .section {
    padding: 42px 0;
  }

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

  .movie-grid,
  .movie-grid-three,
  .category-card-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .search-panel {
    flex-direction: column;
    padding: 10px;
  }

  .search-panel input {
    min-height: 48px;
  }

  .search-panel button {
    min-height: 48px;
  }

  .movie-card-horizontal .movie-link {
    grid-template-columns: 120px 1fr;
  }

  .info-list div {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 420px) {
  .movie-card-horizontal .movie-link {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-cover {
    aspect-ratio: 16 / 9;
  }
}
