/* ============================================================
   Bunny Membership – Frontend Styles
   Čisté, neutrální styly kompatibilní s Elementorem Pro.
   Vlastní barvy lze přepsat CSS proměnnými tématu.
   ============================================================ */

/* ── Proměnné ────────────────────────────────────────────────── */
:root {
    --bm-primary:      #1a1a2e;
    --bm-accent:       #e94560;
    --bm-accent-hover: #c73652;
    --bm-bg:           #f8f9fa;
    --bm-border:       #e2e8f0;
    --bm-radius:       12px;
    --bm-shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
    --bm-font:         inherit;
}

/* ── Player wrapper ──────────────────────────────────────────── */
.bm-player-wrap {
    font-family: var(--bm-font);
    margin: 0 0 1.5rem;
}

.bm-iframe-container {
    border-radius: var(--bm-radius);
    overflow: hidden;
    box-shadow: var(--bm-shadow);
    background: #000;
}

.bm-token-note {
    font-size: 11px;
    color: #94a3b8;
    margin: 6px 0 0;
    text-align: right;
}

.bm-player-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 16px;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
}

/* ── Playlist ────────────────────────────────────────────────── */
.bm-playlist-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .bm-playlist-wrap {
        grid-template-columns: 1fr 280px;
        align-items: start;
    }
}

.bm-playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    overflow: hidden;
    background: #fff;
}

.bm-playlist-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bm-border);
    font-size: 14px;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bm-playlist-item:last-child {
    border-bottom: none;
}

.bm-playlist-item:hover {
    background: var(--bm-bg);
}

.bm-playlist-item.bm-playlist-active {
    background: var(--bm-primary);
    color: #fff;
    font-weight: 600;
}

.bm-playlist-num {
    color: #94a3b8;
    font-size: 12px;
    min-width: 20px;
}

.bm-playlist-active .bm-playlist-num {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Upsell / Access Denied Box ──────────────────────────────── */
.bm-access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 48px 32px;
    background: var(--bm-bg);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    max-width: 560px;
    margin: 0 auto;
}

.bm-lock-icon {
    color: var(--bm-accent);
    opacity: 0.85;
}

.bm-access-denied__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bm-access-denied__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bm-primary);
    margin: 0;
    line-height: 1.3;
}

.bm-access-denied__desc {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.bm-access-denied__thumb img {
    border-radius: 8px;
    max-height: 140px;
    width: auto;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.bm-access-denied__price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bm-primary);
}

.bm-access-denied__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

/* ── Tlačítka ────────────────────────────────────────────────── */
.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    line-height: 1;
}

.bm-btn--primary {
    background: var(--bm-accent);
    color: #fff !important;
    border-color: var(--bm-accent);
}

.bm-btn--primary:hover {
    background: var(--bm-accent-hover);
    border-color: var(--bm-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
    color: #fff !important;
}

.bm-btn--secondary {
    background: var(--bm-primary);
    color: #fff !important;
    border-color: var(--bm-primary);
}

.bm-btn--secondary:hover {
    opacity: 0.85;
    color: #fff !important;
}

.bm-btn--ghost {
    background: transparent;
    color: #64748b !important;
    border-color: var(--bm-border);
}

.bm-btn--ghost:hover {
    background: var(--bm-bg);
    color: var(--bm-primary) !important;
    border-color: #94a3b8;
}
