:root {
  --brand-cyan: #0891b2;
  --brand-blue: #2563eb;
  --brand-teal: #0d9488;
  --brand-deep: #0f172a;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #ecfeff;
  --line: rgba(15, 23, 42, 0.1);
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 32rem),
    linear-gradient(180deg, #ecfeff 0%, #eff6ff 48%, #f0fdfa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue), var(--brand-teal));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-panel a:hover {
  color: #cffafe;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 270px;
}

.nav-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  outline: none;
  padding: 10px 82px 10px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search button {
  position: absolute;
  right: 5px;
  height: calc(100% - 10px);
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--brand-blue);
  background: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  color: var(--white);
  background: rgba(8, 145, 178, 0.96);
}

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

.mobile-panel a {
  display: block;
  padding: 11px 0;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-panel .nav-search {
  margin-top: 12px;
  min-width: 0;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, #0891b2, #2563eb 48%, #0d9488);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(32px);
  animation: glow 8s ease-in-out infinite alternate;
}

.hero::before {
  top: -150px;
  left: -100px;
}

.hero::after {
  right: -120px;
  bottom: -180px;
  animation-delay: 1.4s;
}

@keyframes glow {
  from {
    transform: scale(0.94) translateY(0);
    opacity: 0.64;
  }

  to {
    transform: scale(1.08) translateY(24px);
    opacity: 0.92;
  }
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 640px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 78, 96, 0.94) 0%, rgba(37, 99, 235, 0.78) 46%, rgba(13, 148, 136, 0.52) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.02));
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: 640px;
  align-items: center;
  grid-template-columns: minmax(0, 1.06fr) minmax(290px, 0.66fr);
  gap: 46px;
  padding: 76px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  color: #dffbff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
}

.hero h2 {
  margin-top: 22px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-cyan {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue), var(--brand-teal));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.hero-feature-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

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

.hero-feature-body {
  padding: 18px;
}

.hero-feature-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hero-feature-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.main {
  padding: 56px 0 72px;
}

.section {
  margin: 0 0 64px;
}

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

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

.section-heading p,
.lead,
.page-hero p {
  max-width: 740px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.26);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

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

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 360ms ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.7);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 850;
}

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

.one-line {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 13px;
}

.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-pill,
.tag-list span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #155e75;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 750;
}

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

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 26px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue), var(--brand-teal));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-item img {
  width: 74px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  font-size: 20px;
  font-weight: 900;
}

.rank-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(120deg, #0891b2, #2563eb, #0d9488);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -140px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(18px);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.detail-info .eyebrow {
  color: #155e75;
  border-color: rgba(8, 145, 178, 0.18);
  background: #ecfeff;
}

.detail-info h1 {
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 900;
}

.detail-info .lead {
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.detail-meta span {
  border-radius: 14px;
  padding: 8px 11px;
  color: #155e75;
  background: #ecfeff;
  font-weight: 800;
}

.player-section,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.player-section h2,
.content-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.12)),
    rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-pulse {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.16), 0 20px 50px rgba(15, 23, 42, 0.3);
  font-size: 34px;
  line-height: 1;
}

.player-cover strong {
  max-width: 80%;
  margin-top: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 28px;
}

.player-cover em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.text-block p {
  margin: 0 0 16px;
  color: #334155;
  font-size: 17px;
}

.search-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 18px;
  outline: none;
  padding: 13px 16px;
  background: #ffffff;
}

.search-box button {
  border: 0;
  border-radius: 18px;
  padding: 0 20px;
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue), var(--brand-teal));
  cursor: pointer;
  font-weight: 850;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 1px solid rgba(8, 145, 178, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: #155e75;
  background: #ecfeff;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
}

.empty-state {
  display: none;
  border-radius: 24px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
}

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

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: #0f172a;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px 0;
}

.footer-inner p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .desktop-nav,
  .nav-row > .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-feature-card {
    max-width: 360px;
  }
}

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

  .brand {
    font-size: 18px;
  }

  .hero,
  .hero-slider,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner {
    gap: 26px;
    padding: 50px 0 86px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h2 {
    font-size: 30px;
  }

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

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

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

  .rank-number {
    display: none;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

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

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

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 46px;
  }

  .player-cover strong {
    font-size: 22px;
  }
}
