/* ========================================
   不烦定制视频插件 - 苹果CMS/UUCMS 风格 v3.0
   ======================================== */

/* ========== 通用 ========== */
.mac-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.mac-content a { text-decoration: none; }

/* ========== 分类导航 ========== */
.mac-nav {
    background: #fff;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mac-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mac-nav li a {
    display: block;
    padding: 6px 16px;
    color: #555;
    font-size: 14px;
    border-radius: 3px;
    transition: all .2s;
}
.mac-nav li a:hover {
    color: #1e88ff;
    background: #f0f7ff;
}
.mac-nav li.active a {
    background: #1e88ff;
    color: #fff;
}

/* ========== 视频列表 ========== */
.mac-list {
    background: #fff;
    border-radius: 4px;
    padding: 20px 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mac-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.mac-video-item {
    display: block;
    transition: transform .25s ease;
}
.mac-video-item:hover {
    transform: translateY(-3px);
}
.mac-pic {
    position: relative;
    width: 100%;
    padding-top: 62%;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
}
.mac-pic img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.mac-video-item:hover .mac-pic img {
    transform: scale(1.06);
}
.mac-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(30, 136, 255, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all .25s ease;
    text-align: center;
}
.mac-video-item:hover .mac-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.mac-duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    line-height: 1.4;
}
.mac-name {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.8em;
}
.mac-video-item:hover .mac-name {
    color: #1e88ff;
}

/* 空状态 */
.mac-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}
.mac-empty i {
    font-size: 60px;
    margin-bottom: 16px;
    color: #ddd;
}
.mac-empty p {
    font-size: 14px;
    margin: 0;
}

/* ========== 分页 ========== */
.mac-page {
    text-align: center;
    margin-top: 24px;
    padding: 16px 0;
}
.mac-page a {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 4px;
    background: #fff;
    color: #666;
    border-radius: 3px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: all .2s;
}
.mac-page a:hover {
    background: #1e88ff;
    color: #fff;
}
.mac-page .page-info {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    color: #888;
}

/* ========== 播放页 ========== */
.mac-play-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.mac-play-nav {
    background: #fff;
    border-radius: 4px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 13px;
    color: #666;
}
.mac-play-nav a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.mac-play-nav a:hover {
    color: #1e88ff;
}
.mac-play-crumb {
    color: #999;
}
.mac-play-crumb i {
    margin: 0 6px;
    font-size: 12px;
}
.mac-play-crumb .active {
    color: #333;
}

.mac-play-main {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 播放器 */
.mac-player-box {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}
.mac-player {
    width: 100%;
    height: 560px;
}
.mac-player-loading {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    transition: opacity .3s;
    z-index: 10;
}
.mac-player-loading p {
    margin: 12px 0 0;
    font-size: 14px;
}
.mac-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #1e88ff;
    border-radius: 50%;
    animation: mac-spin .8s linear infinite;
}
@keyframes mac-spin {
    to { transform: rotate(360deg); }
}

/* 标题 */
.mac-play-title {
    font-size: 20px;
    font-weight: normal;
    color: #222;
    margin: 16px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* 线路 */
.mac-line {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.line-label {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}
.line-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.line-item {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.line-item:hover {
    color: #1e88ff;
    background: #f0f7ff;
}
.line-item.active {
    background: #1e88ff;
    color: #fff;
}

/* 视频信息 */
.mac-play-info {
    padding: 16px 0;
}
.info-row {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}
.info-label {
    color: #999;
    margin-right: 6px;
    flex-shrink: 0;
}
.info-val {
    color: #555;
}
.mac-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    background: #f0f7ff;
    color: #1e88ff;
    font-size: 12px;
    border-radius: 2px;
}
.info-desc .desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    line-height: 1.8;
}

/* ========== 首页推荐卡片 ========== */
.bpw-video-card {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.bpw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.bpw-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bpw-card-title svg {
    color: #1e88ff;
}
.bpw-more-btn {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #1e88ff, #1976d2);
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all .25s;
    box-shadow: 0 2px 6px rgba(30,136,255,0.3);
}
.bpw-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30,136,255,0.4);
    background: linear-gradient(135deg, #2196f3, #1e88ff);
}
.bpw-more-btn i {
    margin-left: 2px;
    font-size: 12px;
}
.bpw-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
}
.bpw-video-item {
    display: block;
    text-decoration: none;
    transition: transform .25s;
}
.bpw-video-item:hover {
    transform: translateY(-3px);
}
.bpw-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    border-radius: 5px;
    background: #f0f0f0;
}
.bpw-thumb-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpw-play-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s;
}
.bpw-video-item:hover .bpw-play-overlay {
    opacity: 1;
}
.bpw-play-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(30, 136, 255, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.bpw-duration {
    position: absolute;
    right: 6px; bottom: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.4;
}
.bpw-video-name {
    margin-top: 6px;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    font-weight: 500;
}
.bpw-video-item:hover .bpw-video-name {
    color: #1e88ff;
}

/* 首页空状态 */
.bpw-empty-state {
    padding: 24px;
    text-align: center;
}
.bpw-empty-icon {
    color: #ddd;
    margin-bottom: 8px;
}
.bpw-empty-icon svg { width: 36px; height: 36px; }
.bpw-empty-text {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}
.bpw-empty-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #1e88ff;
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none !important;
    transition: background .2s;
}
.bpw-empty-btn:hover {
    background: #1976d2;
}

