/* sunset-brick · 砖红黄昏影视站皮肤 · 451 */
:root {
  --sand: #f4e8d8;
  --sand-light: #faf3ea;
  --cream: #fffbf5;
  --brick: #b54a32;
  --brick-dark: #8c3a28;
  --brick-light: #d4694f;
  --brown: #3d2314;
  --brown-soft: #5c3d2e;
  --muted: #6b4e3d;
  --line: #e8d5c4;
  --line-strong: #d4b896;
  --panel: var(--cream);
  --soft: var(--sand-light);
  --shadow: 0 14px 40px rgba(61, 35, 20, 0.1);
  --shadow-card: 0 8px 24px rgba(61, 35, 20, 0.08);
  --pink: var(--brick);
  --blue: var(--brick-dark);
  --green: var(--brown-soft);
  --orange: var(--brick-light);
  --ink: var(--brown);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--sand);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(181, 74, 50, 0.08), transparent 55%),
    linear-gradient(180deg, var(--sand-light) 0%, var(--sand) 100%);
  color: var(--brown);
  font-family: "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

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

/* ── 顶栏：品牌 + 搜索 / 下方栏目条 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(61, 35, 20, 0.06);
}

.header-top {
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brick);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(181, 74, 50, 0.35);
}

.brand-text {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown);
}

.nav-strip {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 48px;
  padding: 8px 0;
}

.main-nav a {
  color: var(--brown-soft);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brick);
  background: rgba(181, 74, 50, 0.1);
}

.nav-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  margin-left: auto;
  background: var(--sand-light);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
}

.nav-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  outline: none;
  background: transparent;
  color: var(--brown);
  border: none;
  font-size: 14px;
}

.nav-search button {
  padding: 10px 18px;
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--sand-light);
  border: 1px solid var(--line);
  color: var(--brown);
  font-size: 20px;
  cursor: pointer;
}

.page-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

/* ── 首屏：全宽影院式焦点轮播 ── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  margin-bottom: 32px;
  border-radius: 10px;
  background: var(--brown);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181, 74, 50, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  overflow: hidden;
  transform: none;
  box-shadow: none;
}

.hero-visual:hover {
  transform: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 20%;
  background: var(--brown);
}

.hero-visual .hero-caption {
  display: none;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 48px 72px;
  background: linear-gradient(0deg, rgba(61, 35, 20, 0.92) 0%, rgba(61, 35, 20, 0.5) 55%, transparent 100%);
  color: #fff;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow span,
.eyebrow.solo {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 5px 10px;
  background: rgba(181, 74, 50, 0.85);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: none;
}

.hero-copy h1,
.hero-copy h2,
.compact-hero h1 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: #fff;
}

.hero-copy p,
.compact-hero p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 251, 245, 0.88);
  max-width: 560px;
  margin: 0 0 18px;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud a {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 251, 245, 0.15);
  border: 1px solid rgba(255, 251, 245, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  box-shadow: none;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.primary-btn {
  background: var(--brick);
  color: #fff;
  box-shadow: 0 4px 16px rgba(181, 74, 50, 0.4);
}

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

.ghost-btn {
  background: rgba(255, 251, 245, 0.12);
  border: 1px solid rgba(255, 251, 245, 0.35);
  color: #fff;
}

.ghost-btn:hover {
  background: rgba(255, 251, 245, 0.22);
  color: #fff;
}

.hero-control {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.hero-control button {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 251, 245, 0.9);
  color: var(--brown);
  font-size: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 251, 245, 0.4);
  border: none;
  cursor: pointer;
}

.hero-dots button.active {
  width: 24px;
  background: var(--brick-light);
}

/* ── 快速找片条 ── */
.quick-search {
  margin-bottom: 40px;
}

.quick-search--bar {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.quick-search-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.quick-search-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.quick-search-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(181, 74, 50, 0.12);
  color: var(--brick);
  font-size: 18px;
  font-weight: 700;
}

.quick-search h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown);
  margin: 0;
}

.quick-search-label p {
  display: none;
}

.quick-search form {
  display: flex;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--sand-light);
}

.quick-search input {
  flex: 1;
  padding: 14px 18px;
  outline: none;
  border: none;
  background: transparent;
  color: var(--brown);
  font-size: 14px;
}

.quick-search button {
  padding: 0 28px;
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

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

/* ── 内容分区 ── */
.section-block {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

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

.section-head h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brown);
  margin: 0;
}

