* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --sky: #0ea5e9;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --deep: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f0f9ff;
  --card: #ffffff;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
  --radius: 22px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
  color: #1f2937;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--cyan));
  box-shadow: 0 12px 30px rgba(14, 116, 144, 0.25);
}

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  font-size: 23px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.15);
}

.brand-text {
  font-size: 21px;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.nav-drop-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-drop-panel {
  position: absolute;
  top: 34px;
  left: 0;
  width: 190px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #ffffff;
  color: #334155;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-drop-panel a {
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-drop-panel a:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.top-search {
  display: flex;
  width: 310px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.top-search input,
.mobile-search input,
.wide-search input,
.inline-filter input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.top-search input {
  flex: 1;
  padding: 0 16px;
  color: #0f172a;
}

.top-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  cursor: pointer;
  font-weight: 800;
}

.top-search button {
  padding: 0 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 23px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-search {
  display: flex;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.mobile-search input {
  flex: 1;
  padding: 0 14px;
}

.mobile-search button {
  padding: 0 18px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.8s ease;
  pointer-events: none;
}

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

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

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, #f0f9ff, rgba(240, 249, 255, 0));
}

.hero-content {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

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

.hero-eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #cffafe;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 660px;
  color: #dff7ff;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.72;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.card-tags span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ecfeff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.rank-action,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.26);
}

.secondary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.rank-action:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

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

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

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-panel {
  width: min(1220px, calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.quick-search-card,
.quick-category-card,
.content-section,
.detail-article,
.player-shell {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-search-card,
.quick-category-card {
  padding: 26px;
}

.quick-search-card h2,
.quick-category-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
}

.wide-search {
  display: flex;
  min-height: 54px;
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

.wide-search input {
  flex: 1;
  padding: 0 22px;
  background: transparent;
}

.wide-search button {
  padding: 0 26px;
}

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

.category-pills a {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e0f2fe, #cffafe);
  color: #0369a1;
  font-weight: 800;
}

.content-section {
  width: min(1220px, calc(100% - 32px));
  margin: 42px auto;
  padding: 30px;
}

.highlight-section {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.inline-filter {
  margin: 0 0 24px;
}

.inline-filter input {
  width: min(520px, 100%);
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

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

.movie-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(14, 165, 233, 0.36);
}

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #bae6fd, #cffafe);
}

.compact-card .card-cover {
  aspect-ratio: 3 / 4;
}

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: 26px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-type {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  color: #075985;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 9px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h2 {
  color: #2563eb;
}

.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 13px;
}

.card-tags span {
  background: linear-gradient(90deg, #e0f2fe, #ccfbf1);
  color: #0369a1;
  font-size: 12px;
}

.page-banner {
  min-height: 260px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #0ea5e9, #2563eb, #06b6d4);
  color: #ffffff;
}

.page-banner > div {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.page-banner p {
  margin: 0 0 10px;
  font-weight: 900;
  color: #cffafe;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.page-banner h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.page-banner span {
  display: block;
  max-width: 760px;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.8;
}

.orange-banner {
  background: linear-gradient(120deg, #ea580c, #f59e0b, #facc15);
}

.blue-banner {
  background: linear-gradient(120deg, #0284c7, #2563eb, #7c3aed);
}

.search-banner {
  background: linear-gradient(120deg, #0f172a, #2563eb, #06b6d4);
}

.category-banner {
  background: linear-gradient(120deg, #0369a1, #2563eb, #0891b2);
}

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

.category-card {
  display: block;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.15);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h2 {
  margin: 16px 0 8px;
  color: #0f172a;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 118px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
  font-size: 26px;
  font-weight: 950;
  color: #2563eb;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}

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

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 21px;
  color: #0f172a;
}

.rank-info h2 a:hover {
  color: #2563eb;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-action {
  min-height: 42px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.search-page-form {
  margin-bottom: 28px;
}

.search-empty {
  display: none;
  margin: 24px 0;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}

.search-empty.is-visible {
  display: block;
}

.detail-hero {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.detail-shell {
  width: min(1220px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0;
  color: #dff7ff;
  font-size: 20px;
  line-height: 1.75;
}

.detail-category {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ecfeff;
  font-weight: 900;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.18);
}

.player-section {
  width: min(1220px, calc(100% - 32px));
  margin: -64px auto 0;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  outline: 0;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #2563eb;
  font-size: 42px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  width: min(1220px, calc(100% - 32px));
  margin: 42px auto;
}

.detail-article {
  padding: 32px;
}

.detail-article h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 28px;
  color: #334155;
  line-height: 1.9;
  font-size: 17px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.info-table div {
  padding: 16px;
  border-radius: 16px;
  background: #f0f9ff;
  border: 1px solid #dbeafe;
}

.info-table span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13px;
}

.info-table strong {
  color: #0f172a;
}

.related-section {
  margin-top: 42px;
}

.site-footer {
  margin-top: 64px;
  background: linear-gradient(180deg, #1f2937, #0f172a);
  color: #ffffff;
}

.footer-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-logo .brand-icon {
  width: 38px;
  height: 38px;
}

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

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

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

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

  .hero-content {
    min-height: 680px;
    padding: 50px 0 90px;
  }

  .hero-poster {
    width: min(280px, 80vw);
    transform: none;
  }

  .quick-panel {
    margin-top: 24px;
  }

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

  .rank-row {
    grid-template-columns: 54px 94px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
    padding: 0 18px;
  }

  .detail-shell {
    padding: 48px 0 90px;
  }

  .detail-poster {
    width: min(280px, 82vw);
  }

  .info-table {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .mobile-panel,
  .hero-content,
  .quick-panel,
  .content-section,
  .page-banner > div,
  .detail-shell,
  .detail-content,
  .player-section,
  .footer-shell {
    width: min(100% - 22px, 1220px);
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    min-height: 640px;
    gap: 28px;
  }

  .hero-actions,
  .wide-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .wide-search input {
    min-height: 52px;
  }

  .wide-search button {
    min-height: 52px;
  }

  .content-section,
  .quick-search-card,
  .quick-category-card,
  .detail-article {
    padding: 20px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

  .rank-row {
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-info p {
    display: none;
  }

  .detail-copy p {
    font-size: 17px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }
}
