/* mother-diversity · site=12 · mono-editorial · 编辑精选影视站 */
:root {
  --ed-primary: #1d4ed8;
  --ed-secondary: #ea580c;
  --ed-accent: #14b8a6;
  --ed-bg: #f5f5f5;
  --ed-surface: #ffffff;
  --ed-ink: #0a0a0a;
  --ed-muted: #737373;
  --ed-line: #e5e5e5;
  --ed-dark: #111111;
  --ed-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body.ed-body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fafafa 0%, var(--ed-bg) 120px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0, 0, 0, 0.03) 79px, rgba(0, 0, 0, 0.03) 80px);
  color: var(--ed-ink);
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.55;
}

body.ed-body a {
  color: var(--ed-primary);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

body.ed-body a:hover { color: var(--ed-secondary); }

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

/* ── 顶栏细条 ── */
.ed-strip {
  background: var(--ed-dark);
  border-bottom: 2px solid var(--ed-secondary);
}

.ed-strip__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ed-strip__brand { color: var(--ed-accent); }

.ed-strip__tag {
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 头部：白底黑线 + 下划线导航 ── */
.ed-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ed-surface);
  border-bottom: 3px solid var(--ed-ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
}

.ed-head__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.ed-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ed-ink) !important;
  min-width: 0;
}

.ed-logo:hover { color: var(--ed-primary) !important; }

.ed-logo__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ed-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ed-secondary);
}

.ed-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ed-logo__text strong {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-logo__text em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ed-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ed-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
}

.ed-nav a {
  display: inline-flex;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ed-muted) !important;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.ed-nav a:hover {
  color: var(--ed-ink) !important;
  border-bottom-color: var(--ed-line);
}

.ed-nav a[aria-current="page"] {
  color: var(--ed-primary) !important;
  border-bottom-color: var(--ed-primary);
}

.ed-head__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-search {
  display: flex;
  border: 2px solid var(--ed-ink);
  background: #fff;
  min-width: 200px;
}

.ed-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 9px 12px;
  font-size: 0.86rem;
  background: transparent;
}

.ed-search button {
  border: 0;
  cursor: pointer;
  padding: 9px 16px;
  background: var(--ed-secondary);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
}

.ed-search button:hover { background: #c2410c; }

.ed-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 2px solid var(--ed-ink);
  background: #fff;
  cursor: pointer;
}

.ed-burger span {
  display: block;
  height: 2px;
  background: var(--ed-ink);
}

/* ── 主内容 ── */
.ed-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ── 首页 Hero：通栏编辑主推 ── */
.ed-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 44px;
  padding: 36px 32px;
  background: var(--ed-dark);
  color: #fafafa;
  border-left: 6px solid var(--ed-accent);
}

.ed-hero__label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  background: var(--ed-accent);
  color: #042f2e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.ed-hero__desc {
  margin: 0 0 24px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.ed-hero__form {
  display: flex;
  max-width: 460px;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.ed-hero__form input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
}

.ed-hero__form input::placeholder { color: rgba(255, 255, 255, 0.45); }

.ed-hero__form button {
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  background: var(--ed-secondary);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.ed-hero__mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 220px;
}

