:root {
  --bg: #f8fdff;
  --surface: #ffffff;
  --surface-soft: #ecfeff;
  --surface-blue: #eff6ff;
  --text: #111827;
  --muted: #64748b;
  --line: #cffafe;
  --cyan: #0891b2;
  --cyan-strong: #06b6d4;
  --teal: #0d9488;
  --shadow: 0 20px 55px rgba(8, 145, 178, 0.12);
  --shadow-hover: 0 28px 70px rgba(8, 145, 178, 0.22);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(103, 232, 249, 0.6);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(8, 145, 178, 0.08);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.footer-logo {
  margin-bottom: 16px;
  font-size: 21px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-strong), var(--teal));
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.32);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  color: #0f172a;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 62px;
  background: radial-gradient(circle at top left, rgba(103, 232, 249, 0.42), transparent 34%), linear-gradient(135deg, #f0fdfa 0%, #ffffff 42%, #eff6ff 100%);
}

.hero-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.34;
  animation: blobFloat 12s ease-in-out infinite;
}

.hero-blob-one {
  top: 40px;
  left: 5%;
  background: #67e8f9;
}

.hero-blob-two {
  right: 7%;
  bottom: 8%;
  background: #5eead4;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(34px, -24px, 0) scale(1.12);
  }
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-heading {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(103, 232, 249, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--cyan);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.hero-heading h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.hero-heading h1 {
  font-size: clamp(38px, 7vw, 72px);
  background: linear-gradient(90deg, #0f172a, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading p,
.page-hero p,
.detail-info p {
  color: var(--muted);
  line-height: 1.85;
}

.hero-heading p {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 18px;
}

.hero-search {
  display: flex;
  width: min(680px, 100%);
  margin: 28px auto 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 18px;
  outline: none;
  color: #0f172a;
}

.hero-search button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--teal));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(8, 145, 178, 0.25);
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search button {
  padding: 13px 24px;
}

.primary-button {
  padding: 13px 22px;
}

.hero-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(8, 145, 178, 0.34);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(103, 232, 249, 0.7);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.12;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.08);
}

.hero-copy h2 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #475569;
  line-height: 1.88;
  font-size: 17px;
}

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

.hero-badge span,
.hero-tags span,
.tag-row span,
.detail-tags a,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 800;
}

.hero-badge span,
.hero-tags span,
.detail-tags a {
  padding: 7px 11px;
  font-size: 13px;
}

.movie-meta span,
.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.hero-tags {
  margin: 20px 0 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--cyan);
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: #ecfeff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  height: 430px;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

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

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: #bae6fd;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.58);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(8, 145, 178, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.9);
  box-shadow: var(--shadow-hover);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #cffafe, #f0fdfa);
}

.poster-wrap img,
.wide-poster img,
.detail-poster img,
.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img,
.wide-card:hover .wide-poster img,
.category-overview-card:hover .category-cover-stack img {
  transform: scale(1.08);
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.9);
  box-shadow: 0 10px 26px rgba(8, 145, 178, 0.32);
}

.rank-badge,
.wide-rank {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
}

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

.movie-card h3,
.wide-card h3,
.category-overview-card h2 {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover,
.category-overview-card h2 a:hover {
  color: var(--cyan);
}

.movie-card p,
.wide-card p,
.category-overview-card p,
.article-content p,
.watch-panel dd,
.footer-grid p {
  color: var(--muted);
  line-height: 1.78;
}

.movie-card p {
  min-height: 76px;
  margin: 0 0 14px;
  font-size: 14px;
}

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

.compact-card h3 {
  font-size: 18px;
}

.compact-card p {
  min-height: 68px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--teal));
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.35s ease;
}

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

.category-tile:hover::after {
  transform: scale(1.45);
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 900;
}

.category-tile small {
  position: relative;
  z-index: 1;
  color: #ecfeff;
  line-height: 1.7;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: #ffffff;
}

.wide-poster {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.wide-rank {
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
}

.wide-content {
  padding: 24px;
}

.wide-content h3 {
  font-size: 24px;
}

.wide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.text-link.muted {
  color: #64748b;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0;
  background: linear-gradient(135deg, #ecfeff, #ffffff 46%, #eff6ff);
}

.slim-hero {
  padding: 76px 0 52px;
}

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

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 17px;
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 220px));
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  box-shadow: 0 12px 32px rgba(8, 145, 178, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 45px;
  border: 1px solid #a5f3fc;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(8, 145, 178, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  height: 190px;
  border-radius: 22px;
  background: #ecfeff;
}

.detail-hero {
  min-height: 560px;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.38));
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.18);
  transform: scale(1.08);
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.detail-info .breadcrumb,
.detail-info .breadcrumb a,
.detail-info .section-kicker,
.detail-info p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(36px, 6vw, 68px);
}

.detail-info p {
  max-width: 820px;
  margin: 18px 0 22px;
  font-size: 18px;
}

.detail-tags {
  margin-bottom: 28px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.player-card,
.watch-panel,
.article-content {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.player-stage.is-playing .play-overlay,
.play-overlay[hidden] {
  display: none;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-strong), var(--teal));
  box-shadow: 0 20px 48px rgba(6, 182, 212, 0.42);
  font-size: 24px;
}

.watch-panel {
  padding: 24px;
}

.watch-panel h2,
.article-content h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.watch-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.watch-panel dl div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0f2fe;
}

.watch-panel dt {
  color: #0e7490;
  font-size: 13px;
  font-weight: 900;
}

.watch-panel dd {
  margin: 0;
}

.article-content {
  padding: 34px;
}

.article-content p {
  margin: 0 0 24px;
  font-size: 17px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #ecfeff);
}

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

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

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

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

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

  .hero-slide,
  .detail-hero-grid,
  .player-layout,
  .wide-card,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-poster {
    height: 320px;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-poster {
    width: min(320px, 100%);
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  .home-hero,
  .section,
  .page-hero,
  .detail-hero {
    padding: 44px 0;
  }

  .hero-search {
    display: grid;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 48px;
  }

  .hero-slider {
    min-height: 820px;
  }

  .hero-slide {
    padding: 22px;
    border-radius: 26px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .movie-grid.four-col,
  .category-grid,
  .category-overview-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    min-height: 190px;
  }

  .detail-info h1 {
    font-size: 36px;
  }

  .footer-grid {
    gap: 22px;
  }
}
