/* mother-diversity · site 23 · mono-editorial 编辑精选片单 */
:root{
  --me-primary:#2563eb;
  --me-secondary:#f97316;
  --me-accent:#06b6d4;
  --me-bg:#0a0a0a;
  --me-surface:#141414;
  --me-surface-2:#1c1c1c;
  --me-text:#f5f5f5;
  --me-muted:#9ca3af;
  --me-line:rgba(255,255,255,.08);
  --me-radius:4px;
  --me-radius-lg:8px;
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
img{display:block;max-width:100%;height:auto}
a{text-decoration:none;transition:color .2s ease,background .2s ease,transform .2s ease,border-color .2s ease}
button,input,select{font:inherit}
button{cursor:pointer;border:0;background:none}
.image-off{opacity:0}

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

/* ── body ── */
.me-body{
  margin:0;
  min-height:100vh;
  background:
    linear-gradient(180deg, rgba(37,99,235,.06) 0, transparent 280px),
    var(--me-bg);
  color:var(--me-text);
  font-family:"Segoe UI","PingFang SC","Noto Sans SC",sans-serif;
  line-height:1.55;
}

/* ── header: 左品牌·中划线导航·右搜索 ── */
.me-head{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(10,10,10,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--me-line);
}
.me-head__rule{
  height:3px;
  background:linear-gradient(90deg, var(--me-secondary), var(--me-primary) 50%, var(--me-accent));
}
.me-head__inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:24px;
  padding:12px 20px;
}
.me-brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--me-text)!important;
  flex-shrink:0;
}
.me-brand__glyph{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:2px solid var(--me-primary);
  color:var(--me-primary);
  font-size:14px;
  font-weight:900;
}
.me-brand__copy{display:flex;flex-direction:column;line-height:1.2}
.me-brand__copy strong{font-size:1.05rem;font-weight:900;color:var(--me-text);letter-spacing:-.02em}
.me-brand__copy em{font-size:.68rem;color:var(--me-muted);font-style:normal;font-weight:600}
.me-nav{
  display:flex;
  flex-wrap:wrap;
  gap:4px 18px;
  flex:1;
  justify-content:center;
}
.me-nav a{
  padding:6px 2px;
  color:var(--me-muted)!important;
  font-weight:700;
  font-size:.88rem;
  border-bottom:2px solid transparent;
}
.me-nav a:hover{color:var(--me-text)!important;border-bottom-color:rgba(37,99,235,.4)}
.me-nav a[aria-current="page"]{
  color:var(--me-primary)!important;
  border-bottom-color:var(--me-primary);
}
.me-head__actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.me-search{
  display:flex;
  border:1px solid var(--me-line);
  background:var(--me-surface);
}
.me-search input{
  width:150px;
  padding:8px 10px;
  border:0;
  outline:none;
  background:transparent;
  color:var(--me-text);
  font-size:.85rem;
}
.me-search input::placeholder{color:var(--me-muted)}
.me-search__go{
  padding:8px 12px;
  background:var(--me-secondary);
  color:#0a0a0a;
  font-weight:800;
  font-size:.82rem;
}
.me-head__hot{
  padding:7px 12px;
  border:1px solid rgba(6,182,212,.45);
  color:var(--me-accent)!important;
  font-weight:800;
  font-size:.82rem;
  white-space:nowrap;
}
.me-head__hot:hover{background:rgba(6,182,212,.1)}
.me-menu-btn{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:36px;
  height:36px;
  padding:8px;
  border:1px solid var(--me-line);
  background:var(--me-surface);
}
.me-menu-btn span{display:block;height:2px;background:var(--me-text)}

/* ── main ── */
.me-main{max-width:1280px;margin:0 auto;padding:28px 20px 48px}

