/* =============================================
   JustMedia iDataRiver — style.css v3
   ============================================= */

/* ── 试看提示条 ───────────────────────────────── */
#jmidr-preview-bar {
    background: linear-gradient(90deg, #0f0f1a, #1a1a2e);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    letter-spacing: .4px;
    border-radius: 4px 4px 0 0;
}
#jmidr-preview-bar b { color: #FFD700; font-size: 15px; }

/* ── 视频锁定遮罩 ─────────────────────────────── */
.entry-video.jmidr-locked {
    position: relative;
    pointer-events: none;
    user-select: none;
}
.entry-video.jmidr-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10;
    border-radius: 4px;
}

/* ── 公共按钮 ─────────────────────────────────── */
.jmidr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .18s, transform .1s;
    line-height: 1.4;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-sizing: border-box;
    min-height: 44px; /* iOS 最小触摸高度 */
}
.jmidr-btn:hover  { opacity: .86; transform: translateY(-1px); }
.jmidr-btn:active { transform: scale(.97); }
.jmidr-btn-primary   { background: #111; color: #fff; }
.jmidr-btn-ghost     { background: #f2f2f2; color: #aaa; cursor: default; }
.jmidr-btn-secondary { background: #f5f5f5; color: #444; }

/* ── 试看结束弹窗（旧方式兼容，无套餐弹窗时使用）*/
#jmidr-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}
.jmidr-modal-inner {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.jmidr-modal-icon  { font-size: 44px; margin-bottom: 10px; }
.jmidr-modal-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: #111; }
.jmidr-modal-desc  { font-size: 14px; color: #666; margin: 0 0 18px; line-height: 1.6; }
.jmidr-level-badges {
    display: flex; gap: 7px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 18px;
}
.jmidr-badge {
    padding: 4px 13px; border-radius: 20px; font-size: 12px;
    background: #f2f2f2; color: #999; border: 1.5px solid transparent;
}
.jmidr-badge.active   { background: #e8f5e9; color: #2e7d32; border-color: #81c784; }
.jmidr-badge.required { background: #fff3e0; color: #e65100; border-color: #ffb74d; font-weight: 700; }
.jmidr-modal-actions  { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.jmidr-modal-sub      { font-size: 12px; color: #aaa; margin: 0; }
.jmidr-modal-sub a    { color: #777; text-decoration: underline; }

/* ══════════════════════════════════════════════
   套餐弹窗（Plans Modal）
   ══════════════════════════════════════════════ */
.jmidr-plans-modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.jmidr-plans-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
}
.jmidr-plans-dialog {
    position: relative;
    background: #0d0d18;
    border-radius: 24px;
    width: 100%; max-width: 700px;
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,.6);
    animation: jmidrUp .32s cubic-bezier(.22,1,.36,1);
}
@keyframes jmidrUp {
    from { transform: translateY(28px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes jmidrSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* 顶栏（固定，不随内容滚动） */
.jmidr-plans-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px 12px; flex-shrink: 0;
}
.jmidr-lang-switcher {
    display: flex; gap: 3px; flex-wrap: wrap;
    background: rgba(255,255,255,.07);
    border-radius: 20px; padding: 3px;
    max-width: calc(100% - 50px);
}
.jmidr-lang-btn {
    background: transparent; border: none;
    color: rgba(255,255,255,.5);
    font-size: 11px; font-weight: 600;
    padding: 4px 9px; border-radius: 16px;
    cursor: pointer; transition: all .18s;
    min-height: 30px; min-width: 28px;
    -webkit-tap-highlight-color: transparent;
}
.jmidr-lang-btn.active,
.jmidr-lang-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

.jmidr-plans-close {
    background: rgba(255,255,255,.08); border: none;
    color: rgba(255,255,255,.6);
    width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s;
}
.jmidr-plans-close:hover,
.jmidr-plans-close:active { background: rgba(255,255,255,.2); color: #fff; }

/* 可滚动内容区 */
.jmidr-plans-scrollable {
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    flex: 1; padding: 4px 24px 32px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent;
}
.jmidr-plans-scrollable::-webkit-scrollbar { width: 4px; }
.jmidr-plans-scrollable::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.jmidr-plans-header { text-align: center; margin-bottom: 20px; }
.jmidr-plans-title  { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.jmidr-plans-subtitle { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }

/* 套餐卡片 */
.jmidr-plans-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.jmidr-pc {
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px 14px 16px;
    text-align: center;
    position: relative;
    display: flex; flex-direction: column; gap: 5px;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}
.jmidr-pc:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.jmidr-pc-popular { background: rgba(99,102,241,.12); border-color: rgba(99,102,241,.55); box-shadow: 0 0 24px rgba(99,102,241,.15); }
.jmidr-pc-current { border-color: rgba(251,191,36,.55); background: rgba(251,191,36,.07); }
.jmidr-pc-tag {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    font-size: 10px; font-weight: 700; padding: 3px 12px;
    border-radius: 20px; white-space: nowrap; letter-spacing: .4px; text-transform: uppercase;
}
.jmidr-pc-tag-popular { background: #6366f1; color: #fff; }
.jmidr-pc-tag-current { background: #f59e0b; color: #fff; }
.jmidr-pc-icon   { font-size: 24px; margin-bottom: 2px; }
.jmidr-pc-name   { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .3px; text-transform: uppercase; }
.jmidr-pc-price  { margin: 3px 0; }
.jmidr-pc-amount { font-size: 26px; font-weight: 800; color: #fff; display: block; line-height: 1.1; }
.jmidr-pc-period { font-size: 11px; color: rgba(255,255,255,.4); }
.jmidr-pc-expire { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }
.jmidr-pc-action { margin-top: auto; padding-top: 10px; }
.jmidr-pc-action .jmidr-btn {
    width: 100%; box-sizing: border-box;
    font-size: 13px; padding: 10px 4px; min-height: 42px;
}
.jmidr-pc-action .jmidr-btn-primary { background: #6366f1; }
.jmidr-pc-action .jmidr-btn-primary:hover { background: #4f46e5; opacity: 1; }
.jmidr-pc-current .jmidr-pc-action .jmidr-btn-primary { background: #f59e0b; }
.jmidr-plans-msg {
    text-align: center; margin-top: 14px; font-size: 13px;
    color: rgba(255,255,255,.55);
    padding: 10px; background: rgba(255,255,255,.05); border-radius: 8px;
}
.jmidr-plans-dialog[dir="rtl"] { direction: rtl; }

/* ══════════════════════════════════════════════
   未登录提示弹窗（Login Modal）
   ══════════════════════════════════════════════ */
#jmidr-login-modal {
    position: fixed; inset: 0; z-index: 100001;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.jmidr-lm-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
}
.jmidr-lm-dialog {
    position: relative;
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 380px;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,.4);
    box-sizing: border-box;
    animation: jmidrUp .28s cubic-bezier(.22,1,.36,1);
}
.jmidr-lm-close {
    position: absolute; top: 14px; right: 14px;
    background: #f5f5f5; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; font-size: 13px; color: #666;
    -webkit-tap-highlight-color: transparent;
}
.jmidr-lm-icon  { font-size: 48px; margin-bottom: 10px; }
.jmidr-lm-title { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 8px; }
.jmidr-lm-desc  { font-size: 14px; color: #666; margin: 0 0 20px; line-height: 1.6; }
.jmidr-lm-actions {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
.jmidr-lm-actions .jmidr-btn { width: 100%; justify-content: center; }
.jmidr-lm-actions .jmidr-btn-primary { background: #6366f1; }
.jmidr-lm-sub {
    font-size: 12px; color: #aaa; margin: 0;
}
.jmidr-lm-sub a { color: #6366f1; text-decoration: none; }

/* ══════════════════════════════════════════════
   支付方式选择弹窗
   ══════════════════════════════════════════════ */
#jmidr-method-selector {
    position: fixed; inset: 0; z-index: 100001;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.jmidr-ms-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
}
.jmidr-ms-dialog {
    position: relative; background: #fff;
    border-radius: 20px; width: 100%; max-width: 420px;
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4);
    animation: jmidrUp .28s cubic-bezier(.22,1,.36,1);
}
.jmidr-ms-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
    font-size: 15px; font-weight: 600; color: #111; flex-shrink: 0;
}
.jmidr-ms-header button {
    background: #f5f5f5; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 13px; color: #666;
    -webkit-tap-highlight-color: transparent;
}
.jmidr-ms-body { padding: 12px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.jmidr-method-list { display: flex; flex-direction: column; gap: 8px; }
.jmidr-method-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 12px;
    border: 1.5px solid #e8e8e8; cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 56px; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.jmidr-method-item:active  { background: #f5f5f5; }
.jmidr-method-item.selected { border-color: #6366f1; background: rgba(99,102,241,.05); }
.jmidr-micon {
    width: 38px; height: 38px; border-radius: 10px;
    background: #f0f0f0; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #333; flex-shrink: 0;
}
.jmidr-method-item.selected .jmidr-micon { background: #ede9fe; color: #6366f1; }
.jmidr-mname  { font-size: 14px; font-weight: 500; color: #111; flex: 1; }
.jmidr-mfee   { font-size: 11px; color: #999; white-space: nowrap; }
.jmidr-mcheck { font-size: 14px; color: #6366f1; font-weight: 700; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.jmidr-method-item.selected .jmidr-mcheck { opacity: 1; }
.jmidr-method-error { color: #dc3545; font-size: 13px; padding: 8px 0 4px; text-align: center; }
.jmidr-ms-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-top: 1px solid #f0f0f0;
    background: #fafafa; flex-shrink: 0;
}
.jmidr-ms-total { font-size: 15px; font-weight: 700; color: #111; }
.jmidr-ms-footer .jmidr-btn { padding: 12px 24px; font-size: 14px; background: #6366f1; min-height: 44px; }
.jmidr-ms-footer .jmidr-btn:hover { background: #4f46e5; opacity: 1; }

/* ══════════════════════════════════════════════
   支付 iframe 弹窗
   ══════════════════════════════════════════════ */
#jmidr-pay-modal {
    position: fixed; inset: 0; z-index: 100001;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.jmidr-pay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.jmidr-pay-dialog {
    position: relative; background: #fff;
    border-radius: 20px; width: 100%; max-width: 520px;
    height: 90vh; max-height: 760px;
    display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.5);
    animation: jmidrUp .3s cubic-bezier(.22,1,.36,1);
}
.jmidr-pay-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.jmidr-pay-title { font-size: 15px; font-weight: 600; color: #111; }
.jmidr-pay-close {
    background: #f5f5f5; border: none;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 13px; color: #666;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.jmidr-pay-close:active { background: #e0e0e0; }
.jmidr-pay-body { flex: 1; position: relative; overflow: hidden; }
.jmidr-pay-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 14px; background: #fafafa;
}
#jmidr-pay-iframe { width: 100%; height: 100%; border: none; display: none; }
.jmidr-pay-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; border-top: 1px solid #f0f0f0;
    background: #fafafa; flex-shrink: 0;
}
.jmidr-pay-secure { font-size: 12px; color: #2e7d32; }
.jmidr-pay-hint   { font-size: 11px; color: #aaa; }

/* ── 用户状态框 ───────────────────────────────── */
.jmidr-status-box {
    display: inline-block; background: #fff8e1;
    border: 1px solid #ffe082; border-radius: 8px;
    padding: 10px 18px; font-size: 13px; color: #5d4037;
}

/* ── 视频黑屏占位（killPlayer 后替换视频区） ── */
.jmidr-video-blackout {
    width: 100%; aspect-ratio: 16/9;
    background: #000; border-radius: 4px;
    min-height: 200px;
}

/* ══════════════════════════════════════════════
   锁定弹窗（#jmidr-kill-modal）
   挂在 body 上，无关闭按钮，无背景点击关闭
   ══════════════════════════════════════════════ */
#jmidr-kill-modal {
    position: fixed; inset: 0; z-index: 200000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
}
.jmidr-kill-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(10px);
}
.jmidr-kill-dialog {
    position: relative;
    background: linear-gradient(160deg, #13131f 0%, #1c1c30 100%);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 24px;
    width: 100%; max-width: 420px;
    padding: 44px 32px 36px;
    text-align: center;
    box-shadow: 0 0 60px rgba(99,102,241,.25), 0 40px 80px rgba(0,0,0,.6);
    animation: jmidrUp .35s cubic-bezier(.22,1,.36,1);
    box-sizing: border-box;
}
.jmidr-kill-icon {
    font-size: 56px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(99,102,241,.7));
    display: block;
}
.jmidr-kill-title {
    font-size: 20px; font-weight: 800;
    color: #fff; margin: 0 0 12px; line-height: 1.4;
}
.jmidr-kill-desc {
    font-size: 14px; color: rgba(255,255,255,.55);
    margin: 0 0 24px; line-height: 1.7;
}
.jmidr-kill-actions { margin-bottom: 16px; }
.jmidr-kill-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 24px rgba(99,102,241,.5);
    transition: transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 52px;
    box-sizing: border-box;
}
.jmidr-kill-btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,.6); }
.jmidr-kill-btn:active { transform: scale(.97); }
.jmidr-kill-hint {
    font-size: 12px; color: rgba(255,255,255,.3);
    margin: 0; line-height: 1.8;
}
.jmidr-kill-hint a {
    color: rgba(255,255,255,.55);
    text-decoration: underline; cursor: pointer;
}

/* ── Toast ───────────────────────────────────── */
.jmidr-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e; color: #fff;
    padding: 12px 24px; border-radius: 10px;
    font-size: 14px; z-index: 200000;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
    animation: jmidrUp .3s ease;
    white-space: nowrap;
}
.jmidr-toast a { color: #90caf9; }
.jmidr-toast-success { background: #1b5e20; }

/* ══════════════════════════════════════════════
   手机端适配（≤600px）
   ══════════════════════════════════════════════ */
@media (max-width: 600px) {
    /* 试看弹窗 */
    .jmidr-modal-inner { padding: 28px 18px; }
    .jmidr-modal-actions .jmidr-btn { width: 100%; margin-bottom: 4px; padding: 13px; }

    /* 套餐弹窗 → bottom sheet */
    .jmidr-plans-modal {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }
    .jmidr-plans-dialog {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 90vh;
        animation: jmidrSlideUp .32s cubic-bezier(.22,1,.36,1);
    }
    /* 拖拽指示条 */
    .jmidr-plans-dialog::after {
        content: '';
        position: absolute; top: 10px; left: 50%;
        transform: translateX(-50%);
        width: 36px; height: 4px;
        background: rgba(255,255,255,.2); border-radius: 2px; z-index: 2;
    }
    .jmidr-plans-topbar { padding: 22px 16px 10px; }
    /* 语言切换：小字号，紧凑 */
    .jmidr-lang-switcher { gap: 2px; }
    .jmidr-lang-btn { font-size: 10px; padding: 3px 7px; min-width: 24px; }
    .jmidr-plans-scrollable { padding: 4px 16px 48px; }
    /* 三栏改单列 */
    .jmidr-plans-cards { grid-template-columns: 1fr; gap: 10px; }
    .jmidr-pc-popular  { margin-top: 14px; }

    /* 登录弹窗 → bottom sheet */
    #jmidr-login-modal {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }
    .jmidr-lm-dialog {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 32px 20px 36px;
        animation: jmidrSlideUp .28s cubic-bezier(.22,1,.36,1);
    }
    .jmidr-lm-close { top: 12px; right: 12px; }

    /* 支付方式选择 → bottom sheet */
    #jmidr-method-selector {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }
    .jmidr-ms-dialog {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 80vh;
        animation: jmidrSlideUp .28s cubic-bezier(.22,1,.36,1);
    }

    /* 支付 iframe → 近全屏 */
    #jmidr-pay-modal { padding: 0; align-items: flex-end; }
    .jmidr-pay-dialog {
        border-radius: 16px 16px 0 0;
        max-width: 100%; height: 92vh; max-height: none;
    }
    .jmidr-pay-footer { flex-direction: column; gap: 4px; text-align: center; }

    /* 锁定弹窗手机端 */
    .jmidr-kill-dialog  { padding: 36px 20px 28px; max-width: 100%; border-radius: 20px; }
    .jmidr-kill-title   { font-size: 18px; }
    .jmidr-kill-icon    { font-size: 44px; }
    .jmidr-kill-btn     { font-size: 15px; padding: 13px 20px; }

    /* Toast */
    .jmidr-toast { width: 90%; white-space: normal; text-align: center; bottom: 16px; }
    .jmidr-ms-footer { gap: 8px; }
    .jmidr-ms-footer .jmidr-ms-total { font-size: 13px; }
}

/* 极小屏（≤380px）*/
@media (max-width: 380px) {
    .jmidr-lang-btn { font-size: 9px; padding: 2px 5px; min-width: 20px; }
    .jmidr-pc-amount { font-size: 22px; }
}

/* ══════════════════════════════════════════════
   播放器顶部状态栏 (#jmidr-player-bar)
   醒目设计，显示在文章内容最顶部
   ══════════════════════════════════════════════ */
.jmidr-player-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex-wrap: wrap;
    margin-bottom: 16px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* 状态：已是会员 → 绿色 */
.jmidr-pb-state-member {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f1);
    border: 1.5px solid #a5d6a7;
    color: #1b5e20;
}

/* 状态：未登录 → 橙色 */
.jmidr-pb-state-guest {
    background: linear-gradient(135deg, #fff8e1, #fffde7);
    border: 1.5px solid #ffe082;
    color: #6d4c00;
}

/* 状态：需要升级/订阅 → 红色醒目 */
.jmidr-pb-state-upgrade {
    background: linear-gradient(135deg, #fff1f0, #fff5f5);
    border: 1.5px solid #ffb3b3;
    color: #7f0000;
}

/* 图标 */
.jmidr-pb-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

/* 文字区域 */
.jmidr-pb-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.jmidr-pb-label {
    font-size: 14px;
    font-weight: 600;
}
.jmidr-pb-exp {
    font-size: 12px;
    opacity: .75;
    font-weight: 400;
}
.jmidr-pb-exp::before { content: '·'; margin-right: 6px; }

/* 按钮区域 */
.jmidr-pb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.jmidr-pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 36px;
    box-sizing: border-box;
    transition: transform .12s, box-shadow .12s, opacity .12s;
    letter-spacing: .2px;
}
.jmidr-pb-btn:hover  { transform: translateY(-1px); opacity: .92; }
.jmidr-pb-btn:active { transform: scale(.96); }

/* 登录按钮 */
.jmidr-pb-btn-login {
    background: #1976d2;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(25,118,210,.35);
}
.jmidr-pb-btn-login:hover { box-shadow: 0 4px 14px rgba(25,118,210,.45); }

/* 注册按钮 */
.jmidr-pb-btn-register {
    background: #fff;
    color: #1976d2 !important;
    border: 1.5px solid #1976d2;
}

/* 订阅/升级按钮：红色醒目 + 脉冲动画 */
.jmidr-pb-btn-subscribe {
    background: linear-gradient(135deg, #e53935, #f44336);
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(229,57,53,.45);
    animation: jmidr-pulse 2s ease-in-out infinite;
    font-size: 14px;
    padding: 8px 20px;
    min-height: 40px;
}
.jmidr-pb-btn-subscribe:hover {
    box-shadow: 0 6px 20px rgba(229,57,53,.55);
    animation: none;
    opacity: 1;
}
@keyframes jmidr-pulse {
    0%, 100% { box-shadow: 0 3px 12px rgba(229,57,53,.45); }
    50%       { box-shadow: 0 3px 20px rgba(229,57,53,.75); }
}

/* ── 提示条模式（bar）── */
#jmidr-timebar-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #1a1a2e, #16213e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.jmidr-timebar-text { flex: 1; text-align: center; }
.jmidr-timebar-sub {
    display: inline-flex; align-items: center;
    padding: 6px 16px;
    background: #6366f1; color: #fff !important;
    border: none; border-radius: 6px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.jmidr-timebar-sub:hover { background: #4f46e5; }
.jmidr-timebar-close {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none;
    color: #fff; width: 26px; height: 26px;
    border-radius: 50%; cursor: pointer; font-size: 12px;
}
.jmidr-timebar-close:hover { background: rgba(255,255,255,.25); }

/* 手机端状态栏 */
@media (max-width: 600px) {
    /* 播放器状态栏手机端 */
    .jmidr-player-bar     { padding: 10px 12px; gap: 8px; margin-bottom: 12px; }
    .jmidr-pb-label       { font-size: 13px; }
    .jmidr-pb-btn         { padding: 7px 12px; font-size: 12px; min-height: 34px; }
    .jmidr-pb-btn-subscribe { font-size: 13px; padding: 7px 14px; }
    .jmidr-pb-exp         { display: none; }
    #jmidr-timebar-banner { font-size: 13px; padding: 8px 12px; }
}

/* ══════════════════════════════════════════════
   套餐卡片：支付方式展示
   ══════════════════════════════════════════════ */
.jmidr-pc-payments {
    margin: 8px 0 4px;
    text-align: center;
}
.jmidr-pc-pay-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 6px;
}
.jmidr-pc-pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

/* 每个支付方式小 chip */
.jmidr-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 11px;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    transition: background .15s, border-color .15s;
    cursor: default;
}
.jmidr-pay-chip:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.25);
    color: #fff;
}
.jmidr-pay-chip-icon {
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}
.jmidr-pay-chip-name {
    font-size: 10px;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 各支付方式颜色主题 */
.pm-crypto  { border-color: rgba(247,147,26,.3);  color: rgba(247,147,26,.9); }
.pm-crypto:hover { background: rgba(247,147,26,.1); border-color: rgba(247,147,26,.5); }
.pm-alipay  { border-color: rgba(22,155,213,.3);  color: rgba(22,155,213,.9); }
.pm-alipay:hover { background: rgba(22,155,213,.1); border-color: rgba(22,155,213,.5); }
.pm-wx      { border-color: rgba(9,187,7,.3);     color: rgba(9,187,7,.9); }
.pm-wx:hover { background: rgba(9,187,7,.1); border-color: rgba(9,187,7,.5); }
.pm-card    { border-color: rgba(99,102,241,.3);  color: rgba(160,163,255,.9); }
.pm-card:hover { background: rgba(99,102,241,.1); }
.pm-google  { border-color: rgba(66,133,244,.3);  color: rgba(100,160,255,.9); }
.pm-google:hover { background: rgba(66,133,244,.1); }
.pm-apple   { border-color: rgba(200,200,200,.3); color: rgba(220,220,220,.9); }
.pm-apple:hover { background: rgba(200,200,200,.1); }
.pm-paypal  { border-color: rgba(0,112,186,.3);   color: rgba(80,170,255,.9); }
.pm-paypal:hover { background: rgba(0,112,186,.1); }
.pm-revolut { border-color: rgba(130,70,255,.3);  color: rgba(170,130,255,.9); }
.pm-revolut:hover { background: rgba(130,70,255,.1); }

/* ══════════════════════════════════════════════
   订阅按钮动画效果
   ══════════════════════════════════════════════ */
.jmidr-btn-animated {
    position: relative;
    overflow: hidden;
    /* 呼吸发光动画 */
    animation: jmidr-btn-glow 2.4s ease-in-out infinite;
}

/* 光泽扫过动画 */
.jmidr-btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,.35) 50%,
        transparent 100%
    );
    animation: jmidr-btn-sweep 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes jmidr-btn-glow {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(99,102,241,.45);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 6px 22px rgba(99,102,241,.7), 0 0 0 3px rgba(99,102,241,.15);
        transform: translateY(-1px);
    }
}

@keyframes jmidr-btn-sweep {
    0%   { left: -100%; opacity: 0; }
    20%  { opacity: 1; }
    60%  { left: 130%; opacity: 1; }
    61%, 100% { left: 130%; opacity: 0; }
}

/* 悬停时停止动画，改为缩放反馈 */
.jmidr-btn-animated:hover {
    animation: none;
    box-shadow: 0 8px 28px rgba(99,102,241,.75);
    transform: translateY(-2px) scale(1.02);
}
.jmidr-btn-animated:hover .jmidr-btn-shine {
    animation: none;
}
.jmidr-btn-animated:active {
    transform: scale(.97);
    box-shadow: 0 3px 10px rgba(99,102,241,.4);
}

/* 手机端：chips 紧凑 */
@media (max-width: 600px) {
    .jmidr-pay-chip      { padding: 2px 5px; gap: 3px; }
    .jmidr-pay-chip-name { max-width: 60px; font-size: 9px; }
    .jmidr-pc-payments   { margin: 6px 0 2px; }
}
