* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #0d0f12;
  background: #f8f9fa;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container-custom {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: linear-gradient(90deg, #0073e6, #e67300);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #0073e6;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 115, 230, 0.22);
}

.btn-primary:hover {
  background: #005bb3;
  box-shadow: 0 14px 28px rgba(0, 91, 179, 0.26);
}

.btn-primary:active,
.btn-ghost:active {
  transform: scale(0.96);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(13, 15, 18, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0073e6, #e67300);
  box-shadow: 0 8px 16px rgba(0, 115, 230, 0.22);
  font-size: 0.78rem;
}

.brand-name {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: #495057;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0073e6;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.65rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0073e6, #e67300);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0.75rem;
  background: #f1f3f5;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #343a40;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e9ecef;
  background: #ffffff;
}

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

.mobile-nav-inner {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.75rem;
  padding-bottom: 0.9rem;
}

.mobile-nav .nav-link {
  padding: 0.75rem 0.95rem;
  border-radius: 0.75rem;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.is-active {
  background: #e6f2ff;
}

.main-content {
  padding-top: 4.5rem;
}

.hero-carousel {
  position: relative;
  height: 58vh;
  min-height: 460px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  padding-bottom: 4rem;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-meta,
.meta-row,
.detail-tags,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta {
  margin-bottom: 1rem;
}

.hero-meta a,
.hero-meta span,
.hero-tags span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-meta a {
  background: #e67300;
  color: #ffffff;
}

.hero-meta span,
.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 2rem;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

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

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}

.search-hero-card {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1rem;
  margin-top: -2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.home-search label {
  display: block;
  margin-bottom: 0.45rem;
  color: #495057;
  font-size: 0.9rem;
  font-weight: 800;
}

.home-search div {
  display: flex;
  gap: 0.75rem;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 0 0.95rem;
  color: #212529;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.12);
}

.hero-category-links,
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-category-links a,
.category-cloud a {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: #f1f3f5;
  color: #343a40;
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-category-links a:hover,
.category-cloud a:hover {
  color: #ffffff;
  background: #0073e6;
  transform: translateY(-1px);
}

.content-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.surface-section {
  background: #ffffff;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-icon {
  color: #e67300;
  font-size: 1.35rem;
}

.section-title {
  margin: 0;
  color: #0d0f12;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.section-more {
  color: #0073e6;
  font-size: 0.95rem;
  font-weight: 800;
}

.large-grid,
.poster-grid,
.category-overview-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  overflow: hidden;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.poster-link,
.large-poster,
.list-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link {
  aspect-ratio: 3 / 4;
}

.large-poster {
  aspect-ratio: 16 / 9;
}

.list-poster {
  width: 8.5rem;
  flex: 0 0 8.5rem;
}

.poster-link img,
.large-poster img,
.list-poster img,
.info-card img,
.category-samples img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-samples a:hover img {
  transform: scale(1.08);
}

.poster-chip,
.poster-meta,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-chip {
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.68);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 115, 230, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 60%);
}

.poster-meta {
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.7rem;
  background: #e67300;
}

.card-body,
.list-body {
  padding: 1rem;
}

.card-body h3,
.list-body h3 {
  margin: 0 0 0.55rem;
  color: #0d0f12;
  font-size: 1rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.list-body h3 a:hover {
  color: #0073e6;
}

.card-body p,
.list-body p,
.category-panel p,
.category-overview-card p,
.archive-hero p,
.detail-header p,
.detail-block p,
.site-footer p {
  color: #5c6670;
}

.card-body p,
.list-body p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 0.8rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
}

.meta-row {
  color: #6c757d;
  font-size: 0.84rem;
}

.meta-row span:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: #adb5bd;
}

.tag-row span,
.detail-tags a {
  background: #fff3e6;
  color: #9a4d00;
}

.list-card {
  display: flex;
}

.list-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rank-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.55rem;
  background: linear-gradient(135deg, #0073e6, #e67300);
}

.list-stack,
.rank-list {
  display: grid;
  gap: 1rem;
}

.compact-rank {
  max-height: 980px;
  overflow: auto;
  padding-right: 0.25rem;
}

.split-section {
  display: grid;
  gap: 1.5rem;
}

.category-panel,
.archive-hero,
.filter-panel,
.detail-block,
.detail-header,
.info-card,
.category-overview-card {
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.category-panel {
  padding: 1.5rem;
  background: linear-gradient(135deg, #e6f2ff, #fff3e6);
}

.category-panel h2 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.archive-hero {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff, #e6f2ff 52%, #fff3e6);
}

.archive-hero h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.eyebrow {
  color: #0073e6;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #6c757d;
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: #0073e6;
}

.breadcrumb-dark {
  color: rgba(255, 255, 255, 0.72);
}

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

.filter-panel {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
}

.filter-panel label span {
  display: block;
  margin-bottom: 0.35rem;
  color: #495057;
  font-size: 0.82rem;
  font-weight: 900;
}

.movie-card.is-hidden {
  display: none;
}

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

.category-overview-card {
  padding: 1.25rem;
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.category-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.category-card-head h2 a:hover {
  color: #0073e6;
}

.category-samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.category-samples a {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.7rem;
  background: #111827;
}

.category-samples span {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.player-top {
  background: #111827;
  padding: 1.2rem 0;
}

.detail-layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: #000000;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.22);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0073e6, #e67300);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  font-size: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.detail-header,
.detail-block {
  margin-top: 1.25rem;
  padding: 1.35rem;
}

.detail-header h1 {
  margin: 0 0 0.8rem;
  color: #0d0f12;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.detail-tags {
  margin-top: 1rem;
}

.detail-tags a:hover {
  color: #ffffff;
  background: #e67300;
}

.detail-block h2 {
  margin: 0 0 0.9rem;
  color: #0d0f12;
  font-size: 1.35rem;
}

.detail-block p {
  margin: 0;
}

.related-grid {
  margin-top: 1rem;
}

.detail-side {
  min-width: 0;
}

.info-card {
  position: sticky;
  top: 5.75rem;
  padding: 1rem;
}

.info-card img {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  background: #111827;
}

.info-card dl {
  margin: 1rem 0 0;
}

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

.info-card dt {
  color: #6c757d;
}

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

.info-card a {
  color: #0073e6;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 3rem;
  color: #ced4da;
  background: #111827;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-size: 1rem;
}

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

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a:hover {
  color: #66b3ff;
}

.footer-brand {
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

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

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

  .filter-search {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero-arrow {
    display: inline-flex;
  }

  .search-hero-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

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

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

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

@media (min-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }

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

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

  .split-section {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  }

  .filter-panel {
    grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(120px, 0.7fr));
  }

  .filter-search {
    grid-column: auto;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

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

@media (min-width: 1280px) {
  .archive-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .hero-carousel {
    height: 68vh;
    min-height: 520px;
  }

  .home-search div {
    flex-direction: column;
  }

  .list-poster {
    width: 7.25rem;
    flex-basis: 7.25rem;
  }

  .card-body,
  .list-body {
    padding: 0.8rem;
  }

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