:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --emerald: #10b981;
  --slate: #0f172a;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ecfeff 48%, #f8fafc 100%);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(17, 94, 89, 0.96), rgba(8, 51, 68, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.35);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: #a5f3fc;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
}

.nav-search,
.hero-search-box,
.local-tools {
  position: relative;
}

.nav-search input,
.hero-search-box input,
.local-tools input {
  width: 100%;
  border: 1px solid rgba(8, 145, 178, 0.28);
  border-radius: 999px;
  outline: none;
  padding: 12px 18px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.nav-search {
  width: 230px;
}

.search-panel {
  display: none;
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
}

.search-panel.active {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  color: #0f172a;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #ecfeff;
}

.search-result img {
  height: 72px;
  border-radius: 12px;
}

.search-result strong,
.search-result em {
  display: block;
}

.search-result em {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #fff;
  background: radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.28), transparent 30%), linear-gradient(135deg, #0f172a 0%, #164e63 52%, #0f766e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.76)), radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.26), transparent 30%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 76px 0 56px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(236, 254, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags a,
.hero-tags span,
.tag-row span,
.chip {
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  padding: 8px 14px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.08);
}

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

.btn,
.more-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
}

.btn {
  padding: 13px 24px;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.3);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #cffafe;
  background: rgba(255, 255, 255, 0.08);
}

.hero-cover {
  position: relative;
  overflow: hidden;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
  transform: rotate(1deg);
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.48));
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  background: #67e8f9;
}

.hero-search-card {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px);
  padding: 26px;
}

.hero-search-card span {
  color: #a5f3fc;
  font-weight: 700;
}

.hero-search-card h2 {
  margin: 12px 0 20px;
  font-size: 26px;
}

.hero-category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.hero-category-links a {
  border-radius: 16px;
  padding: 13px 14px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.section {
  padding: 76px 0;
}

.soft-section {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.7), rgba(255, 255, 255, 0.82));
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
}

.more-link,
.text-link {
  color: var(--cyan-dark);
}

.more-link.light,
.section-head.light,
.section-head.light .section-kicker {
  color: #ecfeff;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.poster img {
  transition: transform 0.35s ease;
}

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.72));
}

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(8, 145, 178, 0.92);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.42);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.card-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0e7490;
  font-size: 12px;
  background: #ecfeff;
}

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

.category-tile,
.overview-card,
.content-card,
.side-card {
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  height: 92px;
  margin-bottom: 14px;
}

.tile-thumbs img {
  border-radius: 12px;
}

.category-tile strong,
.overview-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 19px;
}

.category-tile p,
.overview-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.rank-section,
.rank-hero {
  color: #fff;
  background: radial-gradient(circle at 15% 30%, rgba(6, 182, 212, 0.24), transparent 28%), linear-gradient(135deg, #0f172a, #164e63 58%, #115e59);
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: auto 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.soft-section .compact-card,
.side-card .compact-card {
  color: #0f172a;
  border-color: rgba(14, 116, 144, 0.12);
  background: #fff;
}

.compact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.17);
}

.compact-card img {
  height: 88px;
  border-radius: 14px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card em {
  margin-top: 5px;
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.rank-no {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 800;
}

.page-hero {
  color: #fff;
  padding: 78px 0;
  background: radial-gradient(circle at 80% 10%, rgba(45, 212, 191, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #155e75 55%, #0f766e);
}

.slim-hero,
.category-hero {
  min-height: 300px;
}

.page-hero h1 {
  margin: 12px 0;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  color: #cffafe;
  line-height: 1.9;
  font-size: 18px;
}

.local-tools {
  width: min(760px, 100%);
  margin-top: 24px;
}

.chips {
  margin-top: 14px;
}

.chip {
  cursor: pointer;
}

.chip.active {
  color: #0f172a;
  background: #67e8f9;
}

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

.overview-card {
  padding: 18px;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  height: 210px;
  margin-bottom: 16px;
}

.overview-cover img {
  border-radius: 14px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.overview-links a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
}

.detail-hero {
  color: #fff;
  padding: 42px 0 64px;
  background: radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.3), transparent 28%), linear-gradient(135deg, #020617, #0f172a 42%, #164e63);
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: #000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.54));
  cursor: pointer;
}

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

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.42);
  font-size: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #a5f3fc;
  font-size: 14px;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 9px;
  color: rgba(255, 255, 255, 0.35);
}

.detail-info h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  color: #dffafe;
  line-height: 1.9;
  font-size: 18px;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.1);
}

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

.content-card,
.side-card {
  padding: 28px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
}

.content-card p {
  margin: 0 0 26px;
  color: #475569;
  line-height: 2;
  font-size: 16px;
}

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

.related-grid .movie-card.compact .poster {
  aspect-ratio: 16 / 10;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  margin: 8px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

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

@media (max-width: 1100px) {
  .hero-inner,
  .detail-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .hero-search-card {
    align-self: stretch;
  }

  .hero-slide {
    grid-template-columns: 1fr 280px;
  }

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

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

@media (max-width: 820px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 6px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-search {
    order: 4;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 44px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .hero-cover {
    height: 360px;
  }

  .hero-dots {
    bottom: 10px;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .rank-list,
  .rank-list.large,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 52px 0;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

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

  .hero-cover {
    height: 300px;
  }

  .movie-grid,
  .featured-grid,
  .catalog-grid,
  .rank-list,
  .rank-list.large,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: auto 62px minmax(0, 1fr);
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
  }
}
