/* ==========================================================
   dy1 模板样式 · 仿 mytheme 风格（自适应 PC / 平板 / 手机）
   配色：顶栏深紫红渐变 · 主题橙 #ff9900 · 主蓝 #4fb1f7
   ========================================================== */

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f8f8f8;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color .2s ease; }
a:hover { color: cornflowerblue; }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { color: #333; font-weight: 400; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: block; clear: both; }
.pull-right { float: right; }
.text-center { text-align: center; }
.text-muted { color: #999; }
.text-overflow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-tip { padding: 30px 15px; text-align: center; color: #999; }

/* 响应式显隐 */
.hidden-xs { display: block; }
.visible-xs { display: none; }
@media (max-width: 767px) {
    .hidden-xs { display: none !important; }
    .visible-xs { display: block !important; }
}

/* ---------- 栅格（24 栅格，与参考站一致） ---------- */
.col-lg-6, .col-md-6, .col-sm-4, .col-xs-3 { position: relative; min-height: 1px; float: left; padding: 5px; }
.col-xs-3 { width: 33.3333333%; }
@media (min-width: 768px) {
    .col-sm-4 { width: 25%; }
}
@media (min-width: 992px) {
    .col-md-6 { width: 16.6666667%; }
}
@media (min-width: 1200px) {
    .col-lg-6 { width: 16.6666667%; }
}

/* ---------- 顶部 ---------- */
.myui-header__top {
    position: relative;
    z-index: 10;
    background-image: linear-gradient(135deg, #583230 10%, #360940 100%);
}
.header-top-row { display: flex; align-items: center; flex-wrap: wrap; padding: 14px 0 4px; }
.myui-header__logo { margin-right: 30px; }
.myui-header__logo .logo {
    display: block;
    font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 1px;
    max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.myui-header__logo .logo:hover { color: #fff; }

.myui-header__menu { display: flex; flex-wrap: wrap; }
.myui-header__menu > li { position: relative; margin-right: 2px; }
.myui-header__menu > li > a {
    display: block; padding: 8px 14px; color: #fff; font-size: 15px; border-radius: 4px;
}
.myui-header__menu > li.active > a,
.myui-header__menu > li > a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* 二级下拉 */
.myui-header__menu .dropdown-box {
    position: absolute; top: 100%; left: 0; min-width: 160px; padding-top: 6px;
    display: none; z-index: 100;
}
.myui-header__menu .nav-parent:hover .dropdown-box { display: block; }
.dropdown-box .dropdown-item {
    display: block; padding: 9px 16px; background: #fff; color: #333; font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1); border-bottom: 1px solid #f2f2f2; white-space: nowrap;
}
.dropdown-box .dropdown-item:hover { background: #f7f7f7; color: #ff9900; }

.menu-toggle {
    display: none; margin-left: auto; padding: 6px 14px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    border-radius: 4px; color: #fff; font-size: 18px; line-height: 1.2; cursor: pointer;
}

/* 搜索行 */
.myui-header__search { margin-top: 6px; }
.search-row { display: flex; align-items: center; gap: 15px; padding: 0 0 12px; }
.search-hot { flex: 1; overflow: hidden; white-space: nowrap; line-height: 38px; }
.search-hot-tip {
    display: inline-block; padding: 2px 10px; margin-right: 8px;
    background: #ff9900; color: #fff; font-size: 12px; border-radius: 3px; vertical-align: 2px;
}
.search-hot .hot-item,
.search-hot a { color: #fff; font-size: 13px; margin-right: 12px; }
.search-hot a:hover { color: #ffb400; }
.search-hot div { display: inline; }

.search-box { display: flex; flex-shrink: 0; }
.search-wd {
    width: 260px; height: 38px; padding: 0 14px;
    background: #fff; border: 2px solid #fff; border-radius: 5px 0 0 5px;
    color: #333; font-size: 14px; outline: none;
}
.search-wd:focus { border-color: #ff9900; }
.search-submit {
    height: 38px; padding: 0 22px;
    background: #ff9900; border: 0; border-radius: 0 5px 5px 0;
    color: #fff; font-size: 14px; cursor: pointer;
}
.search-submit:hover { background: #ffb400; }

/* 移动端抽屉菜单 */
.mobile-menu {
    display: none; background: #fff; border-top: 1px solid #f0f0f0;
    padding: 8px 15px 14px; box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.mobile-menu.open { display: block; }
.mobile-menu-link {
    display: inline-block; padding: 7px 12px; margin: 3px 4px 0 0;
    background: #f5f5f5; color: #333; font-size: 14px; border-radius: 4px;
}
.mobile-menu-link.mobile-menu-parent { background: #eee; font-weight: 700; }
.mobile-menu-link.mobile-menu-child { background: #fafafa; color: #666; }
.mobile-menu-link:hover { color: #ff9900; }

@media (max-width: 767px) {
    .header-top-row { padding: 10px 0 2px; }
    .myui-header__logo .logo { font-size: 21px; }
    .myui-header__menu { display: none; }
    .menu-toggle { display: block; }
    .search-row { flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 10px; }
    .search-box { width: 100%; }
    .search-wd { flex: 1; width: auto; }
}

/* ---------- 面板 ---------- */
.myui-panel { margin-bottom: 20px; border-radius: 5px; }
.myui-panel-bg { background-color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.myui-panel-box { padding: 10px; }
.myui-panel_hd { padding: 5px 0 10px; }
.myui-panel__head { border-bottom: 1px solid #eee; padding-bottom: 10px; }
.myui-panel__head .title {
    display: inline-block; font-size: 18px; font-weight: 700; color: #333;
    padding-left: 10px; border-left: 4px solid #ff9900; line-height: 1.2;
}
.myui-panel__head h1.title { font-size: 20px; }
.myui-panel__head .more { font-size: 13px; line-height: 24px; }
.myui-panel_bd { padding-top: 5px; }

/* 今日更新横滚区 */
.index-hot { margin-bottom: 20px; }
.index-hot-scroll {
    display: flex; overflow-x: auto; gap: 10px; padding: 6px 2px 10px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.index-hot-scroll::-webkit-scrollbar { height: 6px; }
.index-hot-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.index-hot-item { flex: 0 0 16.6666667%; scroll-snap-align: start; }
@media (max-width: 991px) { .index-hot-item { flex-basis: 25%; } }
@media (max-width: 479px) { .index-hot-item { flex-basis: 33.3333333%; } }

/* ---------- 影片卡片 ---------- */
.myui-vodlist { margin: 0 -5px; }
.myui-vodlist::after { content: ""; display: block; clear: both; }
.myui-vodlist__box { position: relative; }
.myui-vodlist__thumb {
    position: relative; display: block; width: 100%; padding-top: 150%;
    border-radius: 5px; overflow: hidden; background: #f0f0f0;
}
.myui-vodlist__thumb img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .35s ease;
}
.myui-vodlist__box:hover .myui-vodlist__thumb img { transform: scale(1.06); }
.myui-vodlist__thumb .play {
    position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
    margin: -21px 0 0 -21px; border-radius: 50%;
    background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center / 18px;
    opacity: 0; transition: opacity .25s ease;
}
.myui-vodlist__box:hover .myui-vodlist__thumb .play { opacity: 1; }
.pic-tag {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 2px 8px; border-radius: 3px;
    background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
}
.myui-vodlist__detail { padding: 8px 4px 0; }
.myui-vodlist__detail .title { font-size: 14px; line-height: 1.4; }
.myui-vodlist__detail .title a { color: #333; }
.myui-vodlist__detail .title a:hover { color: #ff9900; }
.myui-vodlist__detail .text { font-size: 12px; margin-top: 2px; }

/* ---------- 分页 ---------- */
.myui-page { padding: 20px 10px 10px; text-align: center; }
.myui-page a {
    display: inline-block; margin: 4px 4px; padding: 7px 16px;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 4px;
    color: #333; font-size: 13px;
}
.myui-page a:hover { background: #ff9900; border-color: #ff9900; color: #fff; }

/* ---------- 标签 / 徽章 ---------- */
.tag-link {
    display: inline-block; padding: 5px 12px; margin: 4px 6px 0 0;
    background: #f5f5f5; color: #666; font-size: 13px; border-radius: 4px;
}
.tag-link:hover { background: #ff9900; color: #fff; }
.badge {
    display: inline-block; min-width: 20px; height: 20px; line-height: 20px;
    text-align: center; background: #eee; color: #333; font-size: 12px; border-radius: 3px;
}
.badge-first { background-color: #ff4a4a; color: #fff; }
.badge-second { background-color: #ff7701; color: #fff; }
.badge-third { background-color: #ffb400; color: #fff; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 12px 0; color: #999; font-size: 13px; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #ff9900; }

/* ---------- 详情页 ---------- */
.detail-layout { display: flex; align-items: flex-start; gap: 20px; }
.detail-main { flex: 1; min-width: 0; }
.detail-side { width: 300px; flex-shrink: 0; }
@media (max-width: 991px) {
    .detail-layout { flex-direction: column; }
    .detail-side { width: 100%; }
}

.movie-detail { display: flex; gap: 20px; }
.movie-poster { flex-shrink: 0; width: 180px; }
.movie-poster .myui-vodlist__thumb { padding-top: 140%; }
.movie-info { flex: 1; min-width: 0; }
.movie-info .movie-name { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.movie-info p { margin-bottom: 6px; font-size: 14px; }
.movie-info p strong { color: #333; }
.movie-info a { color: cornflowerblue; }
.movie-info a:hover { color: #ff9900; }
.movie-info .movie-blurb { line-height: 1.8; }
@media (max-width: 479px) {
    .movie-detail { flex-direction: column; }
    .movie-poster { width: 130px; }
}

/* 播放集数 */
.episodes { padding: 5px 0; }
.ep-source { font-size: 14px; font-weight: 700; color: #333; margin: 12px 0 8px; }
.ep-item {
    display: inline-block; padding: 6px 12px; margin: 0 6px 8px 0;
    background: #f5f5f5; color: #333; font-size: 13px; border-radius: 4px;
}
.ep-item:hover { background: #ff9900; color: #fff; }
.ep-item.active { background: #ff9900; color: #fff; }

/* 右侧排行 */
.myui-rank-list li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.myui-rank-list li:last-child { border-bottom: 0; }
.myui-rank-list .badge { margin-right: 8px; flex-shrink: 0; }
.rank-link { flex: 1; min-width: 0; color: #333; font-size: 14px; }
.rank-link:hover { color: #ff9900; }
.rank-tag { flex-shrink: 0; margin-left: 8px; font-size: 12px; color: #999; }

/* ---------- 播放页 ---------- */
.player-container {
    position: relative; width: 100%; padding-bottom: 56.25%; background: #000;
    border-radius: 5px; overflow: hidden;
}
.player-container #dplayer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ---------- 底部 ---------- */
.myui-foot { background: #fff; border-top: 1px solid #eee; margin-top: 20px; padding: 25px 0; }
.footer-desc { color: #999; font-size: 12px; line-height: 1.8; margin-bottom: 8px; }
.footer-copy { color: #999; font-size: 13px; }
.footer-copy a { color: #999; }
.footer-copy a:hover { color: #ff9900; }

/* ---------- 返回顶部 ---------- */
.myui-extra { position: fixed; right: 20px; bottom: 30px; z-index: 1000; }
.myui-extra .backtop {
    display: none; width: 44px; height: 44px; line-height: 44px; text-align: center;
    background: rgba(0,0,0,.6); color: #fff; font-size: 18px; border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.myui-extra .backtop:hover { background: #ff9900; color: #fff; }
.backtop-arrow { font-style: normal; }
@media (max-width: 767px) {
    .myui-extra { right: 15px; bottom: 15px; }
}
