* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 46%, #0f172a 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  backdrop-filter: blur(6px);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.mobile-menu a {
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover,
.nav-links a.active,
.mobile-menu a.active {
  color: #34d399;
  background: rgba(30, 41, 59, 0.72);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.72);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 10px 0 18px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  padding: 0 0 76px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #34d399;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.75);
}

.hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #d1fae5;
  font-size: 13px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge.slate {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.35);
}

.hero-actions,
.section-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  background: #10b981;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.18);
}

.button.secondary {
  color: #d1fae5;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 52px;
  z-index: 3;
  width: min(360px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.34);
}

.hero-panel-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.hero-thumbs {
  display: grid;
  gap: 10px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.6);
  cursor: pointer;
  text-align: left;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.5);
}

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

.hero-thumb span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 560px;
  margin: 26px 0 0;
}

.search-input,
.filter-select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  outline: none;
  padding: 0 14px;
}

.search-input:focus,
.filter-select:focus {
  border-color: rgba(16, 185, 129, 0.72);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.main-space {
  padding: 64px 0;
}

.section {
  margin: 0 0 72px;
}

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

.section-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

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

.card-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.56);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 22px 50px rgba(16, 185, 129, 0.12);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.8));
}

.card-grid.compact .poster {
  aspect-ratio: 16 / 11;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.25), transparent);
}

.play-dot {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card a:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.poster-meta span {
  overflow: hidden;
  max-width: 48%;
  padding: 5px 8px;
  border-radius: 8px;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 9px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card a:hover h3 {
  color: #34d399;
}

.card-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(51, 65, 85, 0.58);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(30, 41, 59, 0.7));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.56);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.7;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inline-list a,
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.54);
}

.page-hero {
  padding: 58px 0 34px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 32%), rgba(15, 23, 42, 0.45);
}

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

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
  gap: 12px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.58);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.48);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.54);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.55);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(16, 185, 129, 0.22);
}

.rank-item img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #34d399;
}

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

.panel {
  border: 1px solid rgba(51, 65, 85, 0.58);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.52);
  overflow: hidden;
}

.panel-body {
  padding: 24px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease;
}

.video-player.is-playing .player-overlay {
  pointer-events: none;
  opacity: 0;
}

.player-toggle {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 32px;
  background: rgba(16, 185, 129, 0.92);
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.26);
}

.detail-title {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
  text-align: justify;
}

.review-box {
  padding: 18px;
  border: 1px solid rgba(51, 65, 85, 0.45);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.side-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

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

.related-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.36);
}

.related-item:hover h3 {
  color: #34d399;
}

.related-item img {
  width: 80px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}

.related-item h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 15px;
  transition: color 0.2s ease;
}

.related-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.94);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
  line-height: 1.8;
}

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

.copyright {
  padding: 18px 0;
  border-top: 1px solid rgba(51, 65, 85, 0.44);
  color: #64748b;
  text-align: center;
}

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

@media (max-width: 1080px) {
  .card-grid,
  .card-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel {
    display: none;
  }

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

  .side-poster {
    max-height: 520px;
    object-position: top;
  }
}

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

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

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 46px;
  }

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

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

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

  .rank-item .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

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

  .card-body {
    padding: 12px;
  }

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

  .card-body p {
    font-size: 13px;
  }

  .page-hero {
    padding-top: 38px;
  }

  .main-space {
    padding: 42px 0;
  }

  .panel-body {
    padding: 18px;
  }
}
