* {
  box-sizing: border-box;
}

:root {
  --primary: #005bb3;
  --primary-dark: #004380;
  --primary-soft: #e6f1ff;
  --secondary: #0284c7;
  --accent: #f59e0b;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-500: #737373;
  --neutral-700: #404040;
  --neutral-900: #171717;
  --shadow-soft: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-large: 0 16px 48px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--neutral-200);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--neutral-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 650;
  color: var(--neutral-700);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 36vw);
}

.nav-search input,
.search-hero input,
.filter-input {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: #fff;
  padding: 11px 16px;
  color: var(--neutral-900);
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
}

.nav-search input:focus,
.search-hero input:focus,
.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 91, 179, 0.12);
}

.nav-search button,
.primary-btn,
.secondary-btn,
.filter-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.primary-btn {
  background: var(--primary);
  color: #fff;
  padding: 11px 18px;
  box-shadow: 0 10px 24px rgba(0, 91, 179, 0.22);
}

.nav-search button:hover,
.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.nav-cats {
  display: none;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--neutral-100);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--neutral-900);
  border-radius: 2px;
}

.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--neutral-900);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 92%);
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #bfdbfe;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 650;
}

.detail-meta span,
.card-meta span {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.page-hero {
  padding: 64px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(2, 132, 199, 0.52), transparent 34%),
    linear-gradient(135deg, #111827, #082f49 52%, #0f172a);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.section {
  padding: 56px 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: linear-gradient(135deg, var(--primary-soft), #f0f9ff);
}

.section-dark {
  background: var(--neutral-900);
  color: #fff;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--neutral-500);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(0, 91, 179, 0.38);
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-200), var(--primary-soft));
}

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

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

.score-badge,
.play-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 800;
}

.score-badge {
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 5px 10px;
}

.play-badge {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 91, 179, 0.28);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.card-body h2 a:hover {
  color: var(--primary);
}

.card-desc {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--neutral-500);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  margin-bottom: 12px;
  gap: 7px;
}

.card-meta span {
  padding: 4px 9px;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 650;
}

.scroll-row {
  display: grid;
  grid-auto-columns: minmax(240px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

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

.category-panel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 91, 179, 0.14);
  box-shadow: var(--shadow-soft);
}

.category-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-large);
}

.category-glow {
  position: absolute;
  inset: auto -20% -45% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.18);
}

.category-panel strong {
  position: relative;
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-panel p,
.category-panel em {
  position: relative;
  display: block;
  margin: 0;
  color: var(--neutral-500);
  font-style: normal;
}

.category-panel em {
  margin-top: 18px;
  color: var(--primary);
  font-weight: 650;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.rank-feature {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-large);
}

.rank-feature img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 0.72;
}

.rank-feature-content {
  position: absolute;
  inset: auto 0 0;
  padding: 32px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.rank-feature-content h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 62px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  font-weight: 900;
}

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

.rank-info strong {
  display: block;
  margin-bottom: 4px;
}

.rank-info em {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: #fbbf24;
  font-weight: 900;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-btn {
  background: var(--neutral-100);
  color: var(--neutral-700);
  padding: 9px 14px;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--primary);
  color: #fff;
}

.search-hero {
  max-width: 780px;
  margin-top: 28px;
}

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

.result-empty {
  display: none;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: var(--neutral-500);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.breadcrumb {
  padding: 24px 0 12px;
  color: var(--neutral-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.detail-shell {
  padding-bottom: 60px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  box-shadow: var(--shadow-large);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 91, 179, 0.92);
  box-shadow: 0 18px 38px rgba(0, 91, 179, 0.36);
  font-size: 34px;
}

.player-overlay strong {
  display: block;
  font-size: 20px;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.player-status[hidden] {
  display: none;
}

.detail-title {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-title h1 {
  color: var(--neutral-900);
  font-size: clamp(32px, 4vw, 52px);
}

.detail-title p {
  margin: 0 0 20px;
  color: var(--neutral-700);
  font-size: 18px;
}

.poster-aside {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-soft);
}

.poster-aside img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--neutral-200), var(--primary-soft));
}

.poster-info {
  padding: 18px;
}

.poster-info dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.poster-info div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--neutral-100);
  padding-bottom: 10px;
}

.poster-info dt {
  color: var(--neutral-500);
}

.poster-info dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.article-panel {
  margin-top: 28px;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.article-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: var(--neutral-700);
  font-size: 17px;
}

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

.related-grid .movie-card .card-desc {
  min-height: auto;
}

.site-footer {
  padding: 46px 0;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  max-width: 460px;
  margin: 12px 0 0;
}

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

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

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

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: var(--neutral-700);
}

.sitemap-list a:hover {
  color: var(--primary);
}

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

  .watch-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .poster-aside {
    max-width: 420px;
  }
}

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

  .nav-shell {
    min-height: 68px;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-large);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-search {
    width: 100%;
  }

  .nav-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
  }

  .nav-cats a {
    border-radius: 999px;
    background: var(--neutral-100);
    padding: 8px 12px;
    color: var(--neutral-700);
    font-size: 14px;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .section-header,
  .search-hero form {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .hero-carousel {
    height: 500px;
  }

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

  .card-grid,
  .category-grid,
  .related-grid {
    gap: 14px;
  }

  .movie-card {
    border-radius: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h2 {
    font-size: 16px;
  }

  .card-desc {
    min-height: 46px;
    font-size: 14px;
  }

  .watch-layout {
    gap: 18px;
  }

  .detail-title,
  .article-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .poster-aside {
    max-width: none;
  }

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

  .rank-score {
    grid-column: 3;
  }
}