/* ========== 搜索框 ========== */
.mac-search-bar {
    background: #fff;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    gap: 10px;
    align-items: center;
}
.mac-search-input {
    flex: 1;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.mac-search-input:focus {
    border-color: #1e88ff;
    box-shadow: 0 0 0 2px rgba(30,136,255,0.1);
}
.mac-search-btn {
    height: 36px;
    padding: 0 22px;
    background: #1e88ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.mac-search-btn:hover {
    background: #1976d2;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .mac-list ul { grid-template-columns: repeat(4, 1fr); }
    .mac-player { height: 420px; }
}
@media (max-width: 768px) {
    .mac-list ul { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .mac-player { height: 280px; }
    .bpw-video-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
    .bpw-card-title { font-size: 14px; }
    .bpw-more-btn { padding: 5px 14px; font-size: 12px; }
    .mac-ad-grid { grid-template-columns: repeat(2, 1fr); }
    .mac-nav ul { gap: 4px; }
    .mac-nav li a { padding: 5px 10px; font-size: 13px; }
    .mac-play-title { font-size: 16px; }
}
@media (max-width: 480px) {
    .mac-list ul { grid-template-columns: repeat(2, 1fr); }
    .bpw-video-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
    .bpw-video-name { font-size: 11px; }
    .bpw-card-header { padding: 8px 10px; }
    .bpw-card-title { font-size: 13px; }
    .bpw-more-btn { padding: 4px 12px; font-size: 11px; }
    .mac-ad-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .mac-player { height: 220px; }
    .mac-name { font-size: 12px; -webkit-line-clamp: 1; height: 1.4em; }
}


/* ========== 评论区 ========== */
/* ========== 评论区（zaesky风格，复用Bootstrap类） ========== */
.bpw-video-comments {
    margin-top: 15px;
}
.bpw-video-comments .card-body {
    padding: 20px;
}
.bpw-video-comments .bpw-comment-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.bpw-video-comments .bpw-comment-item .avatar-3 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.bpw-video-comments .message {
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
}
.bpw-video-comments h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1rem;
}
.bpw-comment-form textarea {
    font-size: 14px;
}
.bpw-comment-form .avatar-3 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.mac-notice-bar {
    background: #fff3cd;
    border: 1px solid #ffe58f;
    border-radius: 4px;
    padding: 5px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mac-notice-icon {
    flex-shrink: 0;
    color: #fa8c16;
    font-size: 14px;
}
.mac-notice-content {
    flex: 1;
    overflow: hidden;
}
.mac-notice-scroll {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: notice-scroll 18s linear infinite;
}
.mac-notice-bar:hover .mac-notice-scroll {
    animation-play-state: paused;
}
.mac-notice-text {
    font-size: 20px;
    margin: 0;
    background: -webkit-linear-gradient(left, #ffffff, #ff0000 6.25%, #ff7d00 12.5%, #ffff00 18.75%, #00ff00 25%, #00ffff 31.25%, #0000ff 37.5%, #ff00ff 43.75%, #ffff00 50%, #ff0000 56.25%, #ff7d00 62.5%, #ffff00 68.75%, #00ff00 75%, #00ffff 81.25%, #0000ff 87.5%, #ff00ff 93.75%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: masked-animation 2s infinite linear;
}
@keyframes notice-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes masked-animation {
    0% { background-position: 0 0; }
    100% { background-position: -100% 0; }
}

/* ========== 视频详情页广告 ========== */
.mac-ad-section {
    margin-bottom: 12px;
}
.mac-ad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.mac-ad-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}
.mac-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}
