* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #00A3AF, #33B8C2);
  box-shadow: 0 12px 24px rgba(0, 163, 175, 0.28);
}

.brand-text {
  font-size: 20px;
  color: transparent;
  background: linear-gradient(90deg, #00A3AF, #008C97);
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #00A3AF;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eef2f7;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #1f2937;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.detail-category,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
  background: #00A3AF;
  box-shadow: 0 10px 24px rgba(0, 163, 175, 0.28);
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.hero-feature-title {
  margin: -4px 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #d1f7fb;
}

.hero p {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

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

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

.primary-btn {
  color: #ffffff;
  background: #00A3AF;
  box-shadow: 0 16px 34px rgba(0, 163, 175, 0.34);
}

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

.primary-btn:hover {
  background: #008C97;
  box-shadow: 0 22px 42px rgba(0, 163, 175, 0.42);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.content-section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-heading p {
  margin: 5px 0 0;
  color: #667085;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #00A3AF, #33B8C2);
  box-shadow: 0 10px 22px rgba(0, 163, 175, 0.25);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  transform: translateZ(0);
}

.category-cover {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.35s ease;
}

.category-card:hover .category-cover {
  transform: scale(1.06);
}

.category-copy {
  position: relative;
  z-index: 2;
  display: block;
  padding: 24px;
}

.category-copy strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.category-copy em {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}

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

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.small-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.all-grid {
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #ffffff;
  background: #00A3AF;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge,
.card-year {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.card-badge {
  left: 10px;
}

.card-year {
  right: 10px;
}

.card-content {
  display: block;
  padding: 14px;
}

.card-content strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  font-size: 16px;
  line-height: 1.4;
  color: #111827;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-content strong {
  color: #00A3AF;
}

.card-content em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 42px;
  margin: 8px 0 12px;
  font-style: normal;
  font-size: 13px;
  color: #667085;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card .card-content strong {
  min-height: 42px;
  font-size: 15px;
}

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

.rank-panel,
.side-card,
.detail-article,
.category-section,
.search-panel,
.page-hero,
.detail-info-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.rank-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.compact-heading {
  margin-bottom: 16px;
}

.compact-heading h2 {
  font-size: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #e6f7f8;
  transform: translateX(2px);
}

.rank-index {
  font-weight: 900;
  color: #00A3AF;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy strong {
  color: #111827;
}

.rank-copy em {
  font-style: normal;
  font-size: 13px;
  color: #667085;
}

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

.text-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: #00A3AF;
}

.highlight-block {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px;
  border-radius: 28px;
  background: linear-gradient(135deg, #E6F7F8, #ffffff);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-panel label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #374151;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7dde8;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #00A3AF;
  box-shadow: 0 0 0 4px rgba(0, 163, 175, 0.12);
}

.empty-state {
  margin: 26px 0 0;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  color: #667085;
  background: #ffffff;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: #cbd5e1;
}

.page-main {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #667085;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #00A3AF;
}

.compact-page-hero {
  margin-bottom: 34px;
  padding: 36px;
  background: linear-gradient(135deg, #ffffff, #E6F7F8);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: #111827;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #667085;
  font-size: 18px;
}

.category-section {
  margin-bottom: 28px;
  padding: 26px;
}

.category-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-section h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.category-section p {
  margin: 0;
  color: #667085;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr) 64px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.ranking-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #00A3AF, #33B8C2);
}

.ranking-card img {
  width: 150px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  background: #111827;
}

.ranking-main {
  min-width: 0;
}

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

.ranking-main strong {
  font-size: 18px;
  color: #111827;
}

.ranking-main em {
  overflow: hidden;
  margin: 4px 0;
  font-style: normal;
  color: #667085;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main span {
  color: #00A3AF;
  font-size: 13px;
  font-weight: 800;
}

.ranking-rating {
  font-size: 22px;
  font-weight: 900;
  color: #f59e0b;
  text-align: center;
}

.detail-main {
  padding-top: 24px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.5));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  background: #00A3AF;
  box-shadow: 0 18px 38px rgba(0, 163, 175, 0.34);
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  display: none;
}

.player-message.is-visible {
  display: block;
}

.detail-info-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.detail-info-card img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
  background: #111827;
}

.detail-info-card h1 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  color: #111827;
}

.detail-info-card p {
  margin: 0 0 16px;
  color: #667085;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #008C97;
  background: #E6F7F8;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 28px;
}

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

.detail-article h2,
.side-card h2,
.related-section h2 {
  margin-top: 0;
}

.detail-article p {
  color: #374151;
  font-size: 17px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

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

.info-list dt {
  color: #667085;
}

.info-list dd {
  margin: 0;
  font-weight: 800;
  color: #111827;
  text-align: right;
}

.related-section {
  padding-bottom: 10px;
}

@media (max-width: 980px) {
  .split-section,
  .detail-hero,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1220px);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #E6F7F8;
  }

  .hero {
    min-height: 540px;
    height: 78vh;
  }

  .hero-content {
    padding: 70px 0 80px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .content-section {
    padding: 38px 0;
  }

  .highlight-block {
    padding: 28px 18px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .category-section-head {
    flex-direction: column;
  }

  .ranking-card {
    grid-template-columns: 42px 92px minmax(0, 1fr);
  }

  .ranking-card img {
    width: 92px;
    height: 58px;
  }

  .ranking-rating {
    grid-column: 3;
    text-align: left;
    font-size: 18px;
  }

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

  .detail-info-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
