/* ==========================================================
   顶点影视 TOPYS.CC  —  全新模板样式  v2.0
   主色 深墨绿 #0F5946 / 辅助 #12806A / 强调 琥珀金 #F5A524
   所有新组件统一 tp- 前缀；旧 stui-/mv- 仅保留必要兼容
   ========================================================== */
:root{
  --tp-primary:#0F5946;
  --tp-primary-2:#12806A;
  --tp-primary-3:#0A3E31;
  --tp-gold:#F5A524;
  --tp-bg:#F7F8F5;
  --tp-card:#FFFFFF;
  --tp-text:#17201D;
  --tp-muted:#5A6B65;
  --tp-line:#E6EAE7;
  --tp-radius:14px;
  --tp-shadow:0 6px 20px rgba(15,89,70,.08);
  --tp-shadow-hover:0 14px 34px rgba(15,89,70,.18);
  --tp-ease:180ms cubic-bezier(.4,.2,.2,1);
}
*{box-sizing:border-box}
body{
  margin:0;background:var(--tp-bg);color:var(--tp-text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased;
  padding-bottom:0;
}
a{color:inherit;text-decoration:none;transition:color var(--tp-ease)}
a:hover{color:var(--tp-primary-2);text-decoration:none}
img{max-width:100%;border:0}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,h4{margin:0;font-weight:700;line-height:1.35}
.tp-wrap{max-width:1220px;margin:0 auto;padding:0 16px}
.hidden-xs,.visible-xs{display:block}
.hide{display:none}
.text-muted{color:var(--tp-muted)}

/* ============ 顶部公告条 ============ */
.tp-notice{background:linear-gradient(90deg,var(--tp-primary-3),var(--tp-primary));color:#D8E8E2;font-size:12px}
.tp-notice .tp-wrap{display:flex;align-items:center;gap:10px;height:36px;overflow:hidden}
.tp-notice__tag{flex:0 0 auto;background:var(--tp-gold);color:#3A2703;font-weight:700;padding:1px 8px;border-radius:20px;font-size:11px}
.tp-notice__txt{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-notice__hot{flex:0 0 auto;display:flex;gap:12px}
.tp-notice__hot a{color:#B9D3CA}
.tp-notice__hot a:hover{color:var(--tp-gold)}

/* ============ 主头部 ============ */
.tp-header{margin:12px 0 18px}
.tp-header__in{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  background:linear-gradient(120deg,var(--tp-primary) 0%,var(--tp-primary-2) 100%);
  border-radius:18px;padding:14px 20px;box-shadow:var(--tp-shadow);
}
.tp-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.tp-brand__logo{width:42px;height:42px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.tp-brand__txt{display:flex;flex-direction:column;line-height:1.2}
.tp-brand__name{color:#fff;font-size:20px;font-weight:800;letter-spacing:.5px}
.tp-brand__sub{color:var(--tp-gold);font-size:10px;letter-spacing:3px;text-transform:uppercase}
.tp-search{flex:1 1 320px;min-width:220px;position:relative}
.tp-search .ff-search{display:flex;background:rgba(255,255,255,.96);border-radius:24px;padding:4px 4px 4px 16px;align-items:center}
.tp-search .ff-wd{flex:1;border:0;outline:0;background:transparent;font-size:14px;height:32px;color:var(--tp-text)}
.tp-search .ff-wd::placeholder{color:#93A39D}
.tp-search .submit{
  border:0;cursor:pointer;background:var(--tp-gold);color:#3A2703;font-weight:700;
  height:32px;padding:0 20px;border-radius:20px;font-size:13px;transition:filter var(--tp-ease)
}
.tp-search .submit:hover{filter:brightness(1.06)}
.tp-nav{display:flex;gap:4px;flex:0 0 auto;flex-wrap:wrap}
.tp-nav a{
  color:#DCEAE5;padding:7px 13px;border-radius:20px;font-size:14px;white-space:nowrap;
  transition:background var(--tp-ease),color var(--tp-ease)
}
.tp-nav a:hover{background:rgba(255,255,255,.14);color:#fff}
.tp-nav a.on{background:var(--tp-gold);color:#3A2703;font-weight:700}
.tp-menu-btn{display:none}

/* ============ 通用区块 ============ */
.tp-main{padding-bottom:26px}
.tp-sec{margin:26px 0}
.tp-sec__hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.tp-sec__hd h2{font-size:19px;color:var(--tp-text);display:flex;align-items:center;gap:8px}
.tp-sec__hd h2::before{content:"";width:4px;height:18px;border-radius:2px;background:linear-gradient(180deg,var(--tp-gold),var(--tp-primary-2))}
.tp-sec__hd h2 i{font-style:normal;font-size:11px;color:#A9B7B1;letter-spacing:2px;font-weight:600;text-transform:uppercase}
.tp-sec__hd>a{font-size:13px;color:var(--tp-muted)}
.tp-sec__hd>a:hover{color:var(--tp-primary-2)}

/* ============ 首屏：轮播 + 热播榜 ============ */
.tp-hero{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;margin:6px 0 8px}
.tp-hero__slider{position:relative;border-radius:20px;overflow:hidden;box-shadow:var(--tp-shadow);background:var(--tp-primary-3);min-height:340px}
.tp-hero__slide{
  position:absolute;inset:0;display:block;background-size:cover;background-position:center 20%;
  opacity:0;transition:opacity .6s ease;pointer-events:none
}
.tp-hero__slide.is-on,.tp-hero__slide:first-child{opacity:1;pointer-events:auto}
.tp-hero__slide::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(6,32,26,.92) 0%,rgba(6,32,26,.72) 42%,rgba(6,32,26,.12) 100%)
}
.tp-hero__meta{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;
  height:100%;padding:28px;max-width:62%;color:#fff}
.tp-hero__name{font-size:26px;font-weight:800;letter-spacing:.5px;margin-bottom:8px;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.tp-hero__tags{font-size:12px;color:var(--tp-gold);margin-bottom:10px;letter-spacing:.5px}
.tp-hero__desc{font-size:13px;color:#CFE0DA;line-height:1.65;margin:0 0 16px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tp-hero__dots{position:absolute;bottom:16px;right:22px;display:flex;gap:7px;z-index:3}
.tp-hero__dots span,.tp-hero__dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:all var(--tp-ease)}
.tp-hero__dots span.on,.tp-hero__dots i.on{background:var(--tp-gold);width:22px;border-radius:4px}
.tp-btn{display:inline-flex;align-items:center;gap:6px;background:var(--tp-gold);color:#3A2703;
  font-weight:700;font-size:13px;padding:9px 22px;border-radius:22px;transition:transform var(--tp-ease),box-shadow var(--tp-ease)}
.tp-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(245,165,36,.35);color:#3A2703}
.tp-btn--ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.28)}
.tp-btn--primary{background:linear-gradient(120deg,var(--tp-primary),var(--tp-primary-2));color:#fff}
.tp-btn--primary:hover{color:#fff;box-shadow:0 12px 26px rgba(15,89,70,.32)}

/* 热播榜 */
.tp-rank{background:var(--tp-card);border-radius:20px;box-shadow:var(--tp-shadow);padding:16px 18px;display:flex;flex-direction:column}
.tp-rank__hd{display:flex;align-items:baseline;gap:8px;font-size:16px;margin-bottom:10px}
.tp-rank__hd i{font-style:normal;font-size:11px;color:var(--tp-gold);letter-spacing:1px;font-weight:700}
.tp-rank li{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px dashed var(--tp-line)}
.tp-rank li:last-child{border-bottom:0}
.tp-rank__no{flex:0 0 20px;height:20px;line-height:20px;text-align:center;border-radius:6px;font-size:11px;
  font-weight:800;background:#EEF3F0;color:var(--tp-muted)}
.tp-rank li:nth-child(1) .tp-rank__no{background:var(--tp-gold);color:#3A2703}
.tp-rank li:nth-child(2) .tp-rank__no{background:#E3B562;color:#3A2703}
.tp-rank li:nth-child(3) .tp-rank__no{background:#D9C89B;color:#3A2703}
.tp-rank li a{flex:1;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-rank li i{font-style:normal;font-size:11px;color:#A9B7B1}

/* ============ 影片卡片网格 ============ */
.tp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:16px}
.tp-card{background:transparent}
.tp-card__link{display:block}
.tp-card__pic{position:relative;display:block;border-radius:var(--tp-radius);overflow:hidden;
  aspect-ratio:3/4;background:#E9EEEB;box-shadow:var(--tp-shadow);transition:transform var(--tp-ease),box-shadow var(--tp-ease)}
.tp-card__pic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.tp-card__link:hover .tp-card__pic{transform:translateY(-4px);box-shadow:var(--tp-shadow-hover)}
.tp-card__link:hover .tp-card__pic img{transform:scale(1.06)}
.tp-card__play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(10,62,49,.34);opacity:0;transition:opacity var(--tp-ease)}
.tp-card__play::after{content:"";width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.92);
  box-shadow:0 6px 16px rgba(0,0,0,.28);
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230F5946'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size:60% 60%;background-position:center;background-repeat:no-repeat}
.tp-card__link:hover .tp-card__play{opacity:1}
.tp-card__badge{position:absolute;left:8px;top:8px;background:rgba(10,62,49,.82);color:#fff;
  font-size:11px;padding:2px 7px;border-radius:8px;backdrop-filter:blur(4px)}
.tp-card__badge--score{left:auto;right:8px;background:rgba(245,165,36,.94);color:#3A2703;font-weight:700}
.tp-card__name{display:block;margin-top:9px;font-size:14px;font-weight:600;color:var(--tp-text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-card__sub{display:block;font-size:11px;color:#93A39D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============ 频道四宫格 ============ */
.tp-channels{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:26px 0}
.tp-ch{position:relative;border-radius:18px;padding:20px;color:#fff;overflow:hidden;
  background:linear-gradient(135deg,var(--tp-primary) 0%,var(--tp-primary-2) 100%);
  box-shadow:var(--tp-shadow);transition:transform var(--tp-ease),box-shadow var(--tp-ease)}
.tp-ch:nth-child(2){background:linear-gradient(135deg,#0B4A3B,#1C8F76)}
.tp-ch:nth-child(3){background:linear-gradient(135deg,#14584A,#2AA189)}
.tp-ch:nth-child(4){background:linear-gradient(135deg,#1C3F35,#0F5946)}
.tp-ch:hover{transform:translateY(-4px);box-shadow:var(--tp-shadow-hover);color:#fff}
.tp-ch b{display:block;font-size:20px;font-weight:800;margin-bottom:4px}
.tp-ch i{font-style:normal;font-size:11px;color:rgba(255,255,255,.72);letter-spacing:2px;text-transform:uppercase}
.tp-ch em{display:block;margin-top:12px;font-style:normal;font-size:12px;color:var(--tp-gold)}
.tp-ch::after{content:"";position:absolute;right:-28px;bottom:-34px;width:110px;height:110px;border-radius:50%;
  background:rgba(255,255,255,.07)}

/* ============ 横向滚动条 ============ */
.tp-rail{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory}
.tp-rail::-webkit-scrollbar{height:6px}
.tp-rail::-webkit-scrollbar-thumb{background:#CFDAD5;border-radius:6px}
.tp-rail .tp-card{flex:0 0 158px;scroll-snap-align:start}

/* ============ 面包屑 / 页面标题 ============ */
.tp-crumb{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--tp-muted);margin:0 0 14px;flex-wrap:wrap}
.tp-crumb a{color:var(--tp-muted)}
.tp-crumb a:hover{color:var(--tp-primary-2)}
.tp-crumb span.sep{color:#C3CEC9}
.h1-page,.h1-site{font-size:20px;margin:0 0 12px;color:var(--tp-text)}
.h1-site{font-size:14px;font-weight:500;color:var(--tp-muted);padding:18px 16px;max-width:1220px;margin:0 auto;text-align:center}

/* ============ 详情页 ============ */
.tp-detail{position:relative;overflow:hidden;padding-bottom:20px}
.tp-detail__bg{position:absolute;inset:0;background-size:cover;background-position:center;
  filter:blur(38px) saturate(1.1);transform:scale(1.12);opacity:.30;z-index:0}
.tp-detail__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(247,248,245,.55),var(--tp-bg) 72%)}
.tp-detail__in{position:relative;z-index:1}
.tp-dt{display:grid;grid-template-columns:206px minmax(0,1fr);gap:24px;background:var(--tp-card);
  border-radius:20px;padding:22px;box-shadow:var(--tp-shadow);margin-bottom:22px}
.tp-dt__poster img{width:100%;border-radius:var(--tp-radius);box-shadow:0 12px 28px rgba(15,89,70,.18);display:block;aspect-ratio:3/4;object-fit:cover;background:#E9EEEB}
.tp-dt__head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.tp-dt__head h1{font-size:26px;letter-spacing:.5px}
.tp-dt__score{display:inline-flex;align-items:baseline;gap:2px;background:linear-gradient(120deg,var(--tp-gold),#F7BE55);
  color:#3A2703;font-weight:800;font-size:16px;padding:3px 12px;border-radius:20px}
.tp-dt__score i{font-style:normal;font-size:11px;font-weight:600}
.tp-dt__meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin:10px 0;font-size:13px;color:var(--tp-muted)}
.tp-dt__meta b{color:var(--tp-text);font-weight:600}
.tp-dt__meta a{color:var(--tp-primary-2)}
.tp-dt__desc{font-size:13px;color:var(--tp-muted);line-height:1.75;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tp-dt__btns{display:flex;gap:12px;align-items:center;margin-top:16px;flex-wrap:wrap}
.tp-dt__playlist{margin-top:16px}
.tp-dt__playlist h4{font-size:13px;color:var(--tp-muted);margin-bottom:8px;font-weight:600}
.tp-eps{display:flex;flex-wrap:wrap;gap:8px}
.tp-eps a{font-size:12px;padding:5px 12px;border-radius:9px;background:#F0F4F2;color:var(--tp-text);border:1px solid transparent}
.tp-eps a:hover{background:#E4EFEA;border-color:#C9DFD6;color:var(--tp-primary)}

/* 通用面板（剧情 / 猜你喜欢） */
.tp-panel{background:var(--tp-card);border-radius:18px;box-shadow:var(--tp-shadow);padding:20px;margin-bottom:20px}
.tp-panel__hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.tp-panel__hd h3{font-size:17px;display:flex;align-items:center;gap:8px}
.tp-panel__hd h3::before{content:"";width:4px;height:16px;border-radius:2px;background:linear-gradient(180deg,var(--tp-gold),var(--tp-primary-2))}
.tp-panel__body{font-size:14px;color:#3C4A45;line-height:1.9}

/* ============ 播放页 ============ */
.tp-play{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;margin-bottom:18px}
.tp-play__main{background:var(--tp-card);border-radius:20px;box-shadow:var(--tp-shadow);padding:16px;min-width:0}
.tp-play__frame{position:relative;border-radius:14px;overflow:hidden;background:#08110E}
.tp-play__frame .stui-player__video{position:relative;width:100%;height:0;padding-bottom:56.25%}
.tp-play__frame .stui-player__video iframe,
.tp-play__frame .stui-player__video embed,
.tp-play__frame .stui-player__video video,
.tp-play__frame .stui-player__video object,
.tp-play__frame .stui-player__video>div{position:absolute;inset:0;width:100%;height:100%}
.tp-play__title{font-size:20px;margin:14px 0 6px}
.tp-play__title small{font-size:13px;color:var(--tp-gold);font-weight:600;margin-left:8px}
.tp-play__meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--tp-muted);padding-bottom:12px;border-bottom:1px solid var(--tp-line)}
.tp-play__meta a{color:var(--tp-primary-2)}
.tp-play__err{margin-left:auto;color:#C2724A}
.tp-play__side{background:var(--tp-card);border-radius:20px;box-shadow:var(--tp-shadow);padding:16px;min-width:0}
.tp-eps__hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tp-eps__hd h3{font-size:15px}
.tp-eps__hd span{font-size:11px;color:var(--tp-muted)}
.tp-eps__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;max-height:420px;overflow-y:auto;padding-right:2px}
.tp-eps__list::-webkit-scrollbar{width:5px}
.tp-eps__list::-webkit-scrollbar-thumb{background:#CFDAD5;border-radius:6px}
.tp-eps__list li a{display:block;text-align:center;font-size:12px;padding:7px 4px;border-radius:9px;
  background:#F0F4F2;color:var(--tp-text);border:1px solid transparent;transition:all var(--tp-ease);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-eps__list li a:hover{background:#E4EFEA;color:var(--tp-primary)}
.tp-eps__list li.active a{background:var(--tp-gold);color:#3A2703;font-weight:700;border-color:#E39A1C}
.tp-eps__rel{margin-top:16px;padding-top:14px;border-top:1px solid var(--tp-line)}
.tp-eps__rel h4{font-size:13px;color:var(--tp-muted);margin-bottom:8px;font-weight:600}
.tp-eps__rel a{display:block;font-size:12px;padding:4px 0;color:var(--tp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============ 筛选条（列表/频道页） ============ */
.stui-pannel{background:var(--tp-card);border-radius:18px;box-shadow:var(--tp-shadow);padding:18px;margin-bottom:20px}
.stui-pannel__head{margin-bottom:14px}
.stui-pannel__head .title{font-size:17px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stui-pannel__head .title span{font-weight:800}
.stui-pannel__head .title a{font-size:13px;font-weight:500;color:var(--tp-muted)}
.stui-screen__list{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 0;border-bottom:1px dashed var(--tp-line)}
.stui-screen__list:last-of-type{border-bottom:0}
.stui-screen__list>li>.text-muted,.stui-screen__list>li>span{font-size:12px;color:#93A39D;padding-right:4px}
.stui-screen__list li a{display:inline-block;font-size:12px;padding:5px 13px;border-radius:16px;
  background:#F0F4F2;color:var(--tp-text);transition:all var(--tp-ease)}
.stui-screen__list li a:hover{background:#E4EFEA;color:var(--tp-primary-2)}
.stui-screen__list li.active a{background:linear-gradient(120deg,var(--tp-primary),var(--tp-primary-2));color:#fff;font-weight:600}
.list-intro{font-size:13px;color:var(--tp-muted);margin:0 0 16px;line-height:1.75}

/* 旧 stui-vodlist 容器 → 与新卡片网格同构 */
.stui-vodlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:16px}
.stui-vodlist.tp-rail{display:flex}

/* ============ 分页 ============ */
.stui-page{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:22px 0 6px}
.stui-page li,.stui-page a,.stui-page span{display:inline-block}
.stui-page a,.stui-page span.current,.stui-page .disabled{
  min-width:34px;text-align:center;font-size:13px;padding:7px 11px;border-radius:10px;
  background:#F0F4F2;color:var(--tp-text)
}
.stui-page a:hover{background:#E4EFEA;color:var(--tp-primary-2)}
.stui-page .current,.stui-page span.current{background:linear-gradient(120deg,var(--tp-primary),var(--tp-primary-2));color:#fff;font-weight:700}

/* ============ 友链 ============ */
.stui-link__text{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px}
.stui-link__text li a{color:var(--tp-muted)}
.stui-link__text li a:hover{color:var(--tp-primary-2)}

/* ============ 页脚 ============ */
.tp-footer{background:linear-gradient(160deg,var(--tp-primary-3),var(--tp-primary));color:#C8DCD5;margin-top:30px;padding:34px 0 0}
.tp-footer__in{max-width:1220px;margin:0 auto;padding:0 16px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:28px}
.tp-footer__brand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.tp-footer__brand img{width:34px;height:34px}
.tp-footer__brand b{color:#fff;font-size:17px}
.tp-geo p{font-size:12.5px;line-height:1.85;color:#A9C6BD;margin:0 0 10px}
.tp-geo a{color:var(--tp-gold)}
.tp-footer h4{color:#fff;font-size:14px;margin-bottom:12px}
.tp-footer ul li{margin-bottom:8px;font-size:13px}
.tp-footer ul li a{color:#A9C6BD}
.tp-footer ul li a:hover{color:var(--tp-gold)}
.tp-footer__bar{border-top:1px solid rgba(255,255,255,.12);margin-top:26px;padding:14px 16px;text-align:center;font-size:12px;color:#8FB2A8}
.tp-about{font-size:12px;line-height:1.8;color:#8FB2A8;margin:10px 0 0}

/* ============ 移动端底部导航 ============ */
.tp-tabbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:900;
  background:rgba(255,255,255,.97);backdrop-filter:blur(10px);
  box-shadow:0 -4px 18px rgba(15,89,70,.10);border-top:1px solid var(--tp-line);
  padding:4px 0 calc(4px + env(safe-area-inset-bottom))}
.tp-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;
  font-size:11px;color:var(--tp-muted);padding:6px 0}
.tp-tabbar a b{font-size:17px;line-height:1;font-weight:400}
.tp-tabbar a.on{color:var(--tp-primary)}
.tp-tabbar a.on b{color:var(--tp-gold)}

/* 广告插槽 */
.mv-adslot,.ff-ad-slot{max-height:120px;overflow:hidden;border-radius:12px;margin:0 0 14px}
.mv-adslot__tag{display:inline-block;font-size:10px;color:#A9B7B1;margin-bottom:2px}

/* ============ 响应式 ============ */
@media (max-width:1199px){
  .tp-hero{grid-template-columns:minmax(0,1fr) 280px}
  .tp-play{grid-template-columns:minmax(0,1fr) 300px}
  .tp-footer__in{grid-template-columns:1.4fr 1fr 1fr}
}
@media (max-width:991px){
  .tp-hero{grid-template-columns:1fr}
  .tp-hero__slider{min-height:300px}
  .tp-hero__meta{max-width:100%;padding:20px}
  .tp-hero__name{font-size:21px}
  .tp-play{grid-template-columns:1fr}
  .tp-channels{grid-template-columns:repeat(2,1fr)}
  .tp-dt{grid-template-columns:150px minmax(0,1fr);gap:16px}
  .tp-dt__head h1{font-size:21px}
  .tp-footer__in{grid-template-columns:1fr 1fr;gap:20px}
}
@media (max-width:767px){
  body{padding-bottom:58px}
  .tp-wrap{padding:0 12px}
  .tp-notice__hot{display:none}
  .tp-header__in{padding:12px 14px;border-radius:16px;gap:12px}
  .tp-brand__logo{width:36px;height:36px}
  .tp-brand__name{font-size:17px}
  .tp-nav{display:none}
  .tp-search{order:3;flex:1 1 100%}
  .tp-grid,.stui-vodlist{grid-template-columns:repeat(3,1fr);gap:10px}
  .tp-card__name{font-size:12.5px}
  .tp-card__sub{display:none}
  .tp-card__play::after{width:36px;height:36px}
  .tp-hero__slider{min-height:230px;border-radius:16px}
  .tp-hero__meta{padding:16px}
  .tp-hero__name{font-size:18px}
  .tp-hero__desc{-webkit-line-clamp:2;font-size:12px}
  .tp-rank{padding:14px}
  .tp-sec,.tp-hero{margin:18px 0}
  .tp-sec__hd h2{font-size:16px}
  .tp-channels{grid-template-columns:repeat(2,1fr);gap:10px}
  .tp-ch{padding:14px;border-radius:14px}
  .tp-ch b{font-size:16px}
  .tp-dt{grid-template-columns:104px minmax(0,1fr);padding:14px;border-radius:16px;gap:12px}
  .tp-dt__head h1{font-size:17px}
  .tp-dt__score{font-size:13px;padding:2px 9px}
  .tp-dt__meta{font-size:12px;gap:4px 10px}
  .tp-dt__desc{-webkit-line-clamp:2;font-size:12px}
  .tp-dt__btns .tp-btn{padding:8px 16px;font-size:13px}
  .tp-play__main,.tp-play__side,.tp-panel,.stui-pannel{padding:12px;border-radius:14px}
  .tp-play__title{font-size:16px}
  .tp-eps__list{max-height:none;grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
  .tp-footer{padding-top:22px}
  .tp-footer__in{grid-template-columns:1fr;gap:16px}
  .tp-footer__bar{margin-top:16px}
  .tp-tabbar{display:flex}
  .stui-page a,.stui-page span.current{min-width:30px;padding:6px 9px;font-size:12px}
  .h1-page{font-size:16px}
  .list-intro{font-size:12px}
}
@media (max-width:359px){
  .tp-grid,.stui-vodlist{grid-template-columns:repeat(2,1fr)}
}

/* --- v2.1 播放页排布补充 --- */
.tp-dt__info{min-width:0;flex:1}
.tp-play__bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 10px;font-size:13px;color:var(--tp-muted)}
.tp-play__now b{color:var(--tp-primary);font-weight:700}
.tp-play__bar .tp-play__err{margin-left:auto;border:1px solid var(--tp-line);border-radius:999px;padding:4px 12px;color:#B4643C;text-decoration:none}
.tp-play__bar .tp-play__err:hover{background:#FBF1EA;border-color:#EBD5C6}
.tp-play__h1{font-size:20px}
/* 兼容 Bootstrap 栅格在多页头部的内边距 */
.row{margin-left:0;margin-right:0}
.row>[class*="col-"]{padding-left:0;padding-right:0}
.container{max-width:1220px;padding-left:16px;padding-right:16px}
/* 旧结构页面里的面板与面包屑微调 */
.stui-pannel{margin-bottom:16px}
.breadcrumb{background:transparent;padding:10px 2px;margin:0;font-size:12.5px;color:var(--tp-muted)}
.breadcrumb a{color:var(--tp-primary-2)}
.tp-card__badge:empty{display:none}
@media (max-width:767px){
 .tp-play__side{order:2}
 .breadcrumb{margin-top:8px}
}

.tp-hero__dots i{font-style:normal;display:block}
.tp-header.is-stuck{box-shadow:0 10px 26px rgba(15,89,70,.16)}
.tp-header{transition:box-shadow .2s ease}

/* ad slot: keep natural height, anchor creatives inside */
.tp-dt,.tp-play,.tp-sec{position:relative;z-index:2}
.mv-adslot{position:relative!important;z-index:1;isolation:isolate;height:auto!important;min-height:400px;max-height:none!important;overflow:hidden;margin:22px 0;padding:14px 0 0;border-top:1px solid #E6EAE7;text-align:center}
.mv-adslot__tag{display:inline-block;font-size:12px;color:#8A9994;margin-bottom:6px}
.mv-adslot img,.mv-adslot brde{max-width:100%}
/* ad network creatives: force into slot, block fixed overlays */
.mv-adslot brde,.mv-adslot brde[id]{position:static!important;display:block!important;left:auto!important;top:auto!important;width:100%!important;max-width:100%!important;height:auto!important;z-index:auto!important}
.mv-adslot brde>brde{position:relative!important}
.mv-adslot a{display:block;max-width:100%}
.mv-adslot img{display:block;margin:0 auto;max-width:100%;height:auto!important}

/* fix: 选集列表宽度塌陷(单列72px) */
.tp-eps{display:block}
.tp-eps__list{width:100%;box-sizing:border-box}
.tp-play__side .tp-eps+.tp-eps{margin-top:14px}

/* fix: 列表/搜索页沿用旧 stui-vodlist 浮动导致横向溢出 */
ul.stui-vodlist{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important;gap:18px 14px!important;list-style:none!important;padding:0!important;margin:0!important;width:auto!important}
ul.stui-vodlist>li{float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;clear:none!important}
ul.stui-vodlist>li:before,ul.stui-vodlist>li:after{display:none!important;content:none!important}
ul.stui-screen__list{display:flex!important;flex-wrap:wrap!important;gap:8px!important;list-style:none!important;padding:0!important;margin:0!important}
ul.stui-screen__list>li{float:none!important;margin:0!important;padding:0!important}
@media(max-width:480px){ul.stui-vodlist{grid-template-columns:repeat(3,1fr)!important;gap:10px 8px!important}}

/* fix: clearfix 伪元素成为 grid item，吃掉第一格导致整排右移 */
ul.stui-vodlist:before,ul.stui-vodlist:after,.tp-grid:before,.tp-grid:after,ul.tp-eps__list:before,ul.tp-eps__list:after{display:none!important;content:none!important}
