/* 视频详情页 / 分区页 2009 复刻版式
   头部、导航、页脚复用 mkf-home2009.css，这里只处理正文区域 */

body { background: #fff; }

.mkf-detail2009 {
  width: 955px;
  margin: 16px auto 0;
  box-sizing: border-box;
}

.mkf-detail2009 > h2 {
  margin: 0 0 6px;
  font: 700 16px Tahoma, "SimSun", "宋体", Arial, sans-serif;
  color: #333;
}

.mkf-detail2009 .mkf-meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: #999;
}

.mkf-detail2009 .viewbox {
  position: relative;
  padding: 12px;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  box-sizing: border-box;
}

/* 旧模板把操作条绝对定位到 left:680px，这里恢复成普通文档流 */
.mkf-detail2009 .viewbox .handle {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  float: none;
  clear: none;
  width: auto;
  height: auto;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

.mkf-detail2009 .viewbox .content {
  margin-top: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #333;
}

.mkf-detail2009 .mkf-player { max-width: none; margin: 0; }

.mkf-detail2009 .viewbox .intro {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
  color: #666;
  font-size: 12px;
  line-height: 1.8;
}

.mkf-detail2009 .viewbox .boxoff { display: none; }

/* 清除旧模板浮动，让操作条真正撑开高度 */
.mkf-detail2009 .viewbox .handle .actbox { float: none; padding: 0; }
.mkf-detail2009 .viewbox .handle .actbox::after {
  content: '';
  display: block;
  clear: both;
}

.mkf-detail2009 .viewbox .handle .actbox ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.mkf-detail2009 .viewbox .handle .actbox ul li a {
  color: #666;
  font-size: 12px;
  text-decoration: none;
}
.mkf-detail2009 .viewbox .handle .actbox ul li a:hover { color: #1f6fd0; text-decoration: underline; }

.mkf-detail2009 .tbox { margin-top: 14px; }

/* 分区列表：与首页一致的 5 列卡片 */
.mkf-detail2009 .mkf-catlist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.mkf-detail2009 .mkf-catlist li { float: none; width: auto; margin: 0; }
.mkf-detail2009 .mkf-catlist li a { color: #777; }
.mkf-detail2009 .mkf-catlist li a:hover { color: #333; }
.mkf-detail2009 .mkf-catlist li img {
  width: 100%;
  height: auto;
  aspect-ratio: 121 / 75;
  object-fit: cover;
  border: 0;
}
.mkf-detail2009 .mkf-catlist li span {
  padding-top: 6px;
  font-size: 12px;
  line-height: 15px;
  color: #777;
}

/* ---------- 2009 样式：标签 ---------- */
.mkf-detail2009 .mkf-tags {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.9;
  color: #999;
  word-wrap: break-word;
}
.mkf-detail2009 .mkf-tags a {
  color: #3366CC;
  text-decoration: none;
}
.mkf-detail2009 .mkf-tags a:hover { color: #1f6fd0; text-decoration: underline; }

/* 面包屑链接恢复旧站蓝色 */
.mkf-detail2009 .mkf-meta a { color: #3366CC; text-decoration: none; }
.mkf-detail2009 .mkf-meta a:hover { text-decoration: underline; }

/* ---------- 2009 样式：收藏/挑错/推荐/打印（直角小按钮） ---------- */
.mkf-detail2009 .viewbox .handle .actbox ul {
  gap: 8px;
  margin: 10px 0 0;
}
.mkf-detail2009 .viewbox .handle .actbox ul li {
  padding-left: 0;
  margin: 0;
  background: none;
}
.mkf-detail2009 .viewbox .handle .actbox ul li a {
  display: inline-block;
  height: 22px;
  line-height: 20px;
  padding: 0 8px;
  background: #f7f7f7;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  color: #666;
  font-size: 12px;
  text-decoration: none;
  transition: none;
  box-shadow: none;
}
.mkf-detail2009 .viewbox .handle .actbox ul li a:hover {
  background: #fff;
  border-color: #4dadff;
  color: #1f6fd0;
  text-decoration: underline;
  box-shadow: none;
}
.mkf-detail2009 .viewbox .handle .actbox ul li a:active {
  background: #efefef;
  transform: none;
  box-shadow: none;
}

/* ---------- 2009 样式：顶 / 踩（纯文字） ---------- */
.mkf-detail2009 .mkf-vote { margin: 10px 0 0; display: flex; gap: 8px; }
.mkf-detail2009 .mkf-vote button {
  height: 22px;
  padding: 0 8px;
  background: #f7f7f7;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  color: #666;
  font: 12px Tahoma, "SimSun", "宋体", Arial, sans-serif;
  cursor: pointer;
}
.mkf-detail2009 .mkf-vote button:hover { background: #fff; border-color: #4dadff; color: #1f6fd0; }
.mkf-detail2009 .mkf-vote .mkf-up.active,
.mkf-detail2009 .mkf-vote .mkf-down.active {
  background: #4dadff;
  border-color: #4dadff;
  color: #fff;
}
.mkf-detail2009 .mkf-vote span { font-weight: normal; margin-left: 2px; }

/* ---------- 2009 样式：评论区（直角、浅绿标题栏） ---------- */
.mkf-detail2009 .tbox {
  border: 1px solid #e2e2e2;
  border-radius: 0;
  background: #fff;
  margin-top: 14px;
}
.mkf-detail2009 .tbox dt {
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  background: #f4f8ee;
  border-bottom: 1px solid #eaf2de;
  border-radius: 0;
  color: #709C5A;
  font-size: 12px;
  font-weight: bold;
}
.mkf-detail2009 .tbox dt strong { color: #709C5A; font-weight: bold; }
.mkf-detail2009 .tbox dt .more { color: #999; font-size: 11px; font-weight: normal; }
.mkf-detail2009 .tbox dd { padding: 0 10px 10px; }

.mkf-detail2009 .dede_comment_post .dcmp-content textarea.ipt-txt {
  width: 100%;
  box-sizing: border-box;
  min-height: 80px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: #333;
  font: 12px/1.7 Tahoma, "SimSun", "宋体", Arial, sans-serif;
  outline: none;
  resize: vertical;
  box-shadow: none;
}
.mkf-detail2009 .dede_comment_post .dcmp-content textarea.ipt-txt:focus {
  border-color: #4dadff;
  box-shadow: none;
  background: #fff;
}
.mkf-detail2009 .dede_comment_post .dcmp-submit { margin-top: 6px; }
.mkf-detail2009 .dede_comment_post .dcmp-submit button {
  height: 24px;
  padding: 0 14px;
  background: #f7f7f7;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  color: #333;
  font-size: 12px;
  cursor: pointer;
}
.mkf-detail2009 .dede_comment_post .dcmp-submit button:hover {
  background: #fff;
  border-color: #4dadff;
  color: #1f6fd0;
}

/* 评论列表 */
.mkf-detail2009 .mkf-clist { list-style: none; margin: 0; padding: 0; }
.mkf-detail2009 .mkf-clist li {
  padding: 7px 0;
  border-bottom: 1px dashed #e6e6e6;
  font-size: 12px;
  line-height: 1.7;
  color: #666;
}
.mkf-detail2009 .mkf-clist li small { color: #999; font-size: 11px; }
.mkf-detail2009 .mkf-clist li small a.username { color: #3366CC; }
.mkf-detail2009 .mkf-clist li p { margin: 3px 0 0; color: #555; word-wrap: break-word; }
.mkf-detail2009 .mkf-clist li.mkf-cempty {
  border-bottom: 0;
  color: #999;
  text-align: center;
  padding: 18px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1010px) {
  .mkf-detail2009 { width: auto; margin: 14px 10px 0; }
}

@media (max-width: 820px) {
  .mkf-detail2009 .viewbox { padding: 8px; }
  .mkf-detail2009 .mkf-catlist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 14px;
  }
}

@media (max-width: 480px) {
  .mkf-detail2009 { margin-top: 10px; }
  .mkf-detail2009 > h2 { font-size: 15px; line-height: 1.4; }
  .mkf-detail2009 .mkf-catlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkf-detail2009 .viewbox { padding: 8px 6px; }
  .mkf-detail2009 .viewbox .handle .actbox ul { gap: 6px; }
  .mkf-detail2009 .viewbox .handle .actbox ul li a {
    height: 28px;
    line-height: 26px;
    padding: 0 10px;
  }
  .mkf-detail2009 .mkf-vote button { height: 30px; padding: 0 12px; font-size: 13px; }
  .mkf-detail2009 .mkf-tags { line-height: 2.1; }
  .mkf-detail2009 .tbox dd { padding: 0 6px 8px; }
  .mkf-detail2009 .dede_comment_post .dcmp-content textarea.ipt-txt {
    font-size: 13px;
    padding: 8px;
  }
  .mkf-detail2009 .dede_comment_post .dcmp-submit button {
    height: 32px;
    padding: 0 18px;
    font-size: 13px;
  }
}

/* ==== 新番连载：独立分区入口（系列卡片） ==== */
.mkf-series-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.mkf-series-grid li { width: 172px; min-width: 0; }
.mkf-series-grid li a {
  display: block;
  color: #3366CC;
  font-size: 12px;
  text-decoration: none;
}
.mkf-series-grid li img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 1px solid #d8d8d8;
  background: #eee;
}
.mkf-series-grid li span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mkf-series-grid li a:hover span { color: #1f6fd0; text-decoration: underline; }
.mkf-series-grid li em {
  display: block;
  color: #a5a5a5;
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
}

/* ==== 新番连载：系列页 ==== */
.mkf-series-head {
  display: flex;
  gap: 14px;
  margin: 12px 0;
}
.mkf-series-head > img {
  flex: 0 0 180px;
  width: 180px;
  height: 102px;
  border: 1px solid #d8d8d8;
  object-fit: cover;
  background: #eee;
}
.mkf-series-info { font-size: 12px; color: #666; line-height: 22px; }
.mkf-series-info p { margin: 0; }
.mkf-series-info span { color: #999; }
.mkf-series-intro { margin-top: 6px !important; color: #333; }
.mkf-series-epbar { margin: 10px 0 12px; font-size: 12px; color: #666; }
.mkf-eplist {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.mkf-eplist a {
  display: block;
  height: 24px;
  line-height: 22px;
  text-align: center;
  border: 1px solid #c9c9c9;
  background: #f7f7f7;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}
.mkf-eplist a:hover { border-color: #4dadff; color: #1f6fd0; }
.mkf-eplist a.has-src { background: #f3faf0; border-color: #b7d3a8; }
.mkf-eplist a.has-src:hover { border-color: #4dadff; }
.mkf-eplist a.active { background: #4dadff; border-color: #4dadff; color: #fff; }
.mkf-series-player {
  margin-top: 6px;
  padding: 0;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  min-height: 200px;
  overflow: hidden;
}
.mkf-bili-link {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border: 1px solid #b7b7b7;
  background: linear-gradient(#fefefe, #e9e9e9);
  color: #333;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  border-radius: 2px;
}
.mkf-bili-link:hover { border-color: #4dadff; color: #1f6fd0; }
.mkf-series-empty {
  padding: 46px 16px;
  color: #999;
  font-size: 13px;
  line-height: 26px;
  text-align: center;
}
.mkf-series-empty code {
  padding: 1px 4px;
  background: #f0f4fa;
  color: #3366CC;
  font-family: Consolas, monospace;
}

@media (max-width: 820px) {
  .mkf-series-grid { gap: 14px 10px; }
  .mkf-series-grid li { width: calc((100% - 20px) / 3); }
  .mkf-series-grid li img { height: 74px; }
  .mkf-eplist { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mkf-series-head > img { flex-basis: 140px; width: 140px; height: 80px; }
}

@media (max-width: 480px) {
  .mkf-series-grid li { width: calc((100% - 10px) / 2); }
  .mkf-series-grid li img { height: auto; aspect-ratio: 172 / 110; }
  .mkf-eplist { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mkf-series-head { display: block; }
  .mkf-series-head > img { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 8px; }
  .mkf-series-empty { padding: 32px 10px; }
}
