* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.96));
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #f59e0b;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.brand-text em {
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  color: #ccfbf1;
}

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

.main-nav a {
  font-size: 15px;
  font-weight: 700;
  color: #eef2ff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #fbbf24;
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.site-search input {
  width: 230px;
  height: 38px;
  padding: 0 14px;
  color: #ffffff;
  border: 0;
  outline: 0;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.18);
}

.site-search input::placeholder {
  color: #d1fae5;
}

.site-search button {
  height: 38px;
  min-width: 42px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  border-radius: 0 999px 999px 0;
  background: #f59e0b;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  font-size: 24px;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: 70vh;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(20, 184, 166, 0.28), transparent 35%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.78));
}

.hero-content {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 112px 22px 78px;
}

.hero-text {
  max-width: 720px;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-labels span,
.movie-badge,
.tag-row span,
.detail-tags span,
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.88);
}

.hero-labels span:first-child {
  background: #f59e0b;
}

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

.hero h2 {
  margin: 0 0 12px;
  color: #e5e7eb;
  font-size: 20px;
  font-weight: 600;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.8;
}

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

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

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

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
  background: #f59e0b;
}

.page-section,
.page-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 56px 22px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.section-heading h1,
.page-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid.cards-auto {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.movie-poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

.movie-card:hover img {
  transform: scale(1.07);
}

.movie-poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.78));
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.movie-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.32);
}

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

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3,
.rank-item h3 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
  color: #0d9488;
}

.movie-card p,
.rank-item p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  color: #0f766e;
  background: #ccfbf1;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d9488, #2563eb);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #0d9488);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.category-card:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease;
}

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

.category-card h3 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.feature-band {
  border-radius: 30px;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

.rank-cover span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 10px;
  color: #ffffff;
  font-weight: 900;
  background: #f59e0b;
  border-radius: 0 0 14px 0;
}

.page-title {
  padding: 58px 22px 24px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff 56%, #fff7ed);
}

.page-title-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 30px;
  color: #64748b;
  text-align: center;
  border-radius: 20px;
  background: #ffffff;
}

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

.player-card,
.detail-info,
.story-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

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

.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.28);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.38);
}

.player-caption {
  padding: 22px;
}

.player-caption h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
}

.player-caption p {
  margin: 0;
  color: #475569;
  line-height: 1.85;
}

.detail-info {
  padding: 22px;
}

.detail-poster {
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.info-list dt {
  font-weight: 800;
  color: #0f172a;
}

.info-list dd {
  margin: 0;
  text-align: right;
}

.story-card {
  margin-top: 28px;
  padding: 26px;
}

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

.story-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
}

.search-hero {
  background: linear-gradient(135deg, #0f172a, #0f766e);
  color: #ffffff;
}

.search-box-large {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.search-box-large input {
  flex: 1;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  outline: 0;
}

.search-box-large button {
  padding: 0 26px;
  color: #ffffff;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  background: #f59e0b;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-result-card img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

.search-result-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.search-result-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.site-footer {
  margin-top: 30px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 38px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  margin: 0;
  max-width: 620px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 18px;
  min-width: max-content;
}

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

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

  .main-nav.is-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-search input {
    width: 180px;
  }

  .grid.cards-3,
  .grid.cards-4,
  .category-grid,
  .rank-list,
  .detail-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    display: none;
  }

  .site-search {
    display: none;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: 76vh;
  }

  .hero-content {
    padding: 88px 18px 74px;
  }

  .hero p {
    font-size: 15px;
  }

  .section-heading {
    display: block;
  }

  .grid.cards-3,
  .grid.cards-4,
  .grid.cards-auto,
  .category-grid,
  .rank-list,
  .detail-layout,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 82px 1fr;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    flex-wrap: wrap;
    margin-top: 22px;
  }
}
