/**
 * 看豆影视核心中台 - 极致美化前端组件样式表 (assets/css/kandou-frontend.css)
 * 纯组件级样式，自适应浅色/深色主题，全站排版像素级打磨
 */

/* 1. 2:3 / 9:16 高清流媒体竖屏卡片 */
.kandou-media-card-wrap {
    margin: 15px 0 25px 0;
    width: 100%;
}

.kandou-media-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.kandou-media-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.kandou-poster-box {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    width: 280px; flex: 0 0 280px;
    aspect-ratio: 520 / 693;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kandou-poster-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    margin: 0 !important;
    transition: transform 0.35s ease;
}

.kandou-poster-box:hover .kandou-poster-img {
    transform: scale(1.03);
}

.kandou-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

.kandou-poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
    letter-spacing: 0.5px;
}

.kandou-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.kandou-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.kandou-title {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px;
}

.kandou-year {
    font-size: 15px;
    font-weight: 600;
    color: #64748b !important;
}

.kandou-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.kandou-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.platform-chip { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; }
.ep-chip       { background: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }
.runtime-chip  { background: #f8fafc !important; color: #64748b !important; border: 1px solid #e2e8f0 !important; }
.rating-chip   { background: #fefce8 !important; color: #b45309 !important; border: 1px solid #fef08a !important; font-weight: 700; }

.kandou-cast-row {
    font-size: 13.5px;
    color: #475569 !important;
    line-height: 1.7;
    margin-bottom: 12px;
}

.kandou-cast-row .cast-item {
    display: block;
}

.kandou-cast-row strong {
    color: #1e293b !important;
    font-weight: 700;
}

.kandou-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.kandou-tag-pill { text-decoration: none; cursor: pointer; transition: all 0.2s ease;
    font-size: 11.5px;
    color: #0284c7 !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    padding: 2.5px 8px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s;
}

.kandou-tag-pill:hover {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
}

.kandou-summary-box {
    margin-top: auto;
    background: #f8fafc !important;
    border-left: 3.5px solid #3b82f6 !important;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.kandou-summary-text {
    font-size: 13.5px !important;
    color: #334155 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    text-align: justify;
}

@media (max-width: 640px) {
    .kandou-media-card {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }
    .kandou-poster-box {
        width: 170px;
    }
    .kandou-title {
        font-size: 19px !important;
    }
}

/* 2. 统一网盘下载与转存直达盒 (微质感卡片) */
.kandou-download-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.kandou-download-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 14px;
}

.pan-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pan-icon {
    font-size: 20px;
}

.pan-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a !important;
}

.pan-type-tag {
    font-size: 11.5px;
    font-weight: 700;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    padding: 2px 7px;
    border-radius: 4px;
}

.pan-download-app-link {
    font-size: 12.5px;
    color: #2563eb !important;
    text-decoration: none !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.pan-download-app-link:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

.kandou-download-body {
    margin-bottom: 14px;
}

.pan-link-display-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
}

.pan-link-label {
    color: #64748b !important;
    font-weight: 700;
}

.pan-link-url {
    color: #0284c7 !important;
    word-break: break-all;
    text-decoration: underline !important;
    font-weight: 500;
}

.pan-passcode-badge {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e3a8a !important;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12.5px;
}

.pan-passcode-badge strong {
    color: #2563eb !important;
}

.kandou-action-buttons { justify-content: flex-end;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.kandou-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
}

.kandou-copy-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.kandou-copy-btn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
}

.kandou-client-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.kandou-client-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.kandou-copy-toast {
    margin-top: 10px;
    font-size: 12.5px;
    color: #15803d !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 6px 12px;
    border-radius: 6px;
}

/* 3. 社交媒体矩阵分享栏 */
.kandou-share-card-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 14px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.kandou-share-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.kandou-share-label {
    font-size: 13.5px;
    font-weight: 800;
    color: #64748b !important;
}

.kandou-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kandou-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #334155 !important;
    transition: all 0.2s ease;
}

