/* ===== 防闪：改造未完成前隐藏旧布局 ===== */
html[data-sw="pending"] body{opacity:0!important}
body{transition:opacity .16s ease}
body.skin-watch,body.skin-live{background:rgb(var(--c-page))!important;color:rgb(var(--c-content))}

/* ===== 播放页布局（播放器居中放大 + 上方简介 + 下方剧集）===== */
body.skin-watch *{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans SC","Microsoft YaHei",sans-serif}

/* 站点原顶栏隐藏，改用自建顶栏 */
body.skin-watch header,body.skin-live header{display:none!important}

body.skin-watch main{
  max-width:1320px!important;
  margin:0 auto!important;
  padding:84px 24px 60px!important;
  box-sizing:border-box!important;
  width:100%!important;
}
body.skin-watch main > div{
  display:flex!important;
  flex-direction:column!important;
  gap:20px!important;
  grid-template-columns:none!important;
  width:100%!important;
  max-width:none!important;
}

/* 播放器：居中、放大（.sw-content 是插入的 section，用相邻兄弟定位播放器列） */
body.skin-watch main > div > .sw-content + div,
body.skin-watch main > div > div:first-child{
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto!important;
}
body.skin-watch main > div > .sw-content + div > div:first-child,
body.skin-watch main > div > div:first-child > div:first-child{
  background:#020617!important;
  padding:10px!important;
  border-radius:22px!important;
  box-shadow:0 24px 60px rgba(2,6,23,.3)!important;
  overflow:hidden!important;
}
body.skin-watch [class*="aspect-video"]{
  border-radius:16px!important;
  overflow:hidden!important;
  aspect-ratio:16/9!important;
  width:100%!important;
}
body.skin-watch video,body.skin-watch iframe{
  width:100%!important;height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  background:#020617!important;
  border-radius:16px!important;
  display:block!important;
}

/* 播放器下方工具条（线路/清晰度/上下集） */
body.skin-watch main > div > .sw-content + div > div:nth-child(2),
body.skin-watch main > div > div:first-child > div:nth-child(2){
  margin-top:12px!important;
  padding:0 4px!important;
  flex-wrap:wrap!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
body.skin-watch main > div > .sw-content + div > div:nth-child(2) button,
body.skin-watch main > div > div:first-child > div:nth-child(2) button{
  border-radius:999px!important;
}

/* ===== 简介 / 信息 两栏卡 ===== */
.sw-content{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 340px!important;
  gap:18px!important;
  align-items:start!important;
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto!important;
}
.sw-prose,.sw-info{
  background:rgb(var(--c-surface))!important;
  border:1px solid rgb(var(--c-line))!important;
  border-radius:20px!important;
  padding:24px 26px!important;
  box-shadow:0 10px 28px rgba(2,6,23,.16)!important;
  color:rgb(var(--c-content))!important;
}
.sw-prose h2,.sw-info h2{
  font-size:20px!important;font-weight:900!important;letter-spacing:-.02em;
  color:rgb(var(--c-content))!important;margin:0 0 14px!important;
}
.sw-prose h2:not(:first-child){margin-top:24px!important}
.sw-prose p{font-size:14.5px!important;line-height:1.95!important;color:rgb(var(--c-muted))!important;margin:0 0 12px!important}
.sw-prose p:last-child{margin-bottom:0!important}
.sw-crew{
  margin-top:16px!important;padding-top:14px!important;
  border-top:1px dashed rgb(var(--c-line))!important;
  font-size:13px!important;color:rgb(var(--c-muted))!important;line-height:1.95!important;
}
.sw-crew b{color:rgb(var(--c-content))!important;font-weight:800!important}
.sw-infolist{display:grid!important;gap:12px!important}
.sw-infolist div{
  display:flex!important;justify-content:space-between!important;
  gap:14px!important;align-items:baseline!important;
  border-bottom:1px solid rgb(var(--c-line))!important;
  padding-bottom:11px!important;
}
.sw-infolist div:last-child{border-bottom:none!important;padding-bottom:0!important}
.sw-infolist strong{font-size:13px!important;font-weight:800!important;color:rgb(var(--c-faint))!important;white-space:nowrap!important}
.sw-infolist span{font-size:13.5px!important;color:rgb(var(--c-content))!important;text-align:right!important}
.sw-score{color:rgb(var(--c-rating))!important;font-weight:900!important}

/* 剧集列表区域 */
body.skin-watch main > div > div:last-child{
  width:100%!important;max-width:1280px!important;margin:0 auto!important;
}

/* 页脚 */
.sw-foot{
  max-width:1320px!important;margin:40px auto 0!important;
  padding:26px 24px 40px!important;
  text-align:center!important;font-size:12.5px!important;line-height:1.9!important;
  color:rgb(var(--c-faint))!important;
  border-top:1px solid rgb(var(--c-line))!important;
}
.sw-foot b{color:rgb(var(--c-muted))!important}

/* 移动端 */
@media(max-width:1024px){
  .sw-content{grid-template-columns:1fr!important}
  body.skin-watch main{padding:76px 16px 44px!important}
}
@media(max-width:640px){
  body.skin-watch main{padding:72px 12px 36px!important}
  body.skin-watch main > div > .sw-content + div > div:first-child,
  body.skin-watch main > div > div:first-child > div:first-child{padding:6px!important;border-radius:16px!important}
  .sw-prose,.sw-info{padding:18px 16px!important;border-radius:16px!important}
  .sw-prose h2,.sw-info h2{font-size:17px!important}
  .sw-prose p{font-size:14px!important;line-height:1.85!important}
}

/* ===== 自建顶栏 ===== */
.sw-topbar{
  position:fixed!important;top:0!important;left:0!important;right:0!important;
  height:64px!important;z-index:99990!important;
  display:flex!important;align-items:center!important;gap:10px!important;
  padding:0 20px!important;box-sizing:border-box!important;
  background:rgb(var(--c-surface))!important;
  border-bottom:1px solid rgb(var(--c-line))!important;
  box-shadow:0 2px 12px rgba(0,0,0,.12)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.sw-topbar .sw-icon{
  flex:none!important;width:36px!important;height:36px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:10px!important;border:1px solid transparent!important;
  background:transparent!important;color:rgb(var(--c-muted))!important;
  cursor:pointer!important;text-decoration:none!important;
}
.sw-topbar .sw-icon:hover{background:rgb(var(--c-chip))!important;color:rgb(var(--c-content))!important}
.sw-topbar .sw-meta{min-width:0!important;max-width:300px!important;flex:none!important}
.sw-topbar .sw-t{
  font-size:15px!important;font-weight:800!important;color:rgb(var(--c-content))!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.sw-topbar .sw-s{
  font-size:12px!important;color:rgb(var(--c-muted))!important;margin-top:2px!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.sw-topbar .sw-actions{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important;flex:none!important}
.sw-topbar .sw-act{
  height:34px!important;padding:0 14px!important;border-radius:999px!important;
  border:1px solid rgb(var(--c-line))!important;background:rgb(var(--c-chip))!important;
  color:rgb(var(--c-muted))!important;font-size:13px!important;font-weight:700!important;
  cursor:pointer!important;white-space:nowrap!important;text-decoration:none!important;
  display:inline-flex!important;align-items:center!important;box-sizing:border-box!important;
}
.sw-topbar .sw-act:hover{background:rgb(var(--c-hover))!important;color:rgb(var(--c-content))!important}

/* 顶栏里的搜索框（真输入框，回车提交流式） */
.sw-topbar .sw-search{
  position:static!important;left:auto!important;top:auto!important;transform:none!important;
  flex:1 1 auto!important;width:auto!important;max-width:420px!important;min-width:140px!important;
  margin:0 auto!important;display:flex!important;align-items:center!important;gap:8px!important;
  height:38px!important;padding:0 14px!important;box-sizing:border-box!important;
  border-radius:999px!important;border:1px solid rgb(var(--c-line))!important;
  background:rgb(var(--c-chip))!important;
}
.sw-topbar .sw-search:focus-within{border-color:rgb(var(--c-accent))!important;background:rgb(var(--c-surface))!important}
.sw-topbar .sw-search .ic{display:flex!important;align-items:center!important;flex:none!important;color:rgb(var(--c-faint))!important}
.sw-topbar .sw-search .sw-input{
  flex:1 1 auto!important;min-width:0!important;width:auto!important;height:100%!important;
  background:transparent!important;border:none!important;outline:none!important;
  color:rgb(var(--c-content))!important;font-size:14px!important;padding:0!important;margin:0!important;
}
.sw-topbar .sw-search .sw-input::placeholder{color:rgb(var(--c-faint))!important}

@media(max-width:900px){
  .sw-topbar .sw-meta{max-width:120px!important}
  .sw-topbar .sw-search{max-width:none!important}
  .sw-topbar .sw-act{display:none!important}
}
@media(max-width:900px){.sw-search{width:44vw!important;max-width:44vw!important;min-width:0!important;height:34px;font-size:13px}}
@media(max-width:640px){body.skin-watch header[class*="sticky"] h1{max-width:110px}.sw-search input{height:34px;font-size:13px}}

/* 主容器：去掉两栏，改单列 */

/* 首页推荐模块（电影周榜 / 新番放送）：用户要求去掉 */
section[aria-label="影视榜单推荐"],
section[aria-label="新番放送推荐"]{display:none!important}
