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

:root {
  --blackboard-dark: #0f1a0f;
  --blackboard: #1a2e1a;
  --blackboard-light: #2d4a2d;
  --chalk-white: #f5f5dc;
  --chalk-yellow: #fffacd;
  --chalk-pink: #ffb6c1;
  --chalk-blue: #add8e6;
  --chalk-green: #90ee90;
  --vintage-gold: #ffd700;
  --line: rgba(255, 250, 205, 0.24);
  --line-soft: rgba(245, 245, 220, 0.14);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--chalk-white);
  background:
    radial-gradient(circle at top left, rgba(255, 250, 205, 0.10), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(173, 216, 230, 0.10), transparent 28rem),
    linear-gradient(140deg, var(--blackboard-dark), var(--blackboard) 45%, #122612);
  font-family: "Patrick Hand", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 245, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 220, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.9;
  z-index: -1;
}

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

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

p {
  margin: 0;
}

.main-wrap {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 26, 15, 0.88);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--chalk-yellow);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.logo-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  color: rgba(245, 245, 220, 0.84);
  border-radius: 999px;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--chalk-white);
  background: rgba(45, 74, 45, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 11px 14px;
  font: inherit;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--chalk-yellow);
  box-shadow: 0 0 0 4px rgba(255, 250, 205, 0.08);
}

.header-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.text-btn,
.hero-arrow,
.player-cover,
.menu-button {
  cursor: pointer;
  font: inherit;
}

.header-search button,
.mobile-search button,
.primary-btn {
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(255, 250, 205, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(255, 250, 205, 0.18);
}

.secondary-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chalk-yellow);
  background: rgba(255, 250, 205, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 17px;
  transition: 0.22s ease;
}

.secondary-btn:hover,
.text-btn:hover {
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: rgba(255, 250, 205, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--chalk-yellow);
  border-radius: 9px;
}

.mobile-nav {
  display: none;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  background: rgba(45, 74, 45, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(45, 74, 45, 0.92), rgba(15, 26, 15, 0.96));
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.7;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -170px;
  top: -190px;
  background: rgba(255, 250, 205, 0.12);
}

.hero::after {
  width: 360px;
  height: 360px;
  right: -140px;
  bottom: -170px;
  background: rgba(255, 182, 193, 0.10);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 34px;
  padding: 54px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: blur(4px) saturate(1.1);
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--chalk-blue);
  background: rgba(173, 216, 230, 0.10);
  border: 1px solid rgba(173, 216, 230, 0.30);
  border-radius: 999px;
  font-size: 16px;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--chalk-yellow);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.20);
}

.hero h1,
.hero h2 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
}

.hero p {
  max-width: 720px;
  margin-top: 20px;
  color: rgba(245, 245, 220, 0.88);
  font-size: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.meta-pill,
.tag-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--chalk-yellow);
  background: rgba(15, 26, 15, 0.52);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 15px;
}

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

.hero-media {
  display: grid;
  justify-items: center;
}

.hero-cover {
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  border: 2px solid rgba(255, 250, 205, 0.48);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-controls {
  position: absolute;
  left: 54px;
  right: 54px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: var(--chalk-yellow);
  background: rgba(15, 26, 15, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.22s ease;
}

.hero-arrow:hover {
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
}

.hero-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}

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

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

.quick-search-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 28px 0 6px;
  padding: 12px;
  background: rgba(15, 26, 15, 0.42);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.quick-search-block input {
  width: 100%;
  color: var(--chalk-white);
  background: transparent;
  border: 0;
  outline: none;
  padding: 10px 12px;
  font: inherit;
  font-size: 18px;
}

.quick-search-block button {
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
}

.section {
  margin-top: 52px;
}

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

.section-kicker {
  color: var(--chalk-pink);
  font-size: 18px;
}

.section h2,
.section-title {
  margin: 0;
  color: var(--chalk-yellow);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.section-desc,
.page-hero p,
.detail-lead {
  margin-top: 10px;
  color: rgba(245, 245, 220, 0.76);
  font-size: 18px;
}

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

.movie-card {
  overflow: hidden;
  background: rgba(45, 74, 45, 0.78);
  border: 2px solid rgba(255, 250, 205, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 250, 205, 0.58);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(255, 250, 205, 0.06);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(15, 26, 15, 0.74);
}

.card-wide .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 15, 0.88), transparent 62%);
  opacity: 0.88;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--blackboard-dark);
  background: rgba(255, 250, 205, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: 0.24s ease;
}

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

.score-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 14px;
  font-weight: 800;
}

.score-pill {
  right: 12px;
  top: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
}

.movie-card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--chalk-white);
  font-size: 22px;
  line-height: 1.18;
}

