* {
  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: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 48%, #ecfdf5 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #059669, #0d9488);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.26);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #059669, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.brand.dark .brand-copy strong {
  color: #ffffff;
  background: none;
}

.brand.dark .brand-copy small {
  color: #9ca3af;
}

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

.nav-link {
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #059669;
}

.nav-search {
  width: 284px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-panel input,
.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  padding: 12px 16px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.nav-search button,
.mobile-panel button,
.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f3f4f6;
  color: #374151;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

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

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

.mobile-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-links a {
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.14));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
  color: #ffffff;
}

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

.hero-kickers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kickers span,
.hero-kickers a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-kickers span {
  background: #059669;
}

.hero-kickers a {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f9fafb;
}

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

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

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.35);
}

.button.glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.button.mini {
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  font-size: 14px;
}

.button.full {
  width: 100%;
}

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  background: #10b981;
}

.hero-thumbs {
  display: flex;
  gap: 12px;
}

.hero-thumb {
  width: 150px;
  min-height: 74px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-thumb img {
  width: 52px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.band {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.quick-search-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}

.quick-search form {
  display: flex;
  gap: 10px;
}

.quick-search input {
  background: #f3f4f6;
}

.quick-category-links,
.filter-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-category-links a,
.filter-tags a,
.filter-tags button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #047857;
  background: #d1fae5;
  cursor: pointer;
  font-weight: 700;
}

.filter-tags button.is-active {
  color: #ffffff;
  background: #059669;
}

.page-stack {
  display: grid;
  gap: 64px;
  padding: 52px 0 70px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
}

.section-more {
  color: #059669;
  font-weight: 800;
}

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

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

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

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

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

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  background: #111827;
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.92);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.movie-title:hover {
  color: #059669;
}

.movie-meta {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 12px 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #4b5563;
  line-height: 1.7;
}

.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
}

.movie-card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.movie-card-actions a:first-child {
  color: #6b7280;
  font-size: 13px;
}

.movie-card-actions a:last-child {
  color: #059669;
  font-weight: 800;
}

.movie-card-featured {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.1));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  margin: 104px 18px 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small {
  margin: 0 18px 18px;
  color: #e5e7eb;
  line-height: 1.6;
}

.category-tile.large {
  min-height: 240px;
}

.category-tile.large span {
  margin-top: 142px;
}

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

.rank-item {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 20px;
  color: #ffffff;
  background: #111827;
}

.rank-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.1));
}

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

.rank-item span,
.rank-item strong,
.rank-item small {
  position: absolute;
  z-index: 1;
  left: 14px;
}

.rank-item span {
  top: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #059669;
  font-weight: 900;
}

.rank-item strong {
  right: 14px;
  bottom: 42px;
  font-size: 16px;
}

.rank-item small {
  right: 14px;
  bottom: 16px;
  color: #d1d5db;
}

.inner-page {
  min-height: 60vh;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.42), transparent 36%), linear-gradient(135deg, #020617, #064e3b 58%, #0f766e);
}

.page-hero.compact {
  padding: 92px 0 64px;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #d1fae5;
  font-weight: 800;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

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

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #6b7280;
  font-size: 14px;
}

.crumbs a {
  color: #059669;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-tags {
  grid-column: 1 / -1;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #059669, #0d9488);
  font-weight: 900;
  font-size: 20px;
}

.rank-cover img {
  width: 92px;
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.7;
}

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-info span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 34px 0 70px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.player-card {
  padding: 12px;
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #020617;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.08));
  cursor: pointer;
}

.player-start span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.94);
  font-size: 38px;
  box-shadow: 0 18px 42px rgba(5, 150, 105, 0.36);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
  transform: scale(1.08);
  background: #047857;
}

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

.detail-card {
  padding: 26px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
  color: #6b7280;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #f3f4f6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.lead-text {
  margin: 0 0 22px;
  color: #047857;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

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

.detail-card section + section {
  margin-top: 24px;
}

.detail-card p {
  color: #374151;
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 18px;
}

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

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

.related-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb img {
  width: 78px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.related-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 800;
}

.related-card p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  padding: 48px 0;
}

.footer-brand p {
  max-width: 620px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .hero-thumbs {
    display: none;
  }

  .featured-grid,
  .three-grid,
  .four-grid,
  .category-grid,
  .ranking-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-nav {
    height: 64px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .quick-search-inner,
  .quick-search form,
  .filter-panel,
  .footer-inner,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .three-grid,
  .four-grid,
  .two-grid,
  .category-grid,
  .ranking-strip,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

  .detail-title-row {
    display: block;
  }

  .player-start span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}
