/* 手机大卡片：深灰底、整页手机宽（电脑上居中 640）、内容几乎贴边、顶部图标条吸顶、一排分类、推荐/热门/最新/正在看切换；
   每个片单前 2 部一行一个大封面（标题压在图上），后面两列小卡片（标题在图下） */
.t-phone{--wmax:640px;--bg:#121212;--bg2:#1c1c1c;--bg3:#2a2a2a;--tx:#ececec;--tx2:#9a9a9a;--bd:#2a2a2a;--r:8px;--g2:#f3c622;--grad:linear-gradient(90deg,var(--c) 20%,var(--g2))}
.t-phone .wrap{max-width:640px;padding:0 6px}
.t-phone main.wrap{padding-top:8px}

/* 头部：logo + 收藏 + 保存网址 + 搜索；下面一条横滑的图标广告，一起吸顶 */
.ph-hd{background:rgba(18,18,18,.96);border-bottom:0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.ph-bar{display:flex;align-items:center;gap:8px;height:54px;max-width:640px;margin:0 auto;padding:0 10px}
.ph-bar .logo{font-size:22px;font-weight:900;letter-spacing:.5px;max-width:48%;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.ph-bar .logo img{height:34px}
.ph-sp{flex:1}
.ph-btn{flex:none;height:30px;padding:0 12px;border:1px solid rgba(255,255,255,.55);border-radius:15px;background:none;color:#fff;font-size:13px;cursor:pointer}
.ph-save{position:relative}
.ph-save::after{content:"";position:absolute;right:2px;top:-2px;width:7px;height:7px;border-radius:50%;background:#ff3b30}
.ph-ico{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;background:none;color:var(--tx);cursor:pointer}
.ph-so{max-width:640px;margin:0 auto;padding:0 12px 10px}
.ph-so[hidden]{display:none}
.ph-so .so{max-width:none;margin:0}
.ph-strip{max-width:640px;margin:0 auto;padding:0 6px 4px}
.ph-strip .ad{margin:0}
.ph-strip .ad-icons{display:flex!important;overflow-x:auto;gap:4px;padding:4px 2px 6px;background:none;border:0;border-radius:0;scrollbar-width:none}
.ph-strip .ad-icons::-webkit-scrollbar{display:none}
.ph-strip .ad-ico{flex:none;width:calc((100% - 20px) / 6);min-width:54px;font-size:11px;gap:3px}
.ph-strip .ad-ico img{max-width:46px;border-radius:10px}

/* 非首页：分类横滑条 */
.ph-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}
.ph-chips::-webkit-scrollbar{display:none}
/* 分类按钮：深灰底 + 浅灰描边 + 小圆角，上沿一道高光、下面一点阴影，有立体感（跟原版一样） */
.ph-chips{gap:7px;background:#1a1a1a;border-radius:6px;padding:8px 7px;margin-bottom:10px}
.ph-chips a{flex:1 0 auto;text-align:center;height:30px;line-height:28px;padding:0 6px;border:1px solid #5b5b5b;border-radius:5px;background:#2e2e2e;color:#fff;font-size:13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 3px rgba(0,0,0,.45);transition:border-color .2s,background .2s}
.ph-chips a:hover{border-color:#8a8a8a}
@media(min-width:420px){.ph-chips a{padding:0 10px;font-size:14px}}
.ph-chips a.on{background:var(--grad);border-color:transparent;color:#fff;font-weight:600;box-shadow:0 2px 6px rgba(0,0,0,.45)}

/* 分类矩阵：每行 分类名 + 3 个热门标签 + 全部 */
.ph-matrix{background:var(--bg2);border-radius:var(--r);padding:4px 10px;margin-bottom:10px}
.ph-row{display:flex;align-items:center;gap:8px;padding:7px 0}
.ph-row+.ph-row{border-top:1px solid var(--bd)}
.ph-lb{flex:none;width:74px;padding-left:7px;border-left:3px solid var(--c);font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-subs{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.ph-subs a{min-width:0;text-align:center;padding:6px 2px;border-radius:6px;background:var(--bg3);color:var(--tx);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background .2s}
.ph-subs a:hover{background:var(--c);color:#fff}
.ph-subs a.ph-all{color:var(--c);background:transparent;border:1px solid var(--bd)}
.ph-subs a.ph-all:only-child{grid-column:1/-1}
.ph-subs a.ph-all:only-child::before{content:"查看"}

/* 大图标格子：一行 6 个，不加底框 */
.ph-icons .ad{margin:4px 0 12px}
.t-phone .ad-icons{grid-template-columns:repeat(6,1fr)!important;gap:12px 2px;background:none;border:0;padding:2px 0}
.t-phone .ad-ico{font-size:12px;gap:5px}
.t-phone .ad-ico img{max-width:50px;border-radius:12px}
@media(min-width:560px){.t-phone .ad-ico img{max-width:60px}}

/* 顶部横幅：多张图片自动轮播 */
.ph-carousel .ad{margin:0 0 10px}
.ad.ad-car{flex-direction:row;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:0;border-radius:var(--r)}
.ad.ad-car::-webkit-scrollbar{display:none}
.ad-car>.ad-img,.ad-car>.ad-html{flex:0 0 100%;scroll-snap-align:start}
.ad-car .ad-img img{border-radius:0}

/* 推荐/热门/最新/正在看：不加底框，直接铺开 */
.ph-feat{margin:6px 0 14px}
.ph-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}
.ph-tabs::-webkit-scrollbar{display:none}
.ph-tabs button{flex:1 0 auto;height:38px;padding:0 14px;border:0;border-radius:19px;background:none;color:var(--tx2);font-size:14px;cursor:pointer}
.ph-tabs button.on{background:var(--grad);color:#fff;font-weight:600}
.ph-list[hidden]{display:none!important}

/* 片单：前 2 部大封面（标题压在图上），后面两列小卡片（标题在图下 2 行） */
.t-phone .sec{margin:14px 0 18px}
.t-phone .sec-hd{margin-bottom:10px;padding:0 2px}
.t-phone .sec-hd h2{border:0;padding:5px 16px;border-radius:15px;background:var(--grad);color:#fff;font-size:14px}
.t-phone a.more{color:var(--tx)}
.t-phone .grid{grid-template-columns:1fr 1fr!important;gap:14px 6px}
.t-phone .grid.grid-v{grid-template-columns:repeat(3,1fr)!important}
.t-phone .grid>.card{position:relative;min-width:0}
.t-phone .thumb{border-radius:6px}
.t-phone .card .mt{display:none}
.t-phone .card .tt{margin:0;padding:6px 2px 0;font-size:13px;line-height:1.45;color:var(--tx)}
.t-phone .card:hover .tt{color:#fff}
.t-phone .dur{z-index:4;right:5px;bottom:5px;background:rgba(0,0,0,.55);border-radius:4px;padding:3px 5px;font-size:11px}
.ph-heat{position:absolute;left:5px;top:5px;z-index:2;font-size:11px;line-height:1;padding:3px 6px;border-radius:4px;background:rgba(0,0,0,.55);color:#fff}
.t-phone .tag{border-radius:4px;padding:3px 6px}
/* 备注（更新至05集）：只在竖版短剧卡片显示 */
.ph-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 .ph-rem{display:block}
.grid-v .ph-rem~.dur{display:none}
/* 前 2 部：整行大封面 */
.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2){grid-column:1/-1;border-radius:var(--r);overflow:hidden}
.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2) .thumb{border-radius:var(--r)}
.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2) .thumb::after{height:50%;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2) .tt{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:22px 76px 10px 11px;color:#fff;font-size:15px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2) .dur{right:9px;bottom:10px;border-radius:10px;padding:4px 8px;font-size:12px}
.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2) .ph-heat,.t-phone .grid:not(.grid-v)>.card:nth-child(-n+2) .tag{left:8px;top:8px;border-radius:10px;padding:4px 8px}
.t-phone .card:hover .thumb img{transform:scale(1.03)}

/* 热门标签 */
.t-phone .hot{border-radius:var(--r);margin:10px 0}

/* 播放页 */
.t-phone .player{border-radius:var(--r)}
.ph-vt{margin:10px 2px 6px}
.ph-vt h1{font-size:16px;line-height:1.45;font-weight:700}
.ph-vt h1 small{font-size:13px;color:var(--c);font-weight:400}
.ph-heat2{display:inline-block;font-size:12px;color:var(--tx2);margin-bottom:3px}
.ph-acts{display:flex;gap:8px;margin:8px 0 12px}
.ph-acts>*{flex:1;min-width:0;height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bd);border-radius:18px;background:var(--bg2);color:var(--tx);font-size:13px;cursor:pointer;white-space:nowrap}
.ph-acts .pri{background:linear-gradient(90deg,var(--c),var(--g2));border:0;color:#fff}
.ph-acts .on{color:var(--c);border-color:var(--c)}
.ph-share{display:flex;align-items:center;gap:8px;background:var(--bg2);border-radius:var(--r);padding:8px 8px 8px 12px;margin:10px 0;font-size:12px;color:var(--tx2)}
.ph-share span{flex:none}
.ph-share input{flex:1;min-width:0;background:none;border:0;outline:none;color:var(--tx);font-size:12px}
.ph-share button{flex:none;height:28px;padding:0 14px;border:0;border-radius:14px;background:var(--c);color:#fff;font-size:12px;cursor:pointer}
.ph-info{background:var(--bg2);border-radius:var(--r);padding:12px;margin:10px 0}
.ph-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0}
.ph-tags b{font-weight:500;color:var(--tx);margin-right:2px}
.ph-tags a{padding:3px 10px;border-radius:12px;background:var(--bg3);color:var(--tx2);font-size:12px}
.ph-tags a:hover{color:#fff;background:var(--c)}
.t-phone .eps{border-radius:var(--r);border:0}

/* 收藏 / 保存网址 弹层 */
.ph-modal{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.72);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:#161616;border:1px solid var(--bd);border-radius:14px;padding:18px 16px 16px;color:var(--tx)}
.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:var(--tx2);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:var(--tx2);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:20px;background:linear-gradient(90deg,var(--c),var(--g2));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:var(--tx2);font-size:12px;cursor:pointer}

.t-phone .ft{background:#0c0c0c}
.ph-acts .pri,.ph-go,.ph-share button{background:var(--grad)}
@media(min-width:640px){.t-phone .wrap{padding:0 10px}}
