﻿@charset "utf-8";
* { box-sizing: border-box; }
body {
  margin: 0; background: #0f1115; color: #e6e8ee;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
}
a { color: #e6e8ee; text-decoration: none; }
a:hover { color: #ff7a2f; }

.topbar { background: #15181f; border-bottom: 1px solid #23262e; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 24px; }
.logo { font-size: 20px; font-weight: bold; color: #ff7a2f; white-space: nowrap; }
.logo span { color: #8b90a0; font-size: 12px; font-weight: normal; margin-left: 8px; }
.nav { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.nav a { padding: 8px 12px; border-radius: 4px; color: #b9becb; font-size: 14px; white-space: nowrap; }
.nav a.on, .nav a:hover { background: #23262e; color: #fff; }
.userbox { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #8b90a0; white-space: nowrap; }
.userbox a { color: #ff7a2f; }

.searchbar { background: #15181f; border-bottom: 1px solid #23262e; }
.searchbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 8px; }
.searchbar input[type=text] {
  flex: 1; height: 38px; padding: 0 12px; border: 1px solid #2c3038;
  background: #0f1115; color: #fff; border-radius: 4px; outline: none;
}
.searchbar input[type=text]:focus { border-color: #ff7a2f; }
.btn {
  display: inline-block; padding: 0 18px; height: 38px; line-height: 38px;
  background: #ff7a2f; color: #fff; border: 0; border-radius: 4px; cursor: pointer;
  font-size: 14px; font-family: inherit;
}
.btn:hover { background: #e8661f; color: #fff; }
.btn.ghost { background: #23262e; color: #d8dbe3; }
.btn.ghost:hover { background: #2c3038; }
.btn.sm { height: 30px; line-height: 30px; padding: 0 12px; font-size: 13px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 60px; }

.section-title { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; }
.section-title h2 { font-size: 17px; margin: 0; font-weight: 600; border-left: 3px solid #ff7a2f; padding-left: 10px; }
.section-title .more { margin-left: auto; font-size: 13px; color: #8b90a0; }

.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: #15181f; border-radius: 6px; overflow: hidden; transition: transform .15s; min-width: 0; }
.card:hover { transform: translateY(-3px); }
.poster { position: relative; width: 100%; padding-top: 140%; background: #1c1f27; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #4a4f5c; font-size: 26px; }
.poster .tag { position: absolute; left: 8px; top: 8px; background: rgba(255,122,47,.9); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.poster .tag.dl { background: rgba(46,160,90,.9); }
.card .info { padding: 10px 10px 12px; }
.card .info h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info p { margin: 0; font-size: 12px; color: #7d8290; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filterbar a { padding: 6px 14px; background: #15181f; border-radius: 4px; font-size: 13px; color: #b9becb; }
.filterbar a.on { background: #ff7a2f; color: #fff; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 34px; height: 34px; line-height: 34px; text-align: center; padding: 0 10px; background: #15181f; border-radius: 4px; font-size: 13px; }
.pager a.on { background: #ff7a2f; color: #fff; }

.detail { display: flex; gap: 28px; flex-wrap: wrap; }
.detail .dposter { width: 260px; flex: none; }
.detail .dposter img { width: 100%; border-radius: 6px; display: block; }
.detail .dinfo { flex: 1; min-width: 300px; }
.detail h1 { margin: 0 0 12px; font-size: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8b90a0; margin-bottom: 16px; }
.meta span { background: #15181f; padding: 4px 10px; border-radius: 4px; }
.dintro { color: #b9becb; line-height: 1.9; margin: 16px 0 24px; white-space: pre-wrap; }
.dactions { display: flex; gap: 12px; }

.player { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.player video, .player iframe { display: block; width: 100%; height: 560px; border: 0; background: #000; }
@media (max-width: 760px) { .player video, .player iframe { height: 240px; } }
.tips { padding: 12px 16px; background: #15181f; border-left: 3px solid #ff7a2f; border-radius: 4px; color: #8b90a0; font-size: 13px; line-height: 1.8; }

.ptable { width: 100%; border-collapse: collapse; background: #15181f; border-radius: 6px; overflow: hidden; }
.ptable th, .ptable td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #23262e; }
.ptable th { background: #1c1f27; color: #8b90a0; font-weight: normal; }
.ptable tr:hover td { background: #191c24; }
.ptable .num { color: #ff7a2f; font-weight: bold; }

.msgbox { max-width: 600px; margin: 60px auto; padding: 30px; background: #15181f; border-radius: 8px; text-align: center; line-height: 2; }
.msgbox a { color: #ff7a2f; }

.form { max-width: 760px; background: #15181f; border-radius: 6px; padding: 24px; }
.form label { display: block; margin: 14px 0 6px; color: #8b90a0; font-size: 13px; }
.form input[type=text], .form input[type=password], .form select, .form textarea {
  width: 100%; padding: 9px 12px; background: #0f1115; border: 1px solid #2c3038;
  color: #fff; border-radius: 4px; font-family: inherit; font-size: 14px; outline: none;
}
.form textarea { height: 120px; resize: vertical; }
.form .row2 { display: flex; gap: 16px; }
.form .row2 > div { flex: 1; }
.form .submitbar { margin-top: 24px; }

.notice { padding: 10px 14px; background: #2a2218; border: 1px solid #6b4a20; color: #e0b070; border-radius: 4px; font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.empty { padding: 60px 0; text-align: center; color: #5d6270; }

.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.dash .box { background: #15181f; border-radius: 6px; padding: 20px; }
.dash .box i { display: block; font-style: normal; font-size: 12px; color: #8b90a0; margin-bottom: 10px; }
.dash .box b { font-size: 26px; color: #ff7a2f; }

.links-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }
.link-card { background: #15181f; border-radius: 6px; padding: 18px; text-align: center; }
.link-card .nm { font-size: 15px; margin-bottom: 6px; }
.link-card .nt { font-size: 12px; color: #6f7482; }

.foot { border-top: 1px solid #23262e; padding: 24px 16px; text-align: center; color: #5d6270; font-size: 12px; line-height: 1.9; }

/* 选集按钮 */
.epbox{display:flex;flex-wrap:wrap;gap:8px}
.ep{display:inline-block;padding:6px 12px;border:1px solid #2c3242;border-radius:6px;background:#171a21;color:#cfd6e4;text-decoration:none;font-size:13px}
.ep:hover{border-color:#e05555;color:#fff}

/* 首页：分类两列布局（卡片紧凑版） */
.catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-items: start; margin-top: 6px; }
.catblock {
  background: #14171e;
  border: 1px solid #22262f;
  border-radius: 8px;
  padding: 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  border-top: 2px solid #2b3038;
}
.catblock .cbhead { margin: 0 -12px 10px; padding: 9px 12px 0; border-bottom: 1px solid #1e222a; }
.catblock .cbhead .section-title { margin: 0; }
.catblock .cbhead .section-title h2 { font-size: 15px; border-left-width: 3px; border-left-color: #ff7a2f; color: #e9ebf2; }
.catblock .cbhead .section-title .more { font-size: 12px; }
.catblock .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.catblock .card { border-radius: 5px; min-width: 0; }
.catblock .poster { padding-top: 126%; }
.catblock .poster .tag { left: 5px; top: 5px; font-size: 10px; padding: 1px 5px; }
.catblock .card .info { padding: 6px 6px 8px; }
.catblock .card .info h3 { font-size: 12px; margin-bottom: 3px; line-height: 1.25; }
.catblock .card .info p { font-size: 10.5px; }
.catblock .empty { padding: 20px 0; font-size: 12px; }
@media (max-width: 1100px) { .catgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .catgrid { grid-template-columns: 1fr; } .catblock .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .catblock .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 后台转码进度条 */
.pbar { height: 8px; background: #0f1115; border: 1px solid #2c3038; border-radius: 4px; overflow: hidden; margin: 6px 0 2px; }
.pbar > i { display: block; height: 100%; background: linear-gradient(90deg, #e05555, #ff8a5c); width: 0; }
.pmeta { font-size: 11px; color: #8b90a0; }

/* 播放页上一集/下一集 */
.epnav { display: flex; gap: 10px; margin-top: 12px; }
.epnav a, .epnav span { padding: 7px 14px; border: 1px solid #2c3242; border-radius: 6px; color: #cfd6e4; text-decoration: none; font-size: 13px; }
.epnav a:hover { border-color: #e05555; color: #fff; }
.epnav span { color: #5d6270; border-color: #22262f; }
.msgboard { margin-top: 34px; background: #14171e; border: 1px solid #22262f; border-radius: 10px; padding: 6px 18px 20px; }
.msglist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msgitem { border-bottom: 1px dashed #23262e; padding-bottom: 10px; }
.msgitem:last-child { border-bottom: 0; }
.msghd { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.msghd b { font-size: 14px; color: #ffb27a; font-weight: 500; }
.msghd span { font-size: 12px; color: #6b7180; }
.msgtx { font-size: 14px; color: #cfd6e4; line-height: 1.6; }
.msgempty { color: #6b7180; font-size: 13px; padding: 6px 0 12px; }
.msgok { background: #16261a; border: 1px solid #2e6b3a; color: #7ddc93; border-radius: 5px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.msgerr { background: #2a1717; border: 1px solid #6b2e2e; color: #ff9a9a; border-radius: 5px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.msgform { margin-top: 16px; }
.msgrow { margin-bottom: 14px; }
.msgrow label { display: block; margin: 0 0 6px; color: #8b90a0; font-size: 13px; }
.msgform input[type=text], .msgform textarea {
  width: 100%; padding: 9px 12px; background: #0f1115; border: 1px solid #2c3038;
  color: #fff; border-radius: 4px; font-family: inherit; font-size: 14px; outline: none;
}
.msgform input[type=text]:focus, .msgform textarea:focus { border-color: #ff7a2f; }
.msgrow-name input { width: 280px; max-width: 100%; }
.msgform textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.msgfoot { text-align: right; margin-top: 4px; }
/* 首页站点介绍（内容在后台「站点信息」里填） */
.sitedesc { margin: 0 0 20px; padding: 12px 16px; background: #15181f; border-left: 3px solid #ff7a2f;
  border-radius: 4px; color: #b9becb; font-size: 13px; line-height: 1.9; white-space: pre-wrap; }

/* ===== 后台侧边栏布局 ===== */
body.admin { background: #0f1115; }
.admin-side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 208px;
  background: #15181f; border-right: 1px solid #23262e;
  display: flex; flex-direction: column; z-index: 50;
}
.side-logo { padding: 20px 18px 14px; border-bottom: 1px solid #23262e; font-size: 19px; font-weight: bold; color: #ff7a2f; }
.side-logo span { display: block; color: #8b90a0; font-size: 12px; font-weight: normal; margin-top: 4px; }
.side-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.side-nav a {
  display: block; padding: 10px 14px; border-radius: 6px; color: #b9becb;
  font-size: 14px; margin-bottom: 2px; border-left: 3px solid transparent;
}
.side-nav a:hover { background: #23262e; color: #fff; }
.side-nav a.on { background: #23262e; color: #fff; border-left-color: #ff7a2f; padding-left: 11px; }
.side-user { padding: 14px 18px; border-top: 1px solid #23262e; font-size: 13px; color: #8b90a0; }
.side-user-links { margin-top: 6px; }
.side-user-links a { color: #ff7a2f; margin-right: 14px; }
.admin-main { margin-left: 208px; min-height: 100vh; }
.admin-main.nolock { margin-left: 0; }
.admin-main .wrap { max-width: 1280px; }
.admin-main .foot { border-top: 0; }

@media (max-width: 860px) {
  .admin-side {
    position: fixed; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 56px;
    flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid #23262e;
  }
  .side-logo { padding: 0 12px; border: 0; font-size: 16px; white-space: nowrap; }
  .side-logo span { display: none; }
  .side-nav { display: flex; flex: 1; padding: 0 8px; overflow-x: auto; overflow-y: hidden; }
  .side-nav a { margin: 0 4px; padding: 8px 11px; white-space: nowrap; border-left: 0; }
  .side-nav a.on { padding-left: 11px; }
  .side-user { display: none; }
  .admin-main { margin-left: 0; padding-top: 56px; }
}