/* 仿猫咪：粉色渐变头部 + 一行分类 + 五列片单；手机两列 */
.t-mao{--wmax:1224px;--bg:#fafafa;--bg2:#fff;--bg3:#f3f3f3;--tx:#333;--tx2:#999;--bd:#eee;--r:10px;--lab:#f893b9;--more:#e77996;--hdbg:linear-gradient(90deg,#fb8eb7,#eaa6c7,#d9bfd9);--soft:#f7cfdd;--soft2:#fff0f5}
@supports(color:color-mix(in srgb,red,blue)){.t-mao{--lab:color-mix(in srgb,var(--c) 62%,#fff);--more:color-mix(in srgb,var(--c) 72%,#888);--hdbg:linear-gradient(90deg,color-mix(in srgb,var(--c) 65%,#fff),color-mix(in srgb,var(--c) 42%,#e6c6da),color-mix(in srgb,var(--c) 22%,#d9d9e6));--soft:color-mix(in srgb,var(--c) 28%,#fff);--soft2:color-mix(in srgb,var(--c) 8%,#fff)}}
.t-mao .wrap{max-width:var(--wmax);padding:0 12px}
.t-mao .ad{margin:0 0 10px;gap:4px}
.t-mao .ad-img img{border-radius:6px}

/* 头部 */
.mo-hd{position:sticky;top:0;z-index:60;background:var(--hdbg);box-shadow:0 2px 6px rgba(0,0,0,.08)}
.mo-hd-in{display:flex;align-items:center;gap:16px;height:72px}
.mo-hd .logo{flex:none;max-width:280px;font-size:24px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.15)}
.mo-hd .logo img{height:44px}
.mo-hd .so{flex:0 1 320px;margin-left:auto;max-width:none}
.mo-hd .so input{height:36px;background:rgba(255,255,255,.92);border-color:transparent;color:#333;font-size:13px}
.mo-hd .so input:focus{background:#fff;border-color:transparent}
.mo-hd .so button{height:36px;padding:0 14px;background:var(--c);font-size:13px}

.mo-its{display:flex;gap:12px;min-width:0;padding:10px 12px 12px;overflow-x:auto;scrollbar-width:none}
.mo-its::-webkit-scrollbar{display:none}
/* 分类按钮：渐变底 + 底边厚度 + 投影，有按下去的立体感 */
.mo-its a{flex:1 0 auto;min-width:88px;height:38px;padding:0 18px;line-height:36px;text-align:center;border:1px solid var(--soft);border-radius:8px;background:linear-gradient(180deg,#fff,var(--soft2));color:#555;font-size:14px;font-weight:500;white-space:nowrap;box-shadow:0 2px 0 var(--soft),0 4px 7px rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s,color .15s}
.mo-its a:hover{color:var(--c);transform:translateY(-1px);box-shadow:0 3px 0 var(--soft),0 6px 10px rgba(0,0,0,.14)}
.mo-its a:active{transform:translateY(2px);box-shadow:0 0 0 var(--soft),0 1px 3px rgba(0,0,0,.14)}
.mo-its a.on{border-color:var(--c);background:linear-gradient(180deg,var(--lab),var(--c));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 0 rgba(0,0,0,.16),0 4px 7px rgba(0,0,0,.16)}

.mo-wrap{flex:1}
.t-mao .wrap.mo-wrap{padding-top:20px;padding-bottom:24px} /* 要写这么长：.t-mao .wrap 的 padding 优先级更高，写短了不生效 */
.mo-notice{margin-bottom:10px;padding:8px 12px;border-radius:6px;background:#fff;color:var(--more);font-size:13px;box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* 幻灯片广告：一个位置，一屏一张、自动轮播。电脑上固定 240 高，图完整显示，两边用同一张图虚化铺满 */
.yj-slide{position:relative;margin:0 0 12px}
.yj-slide-in{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:10px}
.yj-slide-in::-webkit-scrollbar{display:none}
.yj-slide-in a{position:relative;flex:0 0 100%;scroll-snap-align:start;aspect-ratio:750/320;overflow:hidden;background:var(--bg3)}
.yj-slide-in img{position:relative;display:block;width:100%;height:100%;object-fit:contain}
.yj-slide-in .yj-bg{position:absolute;inset:0;object-fit:cover;filter:blur(18px) brightness(.85);transform:scale(1.15)}
.yj-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;align-items:center;gap:6px;pointer-events:none}
.yj-dots i{width:7px;height:7px;border-radius:4px;background:rgba(255,255,255,.6);transition:width .25s,background .25s}
.yj-dots i.on{width:22px;background:var(--c)}
@media(min-width:760px){.yj-slide-in a{aspect-ratio:auto;height:240px}}

/* 一行分类 + 功能按钮 */
.mo-mid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:0 0 12px}
.mo-row{display:grid;grid-template-columns:98px minmax(0,1fr);border-radius:5px;background:#fff;box-shadow:2px 0 4px rgba(0,0,0,.2),0 4px 4px -2px rgba(0,0,0,.2)}
.mo-lab{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 8px;border-radius:5px 0 0 5px;background:var(--lab);color:#fff;font-size:15px;font-weight:500;white-space:nowrap}
.mo-fns{display:flex;gap:6px;align-items:center;padding:0 10px;border-radius:5px;background:#fff;box-shadow:2px 0 4px rgba(0,0,0,.2),0 4px 4px -2px rgba(0,0,0,.2)}
.mo-fns button{display:flex;align-items:center;gap:4px;height:40px;padding:0 6px;border:0;background:none;color:#6a6a6a;font-size:13px;cursor:pointer;white-space:nowrap}
.mo-fns button:hover{color:var(--c)}
.mo-fi{flex:none;display:block;width:18px;height:18px;background:var(--c);-webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.mo-fi-so{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa528e' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.500-3.500'/%3E%3C/svg%3E")}
.mo-fi-fav{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fa528e'%3E%3Cpath d='M12 3l2.700 5.800 6.300.8-4.600 4.300 1.200 6.200L12 17l-5.600 3.100 1.200-6.200L3 9.600l6.300-.8z'/%3E%3C/svg%3E")}
.mo-fi-save{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fa528e'%3E%3Cpath d='M6 3h12a1 1 0 011 1v17l-7-4-7 4V4a1 1 0 011-1z'/%3E%3C/svg%3E")}
.mo-fi-share{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fa528e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12v7h14v-7M12 15V4M8 8l4-4 4 4'/%3E%3C/svg%3E")}
/* 分类文字广告：一排 8 格 */
.mo-row-ad{margin-bottom:10px}
.mo-row-ad .yj-links{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0 4px;padding:0 4px;align-items:center}
.mo-row-ad .yj-links a{min-width:0;line-height:40px;text-align:center;color:var(--more);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mo-row-ad .yj-links a:hover{color:var(--c)}
/* 播放页的文字广告 */
.mo-wrap>.yj-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0 0 10px}
.mo-wrap>.yj-links a{min-width:0;height:34px;line-height:34px;border-radius:5px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.14);text-align:center;color:#6a6a6a;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.t-mao .ad-icons{box-shadow:0 1px 3px rgba(0,0,0,.08);border:0}

/* 片单 */
.t-mao .sec{margin:0 0 20px}
.t-mao .sec-hd{min-height:40px;margin-bottom:0;gap:12px}
.t-mao .sec-hd h2{border:0;padding:0;font-size:16px;font-weight:600;color:#333}
.t-mao .sec-hd h2 a{color:inherit}
.t-mao a.more,.t-mao span.more{color:var(--more);font-size:14px;font-weight:500}
.t-mao a.more:hover{color:var(--c)}
.t-mao .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
@media(min-width:760px){.t-mao .grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* 分类/搜索页一页 24 张：4 列或 6 列才排得满 */
@media(min-width:760px){.t-mao .mo-wrap>.sec:not(.mo-block)>.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1000px){.t-mao .mo-wrap>.sec:not(.mo-block)>.grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
.t-mao .thumb{border-radius:10px}
.t-mao .thumb::after{height:28%;opacity:.55}
.t-mao .dur{right:6px;bottom:6px;padding:2px 6px;border-radius:4px;background:rgba(0,0,0,.75);font-size:13px;font-weight:500;line-height:15px}
.mo-new{position:absolute;z-index:2;right:6px;top:6px;padding:1px 6px;border-radius:4px;background:var(--c);color:#fff;font-size:11px;font-weight:700;line-height:16px}
.mo-rem{display:none;position:absolute;z-index:2;left:6px;right:6px;bottom:5px;font-size:12px;line-height:1.2;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.8)}
.grid-v .mo-rem{display:block}
.grid-v .mo-rem~.dur{display:none}
.t-mao .grid-v .thumb::after{height:32%;opacity:.9}
.t-mao .card .tt{margin-top:7px;height:2.8em;font-size:14px;line-height:1.4;color:#333}
.t-mao .card:hover .tt{color:var(--c)}
.t-mao .card .mt{margin-top:4px;font-size:12px;color:#999}
.t-mao .crumb{margin-bottom:6px}
.t-mao .grid-v .card .tt{font-size:13px}
.t-mao .eps .sec-hd{margin-bottom:8px}

/* 右边悬浮工具条 */
.mo-rail{position:fixed;right:16px;bottom:calc(136px + env(safe-area-inset-bottom));z-index:80;display:flex;flex-direction:column;gap:2px;padding:6px 0;width:42px;border-radius:21px;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.16)}
.mo-rail button{height:38px;border:0;background:none;color:var(--more);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.mo-rail button:hover{color:var(--c)}
body:has(>.ad-side) .mo-rail{display:none}
@media(min-width:760px) and (max-width:1330px){.mo-rail{display:none}} /* 两边留白放不下，功能卡里有同样的按钮 */
.t-mao .gotop{background:#fff;border:0;color:var(--more)}

/* 播放页 */
.mo-play,.mo-info,.t-mao .eps{margin:0 0 12px;padding:12px;background:#fff;border:0;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.mo-play h1{margin-bottom:10px;font-size:18px;font-weight:600;line-height:1.5;color:#333}
.mo-play h1 small{font-size:14px;color:var(--c)}
.t-mao .player{max-width:960px;margin:0 auto;border-radius:8px;box-shadow:none}
.mo-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin-top:10px;color:#999;font-size:13px}
.mo-meta b{margin-left:auto;font-weight:400;color:var(--more)}
.mo-acts{display:flex;gap:8px;margin-top:10px}
.mo-acts>*{flex:1;min-width:0;height:38px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:#f6f6f6;color:#333;font-size:14px;cursor:pointer;white-space:nowrap}
.mo-acts .pri{background:var(--c);color:#fff}
.mo-acts .on{color:var(--c)}
.t-mao .blurb{margin:0;padding:0;border:0;color:#666}
.mo-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.mo-tags a{padding:4px 12px;border-radius:4px;background:#f6f6f6;color:#666;font-size:13px}
.mo-tags a:hover{background:var(--c);color:#fff}

/* 页脚 */
.mo-ft{background:#fff}
.mo-warn{max-width:760px;margin:0 auto 12px;color:var(--more);font-size:12px;line-height:1.7}

/* 小于 1200：功能按钮排到分类下面，分类按钮不被挤 */
@media(max-width:1199px){
  .mo-mid{grid-template-columns:minmax(0,1fr)}
  .mo-fns{justify-content:space-around}
}
@media(max-width:759px){
  .t-mao .wrap{padding:0 10px}
  .mo-hd-in{gap:8px;height:52px}
  .mo-hd .logo{flex:0 1 auto;max-width:44%;font-size:18px}
  .mo-hd .logo img{height:34px}
  .mo-hd .so{flex:1 1 0;min-width:0}
  .mo-hd .so input{height:32px;padding:0 8px 0 30px}
  .mo-hd .so button{display:none}
  .mo-hd .so input{border-radius:16px;border-right:1px solid transparent}
  .t-mao .wrap.mo-wrap{padding-top:14px}
  .mo-row:not(.mo-row-ad){grid-template-columns:minmax(0,1fr)}
  .mo-row:not(.mo-row-ad) .mo-lab{display:none}
  .mo-row-ad{grid-template-columns:56px minmax(0,1fr)}
  .mo-lab{padding:0 3px;font-size:12px;min-height:38px}
  .mo-its{gap:5px;padding:10px 6px 12px}
  .mo-its a{min-width:0;height:34px;padding:0 5px;line-height:32px;font-size:13px}
  .mo-fns button{height:36px;padding:0 4px;font-size:12px}
  .mo-row-ad .yj-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 2px;padding:2px}
  .mo-row-ad .yj-links a{line-height:30px;font-size:12px}
  .mo-acts{gap:6px}
  .mo-acts>*{font-size:13px}
  .mo-play{padding:10px}
  .mo-play h1{font-size:16px}
  .mo-wrap>.yj-links a{font-size:12px}
}

/* 收藏 / 保存网址 弹层（site.js 里的 modal），浅色 */
.ph-modal{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.ph-box{position:relative;width:100%;max-width:380px;max-height:80vh;overflow:auto;background:#fff;border-radius:10px;padding:18px 16px 16px;color:#333}
.ph-box h3{font-size:16px;margin-bottom:12px}
.ph-box .ph-x{position:absolute;right:10px;top:8px;width:30px;height:30px;border:0;background:none;color:#999;font-size:22px;cursor:pointer}
.ph-url{display:block;text-align:center;font-size:22px;font-weight:800;color:var(--c);margin:6px 0 4px;word-break:break-all}
.ph-tip{color:#666;font-size:13px;line-height:1.7;margin:8px 0}
.ph-go{display:block;width:100%;height:40px;margin-top:12px;border:0;border-radius:6px;background:var(--c);color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.ph-fav{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--bd)}
.ph-fav img{flex:none;width:96px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;background:var(--bg3)}
.ph-fav span{flex:1;min-width:0;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ph-fav button{flex:none;border:0;background:none;color:#999;font-size:12px;cursor:pointer}
