:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --slate: #0f172a;
  --dark: #111827;
  --muted: #64748b;
  --soft: #f0fdfa;
  --line: #e5e7eb;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #f8fafc 0%, #f3f4f6 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.28);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

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

.nav-links a,
.nav-toggle {
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: transparent;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 2.5s ease;
  transform: scale(1.04);
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 82px 24px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 44px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.28);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.pill-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.pill-links a,
.site-search button,
.search-page-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.pill-links a:hover,
.site-search button:hover,
.search-page-form button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.site-search button,
.search-page-form button {
  color: #fff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.3);
}

.btn-ghost,
.pill-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.hero-poster {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.58);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.quick-search-panel,
.content-section,
.page-main,
.breadcrumb {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.quick-search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 10;
  border-radius: 26px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.quick-search-panel h2,
.section-heading h2,
.side-panel h2,
.article-section h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quick-search-panel p,
.section-heading p,
.side-panel p,
.category-card p,
.category-overview-card p,
.article-section p {
  color: var(--muted);
  line-height: 1.75;
}

.site-search,
.search-page-form,
.filter-bar {
  display: flex;
  gap: 12px;
}

.site-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #fff;
  color: #111827;
}

.site-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.content-section {
  padding: 58px 24px 0;
}

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

.section-heading a {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--teal);
  background: #ccfbf1;
  font-weight: 750;
}

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

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

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

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

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

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

.card-year {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 17px;
}

.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.card-meta span,
.detail-meta span,
.detail-meta a {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.movie-card h3,
.rank-item h3 {
  margin: 11px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

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

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

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

.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0f766e;
  background: linear-gradient(90deg, #f0fdfa, #ecfeff);
  font-size: 12px;
  font-weight: 720;
}

.soft-panel {
  margin-top: 56px;
  padding: 40px 24px;
  border-radius: 34px;
  background: linear-gradient(90deg, #f0fdfa, #ecfeff);
}

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

.category-card,
.category-overview-card {
  border: 1px solid rgba(20, 184, 166, 0.12);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  background: #fff;
  transform: translateY(-5px);
}

.category-card span,
.category-title {
  display: block;
  color: #0f766e;
  font-size: 20px;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 28px;
  align-items: start;
}

.side-panel,
.player-card,
.article-section,
.search-page-panel {
  border-radius: 28px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.side-panel .pill-links a,
.page-hero .pill-links a {
  color: #0f766e;
  background: #ccfbf1;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 13px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 12px;
  font-weight: 850;
}

.page-main {
  width: 100%;
  padding-bottom: 70px;
}

.page-hero {
  margin: 30px 24px 0;
  border-radius: 34px;
  padding: 56px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #0f766e, #0891b2 54%, #1d4ed8);
  box-shadow: var(--shadow);
}

.slim-hero,
.rank-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
}

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

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

.filter-bar {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar select {
  max-width: 190px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb {
  padding: 22px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-main .content-section {
  padding-top: 34px;
}

.player-card {
  margin: 24px 24px 0;
  padding: 0;
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

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

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.42);
  font-size: 30px;
}

.detail-info {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

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

.detail-info h1 {
  margin: 16px 0 12px;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.one-line {
  margin: 0 0 18px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.detail-tags {
  margin-top: 18px;
}

.article-section h2 {
  margin: 0 0 12px;
}

.article-section h2:not(:first-child) {
  margin-top: 26px;
}

.article-section p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

.search-page-form {
  margin-bottom: 26px;
}

.search-results:empty::before {
  content: "输入关键词后显示匹配影片";
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  background: #f8fafc;
  text-align: center;
}

.site-footer {
  margin-top: 76px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
}

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

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #a7f3d0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
}

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

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

  .hero-content,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 310px;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }

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

  .nav-links a {
    display: block;
  }

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

  .hero-content {
    padding: 62px 20px 76px;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

  .quick-search-panel {
    margin: 20px 16px 0;
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 42px 16px 0;
  }

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

  .page-hero {
    margin: 20px 16px 0;
    padding: 34px 24px;
  }

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

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

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

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

  .site-search,
  .search-page-form,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

  .rank-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .soft-panel {
    border-radius: 24px;
    padding: 24px 16px;
  }
}
