:root {
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --teal: #0d9488;
  --emerald: #059669;
  --ink: #111827;
  --muted: #4b5563;
  --light: #f8fafc;
  --panel: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--cyan), var(--teal), var(--emerald));
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.3);
}

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

.nav-link {
  padding: 9px 15px;
  color: #374151;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan-dark);
}

.mobile-panel {
  display: none;
  padding: 0 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

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

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

.mobile-category-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f0fdfa;
  color: var(--teal);
  font-weight: 700;
}

.section-inner {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #0891b2, #0d9488 48%, #059669);
  color: #fff;
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(90deg, rgba(5, 20, 30, 0.86), rgba(5, 20, 30, 0.52), rgba(5, 20, 30, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 44px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 68px 0 82px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  margin: 22px 0 12px;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.1vw, 42px);
  line-height: 1.16;
  color: #a5f3fc;
  font-weight: 800;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #ecfeff;
  font-size: 19px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ecfeff;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: var(--cyan-dark);
  background: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button.subtle {
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 145, 178, 0.86);
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.search-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-band.slim {
  border-top: 1px solid var(--line);
}

.search-panel {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}

.search-panel h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.search-box {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #374151;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  padding: 15px 17px;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.section-block {
  padding: 58px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.16;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.section-heading.light h2,
.section-heading.light p,
.section-heading.light a {
  color: #fff;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--soft-shadow);
  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;
  background: #e5e7eb;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(8, 145, 178, 0.88);
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 12px;
  right: 12px;
}

.play-badge {
  left: 12px;
  bottom: 12px;
  background: rgba(5, 150, 105, 0.9);
}

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

.movie-meta-line {
  margin-bottom: 7px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 14px;
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row span {
  color: var(--cyan-dark);
  background: #ecfeff;
}

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

.category-tile,
.category-page-card {
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--soft-shadow);
}

.category-tile {
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span,
.category-card-head span {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.category-tile p,
.category-page-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.category-mini-links {
  display: grid;
  gap: 7px;
}

.category-mini-links a {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-home {
  padding: 62px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0e7490, #059669);
}

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

.compact-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.compact-card img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.compact-card strong,
.compact-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card em {
  color: #cffafe;
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #0891b2, #0d9488 48%, #059669);
}

.page-hero .section-inner {
  padding: 86px 0;
}

.compact-hero .section-inner {
  padding: 72px 0;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ecfeff;
  font-size: 18px;
}

.page-actions .ghost-button {
  color: #fff;
}

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

.category-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.category-card-head em {
  font-style: normal;
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.category-preview-list .compact-card {
  color: var(--ink);
  background: #f9fafb;
  border-color: var(--line);
}

.category-preview-list .compact-card em {
  color: var(--muted);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  font-weight: 900;
}

.rank-thumb img {
  width: 92px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

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

.rank-info span {
  color: var(--cyan-dark);
  font-weight: 800;
  font-size: 14px;
}

.rank-watch {
  padding: 11px 15px;
  border-radius: 14px;
  color: #fff;
  background: var(--cyan);
  font-weight: 800;
}

.detail-hero-inner {
  min-height: 510px;
  padding: 58px 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #cffafe;
  font-weight: 800;
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  max-width: 860px;
  color: #ecfeff;
  font-size: 19px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
}

.player-section {
  padding: 56px 0 22px;
}

.player-section h2,
.detail-content h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

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

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

.play-circle {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: var(--cyan-dark);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.detail-content {
  padding: 28px 0;
  display: grid;
  gap: 18px;
}

.content-card {
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.genre-tags span {
  color: var(--cyan-dark);
  background: #ecfeff;
}

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

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.7fr;
  gap: 38px;
}

.footer-logo {
  color: #fff;
}

.footer-brand p {
  max-width: 520px;
  color: #9ca3af;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 44px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--cyan);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  display: none;
}

.back-top.is-visible {
  display: block;
}

[data-card].is-hidden {
  display: none;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content,
  .detail-hero-inner,
  .search-panel,
  .footer-inner,
  .category-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    justify-self: start;
    width: min(320px, 100%);
  }

  .compact-grid,
  .category-preview-list {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 44px 82px 1fr;
  }

  .rank-watch {
    grid-column: 2 / 4;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .hero-content,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 30px, 1280px);
  }

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

  .hero-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p,
  .tag-row {
    display: none;
  }

  .category-tile,
  .category-page-card,
  .content-card {
    padding: 18px;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number,
  .rank-thumb img {
    width: 100%;
  }

  .rank-number {
    height: 36px;
  }

  .rank-thumb img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-watch {
    grid-column: auto;
  }

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