* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --amber: #f59e0b;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --radius: 26px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.15), transparent 34rem),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 34rem),
    var(--bg);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 15px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 25px rgba(13, 148, 136, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #334155;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-link,
.primary-btn,
.ghost-btn,
.hero-search button,
.inline-search button,
.search-panel button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-link,
.primary-btn,
.hero-search button,
.inline-search button,
.search-panel button {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 25px rgba(13, 148, 136, 0.22);
}

.quick-link {
  padding: 10px 18px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn {
  color: var(--teal);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.quick-link:hover,
.primary-btn:hover,
.ghost-btn:hover,
.hero-search button:hover,
.inline-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(13, 148, 136, 0.27);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ecfeff;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--teal);
}

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

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

.mobile-nav a {
  display: inline-flex;
  margin: 10px 16px 0 0;
  font-weight: 800;
}

.mobile-cats {
  margin-top: 10px;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 48px 0 70px;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.65;
}

.orb-one {
  width: 360px;
  height: 360px;
  left: -130px;
  top: 80px;
  background: rgba(20, 184, 166, 0.18);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -160px;
  top: 0;
  background: rgba(6, 182, 212, 0.16);
}

.hero-shell {
  position: relative;
  min-height: 560px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #083344, #0f766e 46%, #164e63);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 380px;
  align-items: center;
  gap: 36px;
  padding: 72px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 51, 68, 0.96), rgba(8, 51, 68, 0.74), rgba(8, 51, 68, 0.35)),
    radial-gradient(circle at center, transparent, rgba(8, 51, 68, 0.88));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.hero .eyebrow {
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  color: white;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.text-link {
  color: #a7f3d0;
  font-weight: 900;
}

.hero-poster {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.26);
  transform: rotate(2deg);
}

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

.hero-bottom {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 32px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr auto;
  align-items: center;
  gap: 20px;
}

.hero-search,
.inline-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hero-search input,
.inline-search input,
.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
}

.hero-search button,
.inline-search button,
.search-panel button {
  padding: 12px 18px;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cats a {
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: white;
}

.section {
  padding: 62px 0;
}

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

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

.section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head > a,
.player-head > a {
  color: var(--teal);
  font-weight: 900;
}

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

.category-card,
.category-overview-card {
  display: block;
  min-height: 172px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 254, 255, 0.7));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span,
.category-title {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-preview-links a {
  color: var(--teal);
  background: #ecfeff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.32), rgba(8, 145, 178, 0.22)),
    #e2e8f0;
}

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

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

.year-badge,
.rank-mark,
.play-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.58);
}

.rank-mark {
  top: 12px;
  left: 12px;
  min-width: 32px;
  text-align: center;
  padding: 6px 8px;
  background: linear-gradient(135deg, var(--amber), #ef4444);
}

.rank-mark.wide {
  min-width: 44px;
}

.play-mark {
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(13, 148, 136, 0.86);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

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

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: #0f766e;
  background: #ecfeff;
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.16);
}

.ranking-section {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(8, 51, 68, 0.96));
}

.ranking-section .section-head h2,
.ranking-section .section-head p,
.ranking-section .section-kicker,
.ranking-section .section-head a {
  color: white;
}

.ranking-section .section-kicker {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.rank-row span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.rank-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  display: block;
  margin-top: 3px;
  color: rgba(236, 254, 255, 0.75);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding-bottom: 30px;
}

.page-hero {
  margin-top: 38px;
  padding: 58px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 254, 255, 0.76)),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.18), transparent 26rem);
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--line);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.inline-search,
.search-panel {
  max-width: 650px;
  margin-top: 28px;
  border-color: var(--line);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-row button {
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--teal);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.filter-row button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 36px;
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(236, 254, 255, 0.76)),
    radial-gradient(circle at top right, rgba(13, 148, 136, 0.18), transparent 30rem);
  box-shadow: var(--soft-shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.32), rgba(8, 145, 178, 0.18));
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: #334155;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.player-block {
  margin-top: 38px;
}

.player-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.player-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.05em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.44));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 25px 55px rgba(20, 184, 166, 0.3);
  font-size: 30px;
}

.player-overlay strong {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 16px;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-copy article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.detail-copy h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.detail-copy p {
  margin: 0;
  color: #334155;
  line-height: 2;
}

.site-footer {
  margin-top: 30px;
  padding: 48px 0 26px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 36px;
  align-items: start;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--teal);
  background: #ecfeff;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 52px;
  }

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

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

@media (max-width: 780px) {
  .desktop-nav,
  .quick-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: auto;
    padding: 24px 0 36px;
  }

  .hero-shell {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 34px 24px 210px;
  }

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

  .hero p {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-poster {
    width: 210px;
    justify-self: center;
    transform: none;
  }

  .hero-bottom {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

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

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

  .category-grid,
  .category-overview-grid,
  .detail-copy {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 28px;
  }

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

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

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

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

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

  .movie-grid,
  .compact-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-search,
  .inline-search,
  .search-panel {
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input,
  .inline-search input,
  .search-panel input {
    width: 100%;
    min-height: 42px;
  }

  .hero-search button,
  .inline-search button,
  .search-panel button {
    width: 100%;
  }
}
