/* Mobile layout (<=1000px). Desktop is untouched: everything below is either hidden on desktop or scoped to the media query. */
.m-only,.mnav,.mhead,.mfoot{display:none}
.msec{display:contents}
@media(max-width:1000px){
  html{-webkit-text-size-adjust:100%}
  body{font-size:15px}
  body.mlock{overflow:hidden;touch-action:none}
  /* compact sticky bar */
  .top{flex-wrap:nowrap;gap:10px;padding:8px 14px;min-height:60px}
  .top .customlink,.top .social,.top .qwrap{display:none}
  .brand{gap:8px;min-height:44px;min-width:0;flex:1 1 auto;overflow:hidden}
  .logoimg{height:auto;max-height:30px;max-width:100%;min-width:0;flex:0 1 auto}
  .top .mbtn,.top .filtbtn{flex:none}
  .wrap{grid-template-columns:minmax(0,1fr)}
  main{min-width:0}
  .card{min-width:0}
  .brand p{font-size:12px;margin-bottom:3px;white-space:nowrap}
  .m-only{display:inline-flex}
  .mbtn{align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--text);font:600 15px/1 inherit;cursor:pointer}
  .mbtn[aria-expanded="true"]{background:#b01f55;border-color:#b01f55;color:#fff}
  .filtbtn{order:3;padding:0 16px;font-size:15px}
  #menubtn{order:2}
  .mbadge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#fff;color:#b01f55;font-size:12px;font-weight:800;margin-left:6px}
  .mbadge[hidden]{display:none}
  /* slide-down menu */
  .mnav{display:block;position:fixed;left:0;right:0;top:60px;z-index:6;background:#12151b;border-bottom:1px solid var(--line);box-shadow:0 18px 40px rgba(0,0,0,.5);padding:8px 14px 16px;transform:translateY(-8px);opacity:0;visibility:hidden;transition:transform .18s ease,opacity .18s ease,visibility 0s .18s}
  .mnav.open{transform:none;opacity:1;visibility:visible;transition:transform .18s ease,opacity .18s ease}
  .mnav a.mlink{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 6px;border-bottom:1px solid var(--line);font-size:17px;font-weight:600;text-decoration:none;color:var(--text)}
  .mnav a.mlink::after{content:"›";color:var(--mute);font-size:22px}
  .mnav .social{display:flex;margin:14px 0 0;gap:10px}
  .mnav .social a{width:48px;height:48px}
  /* full-screen filters */
  .wrap{padding:14px 14px 40px}
  .side,.side.open{display:none}
  .side.open{display:flex;flex-direction:column;position:fixed;inset:0;z-index:30;max-height:none;height:100%;height:100dvh;margin:0;border:0;border-radius:0;padding:0;background:var(--bg);overflow:hidden}
  .mhead{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 8px 18px;border-bottom:1px solid var(--line);min-height:60px;flex:none}
  .mhead h2{margin:0;font-size:18px}
  .mx{width:48px;height:48px;border:0;background:transparent;color:var(--text);font-size:30px;line-height:1;cursor:pointer;border-radius:12px}
  .mbody{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:4px 18px 20px;overscroll-behavior:contain}
  .mbody .qwrap{display:block;max-width:none;margin:14px 0 4px}
  .msec{display:block;border-bottom:1px solid var(--line)}
  .side .msec>h3{margin:0;display:flex;align-items:center;justify-content:space-between;min-height:52px;cursor:pointer;font-size:13px;color:var(--text);user-select:none}
  .side .msec>h3::after{content:"";width:9px;height:9px;border-right:2px solid var(--mute);border-bottom:2px solid var(--mute);transform:rotate(45deg);margin-right:6px;transition:transform .15s}
  .side .msec.shut>h3::after{transform:rotate(-45deg)}
  .side .msec.shut>:not(h3){display:none}
  .side .msec>:not(h3){margin-bottom:14px}
  .side .list{max-height:none}
  .side .list button{min-height:48px;font-size:15px}
  .side .chip{min-height:44px;font-size:14px}
  .mfoot{display:flex;gap:10px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#12151b;flex:none}
  .mfoot button{min-height:50px;border-radius:12px;font:700 16px/1 inherit;cursor:pointer}
  .mclear{flex:1;background:var(--card);color:var(--text);border:1px solid var(--line)}
  .mapply{flex:2;background:#c92560;color:#fff;border:1px solid #c92560}
  /* cards */
  .grid{grid-template-columns:1fr;gap:16px}
  .card:hover{transform:none}
  .title{font-size:17px;padding:4px 0;min-height:44px;display:flex;align-items:center}
  .buy{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;flex-wrap:nowrap}
  .buy a{min-width:0;width:auto;min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12.5px;padding:0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.1px}
  .buy .bpre{display:none}
  .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -14px 14px;padding:0 14px}
  .tabs::-webkit-scrollbar{display:none}
  .tab{min-height:44px;flex:none}
  .active .chip{min-height:44px}
  .more{text-align:center}
}
@media(max-width:479px){.brand p{display:none}.mbtn{padding:0 13px}}
@media(min-width:600px) and (max-width:1000px){.grid{grid-template-columns:1fr 1fr}}
/* preview popup full-screen on phones */
@media(max-width:700px){
  .modal{padding:0;place-items:stretch}
  .panel,.panel.dsp-panel{max-width:none;width:100%;height:100%;max-height:none;border-radius:0;border:0}
  .panel .x{position:fixed;top:max(10px,env(safe-area-inset-top));right:10px;z-index:3;width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:28px;border:1px solid rgba(255,255,255,.25)}
  .dbody{padding:16px 16px 28px}
  .dbody h2{font-size:20px;padding-right:56px}
  .specs{grid-template-columns:1fr 1fr}
}
/* DSTV */
@media(max-width:1000px){
  body.dstv{overflow:auto;height:auto}
  body.dstv .tvwrap{display:block}
  body.dstv .rail{position:fixed;top:0;bottom:0;left:0;width:min(86vw,340px);max-height:none;z-index:30;border-right:1px solid var(--line);border-bottom:0;transform:translateX(-102%);transition:transform .2s ease;box-shadow:20px 0 40px rgba(0,0,0,.5)}
  body.dstv .rail.open{transform:none}
  .mscrim{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:29;display:none}
  .mscrim.on{display:block}
  .raillx{display:inline-grid}
  body.dstv .stage{width:100%}
  body.dstv .stage video{height:56.25vw;max-height:70vh;flex:none;width:100%}
  body.dstv .ctrls{gap:8px;padding:10px}
  body.dstv .seek{flex:1 1 100%;order:-1}
  body.dstv .ctrls .ib{min-height:44px}
}
@media(max-width:1000px){.mnav a[href*="dstv"],.top a[href*="dstv"]{display:none!important}}