.section-head a {
  color: var(--brick);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.section-head a:hover {
  color: var(--brick-dark);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(181, 74, 50, 0.12);
  color: var(--brick);
  font-weight: 700;
  font-size: 14px;
}

/* ── 影片卡片：砖红底栏条 ── */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brick);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: var(--brick-light);
  box-shadow: 0 12px 32px rgba(181, 74, 50, 0.15);
}

.movie-card:hover::after {
  opacity: 1;
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 3/4;
}

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

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

.image-off {
  opacity: 0;
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--brick);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.movie-card h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a {
  color: inherit;
  text-decoration: none;
}

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

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

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.card-actions a {
  display: inline-flex;
  border-radius: 4px;
  padding: 6px 12px;
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
}

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

.card-actions span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

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

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

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

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

.soft-panel {
  padding: 24px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
}

/* ── 分类入口：横向砖块 ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-tile,
.overview-card {
  display: block;
  border-radius: 8px;
  padding: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.overview-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--brick-dark);
  box-shadow: 0 10px 28px rgba(181, 74, 50, 0.12);
}

.category-tile strong,
.overview-main strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brown);
}

.category-tile span,
.overview-main span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.rank-panel {
  padding: 24px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
}

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

/* ── 内页 Hero ── */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.compact-hero {
  padding: 36px 40px;
}

.compact-hero h1 {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--brown);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--sand-light);
  padding: 11px 14px;
  outline: none;
  color: var(--brown);
  font-weight: 600;
  font-size: 14px;
}

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

.empty-state {
  padding: 36px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

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

.overview-card {
  display: grid;
  gap: 14px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-links a {
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(181, 74, 50, 0.1);
  color: var(--brick);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--brick);
  text-decoration: none;
}

/* ── 播放页 ── */
.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.detail-poster {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(61, 35, 20, 0.15);
  background: var(--sand);
}

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

.detail-info h1 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  color: var(--brown);
}

.detail-info p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--brown-soft);
}

.player-section,
.content-card {
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

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

.player-section h2,
.content-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1008;
}

.player-box video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1008;
}

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

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(26, 16, 8, 0.85);
  font-weight: 700;
}

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

.content-card {
  padding: 24px;
}

.prose-card p {
  color: var(--brown-soft);
  line-height: 1.85;
  font-size: 15px;
  margin-bottom: 18px;
}

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

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

.side-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-meta span {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.side-meta strong {
  text-align: right;
  color: var(--brown);
  font-size: 14px;
}

.side-link {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--brick);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

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

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

/* ── 页脚 ── */
.site-footer {
  margin-top: 24px;
  background: #ede0d0;
  border-top: 1px solid var(--line-strong);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.footer-inner a {
  color: var(--brick);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--brick-dark);
}

/* ── SEO 品牌块（页底） ── */
.seo-brand-block {
  margin: 0;
  padding: 28px 32px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.seo-brand-block h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brown);
}

.seo-brand-block p {
  margin: 0;
  color: var(--brown-soft);
  line-height: 1.75;
  font-size: 15px;
  max-width: 880px;
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-section {
    min-height: 420px;
  }

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

  .hero-copy {
    padding: 60px 36px 68px;
  }

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

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

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

@media (max-width: 820px) {
  .nav-wrap {
    min-height: 56px;
    gap: 12px;
    padding: 0 16px;
  }

  .nav-strip {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0;
    z-index: 80;
  }

  .main-nav {
    position: static;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0 16px 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--cream);
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(61, 35, 20, 0.15);
  }

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

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

  .main-nav a:hover {
    background: rgba(181, 74, 50, 0.08);
  }

  .nav-search {
    max-width: none;
    flex: 1;
  }

  .nav-search input {
    display: block;
    width: auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-header {
    position: sticky;
  }

  .page-main {
    padding: 20px 16px 48px;
  }

  .hero-section {
    min-height: 380px;
    border-radius: 8px;
  }

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

  .hero-copy {
    padding: 48px 24px 64px;
  }

  .hero-control {
    left: 24px;
    right: 24px;
  }

  .quick-search-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .quick-search-label p {
    display: block;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
  }

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

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

  .scroll-row {
    grid-auto-columns: 260px;
  }

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

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

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

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

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

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

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

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

  .hero-section {
    min-height: 340px;
  }

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

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

  .hero-copy p,
  .detail-info p {
    font-size: 14px;
  }

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

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

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

  .compact-hero {
    padding: 24px 20px;
  }

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

  .detail-hero,
  .player-section,
  .content-card {
    padding: 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
