* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "微软雅黑", "STHeiti", "WenQuanYi Micro Hei", SimSun, sans-serif;
  background: #16151a;
  color: #ccc;
  padding-top: 90px;
}
a { color: #ccc; text-decoration: none; }
a:hover { color: #ff7300; }
img { max-width: 100%; }
.container { max-width: 1920px; margin: 0 auto; padding: 0 15px; }
.text-overflow { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.text-muted { color: #999; }
.text-right { text-align: right; }
.pull-right { float: right; }
.clearfix::after { content: ""; display: block; clear: both; }
.hidden-xs { }
.visible-xs { display: none; }

/* Header */
.myui-header__top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: linear-gradient(180deg, #2b2b33 0%, #1d1c22 100%);
  border-bottom: 2px solid #ff7300;
  height: 90px;
}
.myui-header__top .container { height: 90px; display: flex; align-items: center; }
.myui-header__logo .logo img { height: 50px; }
.myui-header__menu { list-style: none; display: flex; margin-left: 30px; }
.myui-header__menu > li > a {
  display: block; padding: 0 16px; line-height: 90px; font-size: 16px; color: #eee; font-weight: 500;
}
.myui-header__menu > li.active > a, .myui-header__menu > li > a:hover { color: #ff7300; }
.dropdown-hover { position: relative; }
.dropdown-box {
  display: none; position: absolute; background: #1d1c22; border: 1px solid #333; border-radius: 6px;
  padding: 15px; min-width: 520px; top: 90px; left: 0; z-index: 1000;
}
.dropdown-hover:hover .dropdown-box { display: block; }
.dropdown-box .item.nav-list { list-style: none; display: flex; flex-wrap: wrap; }
.dropdown-box .item.nav-list li { width: 25%; padding: 4px; }
.btn { display: inline-block; padding: 6px 12px; border-radius: 4px; background: #333; color: #eee; }
.btn-default { background: #2b2b33; }
.btn-warm { background: #ff7300; color: #fff; }
.btn-sm { padding: 4px 8px; font-size: 12px; }

.myui-header__search { margin-left: auto; display: flex; align-items: center; }
.search-box form { display: flex; background: #0f0e12; border: 1px solid #333; border-radius: 20px; overflow: hidden; }
.search-box input { background: transparent; border: none; outline: none; color: #eee; padding: 8px 14px; width: 220px; }
.search-box .submit { background: #ff7300; border: none; color: #fff; padding: 0 16px; cursor: pointer; }
.myui-header__user { list-style: none; display: flex; align-items: center; margin-left: 20px; }
.myui-header__user li a { display: block; padding: 0 10px; font-size: 18px; color: #eee; line-height: 90px; }
.myui-header__user li a:hover { color: #ff7300; }

/* Panels / Sections */
.myui-panel { margin-bottom: 25px; }
.myui-panel__head { display: flex; align-items: center; border-left: 4px solid #ff7300; padding-left: 10px; margin-bottom: 15px; }
.myui-panel__head .title { font-size: 20px; color: #fff; font-weight: 600; }
.myui-panel__head .more { font-size: 13px; margin-left: 12px; }
.myui-panel__head .nav-text { list-style: none; display: flex; }
.myui-panel__head .nav-text li a { font-size: 13px; padding: 0 8px; }

/* Vod grid */
.myui-vodlist { list-style: none; display: flex; flex-wrap: wrap; margin: 0 -8px; }
.myui-vodlist > li { padding: 8px; }
.col-lg-8 { width: 12.5%; }
.col-lg-6 { width: 16.666%; }
.col-lg-wide-75 { width: 75%; }
.col-xs-1 { width: 100%; }
@media (max-width: 1199px) { .col-lg-8 { width: 16.666%; } .col-lg-6 { width: 20%; } }
@media (max-width: 991px) { .col-lg-8 { width: 20%; } .col-lg-6 { width: 25%; } .col-lg-wide-75 { width: 100%; } }
@media (max-width: 767px) {
  .col-lg-8, .col-lg-6 { width: 33.333%; }
  body { padding-top: 60px; }
  .myui-header__top { height: 60px; }
  .myui-header__top .container { height: 60px; }
  .myui-header__menu { display: none; }
  .dropdown-box { min-width: 300px; }
  .search-box input { width: 130px; }
}

.myui-vodlist__box { position: relative; }
.myui-vodlist__thumb {
  position: relative; display: block; padding-top: 140%; border-radius: 6px; overflow: hidden;
  background: #2b2b33 center/cover no-repeat;
}
.myui-vodlist__thumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/20px no-repeat; }
.pic-tag { position: absolute; top: 6px; left: 6px; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 3px; background: #5bb7fe; }
.pic-text { position: absolute; bottom: 6px; right: 6px; color: #fff; font-size: 12px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 3px; }
.myui-vodlist__detail { padding: 6px 2px; }
.myui-vodlist__detail .title { font-size: 14px; color: #eee; }
.myui-vodlist__detail .text { font-size: 12px; margin-top: 2px; }

/* Slider */
.flickity { position: relative; background: #0f0e12; border-radius: 8px; overflow: hidden; }
.flickity-viewport { position: relative; }
.flickity-slider > div { float: left; }
.flickity-slider .myui-vodlist__thumb { border-radius: 0; height: 245px; padding: 0; }

/* Layout columns */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-main { width: 75%; padding: 0 10px; }
.col-side { width: 25%; padding: 0 10px; }
@media (max-width: 991px) { .col-main, .col-side { width: 100%; } }

/* Pagination */
.myui-page { margin: 20px 0; text-align: center; }
.myui-page a, .myui-page span { display: inline-block; padding: 6px 14px; margin: 0 3px; background: #2b2b33; border-radius: 4px; color: #eee; }
.myui-page a.active, .myui-page span.active { background: #ff7300; color: #fff; }

/* Detail */
.detail-wrap { display: flex; gap: 20px; margin-bottom: 25px; }
.detail-pic { width: 220px; flex: none; }
.detail-pic .myui-vodlist__thumb { padding-top: 140%; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 26px; color: #fff; margin-bottom: 12px; }
.detail-info .meta { font-size: 14px; line-height: 2; }
.detail-info .meta b { color: #ff7300; }
.detail-desc { margin-top: 12px; line-height: 1.8; color: #bbb; font-size: 14px; }
.player-tabs { margin: 10px 0; }
.player-tabs .src-btn { display: inline-block; padding: 6px 16px; background: #2b2b33; border-radius: 4px; margin-right: 8px; cursor: pointer; }
.player-tabs .src-btn.active { background: #ff7300; color: #fff; }
.ep-list { list-style: none; display: flex; flex-wrap: wrap; margin: 10px -5px; }
.ep-list li { padding: 5px; width: 12.5%; }
.ep-list a { display: block; text-align: center; padding: 8px 4px; background: #2b2b33; border-radius: 4px; font-size: 13px; }
.ep-list a:hover, .ep-list a.active { background: #ff7300; color: #fff; }
.player-box { background: #000; border-radius: 8px; overflow: hidden; margin: 15px 0; }
.player-box video, .player-box iframe { width: 100%; height: 540px; border: none; display: block; }

/* Play page (reference-site layout) */
.myui-player { background: #27272f; padding: 0; }
.player-row { display: flex; gap: 0; align-items: stretch; }
.player-left { flex: 1 1 75%; min-width: 0; background: #1f1f1f; }
.player-sidebar { flex: 0 0 300px; padding: 10px; background: #27272f; }
.player-tips { position: relative; background: #181515; color: #bbb; font-size: 13px; line-height: 2; padding: 4px 40px 4px 15px; overflow: hidden; }
.player-tips > div { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.tips-close { position: absolute; right: 12px; top: 8px; color: #888; }
.tips-close:hover { color: #fff; }
.embed-box { position: relative; background: #000; }
.embed-box > video { width: 100%; max-height: 620px; aspect-ratio: 16/9; display: block; background: #000; }
.player-operate { list-style: none; display: flex; flex-wrap: wrap; background: #1b1a25; margin: 0; padding: 0; }
.player-operate li a { display: block; padding: 10px 16px; color: #aaa; font-size: 13px; }
.player-operate li a:hover { color: #ff7300; }
.player-operate li a.disabled { color: #555; pointer-events: none; }
.player-operate .digg_num { color: #ff7300; }
.side-panel { background: #1d1c22; border-radius: 6px; padding: 12px; }
.side-tips { background: #0090CE; color: #fff; border-radius: 5px; padding: 9px 10px; font-size: 14px; font-weight: bold; text-shadow: #1f1f1f 2px 2px 2px; margin-bottom: 12px; }
.side-tips i { font-size: 18px; }
.side-title { color: #fff; font-size: 18px; margin-bottom: 6px; }
.side-info { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; position: relative; }
.dropdown-swap a { color: #fff; font-weight: bold; }
.dropdown-swap { position: relative; }
.dropdown-swap .dropdown-box { display: none; position: absolute; right: 0; top: 26px; background: #1d1c22; border: 1px solid #333a46; border-radius: 4px; z-index: 20; min-width: 120px; }
.dropdown-swap:hover .dropdown-box { display: block; }
.dropdown-swap .dropdown-box li a { display: block; padding: 8px 14px; color: #ccc; font-size: 13px; }
.dropdown-swap .dropdown-box li a:hover, .dropdown-swap .dropdown-box li.active a { color: #ff7300; }
.ep-btns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-btns li a.btn-ep { display: block; background: #2b2b33; color: #ccc; border-radius: 4px; padding: 6px 12px; font-size: 12px; }
.ep-btns li a.btn-ep:hover { color: #ff7300; }
.ep-btns li a.btn-warm { background: #ff7300; color: #fff; }
.player-data { padding: 14px 10px 4px; }
.player-data h3 { font-size: 18px; }
.player-data h3 a { color: #fff; }
.player-data small { color: #888; font-size: 13px; }
.player-data p { font-size: 13px; }
.desc-text { color: #ccc; line-height: 2; font-size: 14px; }
@media (max-width: 991px) { .player-row { flex-direction: column; } .player-sidebar { flex: none; width: 100%; } }

/* 广告系统：播放器下方 banner */
.play-ads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 12px 0; }
.play-ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 86px; border-radius: 8px; text-align: center;
  background: linear-gradient(120deg, #ff7ab2 0%, #ff9ec7 45%, #b28cff 100%);
}
.play-ad b { color: #fff; font-size: 19px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.play-ad span { color: #fff; font-size: 13px; opacity: .94; }
.play-ad:hover b { text-decoration: underline; }
@media (max-width: 767px) { .play-ads { grid-template-columns: 1fr; } }

/* 广告系统：片前 / 片尾贴片广告 */
.preroll {
  position: absolute; inset: 0; z-index: 30; overflow: hidden;
  background: linear-gradient(135deg, #ff9a9e, #a18cd1);
  display: flex; align-items: center; justify-content: center;
}
.preroll-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
.preroll-link {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: #fff; text-align: center;
  padding: 0 30px; background: rgba(0,0,0,.28);
}
.preroll-link b { font-size: 28px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.preroll-link span { font-size: 15px; opacity: .92; }
.preroll-badge {
  position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(0,0,0,.62);
  color: #fff; font-size: 13px; padding: 5px 12px; border-radius: 20px; pointer-events: none;
}
.preroll-badge i { font-style: normal; color: #ffd76a; font-weight: 700; }
.preroll-close {
  position: absolute; top: 14px; left: 14px; z-index: 5; background: rgba(0,0,0,.62);
  color: #fff; border: 0; font-size: 14px; padding: 5px 12px; border-radius: 20px; cursor: pointer;
}
.preroll-close:hover { background: rgba(0,0,0,.85); }
.preroll-replay, .preroll-next {
  position: absolute; bottom: 56px; z-index: 5; background: rgba(0,0,0,.72); color: #fff;
  border: 1px solid rgba(255,255,255,.35); font-size: 14px; padding: 9px 22px;
  border-radius: 24px; cursor: pointer;
}
.preroll-replay { left: 50%; transform: translateX(-50%); }
.preroll-next { bottom: 12px; right: 16px; }
.preroll-replay.none, .preroll-next.none { display: none; }

/* Footer */
.myui-footer { margin-top: 40px; padding: 30px 0; background: #0f0e12; text-align: center; color: #777; font-size: 13px; line-height: 2; }

/* Forms */
.form-box { max-width: 400px; margin: 40px auto; background: #1d1c22; padding: 30px; border-radius: 8px; }
.form-box h2 { color: #fff; text-align: center; margin-bottom: 20px; }
.form-box label { display: block; margin: 12px 0 6px; color: #bbb; }
.form-box input, .form-box select, .form-box textarea {
  width: 100%; padding: 10px; background: #0f0e12; border: 1px solid #333; border-radius: 4px; color: #eee; outline: none;
}
.form-box .btn-submit { background: #ff7300; color: #fff; border: none; padding: 12px; margin-top: 20px; border-radius: 4px; cursor: pointer; font-size: 16px; }
.form-error { color: #ff5555; margin-bottom: 10px; text-align: center; }
.form-tip { text-align: center; margin-top: 15px; color: #999; }

/* Admin */
.admin-layout { display: flex; min-height: calc(100vh - 90px); }
.admin-side { width: 200px; background: #1d1c22; padding: 20px 0; }
.admin-side a { display: block; padding: 12px 20px; color: #ccc; }
.admin-side a:hover, .admin-side a.active { background: #ff7300; color: #fff; }
.admin-main { flex: 1; padding: 25px; background: #16151a; }
.admin-table { width: 100%; border-collapse: collapse; background: #1d1c22; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid #2b2b33; text-align: left; font-size: 13px; }
.admin-table th { color: #ff7300; }
.admin-table img { height: 60px; border-radius: 4px; }
.btn-edit { background: #5bb7fe; color: #fff; padding: 4px 10px; border-radius: 3px; }
.btn-del { background: #ff5555; color: #fff; padding: 4px 10px; border-radius: 3px; }
.admin-stats { display: flex; gap: 20px; margin-bottom: 25px; }
.admin-stat { flex: 1; background: #1d1c22; padding: 20px; border-radius: 8px; }
.admin-stat .num { font-size: 32px; color: #ff7300; }
.admin-stat .lbl { color: #999; margin-top: 6px; }
.admin-form { max-width: 700px; }
.admin-form label { display: block; margin: 12px 0 6px; color: #bbb; }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 9px; background: #0f0e12; border: 1px solid #333; border-radius: 4px; color: #eee; }
.admin-form .btn-submit { background: #ff7300; color: #fff; border: none; padding: 10px 24px; margin-top: 15px; border-radius: 4px; cursor: pointer; }

/* 后台广告管理 */
.ad-note { color: #999; font-size: 12px; line-height: 1.9; margin-bottom: 14px; }
.ad-card { background: #1d1c22; border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.ad-card h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ad-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ad-grid label { display: block; margin-bottom: 4px; color: #bbb; font-size: 12px; }
.ad-grid input, .ad-grid select { background: #0f0e12; border: 1px solid #333; border-radius: 4px; color: #eee; padding: 8px 10px; }
.ad-grid .btn-submit { background: #ff7300; color: #fff; border: 0; padding: 9px 20px; border-radius: 4px; cursor: pointer; }
.ad-table input, .ad-table select { background: #0f0e12; border: 1px solid #333; border-radius: 4px; color: #eee; padding: 6px 8px; font-size: 12px; }
.ad-table td { white-space: nowrap; }

/* 后台友情链接管理 */
.link-table input {
  background: #0f0e12; border: 1px solid #333; border-radius: 4px;
  color: #eee; padding: 6px 8px; font-size: 12px;
}
.link-table td { white-space: nowrap; }

/* 后台播放量管理 */
.views-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.views-toolbar input, .views-toolbar select, .views-batch input, .views-batch select, .views-num {
  background: #0f0e12; border: 1px solid #333; border-radius: 4px; color: #eee; padding: 7px 10px;
}
.views-toolbar .btn-submit, .views-batch .btn-submit {
  background: #ff7300; color: #fff; border: 0; padding: 8px 18px; border-radius: 4px; cursor: pointer;
}
.views-num { width: 100px; padding: 5px 7px; font-size: 12px; }
.views-table td { white-space: nowrap; }
.views-batch {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: #1d1c22; padding: 14px; border-radius: 8px; margin-top: 16px;
}
.views-batch .ad-note { margin: 0; }

/* Search box hot */
.search-hot { margin-top: 10px; font-size: 13px; color: #999; }
.search-hot a { margin-right: 10px; }

/* Hero slider */
.hero-slider { position: relative; background: #1d1c22; border-radius: 8px; padding: 10px; margin-bottom: 20px; overflow: hidden; }
.hero-track { display: flex; overflow: hidden; transition: transform .5s ease; }
.hero-item { flex: 0 0 12.5%; padding: 5px; }
.hero-thumb { padding-top: 0 !important; height: 300px; }
.hero-thumb .pic-text { left: 0; right: 0; border-radius: 0; background: rgba(0,0,0,.55); }
.hero-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: none; width: 36px; height: 64px; font-size: 26px; cursor: pointer; z-index: 5; border-radius: 4px; }
.hero-btn.prev { left: 14px; }
.hero-btn.next { right: 14px; }
.hero-btn:hover { background: #ff7300; }
@media (max-width: 767px) { .hero-item { flex: 0 0 33.333%; } .hero-thumb { height: 180px; } }

/* Filter bar */
.filter-bar { background: #1d1c22; border-radius: 8px; padding: 12px 20px; margin-bottom: 20px; }
.f-row { padding: 9px 0; border-bottom: 1px dashed #2b2b33; font-size: 13px; }
.f-row:last-child { border-bottom: none; }
.f-label { color: #ff7300; margin-right: 14px; font-weight: bold; }
.f-row a { display: inline-block; margin-right: 6px; padding: 2px 9px; color: #ccc; border-radius: 3px; }
.f-row a:hover { color: #ff7300; }
.f-row a.active { background: #ff7300; color: #fff; }
.f-toggle { color: #999; }

/* Rank list */
.rank-list { list-style: none; }
.rank-list li { display: flex; align-items: center; padding: 9px 2px; border-bottom: 1px solid #2b2b33; font-size: 13px; }
.rank-list li:last-child { border-bottom: none; }
.rank-list .rk { width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; background: #3a3a44; color: #ccc; margin-right: 10px; flex: none; font-size: 12px; }
.rank-list .rk-1 { background: #ff4040; color: #fff; }
.rank-list .rk-2 { background: #ff8000; color: #fff; }
.rank-list .rk-3 { background: #ffb800; color: #fff; }
.rank-list .t { flex: 1; color: #ddd; }
.rank-list .t:hover { color: #ff7300; }
.rank-list .rm { flex: none; color: #888; font-size: 12px; margin-left: 8px; }

/* Total rank (4 columns) */
.total-rank { display: flex; gap: 20px; margin: 25px 0; flex-wrap: wrap; }
.tr-col { flex: 1; min-width: 260px; background: #1d1c22; border-radius: 8px; padding: 15px; }
.tr-feat { margin: 10px 0; }
.tr-pic { float: left; width: 90px; height: 126px; border-radius: 6px; background: #2b2b33 center/cover no-repeat; margin-right: 12px; }
.tr-info h4 { font-size: 15px; margin-bottom: 6px; }
.tr-info h4 a { color: #fff; }
.tr-info p { font-size: 12px; color: #999; line-height: 1.8; }
.tr-list { margin-top: 5px; }

/* Links */
.links-sec .links-row { padding: 10px 5px; }
.links-sec .links-row a { display: inline-block; margin: 0 18px 8px 0; color: #999; }
.links-sec .links-row a:hover { color: #ff7300; }

.split-line { display: inline-block; width: 1px; height: 10px; background: #444; margin: 0 8px; }

/* Admin sync page */
.sync-desc { color: #9db8d8; font-size: 12px; line-height: 1.9; }
.sync-desc code { background: #2b2b33; padding: 2px 6px; border-radius: 3px; color: #ffb800; }
.sync-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.sbtn { border: none; color: #fff; padding: 9px 18px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: bold; }
.sbtn.green { background: #23a55a; }
.sbtn.blue { background: #2f6fd8; }
.sbtn.gray { background: #555; }
.sbtn:hover { opacity: .88; }
.sync-log { background: #0b0e14; border: 1px solid #232a36; border-radius: 6px; color: #35c26a; font-family: Consolas, monospace; font-size: 12px; line-height: 1.8; padding: 12px 14px; height: 320px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.prog-bar { height: 8px; background: #232a36; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.prog-inner { height: 100%; background: #23a55a; border-radius: 4px; transition: width .8s; }
.sync-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; color: #9db8d8; font-size: 13px; }
.sync-form select, .sync-form input[type=number] { background: #1d1c22; color: #fff; border: 1px solid #333a46; border-radius: 4px; padding: 7px 10px; width: 90px; }
.sync-form select { width: 130px; }
.sync-status { color: #9db8d8; font-size: 12px; margin: 6px 0 0; }
.admin-main h3 { border-left: 4px solid #ff7300; padding-left: 10px; }