/* ── hero lead: 通栏主推 ── */
.me-lead{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:32px;
  align-items:center;
  margin:0 -20px 36px;
  padding:40px 20px;
  border-bottom:1px solid var(--me-line);
  background:linear-gradient(135deg, rgba(20,20,20,.95), rgba(37,99,235,.08));
}
.me-lead__tag{
  display:inline-block;
  padding:4px 10px;
  margin-bottom:12px;
  border-left:3px solid var(--me-secondary);
  background:rgba(249,115,22,.1);
  color:var(--me-secondary);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.03em;
}
.me-lead h1{
  font-size:clamp(1.5rem,4vw,2.4rem);
  font-weight:900;
  line-height:1.15;
  letter-spacing:-.03em;
  max-width:640px;
}
.me-lead__desc{
  margin-top:12px;
  color:var(--me-muted);
  font-size:.95rem;
  line-height:1.7;
  max-width:560px;
}
.me-lead__cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.me-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 20px;
  border-radius:var(--me-radius);
  font-weight:800;
  font-size:.88rem;
}
.me-btn--primary{
  background:var(--me-secondary);
  color:#0a0a0a!important;
}
.me-btn--primary:hover{filter:brightness(1.08)}
.me-btn--outline{
  border:1px solid var(--me-primary);
  color:var(--me-primary)!important;
  background:transparent;
}
.me-btn--outline:hover{background:rgba(37,99,235,.1)}
.me-btn--block{width:100%;margin-top:16px}
.me-lead__aside{display:grid;place-items:center}
.me-lead__frame{
  width:180px;
  height:180px;
  display:grid;
  place-content:center;
  border:1px solid var(--me-line);
  background:var(--me-surface);
  text-align:center;
}
.me-lead__frame span{display:block;font-size:.72rem;color:var(--me-muted);letter-spacing:.2em;text-transform:uppercase}
.me-lead__frame strong{display:block;font-size:2rem;font-weight:900;color:var(--me-primary);margin-top:4px}

/* ── section head ── */
.me-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:16px;
}
.me-section-head h2{
  font-size:1.2rem;
  font-weight:900;
  margin:0;
  color:var(--me-text);
}
.me-section-head p{margin:4px 0 0;font-size:.82rem;color:var(--me-muted)}
.me-section-head a{
  color:var(--me-primary)!important;
  font-weight:800;
  font-size:.85rem;
  white-space:nowrap;
}

/* ── channel grid ── */
.me-channels{margin-bottom:36px}
.me-channel-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:10px;
}
.me-channel{
  display:flex;
  flex-direction:column;
  padding:16px 12px;
  border:1px solid var(--me-line);
  background:var(--me-surface);
  color:var(--me-text)!important;
  transition:transform .2s ease,border-color .2s ease;
}
.me-channel span{font-size:.68rem;color:var(--me-accent);font-weight:800;font-family:monospace}
.me-channel strong{font-size:1rem;font-weight:900;margin-top:6px;color:var(--me-primary)}
.me-channel em{font-size:.72rem;color:var(--me-muted);font-style:normal;margin-top:2px}
.me-channel:hover{transform:translateY(-2px);border-color:var(--me-primary)}

/* ── picks row ── */
.me-picks{margin-bottom:36px}
.me-picks__row{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.me-picks__row::-webkit-scrollbar{height:4px}
.me-picks__row::-webkit-scrollbar-thumb{background:var(--me-primary);border-radius:999px}
.me-picks__row .me-card{flex:0 0 160px;scroll-snap-align:start}

/* ── catalog grid ── */
.me-catalog{margin-bottom:32px}
.me-catalog__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(118px, 1fr));
  gap:12px;
}

