:root {
  --brand-blue: #2563eb;
  --brand-indigo: #4f46e5;
  --brand-purple: #7c3aed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo));
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26);
}

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

.desktop-nav a,
.mobile-panel a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: var(--brand-blue);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.local-filter,
.sort-control {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 44px 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.local-filter:focus,
.sort-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button {
  position: absolute;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 12px;
  background: #eff6ff;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--brand-blue);
}

.mobile-panel {
  padding: 18px 24px 26px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-search input,
.search-page-form input,
.local-filter,
.sort-control {
  padding: 12px 16px;
}

.mobile-search button,
.search-page-form button {
  border-radius: 999px;
  padding: 0 18px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 800;
}

.mobile-panel > a,
.mobile-category-list a {
  display: block;
  padding: 10px 0;
}

.mobile-category-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #faf5ff 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.48;
  background-image: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.12), transparent 26%), radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.14), transparent 28%), radial-gradient(circle at 50% 86%, rgba(79, 70, 229, 0.12), transparent 30%);
}

.hero-shell {
  position: relative;
  min-height: 650px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  gap: 56px;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  color: var(--brand-blue);
}

.hero-copy p {
  max-width: 660px;
  margin-top: 24px;
  color: #374151;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.hero-tags,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.26);
}

.ghost-button {
  border: 2px solid var(--brand-blue);
  background: #ffffff;
  color: var(--brand-blue);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 30px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  height: 560px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 58%);
}

.hero-poster strong {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
  padding: 8px 14px;
}

.hero-play,
.card-play,
.detail-poster span,
.player-button {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue);
}

.hero-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
}

.hero-dot.is-active {
  background: var(--brand-blue);
}

.content-section {
  padding: 64px 0;
}

.soft-section,
.page-hero {
  background: var(--soft);
}

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

.section-heading h2,
.page-hero h1,
.player-heading h2,
.detail-article h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: var(--brand-blue);
  font-weight: 900;
}

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

.category-card,
.category-overview-card,
.detail-side-card {
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
  padding: 24px;
}

.category-card span,
.category-overview-head span {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.category-card strong,
.category-overview-head strong {
  display: inline-flex;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 6px 12px;
}

.category-card p,
.category-overview-card p,
.detail-side-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

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

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent 58%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 16px;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #cbd5e1;
}

.movie-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--brand-blue);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 12px;
}

.page-hero {
  padding: 72px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-blue);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  max-width: 820px;
  margin-top: 26px;
}

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

.category-overview-head {
  display: block;
}

.category-overview-card ul {
  margin: 18px 0;
  color: #374151;
  line-height: 1.9;
}

.category-overview-card li a:hover {
  color: var(--brand-blue);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
}

.rank-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.rank-table th,
.rank-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rank-table th {
  background: #eff6ff;
  color: #1e3a8a;
}

.rank-table a {
  color: var(--brand-blue);
  font-weight: 800;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
}

.search-summary {
  margin-bottom: 24px;
  border-radius: 18px;
  background: #eff6ff;
  color: #1e40af;
  padding: 16px 18px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: #111827;
  color: #ffffff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(12px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.95), rgba(30, 58, 138, 0.76));
}

.detail-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
}

.detail-info .breadcrumb,
.detail-info .breadcrumb a,
.detail-info .eyebrow {
  color: #bfdbfe;
}

.detail-info h1 {
  max-width: 860px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 820px;
  margin: 20px 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-info .primary-button {
  margin-top: 24px;
}

.player-section {
  padding: 56px 0 28px;
  background: #0f172a;
  color: #ffffff;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.58));
  transition: opacity 0.2s ease;
}

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

.player-button {
  width: 94px;
  height: 94px;
  color: var(--brand-blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
}

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

.detail-article {
  padding: 30px;
}

.detail-article h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 28px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

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

.info-list div {
  border-radius: 16px;
  background: #f8fafc;
  padding: 14px;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-side-card {
  align-self: start;
  padding: 24px;
}

.detail-side-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

.detail-side-card a {
  display: block;
  margin-top: 12px;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--brand-blue);
  padding: 14px;
  font-weight: 900;
}

.site-footer {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #d1d5db;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-logo {
  color: #ffffff;
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
}

.footer-brand p,
.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #9ca3af;
  text-align: center;
}

.is-hidden-by-filter {
  display: none;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .hero-shell,
  .hero-carousel {
    min-height: 980px;
  }

  .hero-slide {
    padding: 52px 0 90px;
  }

  .hero-poster img {
    height: auto;
    max-height: 520px;
  }

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

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

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

  .site-logo {
    font-size: 21px;
  }

  .hero-shell,
  .hero-carousel {
    min-height: 900px;
  }

  .hero-slide {
    gap: 30px;
  }

  .hero-copy h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

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

  .hero-dots {
    bottom: 22px;
  }

  .content-section {
    padding: 42px 0;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .info-list,
  .filter-bar,
  .search-page-form {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    padding: 42px 0;
  }

  .detail-article,
  .detail-side-card {
    padding: 22px;
  }
}