.ed-hero__frame {
  background: linear-gradient(135deg, #262626, #404040);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ed-hero__frame--a { background: linear-gradient(145deg, #1e3a8a, #1d4ed8); }
.ed-hero__frame--b { background: linear-gradient(145deg, #9a3412, #ea580c); margin-top: 12px; }
.ed-hero__frame--c { background: linear-gradient(145deg, #115e59, #14b8a6); }
.ed-hero__frame--d { background: linear-gradient(145deg, #262626, #525252); margin-top: -8px; }

/* ── 区块标题 ── */
.ed-section { margin-bottom: 44px; }

.ed-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ed-ink);
}

.ed-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ed-section__title h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ed-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ed-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.ed-badge--hot { background: var(--ed-secondary); }
.ed-badge--cat { background: var(--ed-ink); }
.ed-badge--new { background: var(--ed-accent); color: #042f2e; }

.ed-link {
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 14px;
  border: 2px solid var(--ed-ink);
  color: var(--ed-ink) !important;
}

.ed-link:hover {
  background: var(--ed-ink);
  color: #fff !important;
}

/* ── 横滑热播 ── */
.ed-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ed-rail::-webkit-scrollbar { height: 5px; }
.ed-rail::-webkit-scrollbar-thumb { background: var(--ed-accent); }

.ed-rail .ed-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.ed-rail .ed-mini {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* ── 网格 ── */
.ed-grid {
  display: grid;
  gap: 18px;
}

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

/* ── 竖版卡片：渐变遮罩 + 青标橙播 ── */
.ed-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ed-shadow);
}

.ed-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
}

.ed-card__thumb img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #d4d4d4;
  transition: transform 0.35s ease;
}

.ed-card:hover .ed-card__thumb img { transform: scale(1.05); }

.ed-card__badge {
  position: absolute;
  left: 0;
  top: 0;
  padding: 4px 10px;
  background: var(--ed-accent);
  color: #042f2e;
  font-size: 0.68rem;
  font-weight: 900;
  z-index: 2;
}

.ed-card__year {
  position: absolute;
  right: 8px;
  bottom: 36px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.ed-card__shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
}

.ed-card__play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  background: var(--ed-secondary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ed-card:hover .ed-card__play {
  opacity: 1;
  transform: translateY(0);
}

.ed-card__body { padding: 12px 12px 14px; }

.ed-card__body h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-card__body h3 a { color: var(--ed-ink) !important; }
.ed-card__body h3 a:hover { color: var(--ed-primary) !important; }

.ed-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 0.72rem;
  color: var(--ed-muted);
}

.ed-card__meta span {
  padding: 2px 7px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-line);
}

/* ── 紧凑横卡 ── */
.ed-mini {
  display: grid;
  grid-template-columns: auto 100px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-left: 4px solid var(--ed-primary);
}

.ed-mini__rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ed-accent);
  color: #042f2e;
  font-size: 0.72rem;
  font-weight: 900;
}

.ed-mini__thumb {
  display: block;
  overflow: hidden;
}

.ed-mini__thumb img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  background: #d4d4d4;
}

.ed-mini__info { min-width: 0; }

.ed-mini__info h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-mini__info h3 a { color: var(--ed-ink) !important; }

.ed-mini__info p {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: var(--ed-muted);
}

.ed-mini__go {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--ed-secondary);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ── 分类入口 ── */
.ed-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ed-cats .category-tile {
  display: block;
  padding: 18px 16px;
  background: var(--ed-surface);
  border: 2px solid var(--ed-ink);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ed-cats .category-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ed-secondary);
  background: #fff;
}

.ed-cats .category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ed-primary);
}

.ed-cats .category-tile span {
  display: block;
  font-size: 0.78rem;
  color: var(--ed-muted);
  line-height: 1.55;
}

/* ── 分类页 ── */
.ed-cathead {
  margin-bottom: 28px;
  padding: 28px 32px;
  background: var(--ed-surface);
  border-top: 4px solid var(--ed-primary);
  border-bottom: 1px solid var(--ed-line);
}

.ed-cathead h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.ed-cathead p {
  margin: 0;
  max-width: 640px;
  color: var(--ed-muted);
  line-height: 1.7;
}

.ed-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ed-muted);
}

.ed-crumb a { color: var(--ed-primary) !important; }

.ed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-left: 4px solid var(--ed-accent);
}

.ed-filter__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.ed-filter__group--grow { flex: 1; min-width: 200px; }

.ed-filter__group label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ed-muted);
}

.ed-filter__input,
.ed-filter__group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--ed-line);
  background: #fff;
  color: var(--ed-ink);
  font-weight: 600;
  outline: none;
}

.ed-filter__input:focus,
.ed-filter__group select:focus { border-color: var(--ed-primary); }

.ed-empty {
  padding: 36px;
  text-align: center;
  background: var(--ed-bg);
  border: 1px dashed var(--ed-line);
  color: var(--ed-muted);
  font-weight: 700;
}

/* ── 播放页 ── */
.ed-crumb--watch { margin-bottom: 20px; }

.ed-player {
  margin-bottom: 36px;
  background: var(--ed-dark);
  border-bottom: 4px solid var(--ed-secondary);
}

.ed-player__screen video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.ed-player__info {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  padding: 22px 24px 26px;
  color: #fafafa;
}

.ed-player__main h1 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 900;
  line-height: 1.3;
}

.ed-player__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ed-player__tags span {
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
}

.ed-btn {
  display: inline-flex;
  padding: 11px 22px;
  font-weight: 900;
  font-size: 0.88rem;
}

.ed-btn--cta {
  background: var(--ed-secondary);
  color: #fff !important;
}