.movie-card h3 a:hover {
  color: var(--chalk-yellow);
}

.movie-card p {
  min-height: 54px;
  color: rgba(245, 245, 220, 0.72);
  font-size: 16px;
}

.movie-meta,
.detail-meta,
.breadcrumb,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.movie-meta {
  margin: 13px 0 10px;
  color: rgba(245, 245, 220, 0.70);
  font-size: 15px;
}

.movie-meta span:not(:last-child)::after,
.ranking-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 9px;
  color: rgba(245, 245, 220, 0.38);
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 14px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 250, 205, 0.12), transparent 12rem),
    rgba(45, 74, 45, 0.76);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  transition: 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 250, 205, 0.62);
}

.category-card h2,
.category-card h3 {
  margin: 0;
  color: var(--chalk-yellow);
  font-size: 30px;
}

.category-card p {
  margin-top: 12px;
  color: rgba(245, 245, 220, 0.76);
}

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

.category-samples a {
  color: rgba(245, 245, 220, 0.88);
}

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

.page-hero,
.detail-hero,
.panel {
  background: rgba(45, 74, 45, 0.70);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 42px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 170px 150px 150px;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding: 14px;
  background: rgba(15, 26, 15, 0.38);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filter-title {
  color: var(--chalk-yellow);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: rgba(45, 74, 45, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  transition: 0.22s ease;
}

.rank-item:hover {
  border-color: var(--line);
  transform: translateX(4px);
}

.rank-number {
  color: var(--chalk-yellow);
  font-size: 36px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.rank-title {
  color: var(--chalk-white);
  font-size: 24px;
  font-weight: 800;
}

.rank-title:hover {
  color: var(--chalk-yellow);
}

.ranking-meta {
  margin-top: 8px;
  color: rgba(245, 245, 220, 0.70);
}

.rank-score {
  color: var(--blackboard-dark);
  background: var(--chalk-yellow);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(45, 74, 45, 0.68);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}

.compact-card:hover {
  border-color: var(--line);
}

.compact-card img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  color: var(--chalk-white);
  font-size: 18px;
  line-height: 1.25;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: rgba(245, 245, 220, 0.62);
  font-style: normal;
  font-size: 14px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(245, 245, 220, 0.72);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-title {
  padding: 34px;
  background: rgba(45, 74, 45, 0.62);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
}

.detail-title h1 {
  font-size: clamp(36px, 4.8vw, 62px);
}

.detail-meta {
  margin: 18px 0 16px;
}

.player-box {
  overflow: hidden;
  margin-top: 24px;
  background: #000;
  border: 2px solid var(--line);
  border-radius: 24px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blackboard-dark);
  background: radial-gradient(circle at center, rgba(255, 250, 205, 0.18), rgba(0, 0, 0, 0.72));
  border: 0;
  z-index: 5;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  background: rgba(255, 250, 205, 0.94);
  border-radius: 999px;
  box-shadow: 0 0 0 16px rgba(255, 250, 205, 0.12);
  font-size: 30px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  overflow: hidden;
  background: rgba(45, 74, 45, 0.72);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
}

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

.info-list {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(245, 245, 220, 0.76);
  border-bottom: 1px dashed rgba(245, 245, 220, 0.16);
  padding-bottom: 9px;
}

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

.article-panel {
  margin-top: 28px;
  padding: 30px;
  background: rgba(45, 74, 45, 0.62);
  border: 2px solid var(--line);
  border-radius: var(--radius-xl);
}

.article-panel h2 {
  margin: 0 0 14px;
  color: var(--chalk-yellow);
  font-size: 32px;
}

.article-panel p {
  color: rgba(245, 245, 220, 0.82);
  font-size: 18px;
}

.article-panel p + p {
  margin-top: 14px;
}

.site-footer {
  border-top: 2px solid var(--line);
  background: rgba(15, 26, 15, 0.72);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 245, 220, 0.72);
}

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

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

[data-card].is-hidden {
  display: none;
}

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px 28px 92px;
  }

  .hero-cover {
    width: min(70vw, 280px);
  }

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

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

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

  .filter-title {
    grid-column: 1 / -1;
  }

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

  .detail-side {
    position: static;
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .main-wrap {
    width: min(100% - 22px, var(--max-width));
    padding-top: 20px;
  }

  .header-inner {
    min-height: 66px;
    width: min(100% - 22px, var(--max-width));
  }

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

  .hero {
    min-height: 720px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 30px 18px 94px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-controls {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

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

  .section-head,
  .footer-inner {
    display: grid;
  }

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

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

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

  .rank-item img {
    width: 70px;
    height: 96px;
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }

  .detail-title,
  .article-panel,
  .page-hero {
    padding: 22px;
    border-radius: 20px;
  }

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