/* ── cards ── */
.me-card{
  position:relative;
  border:1px solid var(--me-line);
  background:var(--me-surface);
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease;
}
.me-card:hover{transform:translateY(-2px);border-color:rgba(37,99,235,.45)}
.me-card__link{display:block;color:inherit}
.me-card__cover{position:relative;overflow:hidden}
.me-card__cover img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  background:#111;
  transition:transform .3s ease;
}
.me-card:hover .me-card__cover img{transform:scale(1.04)}
.me-card__badge{
  position:absolute;
  top:6px;
  right:6px;
  padding:2px 7px;
  background:var(--me-accent);
  color:#0a0a0a;
  font-size:10px;
  font-weight:800;
  z-index:2;
}
.me-card__overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(10,10,10,.55);
  opacity:0;
  transition:opacity .2s ease;
}
.me-card:hover .me-card__overlay{opacity:1}
.me-card__icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:2px solid var(--me-text);
  border-radius:50%;
  font-size:.85rem;
  color:var(--me-text);
}
.me-card__info{padding:8px 8px 10px;border-top:1px solid var(--me-line)}
.me-card__info h3{
  margin:0;
  font-size:.8rem;
  line-height:1.35;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.me-card__meta{
  margin:4px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  font-size:.66rem;
  color:var(--me-muted);
}
.me-card__meta span:first-child{color:var(--me-secondary);font-weight:700}

/* compact card */
.me-card--compact .me-card__link{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:10px;
  padding:8px;
  align-items:center;
}
.me-card--compact .me-card__cover img{aspect-ratio:3/4}
.me-card--compact .me-card__info{padding:0;border-top:0}
.me-card--compact .me-card__info h3{font-size:.85rem}

/* ── category page ── */
.me-cat-head{
  margin:-28px -20px 24px;
  padding:24px 20px;
  border-bottom:1px solid var(--me-line);
  background:var(--me-surface);
}
.me-crumb{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:.82rem;
  color:var(--me-muted);
  margin-bottom:10px;
}
.me-crumb a{color:var(--me-primary)!important;font-weight:700}
.me-cat-head__label{
  display:inline-block;
  padding:3px 8px;
  margin-bottom:8px;
  background:rgba(6,182,212,.12);
  color:var(--me-accent);
  font-size:.72rem;
  font-weight:800;
}
.me-cat-head h1{font-size:clamp(1.3rem,3vw,1.85rem);font-weight:900}
.me-cat-head p{margin-top:6px;color:var(--me-muted);max-width:600px;line-height:1.65;font-size:.9rem}
.me-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  padding:14px;
  margin-bottom:20px;
  border:1px solid var(--me-line);
  background:var(--me-surface);
}
.me-filter{display:flex;flex-direction:column;gap:4px;flex:1;min-width:140px}
.me-filter span{font-size:.7rem;font-weight:700;color:var(--me-muted);text-transform:uppercase;letter-spacing:.04em}
.me-filter input,
.me-filter select{
  padding:8px 10px;
  border:1px solid var(--me-line);
  background:var(--me-surface-2);
  color:var(--me-text);
  outline:none;
  border-radius:var(--me-radius);
}
.me-filter input:focus,
.me-filter select:focus{border-color:var(--me-primary)}
.me-cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(128px, 1fr));
  gap:14px;
}
.me-empty{
  padding:28px;
  text-align:center;
  color:var(--me-muted);
  border:1px dashed rgba(37,99,235,.3);
  margin-top:16px;
}

