
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --teal: #0d9488;
  --blue: #2563eb;
  --dark: #07111f;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 148, 136, 0.10), transparent 32rem),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 32rem),
    var(--bg);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-header__inner {
  max-width: 1200px;
  height: 76px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-logo__mark,
.footer-logo span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2dd4bf, #2563eb);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.25);
}

.site-logo__text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo__text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #ecfeff;
  color: var(--teal);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: 680px;
  padding: 140px 20px 130px;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #14b8a6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 900;
}

.hero-slide h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero-slide h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 46px);
}

.hero-slide p {
  max-width: 740px;
  margin: 0 0 24px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #1e3a8a;
  background: #ffffff;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

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

.search-panel,
.section-block,
.inner-hero,
.watch-section,
.detail-text {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.search-panel {
  margin-top: -46px;
  position: relative;
  z-index: 5;
  padding-top: 26px;
  padding-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.inner-hero h1,
.ranking-card h2,
.detail-info h1,
.watch-copy h2,
.detail-text h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.search-panel h2,
.section-heading h2,
.ranking-card h2,
.watch-copy h2,
.detail-text h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.search-panel p,
.inner-hero p,
.watch-copy p,
.detail-text p,
.site-footer p {
  color: var(--muted);
  line-height: 1.85;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
  color: var(--text);
}

.search-box button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  font-weight: 900;
}

.search-box--large {
  max-width: 760px;
  margin: 26px auto 0;
}

.section-block {
  padding-top: 70px;
  padding-bottom: 20px;
}

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

.section-heading a {
  color: var(--teal);
  font-weight: 900;
}

.section-heading--plain {
  display: block;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pills--center {
  justify-content: center;
  margin-top: 28px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  border: 1px solid #dbeafe;
  font-weight: 800;
}

.category-pill:hover {
  color: var(--teal);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

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

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

.movie-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 48%);
}

.movie-card__score,
.movie-card__play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.movie-card__score {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #f97316;
  background: rgba(255, 255, 255, 0.94);
}

.movie-card__play {
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(20, 184, 166, 0.92);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

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

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

.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.tag-row a:hover {
  color: var(--teal);
  background: #ecfeff;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.14));
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile span {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

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

.ranking-card,
.table-card {
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.ranking-card {
  position: sticky;
  top: 98px;
  padding: 22px;
}

.ranking-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item a {
  display: grid;
  grid-template-columns: 36px 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.rank-item__num {
  color: var(--teal);
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-item__text strong,
.rank-item__text small {
  display: block;
}

.rank-item__text strong {
  margin-bottom: 5px;
}

.rank-item__text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.rank-item__score {
  color: #f97316;
  font-weight: 900;
}

.inner-hero {
  padding-top: 86px;
  padding-bottom: 44px;
  text-align: center;
}

.inner-hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  background: linear-gradient(90deg, #0f766e, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inner-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 18px;
}

.table-card {
  overflow: auto;
  padding: 8px;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
}

.ranking-table th {
  color: #0f766e;
  background: #ecfeff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ranking-table a {
  color: #0f172a;
  font-weight: 900;
}

.ranking-table a:hover {
  color: var(--teal);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.poster-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  background: #0f172a;
}

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

.detail-info h1 {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 850px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.85;
}

.watch-section {
  padding-top: 56px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.52));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.38);
  font-size: 32px;
  padding-left: 5px;
}

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

.watch-copy {
  padding-top: 22px;
}

.watch-copy p {
  margin-top: 8px;
}

.detail-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 56px;
}

.detail-text article {
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.detail-text p {
  margin-bottom: 0;
  color: #334155;
  font-size: 16px;
}

.search-results-block.is-empty #search-results::before {
  content: "输入关键词后即可查看匹配影片";
  display: block;
  color: var(--muted);
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.site-footer {
  margin-top: 80px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 20px 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a,
.site-footer p,
.site-footer__bottom {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #5eead4;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

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

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

  .section-split {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    position: static;
  }
}

@media (max-width: 840px) {
  .site-header__inner {
    height: 68px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-carousel,
  .hero-slide {
    min-height: 620px;
  }

  .hero-slide {
    padding-top: 105px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .category-pills {
    margin-top: 16px;
  }

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

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

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

  .poster-card {
    max-width: 280px;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-logo__text strong {
    font-size: 20px;
  }

  .site-logo__text small {
    display: none;
  }

  .hero-carousel,
  .hero-slide {
    min-height: 600px;
  }

  .hero-actions,
  .search-box {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .search-box button {
    width: 100%;
  }

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

  .category-tile {
    min-height: 190px;
  }

  .rank-item a {
    grid-template-columns: 30px 52px 1fr;
  }

  .rank-item__score {
    display: none;
  }

  .detail-hero__content {
    padding-top: 28px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
