/* site-37 · forest-moss · 浅绿灰底 + 苔绿主色 + 琥珀高光 · VOD 多页骨架 */
:root {
  --moss: #4a7c59;
  --moss-dark: #3d6b4f;
  --moss-deep: #2a4a38;
  --moss-light: #6b9b7a;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-glow: #f59e0b;
  --ink: #1a2420;
  --ink-soft: #3d4f46;
  --muted: #6b7d72;
  --soft: #eef2ec;
  --paper: #f4f7f2;
  --line: #d4ddd6;
  --card: #fff;
  --shadow: 0 14px 36px rgba(42, 74, 56, 0.1);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #e8ece6 0%, #eef2ec 42%, #f4f7f2 100%);
  color: var(--ink);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  margin: 0;
}

/* ── Header · 苔绿顶栏 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 247, 242, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(74, 124, 89, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--moss), var(--moss-light));
  color: #fff;
  box-shadow: 0 10px 24px rgba(61, 107, 79, 0.32);
  font-size: 13px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.main-nav a {
  font-weight: 650;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
  flex-shrink: 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--moss-dark);
}

.nav-search {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  min-width: 0;
}

.nav-search input {
  width: 210px;
  min-width: 0;
  padding: 10px 14px;
  outline: none;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 500;
}

.nav-search input::placeholder {
  color: #9ca3af;
}

.nav-search button {
  padding: 10px 16px;
  background: var(--moss);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-search button:hover {
  background: var(--moss-dark);
}

.nav-toggle {
  display: none;
  font-size: 22px;
  color: var(--ink-soft);
  background: #f3f4f6;
  border-radius: 12px;
  padding: 7px 11px;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Main ── */
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-left)) 60px max(16px, env(safe-area-inset-right));
}

/* ── SEO intro ── */
.seo-brand-block {
  margin: 0 0 24px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(74, 124, 89, 0.22);
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow);
}

.seo-brand-block h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.seo-brand-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
  max-width: 920px;
}

/* ── Hero · 左文右海报 ── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  aspect-ratio: auto;
  object-fit: cover;
  transform: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 74, 56, 0.12) 0%, transparent 28%);
  pointer-events: none;
}

.hero-caption {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 48px 40px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, var(--moss-deep) 0%, var(--moss-dark) 52%, #2a4a38 100%);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow span,
.eyebrow.solo {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(217, 119, 6, 0.88);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: none;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-copy p {
  font-size: 17px;
  color: #dce8df;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 0 24px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags span,
.tag-row span,
.tag-cloud a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-btn {
  background: var(--amber);
  color: #fff;
  padding: 13px 24px;
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-control {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  max-width: calc(50% - 48px);
}

.hero-control button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  transition: 0.2s;
}

.hero-dots button.active {
  background: var(--amber-glow);
  width: 52px;
}

/* ── Quick search ── */
.quick-search {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.quick-search h2 {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

.quick-search form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.quick-search input {
  flex: 1;
  padding: 14px 18px;
  outline: none;
  border: 0;
  background: transparent;
}

.quick-search button {
  padding: 0 24px;
  background: var(--moss);
  color: #fff;
  font-weight: 800;
}

.quick-search button:hover {
  background: var(--moss-dark);
}

/* ── Sections · 分章节列表感 ── */
.section-block {
  margin-bottom: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(74, 124, 89, 0.16);
}

.section-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--amber);
  padding-left: 14px;
}

.section-head a {
  color: var(--moss-dark);
  font-weight: 800;
  font-size: 14px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(74, 124, 89, 0.12);
  color: var(--moss-dark);
  font-weight: 900;
  font-size: 14px;
}

/* ── Movie grid & cards ── */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 3 / 4;
}

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

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

.image-off {
  opacity: 0;
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: rgba(61, 107, 79, 0.92);
  color: #fff;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  min-width: auto;
  height: auto;
  box-shadow: none;
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}

.movie-card h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  color: var(--ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover {
  color: var(--moss-dark);
}

.movie-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
}

.card-actions a {
  display: inline-flex;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  background: var(--moss);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.card-actions a:hover {
  background: var(--moss-dark);
}

.card-actions span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.card-compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 150px;
}

