:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --slate: #0f172a;
  --gray: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 28px 70px rgba(8, 145, 178, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background:
    radial-gradient(circle at 12% 8%, rgba(103, 232, 249, 0.30), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(147, 197, 253, 0.32), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #ecfeff 45%, #eff6ff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 26px rgba(6, 182, 212, 0.35);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.brand-name,
.footer-brand span:last-child {
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #334155;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--cyan-dark);
}

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search {
  width: min(320px, 28vw);
}

.top-search input,
.mobile-search input,
.hero-search input {
  min-width: 0;
  width: 100%;
  border: 2px solid rgba(6, 182, 212, 0.16);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-search input,
.mobile-search input {
  padding: 12px 14px;
}

.hero-search input {
  padding: 16px 18px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus {
  border-color: rgba(6, 182, 212, 0.72);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 26px rgba(6, 182, 212, 0.25);
}

.top-search button,
.mobile-search button {
  padding: 12px 16px;
}

.hero-search button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
}

.secondary-button,
.ghost-button {
  color: var(--cyan-dark);
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.ghost-button {
  padding: 11px 16px;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 254, 255, 0.85);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #334155;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  padding: 10px 8px;
  color: #334155;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 76px;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.48;
  animation: float 6s ease-in-out infinite alternate;
}

.orb-one {
  width: 260px;
  height: 260px;
  left: 6vw;
  top: 110px;
  background: #67e8f9;
}

.orb-two {
  width: 360px;
  height: 360px;
  right: 6vw;
  bottom: 20px;
  background: #bfdbfe;
  animation-delay: 1.5s;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(22px);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 38px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue), var(--cyan-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 740px;
  color: #526179;
  font-size: 19px;
  line-height: 1.85;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  font-weight: 800;
}

.hero-search {
  max-width: 660px;
  margin: 28px 0 18px;
}

.hero-search.narrow {
  max-width: 760px;
}

.hero-actions,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.chip:hover {
  color: var(--cyan-dark);
  background: #ffffff;
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  align-content: end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: #ffffff;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  box-shadow: var(--shadow-strong);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.80));
}

.hero-slide-copy {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #ffffff;
}

.hero-slide-copy h2 {
  margin: 12px 0 10px;
  font-size: 32px;
  line-height: 1.2;
}

.hero-slide-copy p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-cloud span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 32px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

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

.page-main {
  padding-top: 100px;
}

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

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

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

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

.section {
  margin-bottom: 72px;
}

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

.section-head span:first-child {
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-head h2 {
  flex: 1;
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.section-head a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.compact-head {
  justify-content: flex-start;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.14);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.58));
  opacity: 0.88;
}

.category-pill,
.rating-pill {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.category-pill {
  left: 12px;
  padding: 7px 10px;
  background: rgba(6, 182, 212, 0.88);
}

.rating-pill {
  right: 12px;
  padding: 7px 9px;
  background: rgba(15, 23, 42, 0.60);
}

.card-body {
  padding: 18px;
}

.card-meta,
.card-foot,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta {
  color: #64748b;
  font-size: 12px;
}

.card-meta span,
.detail-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(236, 254, 255, 0.86);
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--cyan-dark);
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-foot {
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
}

.card-foot span {
  color: #64748b;
}

.card-foot a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.panel-section,
.rank-panel,
.content-panel,
.info-panel,
.rank-wide {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.62));
  box-shadow: var(--shadow);
}

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

.category-grid,
.overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.78));
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.rank-panel ol,
.rank-list-large {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(6, 182, 212, 0.12);
}

.rank-item:last-child a {
  border-bottom: 0;
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-info em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

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

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.category-overview-card a {
  display: block;
  padding: 18px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-covers img {
  height: 86px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.category-overview-card p {
  min-height: 76px;
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
}

.category-overview-card span {
  color: var(--cyan-dark);
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 32px;
  box-shadow: var(--shadow-strong);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.detail-meta {
  margin: 18px 0;
  color: #475569;
  font-weight: 700;
}

.tag-cloud span {
  color: var(--cyan-dark);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.detail-copy .primary-button {
  margin-top: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.35);
  font-size: 30px;
}

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

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

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

.content-panel h2,
.info-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.95;
}

.info-panel dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.info-panel dt {
  color: #64748b;
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  color: #0f172a;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: #64748b;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(236, 254, 255, 0.76));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 46px 0 30px;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: #64748b;
  line-height: 1.75;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--cyan-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
}

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

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

  .hero-stage {
    min-height: 470px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 112px;
  }

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

  .hero-search,
  .top-search,
  .mobile-search {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stage {
    min-height: 430px;
  }

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

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

  .detail-poster {
    max-width: 360px;
  }
}

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

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

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-bottom: 48px;
  }

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

  .hero-stage {
    min-height: 380px;
  }

  .hero-slide-copy {
    padding: 22px;
  }

  .hero-slide-copy h2 {
    font-size: 24px;
  }

  .card-grid,
  .hot-grid,
  .catalog-grid,
  .compact-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 25px;
  }

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

  .rank-score {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