/* ── play page ── */
.me-play{margin-bottom:32px}
.me-play__layout{
  display:grid;
  grid-template-columns:1fr 300px;
  gap:24px;
  align-items:start;
  margin-top:16px;
}
.me-play__frame{
  position:relative;
  border:1px solid var(--me-line);
  background:#000;
  overflow:hidden;
}
.me-play__frame video,
#movie-player{
  width:100%;
  max-height:72vh;
  aspect-ratio:16/9;
  background:#000;
  display:block;
}
.me-play__error{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(10,10,10,.9);
  color:var(--me-text);
  font-weight:700;
}
.me-play__error[hidden]{display:none!important}
.me-play__panel{
  padding:20px;
  border:1px solid var(--me-line);
  background:var(--me-surface);
  position:sticky;
  top:88px;
}
.me-play__panel h1{font-size:1.15rem;font-weight:900;line-height:1.35}
.me-play__chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:12px 0;
}
.me-play__chips span{
  padding:3px 8px;
  font-size:.72rem;
  font-weight:700;
  border:1px solid var(--me-line);
  color:var(--me-muted);
}
.me-play__chips span:nth-child(1){color:var(--me-secondary);border-color:rgba(249,115,22,.35)}
.me-play__chips span:nth-child(2){color:var(--me-accent);border-color:rgba(6,182,212,.35)}
.me-meta{display:grid;gap:0;margin:0 0 8px}
.me-meta div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid var(--me-line);
  font-size:.82rem;
}
.me-meta div:last-child{border-bottom:0}
.me-meta dt{color:var(--me-muted);font-weight:700}
.me-meta dd{margin:0;text-align:right;color:var(--me-text)}
.me-play__synopsis{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--me-line);
}
.me-play__synopsis h2{
  font-size:1rem;
  font-weight:800;
  color:var(--me-primary);
  margin:0 0 12px;
}
.me-play__synopsis p{color:var(--me-muted);line-height:1.75;font-size:.9rem}
.me-play__brief{margin-top:10px;color:var(--me-text)!important}
.me-related{margin-bottom:24px}
.me-related__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(130px, 1fr));
  gap:14px;
}

/* ── footer ── */
.me-foot{
  margin-top:48px;
  border-top:1px solid var(--me-line);
  background:var(--me-surface);
}
.me-foot__top{
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr 2fr;
  gap:32px;
  padding:32px 20px;
}
.me-foot__brand strong{
  display:block;
  font-size:1.1rem;
  color:var(--me-primary);
  margin-bottom:8px;
}
.me-foot__brand p{
  color:var(--me-muted);
  font-size:.85rem;
  line-height:1.65;
  margin:0;
}
.me-foot__links{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.me-foot__col h3{
  font-size:.78rem;
  font-weight:800;
  color:var(--me-text);
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.me-foot__col ul{display:grid;gap:6px}
.me-foot__col a{color:var(--me-primary)!important;font-weight:600;font-size:.82rem}
.me-foot__col a:hover{color:var(--me-secondary)!important}
.me-foot__col span{color:var(--me-muted);font-size:.8rem}
.me-foot__bar{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  padding:12px 20px;
  border-top:1px solid var(--me-line);
  max-width:1280px;
  margin:0 auto;
}
.me-foot__copy{font-size:.75rem;color:var(--me-muted)}
.me-foot__seo{margin:0;font-size:.72rem;color:var(--me-muted);opacity:.85}

/* ── mobile ── */
@media (max-width:960px){
  .me-head__inner{flex-wrap:wrap;gap:12px}
  .me-nav{
    display:none;
    position:absolute;
    left:16px;
    right:16px;
    top:calc(100% - 1px);
    flex-direction:column;
    padding:12px;
    background:var(--me-surface);
    border:1px solid var(--me-line);
    z-index:95;
  }
  .me-nav.open{display:flex}
  .me-head{position:sticky}
  .me-menu-btn{display:flex}
  .me-search input{width:110px}
  .me-head__hot{display:none}
  .me-lead{grid-template-columns:1fr;padding:28px 20px}
  .me-lead__aside{display:none}
  .me-channel-grid{grid-template-columns:repeat(3, 1fr)}
  .me-play__layout{grid-template-columns:1fr}
  .me-play__panel{position:relative;top:0}
  .me-foot__top{grid-template-columns:1fr}
  .me-foot__links{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .me-main{padding:16px 14px 36px}
  .me-lead{margin:0 -14px 28px;padding:24px 14px}
  .me-cat-head{margin:-16px -14px 20px;padding:18px 14px}
  .me-search{display:none}
  .me-channel-grid{grid-template-columns:repeat(2, 1fr)}
  .me-catalog__grid{grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));gap:8px}
  .me-picks__row .me-card{flex:0 0 132px}
  .me-cat-grid{grid-template-columns:repeat(2, 1fr);gap:10px}
  .me-related__grid{grid-template-columns:repeat(2, 1fr)}
  .me-foot__links{grid-template-columns:1fr}
  .me-filter-bar{flex-direction:column}
}
