* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #059669;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0891b2);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #059669;
}

.nav-search {
  position: relative;
  flex: 0 1 290px;
}

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

.nav-search input:focus,
.search-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #94a3b8;
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #111827;
  background: #f1f5f9;
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 4px;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #0f766e 45%, #0891b2 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.22), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(34, 211, 238, 0.25), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.12));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
  min-height: 640px;
  padding: 72px 0 92px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 720px;
  margin: 0 0 28px;
  color: #dffcf4;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

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

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

.btn-primary {
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.25);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.hero-stage {
  position: relative;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(20px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 28px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1) 20%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
}

.hero-slide-kicker {
  display: inline-flex;
  padding: 5px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.15;
}

.hero-slide p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: #e5e7eb;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slider-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

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

.slider-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.featured-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 26px;
  align-items: stretch;
  margin-top: -62px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  border-radius: 22px;
}

.featured-body {
  padding: 24px 18px 18px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #059669;
  font-size: 13px;
  font-weight: 900;
}

.featured-body h2,
.section-title h1,
.section-title h2 {
  margin: 10px 0 12px;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.featured-body p {
  color: #4b5563;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 52%, #f0fdfa 100%);
}

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

.section-title {
  min-width: 0;
}

.section-title h1,
.section-title h2 {
  margin-top: 0;
}

.section-title p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: 17px;
}

.title-line {
  flex: 1;
  height: 4px;
  min-width: 60px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, transparent);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.poster::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 64%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.poster-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: #059669;
}

.card-body p {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  display: block;
  min-height: 180px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  border-color: rgba(16, 185, 129, 0.46);
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0891b2);
  font-size: 22px;
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 20px;
}

.category-card p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
}

.category-count {
  color: #059669;
  font-size: 13px;
  font-weight: 900;
}

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

.filter-panel select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  outline: none;
}

.filter-result {
  margin: -12px 0 24px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.rank-num {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #e11d48);
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 5px;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-heat {
  color: #059669;
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #059669;
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.16), rgba(2, 6, 23, 0.56));
}

.play-button {
  position: relative;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #065f46;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #374151;
}

.side-card {
  padding: 18px;
}

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

.side-movie {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

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

.side-movie img {
  width: 118px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.side-movie h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.sitemap-list {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 7px 0;
  color: #374151;
  font-size: 14px;
}

.sitemap-list a:hover {
  color: #059669;
}

.cta-panel {
  padding: 42px 24px;
  border-radius: 28px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #059669, #0891b2);
  box-shadow: 0 28px 62px rgba(15, 118, 110, 0.24);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
  max-width: 680px;
  margin: 0 auto 24px;
  color: #dffcf4;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b 50%, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0 34px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  font-size: 13px;
}

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

@media (max-width: 1120px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-shell {
    min-height: auto;
  }

  .detail-layout {
    gap: 22px;
  }
}

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

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

  .hero-shell {
    padding: 50px 0 78px;
  }

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

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-body {
    padding: 0 6px 6px;
  }

  .featured-card img {
    min-height: 250px;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 2;
    text-align: left;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .logo {
    font-size: 18px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-slider {
    min-height: 360px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 22px;
  }

  .section {
    padding: 48px 0;
  }

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

  .title-line {
    width: 100%;
    min-height: 4px;
  }

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

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

  .card-body h3 {
    min-height: 44px;
    font-size: 15px;
  }

  .card-body p {
    display: none;
  }

  .detail-card,
  .player-info,
  .side-card {
    padding: 18px;
  }

  .side-movie {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .side-movie img {
    width: 96px;
    height: 64px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