.ed-btn--cta:hover { background: #c2410c; color: #fff !important; }

.ed-player__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ed-player__poster {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

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

.ed-meta {
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ed-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.ed-meta div:last-child { border-bottom: 0; }

.ed-meta dt {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.ed-meta dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.ed-synopsis {
  padding: 24px 28px;
  background: var(--ed-surface);
  border-left: 5px solid var(--ed-primary);
}

.ed-synopsis__lead {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.8;
  font-weight: 600;
  color: var(--ed-ink);
}

.ed-synopsis__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ed-muted);
}

/* ── 页脚 ── */
.ed-foot {
  margin-top: 24px;
  background: var(--ed-dark);
  color: rgba(255, 255, 255, 0.65);
}

.ed-foot__top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.ed-foot__brand strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--ed-accent);
}

.ed-foot__brand p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
  max-width: 420px;
}

.ed-foot__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ed-foot__col h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.ed-foot__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-foot__col li { margin-bottom: 8px; }

.ed-foot__col a {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.86rem;
  font-weight: 600;
}

.ed-foot__col a:hover { color: var(--ed-accent) !important; }

.ed-foot__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 14px 20px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── search/rank/categories 旧类名桥接 ── */
.page-hero,
.compact-hero,
.section-block,
.rank-panel {
  margin-bottom: 32px;
  padding: 28px;
  background: var(--ed-surface);
  border-left: 5px solid var(--ed-primary);
  border-bottom: 1px solid var(--ed-line);
}

.page-hero h1,
.compact-hero h1 {
  margin: 0 0 10px;
  color: var(--ed-ink);
  font-weight: 950;
}

.page-hero p,
.compact-hero p {
  margin: 0;
  color: var(--ed-muted);
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-line);
}

.filter-panel input,
.filter-panel select {
  padding: 10px 12px;
  border: 2px solid var(--ed-line);
  background: #fff;
  font-weight: 600;
  outline: none;
}

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

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ed-ink);
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.section-head a {
  color: var(--ed-primary) !important;
  font-weight: 800;
  font-size: 0.86rem;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ed-accent);
  color: #042f2e;
  font-weight: 900;
  font-size: 0.78rem;
}

.eyebrow span,
.eyebrow.solo {
  display: inline-block;
  padding: 5px 12px;
  background: var(--ed-accent);
  color: #042f2e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

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

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

.overview-card,
.category-tile {
  display: block;
  padding: 20px;
  background: var(--ed-surface);
  border: 2px solid var(--ed-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.overview-card:hover,
.category-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ed-secondary);
}

.overview-main strong,
.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--ed-primary);
}

.overview-main span,
.category-tile span {
  color: var(--ed-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ed-secondary);
}

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

.empty-state {
  padding: 28px;
  text-align: center;
  background: var(--ed-bg);
  border: 1px dashed var(--ed-line);
  color: var(--ed-muted);
  font-weight: 700;
}

.section-block .movie-grid .ed-card { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .ed-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-player__info { grid-template-columns: 1fr; }
  .ed-player__aside {
    flex-direction: row;
    align-items: flex-start;
  }
  .ed-player__poster { flex: 0 0 120px; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-foot__top { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .ed-head__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .ed-logo { grid-column: 1; }
  .ed-burger {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }
  .ed-head__tools {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .ed-search { flex: 1; min-width: 0; }
  .ed-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    padding: 12px;
    background: var(--ed-bg);
    border: 2px solid var(--ed-ink);
  }
  .ed-nav.open { display: flex; }
  .ed-nav a {
    width: 100%;
    justify-content: flex-start;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .ed-nav a[aria-current="page"] { border-left-color: var(--ed-primary); }
  .ed-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .ed-hero__mosaic { display: none; }
  .ed-grid--3,
  .ed-grid--4,
  .ed-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid,
  .category-grid.large { grid-template-columns: 1fr; }
  .ed-foot__links { grid-template-columns: 1fr; }
  .ed-filter { flex-direction: column; }
  .ed-player__aside { flex-direction: column; }
  .ed-player__poster { flex: none; max-width: 180px; }
}

@media (max-width: 540px) {
  .ed-main { padding: 20px 14px 48px; }
  .ed-grid--3,
  .ed-grid--4,
  .ed-grid--5,
  .movie-grid { grid-template-columns: 1fr; }
  .ed-cats { grid-template-columns: 1fr; }
  .ed-rail .ed-card { flex: 0 0 72vw; }
  .ed-rail .ed-mini { flex: 0 0 88vw; }
  .filter-panel { grid-template-columns: 1fr; }
  .ed-logo__text em { display: none; }
  .ed-strip__tag { display: none; }
}
