@import url("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap");

:root {
  --blackboard: #1a2e1a;
  --blackboard-dark: #0f1a0f;
  --blackboard-light: #2d4a2d;
  --chalk-white: #f5f5dc;
  --chalk-yellow: #fffacd;
  --chalk-blue: #add8e6;
  --chalk-green: #90ee90;
  --chalk-pink: #ffb6c1;
  --vintage-gold: #ffd700;
  --vintage-beige: #d4c5aa;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --border-soft: rgba(255, 250, 205, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 250, 205, 0.08), transparent 30rem),
    linear-gradient(145deg, var(--blackboard-dark), var(--blackboard));
  color: var(--chalk-white);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 26, 15, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 2px solid rgba(255, 250, 205, 0.18);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk-white);
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--chalk-yellow);
  color: var(--blackboard);
  box-shadow: 0 0 24px rgba(255, 250, 205, 0.28);
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a,
.footer-links a,
.text-link {
  color: rgba(245, 245, 220, 0.82);
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active,
.footer-links a:hover,
.text-link:hover {
  color: var(--chalk-yellow);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-soft);
  color: var(--chalk-yellow);
  background: rgba(45, 74, 45, 0.88);
  border-radius: 999px;
  padding: 9px 16px;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 250, 205, 0.18);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(255, 250, 205, 0.12), transparent 24rem),
    linear-gradient(135deg, var(--blackboard-light), var(--blackboard-dark));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  filter: saturate(1.08) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 26, 15, 0.96), rgba(15, 26, 15, 0.72), rgba(15, 26, 15, 0.26)),
    linear-gradient(0deg, var(--blackboard), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: end;
  gap: 48px;
  padding: 72px 0 74px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chalk-yellow);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "★";
  color: var(--vintage-gold);
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1,
.section-heading h2 {
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  margin: 0;
  line-height: 0.98;
  color: var(--chalk-white);
}

.hero-copy h1 {
  font-size: clamp(44px, 8vw, 92px);
  text-shadow: 0 5px 32px rgba(0, 0, 0, 0.42);
}

.hero-copy p,
.sub-hero p,
.lead-text {
  color: rgba(245, 245, 220, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin: 24px 0;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.meta-line span {
  border: 1px solid rgba(255, 250, 205, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(45, 74, 45, 0.72);
  color: var(--chalk-yellow);
  font-size: 14px;
  font-weight: 700;
}

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

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

.primary-btn {
  background: var(--chalk-yellow);
  color: var(--blackboard);
  box-shadow: 0 12px 30px rgba(255, 250, 205, 0.18);
}

.ghost-btn {
  border: 1px solid rgba(255, 250, 205, 0.34);
  color: var(--chalk-white);
  background: rgba(26, 46, 26, 0.54);
}

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

.hero-poster {
  position: relative;
  align-self: center;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 250, 205, 0.32);
  background: linear-gradient(145deg, rgba(173, 216, 230, 0.18), rgba(255, 250, 205, 0.08));
  box-shadow: var(--shadow-soft);
  min-height: 450px;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 250, 205, 0.92);
  color: var(--blackboard);
  font-weight: 900;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 245, 220, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: var(--chalk-yellow);
}

.section-block {
  padding: 58px 0;
}

.home-search {
  padding: 48px 0 8px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.centered {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.section-heading p {
  color: rgba(245, 245, 220, 0.74);
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 2px solid rgba(255, 250, 205, 0.2);
  border-radius: 22px;
  background: rgba(45, 74, 45, 0.7);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 220, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: rgba(245, 245, 220, 0.78);
  font-weight: 800;
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 250, 205, 0.28);
  border-radius: 14px;
  background: rgba(15, 26, 15, 0.72);
  color: var(--chalk-white);
  padding: 12px 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--chalk-yellow);
}

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

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

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(45, 74, 45, 0.84);
  border: 2px solid rgba(255, 250, 205, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 250, 205, 0.6);
  box-shadow: var(--shadow-soft);
}

.card-link {
  display: grid;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(173, 216, 230, 0.12), rgba(255, 250, 205, 0.08));
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(15, 26, 15, 0.88), transparent);
}

.rating-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
}

.rating-badge {
  right: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 26, 15, 0.82);
  color: var(--chalk-yellow);
}

.play-badge {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 250, 205, 0.92);
  color: var(--blackboard);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.card-body h3 {
  margin: 0;
  color: var(--chalk-white);
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: rgba(245, 245, 220, 0.72);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line span,
.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.rank-board,
.highlight-panel {
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(45, 74, 45, 0.92), rgba(26, 46, 26, 0.86));
  border: 2px solid rgba(255, 250, 205, 0.2);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.long-rank-list {
  grid-template-columns: 1fr;
}

.rank-item {
  display: grid;
  grid-template-columns: 50px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 26, 15, 0.48);
  border: 1px solid rgba(255, 250, 205, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 250, 205, 0.5);
}

