:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --blue-soft: #eff6ff;
  --cyan-soft: #ecfeff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #dbeafe;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--cyan-soft) 0%, #ffffff 42%, var(--blue-soft) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(236, 254, 255, 0.95), rgba(239, 246, 255, 0.95), rgba(240, 253, 250, 0.95));
  border-bottom: 1px solid rgba(14, 165, 233, 0.16);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--cyan-dark), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-search {
  position: relative;
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  color: #94a3b8;
  transform: translateY(-50%);
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(6, 182, 212, 0.22);
  outline: none;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  height: 40px;
  padding: 0 16px 0 40px;
  border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}

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

.mobile-link {
  display: block;
  padding: 12px 6px;
  color: #334155;
  font-weight: 650;
}

.mobile-link.active {
  color: var(--cyan-dark);
}

.mobile-search {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.mobile-search input {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
}

.mobile-search button,
.hero-search button,
.primary-button,
.secondary-button,
.filter-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mobile-search button,
.hero-search button,
.primary-button,
.filter-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 14px 24px rgba(6, 182, 212, 0.22);
}

.mobile-search button {
  padding: 0 18px;
  border-radius: 14px;
}

.page-main {
  min-height: 72vh;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.55) 48%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-text {
  width: min(650px, 100%);
  color: #ffffff;
  animation: fadeUp 0.65s ease both;
}

.hero-eyebrow,
.section-eyebrow,
.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #facc15;
  font-weight: 800;
}

.hero-text h1,
.hero-text h2 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.movie-meta,
.hero-actions,
.hero-tags,
.card-actions,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.primary-button:hover,
.secondary-button:hover,
.filter-button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  color: #0e7490;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.20);
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 56px;
  background: #ffffff;
}

.hero-search {
  position: relative;
  display: flex;
  width: min(620px, 100%);
  margin-top: 26px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search input {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.hero-search button {
  min-width: 110px;
  border-radius: 999px;
}

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

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 38px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  display: inline-block;
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-header p,
.category-intro p,
.search-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-badge,
.poster-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 12px;
}

.poster-score {
  right: 12px;
  color: #fde68a;
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a {
  transition: color 0.2s ease;
}

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

.movie-card p {
  margin: 0 0 13px;
  min-height: 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.movie-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  padding: 22px;
  border-radius: 20px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
}

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

.category-tile span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
}

.category-tile strong {
  display: block;
  margin-top: 48px;
  font-size: 24px;
}

.category-tile em {
  display: block;
  margin-top: 6px;
  color: #e0f2fe;
  font-style: normal;
  line-height: 1.6;
}

.rank-panel {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
  transition: background 0.2s ease;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover {
  background: #f8fafc;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #0e7490;
  font-weight: 900;
  background: #cffafe;
}

.rank-row:nth-child(1) .rank-num,
.rank-row:nth-child(2) .rank-num,
.rank-row:nth-child(3) .rank-num {
  color: #78350f;
  background: #fde68a;
}

.rank-row img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-main strong,
.rank-main em {
  display: block;
}

.rank-main strong {
  margin-bottom: 5px;
  color: #1e293b;
}

.rank-main em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  color: #ca8a04;
  font-weight: 900;
}

.cta-band {
  overflow: hidden;
  border-radius: 28px;
  padding: 42px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 24px 60px rgba(6, 182, 212, 0.25);
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-band p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ecfeff;
  line-height: 1.8;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
}

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

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid rgba(6, 182, 212, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.filter-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 12px;
}

.filter-input,
.filter-select {
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
}

.filter-button {
  min-width: 98px;
  border-radius: 14px;
}

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

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

.breadcrumb a {
  color: #0e7490;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.detail-card,
.detail-side,
.content-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-card {
  overflow: hidden;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.55);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 20px 38px rgba(6, 182, 212, 0.32);
  cursor: pointer;
}

.detail-body,
.content-card {
  padding: 26px;
}

.detail-body h1 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-body h2,
.content-card h2 {
  margin: 28px 0 12px;
  font-size: 23px;
}

.detail-body p,
.content-card p {
  color: #475569;
  line-height: 1.9;
}

.review-box {
  margin-top: 20px;
  padding: 20px;
  border-left: 5px solid var(--cyan);
  border-radius: 18px;
  color: #334155;
  background: linear-gradient(90deg, #ecfeff, #eff6ff);
  line-height: 1.85;
}

.detail-side {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

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

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  color: #475569;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.info-list b {
  color: #0f172a;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  color: #1e293b;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.related-item:hover strong {
  color: var(--cyan-dark);
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

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

.site-footer {
  margin-top: 62px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-content: start;
}

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

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }

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

  .filter-button {
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero {
    height: 640px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.90));
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-button,
  .secondary-button {
    min-height: 44px;
    padding: 0 18px;
  }

  .section {
    padding: 42px 0;
  }

  .section-header {
    display: block;
  }

  .section-header .text-link {
    margin-top: 12px;
  }

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

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

  .rank-row img {
    width: 72px;
    height: 54px;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

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

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 24px;
  }
}

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

  .hero-search {
    display: block;
    padding: 0;
    background: transparent;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
    margin-top: 10px;
  }

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

  .cta-band {
    padding: 28px;
  }

  .detail-body,
  .content-card {
    padding: 20px;
  }
}