.card-compact .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.card-compact .movie-card-body {
  padding: 14px;
}

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

/* ── Category tiles ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

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

.category-tile,
.overview-card {
  display: block;
  border-radius: var(--radius-md);
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(74, 124, 89, 0.28);
  box-shadow: 0 10px 26px rgba(61, 107, 79, 0.07);
  min-height: 140px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(61, 107, 79, 0.12);
}

.category-tile strong,
.overview-main strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--moss-dark);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.category-tile span,
.overview-main span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
  font-size: 14px;
}

.rank-panel {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(74, 124, 89, 0.08), rgba(217, 119, 6, 0.06));
}

/* ── Page hero ── */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--moss-deep), var(--moss-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero.small,
.compact-hero {
  padding: 48px 32px;
}

.compact-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  margin: 8px 0 12px;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.compact-hero p {
  font-size: 17px;
  max-width: 760px;
  line-height: 1.8;
  color: #dce8df;
  margin: 0;
}

.compact-hero .eyebrow.solo {
  background: rgba(217, 119, 6, 0.82);
  color: #fff;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: #b8d4c0;
  font-weight: 700;
  font-size: 14px;
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb span {
  opacity: 0.7;
}

/* ── Filter ── */
.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  background: #f9fafb;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--moss);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.12);
}

.empty-state {
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed var(--moss);
  text-align: center;
  color: var(--moss-dark);
  font-weight: 800;
  margin-top: 16px;
}

/* ── Detail & player ── */
.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--moss-deep), var(--moss-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  background: #111;
}

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

.detail-info h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 16px;
  color: #fff;
}

.detail-info p {
  font-size: 17px;
  line-height: 1.85;
  color: #dce8df;
  margin: 0;
}

.player-section,
.content-card {
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.player-section {
  padding: 24px;
  margin-bottom: 28px;
}

.player-section h2,
.content-card h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.video-error[hidden] {
  display: none !important;
}

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  margin-bottom: 40px;
}

.content-card {
  padding: 24px;
}

.prose-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 20px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-cloud a {
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.tag-cloud a:hover {
  background: rgba(74, 124, 89, 0.12);
  color: var(--moss-dark);
}

.side-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.side-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.side-meta span {
  color: var(--muted);
  font-weight: 700;
}

.side-meta strong {
  text-align: right;
  color: var(--ink);
}

.side-link {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  background: var(--moss);
  color: #fff;
  font-weight: 850;
}

.side-link:hover {
  background: var(--moss-dark);
}

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

/* ── Footer · 苔绿深色 ── */
.site-footer {
  margin-top: 24px;
  background: linear-gradient(135deg, #1a2e24, #243d30);
  color: #c8d9ce;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px max(16px, env(safe-area-inset-left)) 28px max(16px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-brand h2 {
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  margin: 0 0 10px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.8;
  color: #b8d4c0;
  font-size: 14px;
  max-width: 420px;
}

.footer-nav h3 {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 12px;
}

.footer-nav nav {
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: #d1d5db;
  font-weight: 600;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--amber-glow);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .desktop-nav-hide {
    display: none;
  }

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

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

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

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

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

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

@media (max-width: 820px) {
  .main-nav,
  .nav-search {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .main-nav.open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
    z-index: 70;
  }

  .main-nav.open a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .main-nav.open a:hover {
    background: rgba(74, 124, 89, 0.1);
  }

  .nav-wrap {
    position: relative;
    min-height: 66px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(260px, 1fr);
  }

  .hero-copy {
    padding: 36px 22px;
    min-height: auto;
  }

  .hero-visual img {
    min-height: 280px;
  }

  .hero-control {
    left: 22px;
    right: 22px;
    max-width: none;
  }

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

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

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

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

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

  .detail-poster {
    max-width: 280px;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .brand-text {
    font-size: 17px;
  }

  .hero-section {
    border-radius: var(--radius-md);
    margin-left: 0;
    margin-right: 0;
    min-height: auto;
  }

  .hero-visual img {
    min-height: 220px;
  }

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

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

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

  .card-compact {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .seo-brand-block {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
