html {
  min-height: 100%;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  color: #e5edf8;
  background: #020617;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.36);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #06b6d4 48%, #2563eb);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.35);
}

.brand-name,
.footer-brand span:last-child {
  font-size: 22px;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 700;
}

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

.nav-links > a:hover,
.nav-dropdown > a:hover,
.nav-links .is-active {
  color: #67e8f9;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 184px;
  padding: 10px;
  margin-top: 14px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s ease;
}

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

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-panel a:hover {
  color: #67e8f9;
  background: rgba(30, 64, 175, 0.38);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
}

.nav-search input,
.inline-filter input {
  width: 230px;
  border: 0;
  outline: none;
  color: #e5edf8;
  background: transparent;
}

.nav-search input::placeholder,
.inline-filter input::placeholder {
  color: #64748b;
}

.nav-search button,
.inline-filter button {
  border: 0;
  cursor: pointer;
  color: #04111f;
  font-weight: 900;
  padding: 8px 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #e5edf8;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 20px;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #cbd5e1;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 660px;
  background: radial-gradient(circle at 72% 28%, rgba(14, 165, 233, 0.22), transparent 28%), #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: 56px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 96px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-backdrop {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.12);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.36) 48%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-copy,
.hero-poster,
.detail-layout {
  position: relative;
  z-index: 1;
}

.eyebrow,
.page-hero span,
.section-heading span,
.detail-copy .breadcrumbs,
.card-meta,
.overview-head span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: #dff9ff;
  background: rgba(8, 47, 73, 0.62);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.28);
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-btn,
.section-link {
  color: #e0f7ff;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(15, 23, 42, 0.68);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
  transform: rotate(1.5deg);
}

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

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

.hero-dots button {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.42);
}

.hero-dots button.is-active {
  width: 46px;
  background: #67e8f9;
}

.category-strip,
.content-section,
.page-main,
.detail-content,
.related-section,
.player-section,
.toolbar-section,
.ranking-table {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-strip {
  margin-top: -48px;
  position: relative;
  z-index: 5;
}

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

.category-tile,
.category-overview-card,
.story-panel,
.info-panel,
.video-frame,
.rank-list,
.ranking-table {
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
  box-shadow: 0 22px 58px rgba(2, 6, 23, 0.26);
}

.category-tile {
  display: block;
  padding: 16px;
  overflow: hidden;
}

.tile-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.tile-images img {
  height: 92px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile strong {
  display: block;
  color: #ffffff;
  font-size: 20px;
}

.category-tile span {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 14px;
}

.content-section {
  margin-top: 74px;
}

.content-section.wide {
  margin-top: 26px;
}

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

.section-heading.left {
  align-items: flex-start;
  justify-content: flex-start;
}

.section-heading h2,
.overview-head h2,
.story-panel h2,
.info-panel h2 {
  margin: 6px 0 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 28px 58px rgba(8, 47, 73, 0.32);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img,
.movie-card.compact img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  background: #0f172a;
  transition: transform 0.32s ease;
}

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #04111f;
  background: #67e8f9;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.45);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.card-meta a {
  color: #67e8f9;
}

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 68px;
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.tag-row {
  margin-top: 14px;
  gap: 8px;
}

.tag-row span {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 12px;
}

.tag-row.large span {
  font-size: 13px;
}

.rank-section {
  margin-bottom: 78px;
}

.rank-list {
  padding: 14px;
}

.rank-item,
.ranking-row {
  display: grid;
  align-items: center;
  gap: 16px;
  color: #cbd5e1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item {
  grid-template-columns: 42px 96px minmax(0, 1fr);
  padding: 12px;
  border-radius: 18px;
}

.rank-item:hover,
.ranking-row:hover {
  background: rgba(30, 64, 175, 0.24);
  transform: translateX(3px);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #04111f;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.wide-num {
  width: 48px;
}

.rank-item img,
.ranking-row img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-text strong,
.ranking-main strong {
  display: block;
  color: #ffffff;
}

.rank-text small,
.ranking-main small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
}

.page-main {
  padding-top: 46px;
  padding-bottom: 76px;
}

.page-hero {
  position: relative;
  padding: 70px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 32px;
  background: radial-gradient(circle at 80% 15%, rgba(14, 165, 233, 0.28), transparent 36%), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.62));
  overflow: hidden;
}

.page-hero.slim {
  padding: 56px;
}

.page-hero.category-hero {
  background: radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.2), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(12, 74, 110, 0.72));
}

.overview-stack {
  display: grid;
  gap: 26px;
  margin-top: 34px;
}

.category-overview-card {
  padding: 24px;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.overview-head p {
  margin: 8px 0 0;
  color: #94a3b8;
}

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

.movie-card.compact {
  display: block;
  padding: 0;
}

.movie-card.compact strong,
.movie-card.compact small {
  display: block;
  padding: 0 12px;
}

.movie-card.compact strong {
  margin-top: 10px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
}

.movie-card.compact small {
  margin: 3px 0 12px;
  color: #94a3b8;
  font-size: 12px;
}

.toolbar-section {
  margin-top: 24px;
}

.inline-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(620px, 100%);
  padding: 8px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.inline-filter input {
  width: 100%;
  padding-left: 10px;
}

.ranking-table {
  margin-top: 28px;
  padding: 14px;
}

.ranking-row {
  grid-template-columns: 58px 96px minmax(260px, 1fr) 80px 160px 110px 110px;
  padding: 12px;
  border-radius: 18px;
}

.row-category {
  color: #67e8f9;
  font-weight: 800;
}

.detail-main {
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: center;
  padding: 70px 0;
}

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

.detail-poster {
  border: 1px solid rgba(103, 232, 249, 0.26);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.48);
}

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

.player-section {
  margin-top: -76px;
  position: relative;
  z-index: 5;
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: contain;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9, #60a5fa);
  box-shadow: 0 22px 52px rgba(14, 165, 233, 0.42);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 30px;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  margin-top: 34px;
}

.story-panel,
.info-panel {
  padding: 26px;
}

.story-panel p {
  color: #cbd5e1;
  font-size: 17px;
}

.story-panel h3 {
  margin: 28px 0 8px;
  color: #ffffff;
  font-size: 24px;
}

.info-panel dl {
  margin: 18px 0 0;
}

.info-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.info-panel dt {
  color: #94a3b8;
}

.info-panel dd {
  margin: 0;
  color: #e5edf8;
  text-align: right;
}

.related-section {
  margin-bottom: 76px;
}

.site-footer {
  border-top: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.98));
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.5fr));
  gap: 30px;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

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

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

.is-filtered-out {
  display: none !important;
}

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

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
  }

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

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

  .ranking-row {
    grid-template-columns: 48px 84px minmax(0, 1fr);
  }

  .ranking-row > span:nth-last-child(-n + 4) {
    display: none;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-slide {
    padding: 48px 0 82px;
    gap: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 42px;
  }

  .page-hero,
  .page-hero.slim {
    padding: 34px 24px;
  }

  .category-strip {
    margin-top: 24px;
  }

  .category-grid,
  .movie-grid,
  .all-grid,
  .compact-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .player-section {
    margin-top: 24px;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .mobile-panel,
  .category-strip,
  .content-section,
  .page-main,
  .detail-content,
  .related-section,
  .player-section,
  .toolbar-section,
  .ranking-table,
  .detail-layout,
  .footer-grid {
    width: min(100% - 22px, 1240px);
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-slide,
  .category-grid,
  .movie-grid,
  .all-grid,
  .compact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .inline-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-filter button {
    width: 100%;
  }

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

  .video-play {
    width: 64px;
    height: 64px;
  }
}
