:root {
  --cyan: #0891b2;
  --cyan-soft: #e0f7fb;
  --blue: #1d4ed8;
  --blue-deep: #0f172a;
  --slate: #334155;
  --slate-light: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --mist: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate);
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.14), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef8fb 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.96), rgba(29, 78, 216, 0.96));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  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: #ffffff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.brand-text {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

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

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #0e7490 45%, #1d4ed8);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.35), transparent 18rem),
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.32), transparent 22rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.82));
  z-index: 1;
}

.hero-track {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.hero-slide {
  display: none;
  min-height: 620px;
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(290px, 0.72fr);
  animation: fadeUp 0.7s ease both;
}

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

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.12);
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero .kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #a5f3fc;
}

.hero h1 {
  margin: 20px 0 16px;
  color: #ffffff;
  font-size: clamp(2.3rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.26);
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.button.light {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.14);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

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

.hero-mini {
  position: absolute;
  left: -24px;
  bottom: 26px;
  width: min(320px, 82%);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-deep);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-mini strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.hero-mini span {
  color: var(--slate-light);
  font-size: 0.9rem;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section {
  padding: 70px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(224, 247, 251, 0.48));
}

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

.section-head h2,
.page-title h1 {
  margin: 12px 0 0;
  color: var(--blue-deep);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--slate-light);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.58));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  font-weight: 900;
  font-size: 0.75rem;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-meta span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cyan-soft);
}

.movie-card h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 1.08rem;
  line-height: 1.36;
}

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

.movie-card p {
  margin: 9px 0 12px;
  color: var(--slate-light);
  font-size: 0.92rem;
}

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

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(8, 145, 178, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.search-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin: 28px 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--blue-deep);
  font-size: 1rem;
}

.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--blue-deep);
  background: #ffffff;
}

.page-hero {
  padding: 74px 0 42px;
  color: #ffffff;
  background:
    radial-gradient(circle at 14% 20%, rgba(34, 211, 238, 0.38), transparent 20rem),
    linear-gradient(135deg, #0f172a, #0e7490, #1d4ed8);
}

.page-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  font-weight: 900;
  font-size: 1.2rem;
}

.rank-cover {
  overflow: hidden;
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #0e7490 44%, #1d4ed8);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.62));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #a5f3fc;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy .summary {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.info-pill {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 52px 0 70px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: 1.6rem;
}

.content-card p {
  margin: 0 0 18px;
}

.player-card {
  padding: 0;
  overflow: hidden;
}

.player-wrap {
  position: relative;
  background: #020617;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(8, 145, 178, 0.34));
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  font-size: 2rem;
  padding-left: 5px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.side-link img {
  width: 68px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.side-link strong {
  display: block;
  color: var(--blue-deep);
}

.side-link span {
  color: var(--slate-light);
  font-size: 0.86rem;
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  color: var(--slate-light);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 36px;
  padding: 46px 0 32px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #a5f3fc;
}

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

.footer-grid li {
  margin: 8px 0;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .rank-item .button {
    grid-column: 3;
    width: max-content;
  }
}

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

  .menu-button {
    display: block;
  }

  .mobile-panel.is-open {
    display: block;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
  }

  .mobile-panel .nav-link {
    display: block;
    margin: 6px 0;
  }

  .mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-category-link {
    padding: 9px 12px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero,
  .hero-track,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide.is-active {
    padding: 42px 0 72px;
  }

  .hero-poster img {
    height: 390px;
  }

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

  .section-head,
  .search-panel {
    display: block;
  }

  .search-panel .select {
    width: 100%;
    margin-top: 10px;
  }

  .detail-layout {
    padding: 36px 0;
  }

  .detail-cover {
    max-width: 250px;
  }

  .content-card {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 46px 82px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover {
    height: 110px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.dense,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .hero-poster {
    transform: none;
  }
}