.kandou-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.share-btn-wx:hover { background: #07c160 !important; border-color: #07c160 !important; color: #fff !important; }
.share-btn-weibo:hover { background: #e6162d !important; border-color: #e6162d !important; color: #fff !important; }
.share-btn-qq:hover { background: #12b7f5 !important; border-color: #12b7f5 !important; color: #fff !important; }
.share-btn-qzone:hover { background: #eab308 !important; border-color: #eab308 !important; color: #000 !important; }
.share-btn-copy:hover { background: #6366f1 !important; border-color: #6366f1 !important; color: #fff !important; }

/* 微信扫码弹窗 */
.kandou-wx-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wx-share-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
    text-align: left !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
}

.wx-share-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.wx-share-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wx-share-qr-wrap img {
    width: 190px;
    height: 190px;
    border-radius: 10px;
    border: 1px solid #e2e8f0 !important;
    padding: 6px;
    background: #ffffff !important;
}

.wx-share-desc {
    font-size: 12.5px;
    color: #64748b !important;
    margin-top: 12px;
    line-height: 1.6;
}

/* 微信内置浏览器引导遮罩 */
.kandou-wx-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.wx-guide-content {
    background: #ffffff !important;
    border-radius: 14px;
    padding: 22px 26px;
    width: 85%;
    max-width: 320px;
    text-align: left !important;
    position: relative;
}

.wx-guide-arrow {
    position: absolute;
    top: -45px;
    right: 20px;
    color: #ffffff !important;
    font-size: 42px;
}

.wx-guide-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 8px;
}

.wx-guide-desc {
    font-size: 13.5px;
    color: #64748b !important;
    line-height: 1.6;
    margin-bottom: 16px;
}

.wx-guide-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* 4. 全局底部合规免责声明卡片 (精细化磨砂质感) */
.kandou-global-footer-disclaimer {
    width: 100%;
    margin: 25px auto 10px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.kandou-disclaimer-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: left !important;
}

.kandou-disclaimer-content {
    font-size: 12px !important;
    line-height: 1.8 !important;
    color: #64748b !important;
    margin: 0 !important;
    text-align: justify !important;
    text-align-last: left !important;
}

.kandou-disclaimer-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    border-radius: 5px;
    margin-right: 6px;
    font-size: 11.5px;
}

.kandou-disclaimer-link {
    color: #2563eb !important;
    font-weight: 700;
    text-decoration: underline !important;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.kandou-disclaimer-link:hover {
    color: #1d4ed8 !important;
}
.kandou-tag-pill:hover { background: #0284c7 !important; color: #ffffff !important; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(2,132,199,0.25); }

/* 5. 网站顶部 Logo 图标 + 站点名称横向排版 */
.site-logo-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    vertical-align: middle !important;
}

.site-custom-logo-img {
    height: 36px !important;
    width: 36px !important;
    max-width: 36px !important;
    object-fit: contain !important;
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.site-name-text {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   \n/* ==========================================================================\n   6. 官方微信公众号 & Telegram 订阅引流卡片 (Dual Community Box + QR Code)\n   ========================================================================== */\n.kandou-community-box-wrap {\n    margin: 28px 0 20px;\n    background: #ffffff;\n    border: 1px solid #e2e8f0;\n    border-radius: 14px;\n    padding: 20px 22px;\n    box-shadow: 0 4px 16px rgba(0,0,0,0.04);\n}\n\n.kandou-comm-header {\n    text-align: left !important;\n    margin-bottom: 18px;\n}\n\n.kandou-comm-tag {\n    display: inline-block;\n    background: linear-gradient(135deg, #ff4757, #ff6b81);\n    color: #ffffff;\n    font-size: 11.5px;\n    font-weight: 700;\n    padding: 2px 10px;\n    border-radius: 20px;\n    margin-bottom: 6px;\n    letter-spacing: 0.5px;\n}\n\n.kandou-comm-title {\n    font-size: 16.5px;\n    font-weight: 800;\n    color: #0f172a;\n    margin: 0;\n    letter-spacing: -0.3px;\n}\n\n.kandou-comm-grid {\n    display: grid;\n    grid-template-columns: 1fr 1fr;\n    gap: 16px;\n}\n\n@media (max-width: 720px) {\n    .kandou-comm-grid {\n        grid-template-columns: 1fr;\n    }\n}\n\n.kandou-comm-card {\n    display: flex;\n    align-items: center;\n    gap: 14px;\n    background: #f8fafc;\n    border: 1px solid #e2e8f0;\n    border-radius: 12px;\n    padding: 16px;\n    transition: all 0.25s ease;\n}\n\n.kandou-comm-card:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 4px 14px rgba(0,0,0,0.07);\n}\n\n.kandou-comm-wx:hover {\n    border-color: #07c160;\n    background: #f0fdf4;\n}\n\n.kandou-comm-tg:hover {\n    border-color: #0284c7;\n    background: #f0f9ff;\n}\n\n/* 微信二维码容器 */\n.kandou-comm-qr-box {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    width: 86px;\n    min-width: 86px;\n}\n\n.kandou-comm-qr-img {\n    width: 82px !important;\n    height: 82px !important;\n    max-width: 82px !important;\n    border-radius: 8px !important;\n    border: 1px solid #cbd5e1 !important;\n    background: #fff !important;\n    padding: 2px !important;\n    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;\n    display: block !important;\n}\n\n.kandou-comm-qr-tip {\n    font-size: 10px;\n    color: #64748b;\n    margin-top: 4px;\n    text-align: left !important;\n    font-weight: 500;\n}\n\n/* TG 图标容器 */\n.kandou-comm-icon-box {\n    width: 82px;\n    height: 82px;\n    min-width: 82px;\n    border-radius: 10px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.tg-bg {\n    background: #e0f2fe;\n    color: #0284c7;\n}\n\n.kandou-comm-body {\n    flex: 1;\n}\n\n.kandou-comm-badge-row {\n    display: flex;\n    align-items: center;\n    gap: 6px;\n    margin-bottom: 6px;\n}\n\n.kandou-platform-badge {\n    font-size: 10.5px;\n    font-weight: 700;\n    padding: 1px 6px;\n    border-radius: 4px;\n}\n\n.wx-badge-icon {\n    background: #07c160;\n    color: #fff;\n}\n\n.tg-badge-icon {\n    background: #0284c7;\n    color: #fff;\n}\n\n.kandou-comm-id-pill {\n    font-size: 11px;\n    color: #64748b;\n    background: #e2e8f0;\n    padding: 1px 6px;\n    border-radius: 4px;\n    font-family: monospace;\n}\n\n.kandou-comm-card-title {\n    font-size: 14.5px;\n    font-weight: 800;\n    color: #1e293b;\n    margin: 0 0 4px;\n}\n\n.kandou-comm-desc {\n    font-size: 12px;\n    color: #64748b;\n    margin: 0 0 10px;\n    line-height: 1.5;\n}\n\n.kandou-comm-badge-btn {\n    display: inline-block;\n    font-size: 12px;\n    font-weight: 600;\n    padding: 5px 14px;\n    border-radius: 6px;\n    text-decoration: none !important;\n    transition: background 0.2s ease;\n}\n\n.wx-badge {\n    background: #07c160;\n    color: #ffffff !important;\n}\n\n.tg-badge {\n    background: #0284c7;\n    color: #ffffff !important;\n}\n\n.tg-badge:hover {\n    background: #0369a1;\n}\n