* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.45);
  font-size: 14px;
}

.brand-text {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand.compact .brand-mark {
  width: 28px;
  height: 28px;
}

.brand.compact .brand-text {
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
}

.search-form,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.mobile-search input,
.large-search input {
  width: 230px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: none;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  padding: 10px 16px;
}

.search-form input:focus,
.mobile-search input:focus,
.large-search input:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.search-form button,
.mobile-search button,
.large-search button,
.primary-button,
.ghost-button,
.section-more {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.search-form button,
.mobile-search button,
.large-search button,
.primary-button {
  color: #ffffff;
  background: #06b6d4;
  padding: 10px 18px;
}

.search-form button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-button:hover {
  background: #0891b2;
  transform: translateY(-1px);
}

.ghost-button,
.section-more {
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.52);
  padding: 10px 18px;
}

.ghost-button:hover,
.section-more:hover {
  border-color: rgba(34, 211, 238, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 45%, rgba(8, 145, 178, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.45) 48%, rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 42%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 72px;
  width: min(720px, calc(100% - 64px));
}

.eyebrow {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h2,
.page-hero h1,
.home-intro h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero h2 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.hero-desc {
  width: min(680px, 100%);
  margin: 20px 0 0;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-meta,
.movie-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta {
  margin: 20px 0 26px;
}

.hero-meta span,
.movie-meta span,
.tag-row span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  padding: 6px 10px;
  font-size: 13px;
}

.hero-meta span:last-child {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(6, 182, 212, 0.75);
}

.hero-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 40px;
  line-height: 44px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: #06b6d4;
}

.home-intro,
.content-section,
.page-hero,
.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 54px 0 10px;
}

.home-intro h1 {
  max-width: 820px;
  font-size: clamp(28px, 5vw, 52px);
}

.home-intro p,
.page-hero p,
.section-heading p,
.detail-info p,
.rank-info p,
.card-body p,
.category-card p,
.footer-brand p {
  color: #94a3b8;
  line-height: 1.75;
}

.home-intro p {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 17px;
}

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

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

.section-heading h2,
.footer-block h2,
.side-panel h2,
.detail-info h2 {
  margin: 0;
  color: #ffffff;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 24px 70px rgba(6, 182, 212, 0.14);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img,
.rank-poster img,
.side-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.88));
  opacity: 0.72;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(0, 0, 0, 0.68);
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.category-samples a:hover,
.linked-tags a:hover {
  color: #67e8f9;
}

.card-body .movie-meta,
.detail-info .movie-meta {
  margin: 0 0 10px;
}

.card-body p {
  margin: 12px 0 0;
  font-size: 14px;
}

.compact-card .card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card a {
  display: block;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.24), transparent 34%),
    rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card a:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-5px);
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: #06b6d4;
  font-weight: 800;
}

.category-card h2 {
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 24px;
}

.category-card p {
  min-height: 76px;
  margin: 0 0 18px;
}

.category-samples {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.page-hero {
  padding: 130px 0 28px;
}

.compact-page {
  min-height: 300px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 17px;
}

.large-search {
  align-self: end;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.large-search input {
  width: min(420px, 56vw);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 88px 1fr 72px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-index {
  color: #67e8f9;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.rank-info h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 20px;
}

.rank-info p {
  margin: 0 0 10px;
}

.rank-score {
  color: #fef3c7;
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 100px 0 30px;
}

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

.breadcrumb a:hover {
  color: #67e8f9;
}

.player-card,
.detail-info,
.side-panel,
.side-poster {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.24s ease;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.76));
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-start {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 0 36px rgba(6, 182, 212, 0.55);
  font-size: 34px;
  cursor: pointer;
}

.player-start:hover {
  background: #0891b2;
}

.detail-info {
  margin-top: 22px;
  padding: 28px;
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.detail-info h2 {
  margin-top: 30px;
  font-size: 24px;
}

.detail-info p {
  margin: 12px 0 0;
  font-size: 16px;
}

.lead-text {
  color: #e2e8f0 !important;
  font-size: 18px !important;
}

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

.linked-tags {
  margin: 14px 0 18px;
}

.side-poster {
  overflow: hidden;
  padding: 14px;
}

.side-poster img {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #0f172a;
}

.primary-button.wide {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

.side-panel {
  margin-top: 18px;
  padding: 22px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

.side-panel dt {
  color: #94a3b8;
}

.side-panel dd {
  margin: 0;
  color: #e2e8f0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
}

.pagination a {
  min-width: 38px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cbd5e1;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.86);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-brand p {
  margin: 16px 0 0;
}

.footer-block h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

@media (max-width: 1060px) {
  .desktop-nav,
  .search-form {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
  }

  .side-panel {
    margin-top: 0;
  }
}

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

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

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

  .hero-content {
    left: 18px;
    bottom: 78px;
    width: calc(100% - 36px);
  }

  .hero-arrow {
    display: none;
  }

  .home-intro,
  .section-heading,
  .compact-page {
    display: block;
  }

  .intro-actions,
  .section-more,
  .large-search {
    margin-top: 18px;
  }

  .large-search {
    border-radius: 24px;
    display: grid;
  }

  .large-search input {
    width: 100%;
  }

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

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

  .rank-score {
    display: none;
  }

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

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

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

  .hero h2 {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 16px;
  }

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