.rank-num {
  color: var(--vintage-gold);
  font-family: "Patrick Hand", cursive;
  font-size: 28px;
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 250, 205, 0.08);
}

.rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: rgba(245, 245, 220, 0.62);
  font-style: normal;
  font-size: 13px;
}

.rank-score {
  color: var(--chalk-yellow);
  font-weight: 900;
}

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

.category-tile,
.category-card-large {
  border-radius: 24px;
  background: rgba(45, 74, 45, 0.82);
  border: 2px solid rgba(255, 250, 205, 0.16);
  padding: 22px;
  min-height: 190px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 250, 205, 0.55);
}

.category-mark,
.category-card-head span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 250, 205, 0.92);
  color: var(--blackboard);
  font-weight: 900;
  margin-bottom: 18px;
}

.category-tile strong,
.category-card-head h2 {
  display: block;
  color: var(--chalk-white);
  font-size: 22px;
  margin: 0 0 10px;
}

.category-tile p,
.category-card-head p {
  margin: 0;
  color: rgba(245, 245, 220, 0.72);
  line-height: 1.7;
}

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

.category-card-large {
  min-height: auto;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--chalk-yellow);
  background: rgba(15, 26, 15, 0.44);
  font-size: 13px;
}

.sub-hero {
  padding: 82px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 250, 205, 0.12), transparent 28rem),
    linear-gradient(135deg, rgba(45, 74, 45, 0.92), rgba(15, 26, 15, 0.96));
  border-bottom: 2px solid rgba(255, 250, 205, 0.16);
}

.sub-hero h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.sub-hero p {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(245, 245, 220, 0.68);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--chalk-yellow);
}

.detail-hero {
  padding: 50px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(173, 216, 230, 0.1), transparent 28rem),
    linear-gradient(135deg, rgba(15, 26, 15, 0.98), rgba(45, 74, 45, 0.84));
  border-bottom: 2px solid rgba(255, 250, 205, 0.14);
}

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

.detail-grid .breadcrumb {
  grid-column: 1 / -1;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid rgba(255, 250, 205, 0.28);
  background: rgba(255, 250, 205, 0.08);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 2 / 3;
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.detail-meta {
  margin: 22px 0;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 250, 205, 0.22);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--blackboard);
  background: linear-gradient(180deg, rgba(15, 26, 15, 0.18), rgba(15, 26, 15, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--chalk-yellow);
  color: var(--blackboard);
  font-size: 28px;
  box-shadow: 0 0 36px rgba(255, 250, 205, 0.35);
}

.player-overlay strong {
  color: var(--chalk-white);
  font-size: 22px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: var(--chalk-yellow);
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 54px 0 0;
}

.content-card {
  border-radius: 24px;
  padding: 24px;
  background: rgba(45, 74, 45, 0.78);
  border: 2px solid rgba(255, 250, 205, 0.16);
}

.content-card h2 {
  margin: 0 0 16px;
  font-family: "Patrick Hand", "Microsoft YaHei", cursive;
  font-size: 32px;
  color: var(--chalk-yellow);
}

.content-card p {
  margin: 0;
  color: rgba(245, 245, 220, 0.82);
  line-height: 1.9;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.info-list dt {
  color: rgba(245, 245, 220, 0.58);
}

.info-list dd {
  margin: 0;
  color: var(--chalk-white);
}

.info-list a {
  color: var(--chalk-yellow);
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0;
  background: rgba(15, 26, 15, 0.94);
  border-top: 2px solid rgba(255, 250, 205, 0.16);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 10px 0 0;
  color: rgba(245, 245, 220, 0.66);
  line-height: 1.7;
  max-width: 680px;
}

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

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .hero-poster {
    display: none;
  }

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

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

  .nav-wrap {
    min-height: 68px;
  }

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

  .site-nav {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 26, 15, 0.98);
    border: 1px solid rgba(255, 250, 205, 0.2);
  }

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

  .site-nav a {
    padding: 11px 12px;
  }

  .hero-slider,
  .hero-inner {
    min-height: 76vh;
  }

  .hero-inner {
    padding: 54px 0 68px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .rank-board,
  .highlight-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .rank-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-score {
    grid-column: 3;
  }

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

  .section-heading.split,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(78vw, 300px);
  }

  .player-shell {
    border-radius: 18px;
  }
}
